/*
 * The landing page's own styles (saas/prototypes/site-landing-v3.html, carried over), after site.css:
 * the hero's cards, the live demo (Halo's own UI as the extension draws it), and the sections.
 * Caveat is the demo's hand-written "drag me", served from /fonts.
 */
/* Only a link to a place on the page glides (landing.js): a page-wide smooth scroll turned the fix-up after a reload into a glide. */
html { scroll-behavior: auto; }
@font-face { font-family: Caveat; src: url(/fonts/caveat-600-latin.woff2) format("woff2"); font-weight: 600; font-display: swap; }
/* ---------- The pretend Mac ---------- */
.desk { position: relative; width: min(1760px, 100%); margin: 28px auto 0; padding: 0 0 96px; }
.wall { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 20% 30%, var(--wall-a), transparent 70%),
    radial-gradient(50% 60% at 80% 22%, var(--wall-b), transparent 70%),
    radial-gradient(70% 70% at 62% 88%, var(--wall-c), transparent 70%),
    var(--wall-d);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 86%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 86%, transparent); mask-composite: intersect; }
.screen-fit { position: relative; width: min(1200px, 100% - 32px); margin: 0 auto; }
.desk { -webkit-user-select: none; user-select: none; }
.screen { position: absolute; left: 0; top: 0; width: 1200px; height: 680px; transform-origin: 0 0; font: 13px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif; color: var(--win-ink); user-select: none; -webkit-user-select: none; touch-action: none; }
.screen img { -webkit-user-drag: none; }
/* Chrome */
@keyframes spin { to { transform: rotate(360deg); } }
/* The Dock */
@keyframes bounce { 30% { transform: translateY(-16px); } 55% { transform: translateY(0); } 72% { transform: translateY(-6px); } }
.stack-pop { position: absolute; z-index: 5600; bottom: 74px; width: 330px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--win) 86%, transparent); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: .5px solid var(--glass-line); box-shadow: 0 18px 50px -10px rgba(0,0,0,.45); display: none; }
.stack-pop.show { display: block; }
.stack-pop h4 { margin: 0 0 8px; font-size: 13px; display: flex; justify-content: space-between; }
.stack-pop h4 small { color: var(--win-muted); font-weight: 500; }
.stack-pop .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
.stack-pop .f { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 10.5px; }
.stack-pop .f .th { width: 72px; height: 54px; display: grid; place-items: center; }
.stack-pop .f .th img { max-width: 72px; max-height: 54px; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.stack-pop .f .th img.cut { box-shadow: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.stack-pop .f span { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack-pop .empty { color: var(--win-muted); font-size: 12px; padding: 10px 0; text-align: center; }
.fly { position: absolute; z-index: 9500; width: 56px; height: 40px; object-fit: cover; border-radius: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.35); pointer-events: none; transition: transform .7s cubic-bezier(.5,0,.2,1), opacity .7s; }
/* ---------- Halo's own UI, as the extension draws it (content/index.js, windows.js) ---------- */
.halo-ui { position: absolute; inset: 0; z-index: 7000; pointer-events: none;
  --bg: rgba(255,255,255,.94); --line: rgba(0,0,0,.08); --edge: rgba(0,0,0,.07); --ink: #2c2c33; --mute: #6c6c76;
  --shadow: 0 10px 34px rgba(30,30,50,.2), 0 1px 3px rgba(0,0,0,.1); --lens: rgba(255,255,255,.34);
  --acc-a: #ffe7a3; --acc-b: #f3b83f; --acc-ink: #3a2a00; --acc-ring: #f4c45a; --acc-glow: rgba(246,190,70,.75); --acc-strong: #9a6a00;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.halo-ui[data-mode="dark"] { --bg: rgba(30,30,38,.94); --line: rgba(255,255,255,.1); --edge: rgba(255,255,255,.12); --ink: #ecebf2; --mute: #a9a8b4; --lens: rgba(16,16,22,.42);
  --shadow: 0 10px 34px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.4); --acc-strong: var(--acc-a); }
.halo-ui[data-accent="pearl"] { --acc-a: #ffffff; --acc-b: #e8dcff; --acc-ink: #2b2440; --acc-ring: #d9c3ff; --acc-glow: rgba(214,190,255,.8); --acc-strong: #6a4fb0; }
.halo-ui[data-accent="ice"] { --acc-a: #d9e9ff; --acc-b: #8bb8ff; --acc-ink: #0c2350; --acc-ring: #8cbcff; --acc-glow: rgba(120,175,255,.8); --acc-strong: #2c5fb8; }
.halo-ui[data-mode="dark"][data-accent] { --acc-strong: var(--acc-a); }
.halo-ui * { box-sizing: border-box; }
.hint { position: absolute; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 16px;
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--edge); backdrop-filter: blur(16px);
  font-size: 12px; font-weight: 500; transform: translate(-50%, -100%); white-space: nowrap; animation: pop .16s ease-out; }
.hint.compact { padding: 4px; border-radius: 14px; }
.key { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 46px; height: 34px;
  border-radius: 10px; background: linear-gradient(var(--acc-a), var(--acc-b)); color: var(--acc-ink); font-size: 8.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1; box-shadow: 0 0 12px var(--acc-glow), inset 0 -2px 0 rgba(0,0,0,.12); animation: tap 1.2s ease-in-out infinite; }
.key b { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
@keyframes tap { 0%, 60%, 100% { transform: translateY(0); } 75% { transform: translateY(2px); } }
@keyframes pop { from { opacity: 0; scale: .94; } }
.ghost { position: absolute; width: 132px; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .92; z-index: 2; }
.ghost img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 3px 10px rgba(0,0,0,.22); }
.ghost span { max-width: 132px; padding: 1px 8px; border-radius: 9px; background: var(--acc-b); color: var(--acc-ink); font-size: 11px; font-weight: 600; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wheel { position: absolute; width: 0; height: 0; }
.wheel.hold { pointer-events: auto; }
.tabs { position: absolute; left: 0; transform: translate(-50%, 0); display: flex; gap: 2px; padding: 4px; border-radius: 99px;
  background: var(--bg); border: 1px solid var(--edge); box-shadow: var(--shadow); backdrop-filter: blur(16px);
  font-size: 9.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); white-space: nowrap; z-index: 1; pointer-events: auto; }
.tab { padding: 5px 12px; border-radius: 99px; cursor: pointer; }
.tab.on { background: var(--acc-b); color: var(--acc-ink); }
.tab kbd { font: inherit; opacity: .75; margin-left: 5px; border: 0; background: none; color: inherit; min-width: 0; height: auto; padding: 0; }
svg.halo { position: absolute; overflow: visible; }
.lens { position: absolute; border-radius: 50%; background: var(--lens); backdrop-filter: blur(7px) saturate(1.05); -webkit-backdrop-filter: blur(7px) saturate(1.05); box-shadow: inset 0 0 0 1px var(--edge); }
.halo-sweep { transition: transform .16s cubic-bezier(.2,.8,.2,1), opacity .12s; }
.toast { position: absolute; width: 260px; padding: 10px 12px 12px; border-radius: 14px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--edge); box-shadow: var(--shadow); backdrop-filter: blur(16px); font-size: 12px; pointer-events: auto; animation: pop2 .18s ease-out; }
@keyframes pop2 { from { opacity: 0; transform: translateY(6px); } }
.toast .row { display: flex; align-items: center; gap: 8px; }
.toast .title { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast .x { cursor: pointer; color: var(--mute); border: 0; background: none; font-size: 14px; line-height: 1; padding: 0 2px; }
.toast .sub { margin-top: 3px; color: var(--mute); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast .bar { margin-top: 8px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.toast .bar i { display: block; height: 100%; width: 0; background: var(--acc-ring); box-shadow: 0 0 6px var(--acc-glow); transition: width .15s; }
.toast a { color: var(--acc-strong); cursor: pointer; text-decoration: none; font-weight: 600; }
.toast.locked .sub { white-space: normal; }
.toast.locked .bar { display: none; }
.toast .act { margin-top: 9px; width: 100%; padding: 7px 10px; border: 0; border-radius: 9px; cursor: pointer; font: inherit; font-weight: 600; color: #1c1c24; background: var(--acc-ring); box-shadow: 0 0 10px var(--acc-glow); }
.toast .sw { display: flex; gap: 4px; margin-top: 8px; }
.toast .sw i { flex: 1; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
/* Halo's toolbar popup (popup/App.vue) */
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.dot.gold { background: radial-gradient(circle at 35% 35%, #ffe7a3, #f3b83f); }
.dot.pearl { background: conic-gradient(#ffc8e4, #e2ccff, #c6e8ff, #c9f5df, #ffe2c4, #ffc8e4); }
.dot.ice { background: radial-gradient(circle at 35% 35%, #d9e9ff, #8bb8ff); }
/* The lens and the editor (content/lens.js, lens-tools.js, lens-editor.js) */
.hw.lzx { position: absolute; inset: 0; width: auto; z-index: 6000; display: block; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; }
.lzx .scrim { position: absolute; inset: 0; background: rgba(12,12,18,.42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .28s ease; }
.halo-ui[data-mode="dark"] .lzx .scrim { background: rgba(0,0,0,.58); }
.lzx.on .scrim, .lzx.edit .scrim { opacity: 1; }
.lzx .lzc { position: absolute; width: 0; height: 0; transition: transform .34s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
.lzx .lz-ring { position: absolute; border: 2.2px solid var(--acc-ring); box-shadow: 0 0 16px var(--acc-glow), inset 0 0 10px var(--acc-glow); pointer-events: none; opacity: 0; }
.lzx.edit .lz-ring { opacity: 1; }
.lzx .lz-glass { position: absolute; overflow: hidden; background: var(--lens); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: inset 0 0 0 1px var(--edge), 0 30px 80px -20px rgba(0,0,0,.45); display: grid; place-items: center; }
.lzx.morph .lz-ring, .lzx.morph .lz-glass, .lzx.morph .lzc, .lzx.morph .lz-tabs { transition: all .36s cubic-bezier(.2,.8,.2,1); }
.lzx .lz-glass .lz-media { display: block; max-width: 72%; max-height: 72%; border-radius: 8px; }
.lzx .lz-glass .prev { background: none; border-radius: 8px; padding: 0; overflow: visible; }
.lzx .lz-glass .prev img, .lzx .lz-glass .prev video, .lzx .lz-glass .prev canvas, .lzx .lz-glass .cropwrap > img {
  width: auto !important; height: auto !important; max-width: var(--stage-w) !important; max-height: var(--stage-h) !important; border-radius: 6px; }
.lzx.vid .lz-glass { place-items: start center; padding-top: 10px; }
.lzx .lz-glass .strip { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; }
.lzx.snd .lz-glass .strip { top: 12px; height: auto; background: rgba(0,0,0,.16); }
.lzx .strip.wave .bars { position: absolute; inset: 14px 12px; display: flex; align-items: center; gap: 3px; pointer-events: none; }
.lzx .strip.wave .bars i { flex: 1; border-radius: 2px; background: var(--w-mute); opacity: .75; }
.lzx .lz-glass .lz-aud { width: 300px; height: 118px; max-width: 72%; border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.hw .fld { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--w-mute); }
.hw .fld input { width: 84px; padding: 5px 8px; border-radius: 9px; border: 1px solid var(--w-edge); background: var(--w-faint); color: var(--w-ink); font: inherit; font-variant-numeric: tabular-nums; text-align: right; }
.lzx svg.lz-svg { position: absolute; overflow: visible; transition: opacity .2s ease; }
.lzx svg.lz-svg > text { display: none; }
.lzx svg.lz-svg .chip { cursor: pointer; }
.lzx.edit svg.lz-svg, .lzx.edit .lz-info { opacity: 0; pointer-events: none; }
.lzx .lz-tabs { z-index: 2; }
.lzx .lz-tabs .tab.x { padding: 5px 9px; }
.lzx .lz-info { position: absolute; left: 0; transform: translateX(-50%); padding: 5px 13px; border-radius: 99px; background: var(--bg); color: var(--ink); border: 1px solid var(--edge);
  box-shadow: var(--shadow); font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lzx .lz-card, .lzx .lz-bar { position: absolute; display: none; background: var(--bg); color: var(--ink); border: 1px solid var(--edge); box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.lzx.edit .lz-card:not(:empty), .lzx.edit .lz-bar:not(:empty) { display: flex; animation: winpop .3s .16s ease both; }
.lzx .lz-card { width: 176px; flex-direction: column; gap: 10px; padding: 10px; border-radius: 18px; }
.lzx .lz-card.row { width: max-content; max-width: 560px; transform: translateX(-50%); flex-direction: row; flex-wrap: wrap; align-items: center; border-radius: 22px; }
.lzx .lz-card .slider { grid-template-columns: 1fr auto; row-gap: 0; }
.lzx .lz-card .slider > span { grid-row: 1; grid-column: 1; }
.lzx .lz-card .slider output { grid-row: 1; grid-column: 2; }
.lzx .lz-card .slider input { grid-row: 2; grid-column: 1 / -1; }
.lzx .lz-card .row { flex-wrap: wrap; }
.lzx .lz-card .row > span[style*="flex:1"] { display: none; }
.lzx .lz-card .seg { flex-wrap: wrap; border-radius: 14px; }
.lzx .lz-card .row.between { flex-wrap: wrap; }
.lzx .lz-bar { left: 0; width: max-content; transform: translateX(-50%); align-items: center; gap: 8px; padding: 5px 6px 5px 8px; border-radius: 99px; border-top: 1px solid var(--edge); }
.lzx .lz-bar .row { gap: 6px; }
.lzx .lz-bar .grow { display: none; }
/* The tools' controls (content/lens-tools.js), in the editor's side card and bar */
.hw { --w-bg: rgba(255,255,255,.94); --w-edge: rgba(0,0,0,.08); --w-ink: #2c2c33; --w-mute: #6c6c76; --w-faint: rgba(40,40,60,.07); --w-stage: #e9e8ee; --w-track: rgba(40,40,60,.12); --w-field: rgba(40,40,60,.06);
  position: absolute; width: 410px; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; pointer-events: auto;
  background: var(--w-bg); color: var(--w-ink); border: 1px solid var(--w-edge); backdrop-filter: blur(24px) saturate(1.25); -webkit-backdrop-filter: blur(24px) saturate(1.25);
  box-shadow: 0 10px 30px rgba(20,20,40,.18), 0 1px 3px rgba(20,20,40,.08); animation: winpop .22s cubic-bezier(.2,.8,.2,1); font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; z-index: 3; }
.hw.big { width: 640px; }
.halo-ui[data-mode="dark"] .hw { --w-bg: rgba(28,28,36,.94); --w-edge: rgba(255,255,255,.1); --w-ink: #ecebf2; --w-mute: #a3a2ad; --w-faint: rgba(255,255,255,.07); --w-stage: #07070a; --w-track: rgba(255,255,255,.13); --w-field: rgba(255,255,255,.07); box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.3); }
@keyframes winpop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.hw > header { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; padding: 12px 12px 8px; }
.hw > header h3 { margin: 0; text-align: center; font-size: 14.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: 0; }
.hw svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hw .hb { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--w-faint); color: var(--w-ink); cursor: pointer; font-size: 14px; display: grid; place-items: center; padding: 0; }
.hw .hb svg.i { width: 14px; height: 14px; stroke-width: 2; }
.hw .body { padding: 2px 14px 12px; display: flex; flex-direction: column; gap: 12px; }
.hw .prev { position: relative; border-radius: 16px; overflow: hidden; background: var(--w-stage); display: grid; place-items: center; }
.hw .prev > img, .hw .prev > canvas, .hw .prev > video { display: block; max-width: 100%; }
.hw .row { display: flex; align-items: center; gap: 8px; }
.hw .between { justify-content: space-between; }
.hw .lbl { font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--w-mute); }
.hw .val { font-variant-numeric: tabular-nums; color: var(--w-mute); font-size: 12px; }
.hw .val b { color: var(--w-ink); }
.hw .hint2 { font-size: 11.5px; color: var(--w-mute); margin: 0; }
.hw > footer { display: flex; align-items: center; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--w-faint); }
.hw > footer .grow { flex: 1; }
.hw .pill { border: 0; border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 12px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
  background: linear-gradient(var(--acc-a), var(--acc-b)); color: var(--acc-ink); box-shadow: 0 0 14px var(--acc-glow), 0 1px 0 rgba(255,255,255,.5) inset; }
.hw .wbtn { border: 1px solid var(--w-edge); background: var(--w-faint); color: var(--w-ink); border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.hw .ib { width: 31px; height: 31px; border-radius: 10px; border: 0; background: var(--w-faint); color: var(--w-ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.hw .ib svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hw .ib[aria-pressed="true"] { background: linear-gradient(var(--acc-a), var(--acc-b)); color: var(--acc-ink); box-shadow: 0 0 10px var(--acc-glow); }
.hw .ib:disabled { opacity: .32; cursor: default; }
.hw .seg { display: flex; padding: 3px; border-radius: 999px; background: var(--w-faint); border: 1px solid var(--w-edge); gap: 2px; }
.hw .seg button { flex: 1; border: 0; background: none; color: var(--w-mute); font: inherit; font-size: 10.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.hw .seg button[aria-pressed="true"] { background: var(--acc-b); color: var(--acc-ink); box-shadow: 0 0 10px var(--acc-glow); }
.hw input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: none; cursor: pointer; margin: 0; }
.hw input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--acc-ring) var(--fill, 50%), var(--w-track) var(--fill, 50%)); }
.hw input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 0 10px var(--acc-glow); }
.hw .slider { display: grid; grid-template-columns: 82px 1fr 46px; align-items: center; gap: 8px; font-size: 12.5px; }
.hw .slider output { text-align: right; font-variant-numeric: tabular-nums; color: var(--w-mute); font-size: 12px; }
.hw .swatch { width: 24px; height: 24px; border-radius: 8px; border: 1px solid var(--w-edge); cursor: pointer; padding: 0; }
.hw .swatch[aria-pressed="true"] { outline: 2px solid var(--acc-ring); outline-offset: 2px; }
.hw .checker { background-image: conic-gradient(#d9d8df 25%, #f4f4f7 0 50%, #d9d8df 0 75%, #f4f4f7 0); background-size: 16px 16px; }
.halo-ui[data-mode="dark"] .hw .checker { background-image: conic-gradient(#26262e 25%, #1b1b22 0 50%, #26262e 0 75%, #1b1b22 0); }
.hw .croparea { padding: 16px; }
.hw .cropwrap { position: relative; touch-action: none; cursor: crosshair; }
.hw .cropwrap img { display: block; max-width: 100%; max-height: 240px; }
.hw .shade { position: absolute; background: rgba(0,0,0,.6); pointer-events: none; }
.hw .cropbox { position: absolute; outline: 1px solid rgba(255,255,255,.9); cursor: move; }
.hw .cropbox i { position: absolute; width: 20px; height: 20px; border: 3px solid var(--acc-ring); filter: drop-shadow(0 0 4px var(--acc-glow)); }
.hw .cropbox i[data-h="nw"] { left: -3px; top: -3px; border-right: 0; border-bottom: 0; cursor: nwse-resize; }
.hw .cropbox i[data-h="ne"] { right: -3px; top: -3px; border-left: 0; border-bottom: 0; cursor: nesw-resize; }
.hw .cropbox i[data-h="sw"] { left: -3px; bottom: -3px; border-right: 0; border-top: 0; cursor: nesw-resize; }
.hw .cropbox i[data-h="se"] { right: -3px; bottom: -3px; border-left: 0; border-top: 0; cursor: nwse-resize; }
.hw .thirds { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255,255,255,.35) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgba(255,255,255,.35) 0 calc(66.66% + .5px), transparent 0),
  linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255,255,255,.35) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), rgba(255,255,255,.35) 0 calc(66.66% + .5px), transparent 0); }
.hw .strip { position: relative; height: 54px; border-radius: 12px; overflow: hidden; display: flex; touch-action: none; background: #1a1a20; }
.hw .strip img.film { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hw .strip .dim { position: absolute; top: 0; bottom: 0; background: rgba(0,0,0,.6); pointer-events: none; }
.hw .strip .sel { position: absolute; top: 0; bottom: 0; border: 2.5px solid var(--acc-ring); border-left-width: 11px; border-right-width: 11px; border-radius: 10px; pointer-events: none; box-shadow: 0 0 10px var(--acc-glow); }
.hw .strip .sel::before, .hw .strip .sel::after { content: ''; position: absolute; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: 2px; background: rgba(0,0,0,.4); }
.hw .strip .sel::before { left: -7px; }
.hw .strip .sel::after { right: -7px; }
.hw .strip .head { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 5px rgba(0,0,0,.6); pointer-events: none; }
.hw .strip .cut { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; background: var(--acc-ring); box-shadow: 0 0 8px var(--acc-glow); pointer-events: none; }
.hw .ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--w-mute); margin-top: -6px; }
.hw .ticks span.on { color: var(--w-ink); font-weight: 700; }
/* on a phone: no desktop, the ring on its own */
.demo-phone { display: none; }
.look-stage { position: relative; height: 440px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.look-stage .wall { position: absolute; inset: 0; -webkit-mask-image: none; mask-image: none; }
.look-stage .lens-c { position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255,255,255,.34); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
:root[data-theme="dark"] .look-stage .lens-c { background: rgba(16,16,22,.42); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .look-stage .lens-c { background: rgba(16,16,22,.42); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); } }
.look-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.look-stage p { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font-size: 13px; color: var(--glass-ink); opacity: .8; }
/* Halo's own chip, as the ring draws it */
.chp { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-ink); border: 1px solid var(--chip-edge);
  box-shadow: 0 10px 28px -8px rgba(30, 30, 50, .28), 0 1px 3px rgba(0, 0, 0, .08); font: 750 10.5px/1 -apple-system, Inter, sans-serif; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.chp svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chp.hot { background: linear-gradient(var(--gold-hi), #f3b83f); color: #3a2a00; box-shadow: 0 0 22px var(--gold-glow), 0 10px 24px -8px rgba(160, 110, 0, .45); }
.shiftkey { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 44px; height: 32px; border-radius: 10px; background: linear-gradient(var(--gold-hi), #f3b83f); color: #3a2a00; font: 700 8px/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 0 12px var(--gold-glow), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.shiftkey b { font-size: 13px; margin-bottom: 2px; }
.hintpill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border-radius: 16px; background: var(--chip-bg); border: 1px solid var(--chip-edge); box-shadow: 0 12px 30px -10px rgba(30, 30, 50, .3); font: 500 12.5px -apple-system, Inter, sans-serif; color: var(--chip-ink); white-space: nowrap; }
/* One screen. Sideways it clips; downwards it doesn't, so the cards can fly on into the demo. */
.hx { position: relative; height: 100vh; min-height: 620px; padding: clamp(112px, 16vh, 168px) 0 24px; text-align: center; overflow-x: clip; }
/* clear of the fixed nav (64px): more room on taller screens */
.hx::before { content: ""; position: absolute; left: 50%; top: 52%; width: 1100px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 217, 140, .45), transparent 70%), radial-gradient(40% 50% at 30% 60%, rgba(247, 201, 220, .5), transparent 70%), radial-gradient(40% 50% at 72% 55%, rgba(201, 220, 255, .55), transparent 70%); filter: blur(20px); opacity: var(--glow-op); pointer-events: none; z-index: -1; }
.hx .pt { margin-bottom: 22px; }
.hx h1 { font-size: clamp(34px, 4.5vw, 56px); line-height: .98; letter-spacing: -.05em; font-weight: 560; }
.hx .lead { margin: 18px auto 0; max-width: 560px; text-wrap: pretty; }
.hx-copy { position: relative; z-index: 3; }
/* The scatter: the pug in front, the rest round it, tilted, sized by depth, drifting. Above the demo, which they land in. */
.scatter { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sc { position: absolute; --amp: 1; }
.scatter.grabbable .sc[data-to] { pointer-events: auto; cursor: grab; }
.sc.lead { z-index: 1; --amp: 0; }
.sc[data-lay="tall"] { display: none; }
@media (max-width: 720px) { .sc[data-lay="wide"] { display: none; } .sc[data-lay="tall"] { display: block; } }
.sc-p { width: 100%; height: 100%; }
.sc-in { position: relative; width: 100%; height: 100%; border-radius: 14px; overflow: hidden; background: #ccc; box-shadow: 0 24px 50px -22px rgba(30, 20, 10, .45), 0 0 0 3px var(--photo-edge); animation: drift 6s ease-in-out infinite; }
.lead .sc-in { border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(30, 20, 10, .45), 0 0 0 4px var(--photo-edge); }
.sc-in img, .sc-in video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.sc-in .mtag { position: absolute; left: 8px; top: 8px; padding: 2px 7px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 10px; font-weight: 600; }
.lead .sc-in .mtag { left: 12px; top: 12px; padding: 3px 9px; font-size: 11px; }
/* --amp: how far it drifts; a card settles (0) as it lands. */
@keyframes drift { 50% { transform: translateY(calc(var(--amp) * -8px)) rotate(calc(var(--amp) * .6deg)); } }
[data-theme="dark"] .sc-in { box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .7), 0 0 0 3px var(--photo-edge); }
@media (prefers-reduced-motion: reduce) { .sc-in { animation: none; } }
/* A sound on a page: a player, playing, as Halo finds them (an <audio>, or a link to the file). In the hero and the demo. */
.aud { display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px 16px; color: #fff; text-align: left;
  background: radial-gradient(120% 90% at 0% 0%, #5a3b7a 0%, transparent 60%), radial-gradient(100% 120% at 100% 100%, #7a4a2a 0%, transparent 55%), #1d1a26; }
.aud .meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.aud .play { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f4c45a; color: #2a1d00; box-shadow: 0 0 14px rgba(246,190,70,.55); }
.aud .play svg { width: 13px; height: 13px; fill: currentColor; }
.aud .meta .t { min-width: 0; }
.aud .meta b { display: block; font-size: 13px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aud .meta .t span { display: block; font-size: 11px; color: rgba(255,255,255,.62); margin-top: 1px; }
.aud .wv { position: relative; height: 34px; }
.aud .wv div { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.aud .wv i { flex: 1; border-radius: 2px; background: rgba(255,255,255,.3); }
.aud .wv .played { clip-path: inset(0 100% 0 0); animation: played var(--len, 16s) linear infinite; animation-delay: var(--at, 0s); }
.aud .wv .played i { background: #f4c45a; }
@keyframes played { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .aud .wv .played { animation: none; clip-path: inset(0 58% 0 0); } }
.hx-cta { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hx-small { margin-top: 12px; font-size: 13px; color: var(--muted); }
/* ---------- Demo: the playground opens up as you reach it ---------- */
.dm { padding: 90px 0 0; scroll-margin-top: 30px; }
.dm-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.dm-head .lead { justify-self: end; }
.dm-frame { position: relative; width: min(1400px, 100% - 32px); margin: 0 auto; border-radius: 40px; overflow: hidden; background: radial-gradient(60% 70% at 20% 30%, var(--wall-a), transparent 70%), radial-gradient(50% 60% at 80% 22%, var(--wall-b), transparent 70%), radial-gradient(70% 70% at 62% 88%, var(--wall-c), transparent 70%), var(--wall-d); }
.dm-frame .desk { margin: 0 auto; padding: 56px 0 60px; }
.dm-frame .wall { display: none; }
/* ---------- Sites marquee ---------- */
.trust { padding: 96px 0 0; text-align: center; }
.trust p { font-size: 15px; color: var(--muted); }
.trust p b { color: var(--ink); font-weight: 600; }
.mq { margin-top: 28px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 38s linear infinite; }
.mq-track span { display: inline-flex; align-items: center; gap: 56px; padding-right: 56px; font-size: 26px; font-weight: 650; letter-spacing: -.03em; color: var(--mq-ink); white-space: nowrap; }
.mq-track span::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
@keyframes mq { to { transform: translateX(-50%); } }
/* ---------- The statement that lights up ---------- */
.st { position: relative; padding: 170px 0 150px; }
.st .lit { max-width: 1000px; margin: 0 auto; text-align: center; font-size: clamp(30px, 4.1vw, 54px); line-height: 1.18; letter-spacing: -.035em; font-weight: 560; }
.inl { display: inline-block; width: 1.5em; height: 1.04em; margin: 0 .08em; vertical-align: -.16em; border-radius: .26em; background: center / cover; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); }
.inl.cutout { background-color: #fff; background-image: var(--img), conic-gradient(#e7e7eb 25%, #fff 0 50%, #e7e7eb 0 75%, #fff 0); background-size: contain, 10px 10px; background-repeat: no-repeat, repeat; background-position: center; }
.inl-ring { display: inline-block; width: .9em; height: .9em; margin: 0 .1em; vertical-align: -.08em; border-radius: 50%; border: .12em solid var(--gold); box-shadow: 0 0 .5em var(--gold-glow), inset 0 0 .3em var(--gold-glow); }
.st kbd { font-size: .52em; vertical-align: .3em; }
.floater { position: absolute; z-index: -1; width: 170px; filter: drop-shadow(0 26px 30px rgba(30, 20, 10, .25)); pointer-events: none; }
/* ---------- Three rings: the keys stay, the rings go by (one card a key) ---------- */
.rg { padding: 40px 0 120px; scroll-margin-top: 60px; }
.rg-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 72px; align-items: start; }
.rg-left { align-self: stretch; }
/* the whole height of the cards, so the keys stay in place beside them */
.rg-pin { position: sticky; top: max(110px, calc(50vh - 230px)); }
.rg .h2x { margin-top: 20px; }
.rg .lead { margin-top: 20px; max-width: 440px; }
.rg-cards { display: grid; gap: 30px; }
.rgc { position: relative; height: min(700px, 82vh); min-height: 520px; border-radius: 36px; padding: 32px 34px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.rgc header { display: flex; align-items: baseline; justify-content: space-between; }
.rgc h3 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -.045em; font-weight: 700; }
.rgc-key { font-size: 15px; opacity: .7; display: inline-flex; align-items: center; gap: 6px; }
.rgc-key kbd { font-size: 12px; }
.rgc-key b { font-weight: 500; }
.rgc p { font-size: 15px; opacity: .72; max-width: 420px; }
.rgc-stage { position: relative; flex: 1; min-height: 0; }
.rgc-ph { position: absolute; inset: 0; margin: auto; width: 42%; height: auto; aspect-ratio: .82; border-radius: 22px; background: #ccc center / cover; /* centred by margin, so the drift is its only transform */
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
.rgc-ring { position: absolute; left: 50%; top: 50%; width: min(100%, 560px); aspect-ratio: 1; transform: translate(-50%, -50%); overflow: visible; }
.rgc-ring > text { display: none; }
.rgc-cur { position: absolute; left: 50%; top: 50%; width: 22px; z-index: 3; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); transition: transform 1.1s cubic-bezier(.45, 0, .2, 1); pointer-events: none; }
.rgc-save { background: #ecebe6; color: #16161b; }
[data-theme="dark"] .rgc-save { background: #1b1b21; color: #f0eff4; border: 1px solid var(--rule); }
.rgc-actions { background: #0e0f13; color: #f1f1f5; }
[data-theme="dark"] .rgc-actions { background: #000; border: 1px solid var(--rule); }
.rgc-ai { color: #f2f1f6; background: radial-gradient(60% 50% at 80% 10%, rgba(244, 196, 90, .26), transparent 60%), radial-gradient(60% 60% at 10% 100%, rgba(120, 90, 255, .32), transparent 60%), var(--plum); }
.rgc-actions .rgc-key kbd, .rgc-ai .rgc-key kbd { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: inherit; }
/* ---------- Tools on colour ---------- */
.bn { padding: 0 0 160px; scroll-margin-top: 60px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.sec-head .h2x { margin-top: 18px; }
.sec-head > div { flex: 1 1 auto; min-width: 0; }
.sec-head > .lead { flex: 0 1 420px; }
/* Held a screen at a time: the cards give way on short screens, so the heading never slips under the nav. */
.mo .hz .sec-head { margin-bottom: 28px; }
.mo .hz-card { height: min(540px, calc(100vh - 330px)); min-height: 400px; }
.mo .hz-card .art { height: auto; flex: 1 1 0; min-height: 0; }
.mo .zg-grid { height: min(62vh, 560px, calc(100vh - 290px)); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: 32px; padding: 30px 30px 0; min-height: 440px; display: flex; flex-direction: column; isolation: isolate; }
.tile h3 { font-size: 24px; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; max-width: 330px; }
.tile p { margin-top: 8px; font-size: 15px; max-width: 330px; opacity: .78; }
.tile .lbl { align-self: flex-start; margin-bottom: 16px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 650; background: rgba(255, 255, 255, .18); }
.tile { transition: transform .6s var(--ease); }
.tile:hover { transform: translateY(-6px); }
.tile .ui { position: absolute; z-index: -1; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .3)); transition: transform .7s var(--ease); }
.t-crop { grid-column: span 4; min-height: 540px; background: var(--blue); color: #fff; }
.t-crop .ui { width: 74%; right: 2%; bottom: -36px; }
/* the editor's captures are wide: big, from the bottom, cut by the tile's edges */
.t-redact { grid-column: span 2; min-height: 540px; background: #111217; color: #fff; border: 1px solid rgba(255, 255, 255, .07); }
.t-redact .ui { width: 185%; left: -36%; bottom: -24px; }
.t-trim { grid-column: span 2; background: var(--tomato); color: #fff; }
.t-trim .ui { width: 155%; left: -20%; bottom: -34px; }
.t-bg { grid-column: span 2; background: var(--sun); color: #2a1d00; }
.t-bg .lbl { background: rgba(0, 0, 0, .08); }
.t-bg .ui { width: 155%; left: -20%; bottom: -34px; }
.t-note { grid-column: span 2; background: var(--white); border: 1px solid var(--rule); }
.t-note .lbl { background: var(--paper); }
.t-note .ui { width: 155%; left: -20%; bottom: -34px; }
.t-ai { grid-column: span 6; min-height: 520px; padding: 56px; color: #f2f1f6; background: radial-gradient(50% 80% at 85% 20%, rgba(244, 196, 90, .28), transparent 60%), radial-gradient(50% 80% at 10% 100%, rgba(120, 90, 255, .3), transparent 60%), var(--plum); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.t-ai h3 { font-size: clamp(28px, 3.2vw, 40px); max-width: 520px; letter-spacing: -.04em; line-height: 1.04; }
.t-ai .lbl { display: inline-flex; margin-bottom: 22px; background: rgba(255, 255, 255, .12); }
/* inline here, so the margin needs inline-flex */
.tiers { display: grid; gap: 10px; margin-top: 28px; }
.tiers div { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); font-size: 14.5px; color: #c9c6d6; }
.tiers b { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.ai-art { position: relative; height: 400px; }
.ai-art .ph, .ai-art .co { position: absolute; width: 56%; aspect-ratio: 4 / 5; border-radius: 24px; background: center / cover; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
.ai-art .ph { left: 0; top: 8%; transform: rotate(-5deg); }
.ai-art .co { right: 0; top: 0; transform: rotate(4deg); background-color: #fff; background-image: url(/demo/puppy-cutout.webp), conic-gradient(#e6e6ea 25%, #fff 0 50%, #e6e6ea 0 75%, #fff 0); background-size: contain, 16px 16px; background-repeat: no-repeat, repeat; background-position: center; }
.ai-art .chp { position: absolute; left: 32%; bottom: 6%; }
.ai-art .ms { position: absolute; right: 4%; bottom: 14%; padding: 8px 14px; border-radius: 12px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); font-size: 13px; color: #fff; }
/* ---------- Anything you drag: a row that slides sideways ---------- */
.hz { position: relative; padding: 0 0 140px; overflow: hidden; scroll-margin-top: 0; }
.mo .hz { padding: 80px 0 24px; box-sizing: border-box; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hz .sec-head { width: min(1200px, 100% - 32px); margin: 0 auto 40px; }
.hz-track { display: flex; gap: 20px; padding: 0 max(16px, (100vw - 1200px) / 2) 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
@media (min-width: 901px) { .mo .hz-track { width: max-content; overflow: visible; } }
.hz-card { scroll-snap-align: center; position: relative; flex: none; width: 460px; height: 540px; border-radius: 32px; overflow: hidden; padding: 30px; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); }
.hz-card h3 { font-size: 23px; letter-spacing: -.03em; line-height: 1.15; font-weight: 600; }
.hz-card p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.hz-card .n { font-size: 12.5px; font-weight: 650; color: var(--muted); margin-bottom: 14px; }
.hz-card .art { margin-top: auto; position: relative; height: 290px; border-radius: 22px; display: grid; place-items: center; overflow: hidden; }
.hz-card .art img { filter: drop-shadow(0 22px 30px rgba(30, 20, 10, .22)); }
.a-peach { background: radial-gradient(60% 70% at 30% 30%, #ffd59a, transparent 70%), radial-gradient(60% 70% at 80% 80%, #ffc4d6, transparent 70%), #fdf0e4; }
.a-blue { background: radial-gradient(60% 70% at 25% 70%, #b9dcff, transparent 70%), radial-gradient(60% 70% at 80% 25%, #d6d0ff, transparent 70%), #eef2fb; }
.a-mint { background: radial-gradient(60% 70% at 30% 30%, #c3f0dc, transparent 70%), radial-gradient(60% 70% at 80% 80%, #cfe6ff, transparent 70%), #eef8f3; }
.a-plum { background: radial-gradient(60% 70% at 25% 30%, #e6d4ff, transparent 70%), radial-gradient(60% 70% at 80% 80%, #ffd9c2, transparent 70%), #f5f0fb; }
/* The sound card: the player, as on a page, with two of its options. */
.snd-art { position: relative; width: 78%; }
.snd-art .aud { height: 124px; border-radius: 18px; box-shadow: 0 24px 44px -20px rgba(30, 20, 50, .55); }
.snd-art .chp { position: absolute; }
.snd-art .chp.hot { right: -14px; top: -20px; transform: rotate(5deg); }
.snd-art .chp:not(.hot) { left: -10px; bottom: -18px; transform: rotate(-4deg); }
.yt { position: relative; width: 92%; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: url(/demo/canoe.webp) center / cover; }
.yt::after { content: ""; position: absolute; inset: 0; background: rgba(8, 8, 12, .38); }
.yt svg { position: absolute; z-index: 2; left: 50%; top: 48%; transform: translate(-50%, -50%); overflow: visible; }
.yt .bar { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; height: 3px; background: rgba(255, 255, 255, .35); border-radius: 2px; }
.yt .bar i { position: absolute; inset: 0 60% 0 0; background: #fff; border-radius: 2px; }
.ytnote { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fff4d8; font-size: 13.5px; color: #5a4100; }
.ytnote b { color: #2a1d00; }
.saved { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 14px; background: var(--white); box-shadow: 0 14px 34px -14px rgba(30, 20, 10, .4); font-size: 13.5px; }
.file i { width: 46px; height: 46px; border-radius: 9px; background: center / cover; }
.file b { display: block; }
.file span { color: var(--muted); }
.looks-card .art { height: auto; flex: 1; margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; place-items: stretch; overflow: visible; }
.look-list { display: grid; gap: 6px; align-content: start; }
.look { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.look:hover { background: var(--paper); }
.look[aria-pressed="true"] { background: var(--paper); border-color: var(--rule); }
.look .sw { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.look .sw.gold { background: radial-gradient(circle at 35% 35%, #ffe7a3, #f3b83f); }
.look .sw.pearl { background: conic-gradient(#ffc8e4, #e2ccff, #c6e8ff, #c9f5df, #ffe2c4, #ffc8e4); }
.look .sw.ice { background: radial-gradient(circle at 35% 35%, #d9e9ff, #8bb8ff); }
.look b { display: block; font-size: 14px; font-weight: 600; }
.look span { display: none; }
.ringseg { display: flex; gap: 3px; padding: 3px; margin-top: 6px; border-radius: 11px; background: var(--paper); }
.ringseg button { flex: 1; border: 0; background: none; padding: 7px 6px; border-radius: 8px; font: 600 12.5px Inter, sans-serif; color: var(--ink); cursor: pointer; }
.ringseg button[aria-pressed="true"] { background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.looks-card .look-stage { position: relative; height: 100%; min-height: 250px; border-radius: 20px; border: 0; overflow: hidden; }
.looks-card .look-stage p { font-size: 11.5px; }
.hz-prog { width: min(1200px, 100% - 32px); margin: 36px auto 0; height: 2px; background: var(--rule); border-radius: 2px; overflow: hidden; display: none; }
.mo .hz-prog { display: block; }
.hz-prog i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
/* ---------- Private: a grid that zooms out of one tile ---------- */
.zg { position: relative; padding: 140px 0; scroll-margin-top: 0; }
.mo .zg { overflow: hidden; padding: 80px 0 24px; box-sizing: border-box; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.zg-head { text-align: center; margin-bottom: 30px; }
.zg-head .h2x { margin-top: 16px; }
.zg-grid { width: min(1200px, 100% - 32px); height: min(62vh, 560px); margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr 1fr; gap: 14px;
  grid-template-areas: "a b c c d e" "f g c c h i"; }
.zt { position: relative; border-radius: 24px; overflow: hidden; background: var(--white) center / cover; border: 1px solid var(--rule); padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; }
.zt.ph { border: 0; }
.zt b { font-size: 16px; letter-spacing: -.02em; }
.zt span { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.zt svg { width: 26px; height: 26px; margin-bottom: auto; color: var(--gold-deep); }
.zc { grid-area: c; z-index: 5; border: 0; padding: 28px; background: radial-gradient(70% 60% at 50% 40%, #fff3cf, transparent 70%), linear-gradient(160deg, #ffd977, #f4b740); justify-content: flex-end; will-change: transform; }
.zc img { position: absolute; left: 50%; top: 42%; width: 96%; transform: translate(-50%, -50%); filter: drop-shadow(0 26px 30px rgba(110, 70, 0, .4)); }
.zc b { position: relative; font-size: 22px; color: #2a1d00; }
.zc span { position: relative; color: #5a4100; font-size: 14px; }
/* ---------- Pricing: three cards, fanned ---------- */
.pr { padding: 160px 0; scroll-margin-top: 40px; }
.pr-grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: 56px; align-items: center; }
.pr-grid > *, .t-ai > *, .rg-grid > *, .fq-grid > * { min-width: 0; }
.bn, .pr, .rg { overflow-x: clip; }
/* cards tilt in from outside their place */
.pr .h2x { margin-top: 18px; }
.pr .lead { margin-top: 18px; }
.pr .more { margin-top: 22px; font-size: 14px; color: var(--muted); }
.fan { position: relative; display: flex; justify-content: center; align-items: center; padding: 40px 0; }
.pc { flex: none; width: 250px; margin: 0 -18px; }
.pc-in { position: relative; display: flex; flex-direction: column; min-height: 360px; padding: 26px; border-radius: 28px; background: var(--white); border: 1px solid var(--rule); box-shadow: 0 30px 60px -30px rgba(20, 20, 40, .35); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pc:nth-child(1) .pc-in { transform: rotate(-7deg) translateY(26px); }
.pc:nth-child(3) .pc-in { transform: rotate(7deg) translateY(26px); }
.pc:nth-child(2) { z-index: 2; width: 280px; }
.pc:nth-child(2) .pc-in { min-height: 410px; background: linear-gradient(170deg, #1a1c24, #0d0e13); color: #f2f2f5; border: 0; box-shadow: 0 40px 80px -30px rgba(10, 10, 20, .6), 0 0 0 1px rgba(244, 196, 90, .4); }
.pc:hover { z-index: 3; }
.pc:hover .pc-in { transform: rotate(0) translateY(-10px); box-shadow: 0 40px 80px -30px rgba(20, 20, 40, .5); }
.pc .nm { font-size: 13.5px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.pc:nth-child(2) .nm { color: var(--gold); }
.pc .nm em { font-style: normal; font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--gold); color: #2a1d00; }
.pc .pr-p { margin-top: 18px; font-size: 54px; line-height: 1; font-weight: 650; letter-spacing: -.05em; }
.pc .pr-p small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.pc .note { margin-top: 8px; font-size: 14px; color: var(--muted); }
.pc ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); }
.pc:nth-child(2) ul { color: #d4d5dc; }
.pc li { display: flex; gap: 9px; }
.pc li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1d00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.6 3.5 7.4-8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pc .bt { margin-top: auto; }
/* ---------- The gold band: a marquee and a pile of chips ---------- */
.band { position: relative; margin: 0 16px; border-radius: 44px; overflow: hidden; background: var(--sun); padding: 56px 0 0; }
.band-mq { overflow: hidden; }
.band-track { display: flex; width: max-content; will-change: transform; }
html:not(.gs) .band-track { animation: mq 30s linear infinite; }
.band-track span { display: inline-flex; align-items: center; gap: .32em; padding-right: .32em; font-size: clamp(56px, 9vw, 132px); line-height: 1.05; font-weight: 650; letter-spacing: -.05em; color: #1a1400; white-space: nowrap; }
.band-track .im { display: inline-block; width: 1.3em; height: .86em; border-radius: .2em; background: center / cover; box-shadow: 0 10px 24px -10px rgba(60, 40, 0, .5); vertical-align: middle; }
.band-track .rn { display: inline-block; width: .7em; height: .7em; border-radius: 50%; border: .09em solid #1a1400; }
.pile { position: relative; height: 360px; margin-top: 10px; cursor: grab; touch-action: pan-y; }
.pile:active { cursor: grabbing; }
.pile .chp { position: absolute; left: 0; top: 0; height: 48px; padding: 0 20px 0 16px; font-size: 13px; gap: 9px; user-select: none; -webkit-user-select: none; will-change: transform; }
.pile .chp svg { width: 19px; height: 19px; }
.no-physics .pile { display: flex; flex-wrap: wrap; align-content: flex-end; justify-content: center; gap: 8px; padding: 0 24px 30px; cursor: default; }
.no-physics .pile .chp { position: static; }
.pile-hint { position: absolute; right: 28px; top: 18px; font-size: 13px; font-weight: 600; color: rgba(26, 20, 0, .6); }
/* ---------- FAQ ---------- */
.fq { padding: 160px 0 120px; scroll-margin-top: 40px; }
.fq-grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: 64px; align-items: start; }
.fq .h2x { margin-top: 18px; }
.fq .side p { margin-top: 18px; color: var(--muted); }
.fq .side a { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--gold); }
.qa { border-bottom: 1px solid var(--rule); }
.qa:first-child { border-top: 1px solid var(--rule); }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; border: 0; background: none; text-align: left; font: 600 17px/1.35 Inter, sans-serif; color: var(--ink); cursor: pointer; }
.qa button i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 1px solid var(--rule); transition: transform .4s var(--ease), background .3s; }
.qa button i::before, .qa button i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background: var(--ink); }
.qa button i::after { transform: rotate(90deg); }
.qa.open button i { transform: rotate(135deg); background: var(--gold); border-color: var(--gold); }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.qa.open .ans { grid-template-rows: 1fr; }
.qa .ans > div { overflow: hidden; }
.qa .ans p { padding: 0 60px 24px 4px; color: var(--ink-2); font-size: 15.5px; }
/* ---------- Two last cards ---------- */
.fin { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fin-a, .fin-b { position: relative; overflow: hidden; min-height: 520px; border-radius: 36px; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; }
.fin-a { color: #fff; background: linear-gradient(180deg, rgba(10, 10, 14, 0) 30%, rgba(10, 10, 14, .78)), url(/demo/pug.webp) center / cover; }
.fin-a h3, .fin-b h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; }
.fin-a p { margin-top: 12px; max-width: 380px; opacity: .85; }
.fin-a .bt { align-self: flex-start; margin-top: 24px; }
.fin-a .hintpill { position: absolute; left: 46%; top: 22%; }
.fin-b { background: var(--white); border: 1px solid var(--rule); justify-content: space-between; }
.fin-b blockquote { margin: 0; font-size: 19px; line-height: 1.45; letter-spacing: -.015em; color: var(--ink-2); }
.fin-b blockquote b { color: var(--ink); font-weight: 600; }
.fin-b .who { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.fin-b .who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.fin-b .who b { display: block; }
.fin-b .who span { font-size: 14px; color: var(--muted); }
.fin-b .bt { align-self: flex-start; margin-top: 28px; }
.fin-b .cut { position: absolute; right: -24px; bottom: -36px; width: 210px; transform: rotate(-8deg); filter: drop-shadow(0 20px 26px rgba(30, 20, 10, .25)); pointer-events: none; }
/* ---------- Footer ---------- */
.band .chp:not(.hot) { background: rgba(255, 255, 255, .96); color: #2c2c33; border-color: rgba(0, 0, 0, .06); }
/* Dark: what the tokens don't cover */
[data-theme="dark"] .a-peach { background: radial-gradient(60% 70% at 30% 30%, #5a3a10, transparent 70%), radial-gradient(60% 70% at 80% 80%, #4e1f3e, transparent 70%), #1a1418; }
[data-theme="dark"] .a-blue { background: radial-gradient(60% 70% at 25% 70%, #14305a, transparent 70%), radial-gradient(60% 70% at 80% 25%, #2b2560, transparent 70%), #12141d; }
[data-theme="dark"] .a-mint { background: radial-gradient(60% 70% at 30% 30%, #0f3f30, transparent 70%), radial-gradient(60% 70% at 80% 80%, #14305a, transparent 70%), #0f1716; }
[data-theme="dark"] .a-plum { background: radial-gradient(60% 70% at 25% 30%, #3a2260, transparent 70%), radial-gradient(60% 70% at 80% 80%, #4a2a18, transparent 70%), #16121d; }
[data-theme="dark"] .ytnote { background: rgba(244, 196, 90, .12); color: #e9cf8f; }
[data-theme="dark"] .ytnote b { color: #ffe6a6; }
[data-theme="dark"] .t-note .lbl { background: var(--paper-2); }
[data-theme="dark"] .pc:nth-child(2) .pc-in { background: linear-gradient(170deg, #22242e, #14151b); }
[data-theme="dark"] .fin-b, [data-theme="dark"] .hz-card, [data-theme="dark"] .zt:not(.ph):not(.zc), [data-theme="dark"] .pc-in, [data-theme="dark"] .t-note { border-color: var(--rule); }
[data-theme="dark"] .floater, [data-theme="dark"] .fin-b .cut { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .6)); }
/* The demo, here: no Mac menu bar, and its images at their own sizes */
.dm-frame img { max-width: none; }
/* The playground: photos and a video around a title, each with a task chip; Halo works on all of them. */
.play { color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.play-title { position: absolute; width: 460px; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.play-title h2 { margin: 0; font-size: 60px; line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.play-title p { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.play-title kbd { font-size: 12px; }
.play-arrow { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.play-arrow path { fill: none; stroke: #f3b83f; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(246, 190, 70, .5)); }
#playArrowPath { stroke-dasharray: 2 9; }
.play-note { position: absolute; transform: rotate(-6deg); font: 600 26px/1 "Caveat", "Bradley Hand", "Segoe Print", cursive; color: var(--gold-deep); white-space: nowrap; pointer-events: none; }
.pcard { position: absolute; margin: 0; cursor: grab; transition: translate .35s var(--ease); }
.pcard:hover { translate: 0 -6px; }
.pcard:active { cursor: grabbing; }
.pcard > img, .pcard > video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 16px; pointer-events: none; -webkit-user-drag: none; box-shadow: 0 26px 50px -22px rgba(30, 20, 10, .5), 0 0 0 4px var(--photo-edge); }
.pcard > .aud { width: 100%; height: 100%; border-radius: 16px; pointer-events: none; box-shadow: 0 26px 50px -22px rgba(30, 20, 10, .5), 0 0 0 4px var(--photo-edge); }
/* A card the hero's is still flying to: the hero's shows until it lands. */
.pcard.arriving { visibility: hidden; }
.pcard .mtag { position: absolute; left: 12px; top: 12px; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 600; }
.task { position: absolute; left: 50%; bottom: -16px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; transform: translateX(-50%); color: #2a2730; box-shadow: 0 8px 20px -10px rgba(30, 20, 10, .35); transition: background .3s, color .3s, box-shadow .3s; }
.task svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tone-pink { background: #ffdbe8; }
.tone-blue { background: #d8e8ff; }
.tone-green { background: #d6f3dd; }
.tone-lilac { background: #eadfff; }
.tone-peach { background: #ffe2cc; }
.tone-mint { background: #cff0ea; }
.task.done::after { content: "✓"; margin-left: 2px; }
.task.done { background: linear-gradient(#ffe7a3, #f3b83f); color: #3a2a00; box-shadow: 0 0 18px rgba(246, 190, 70, .6); }
.dl-chip { position: absolute; right: 22px; bottom: 22px; z-index: 6; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px 0 10px; border-radius: 999px; border: 1px solid var(--rule); background: var(--white); color: var(--ink); font: 600 14px Inter, sans-serif; cursor: pointer; box-shadow: 0 14px 30px -16px rgba(20, 20, 40, .4); }
.dl-chip .dl-st { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8c96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v10M7.5 11 12 15.5 16.5 11M6 19h12'/%3E%3C/svg%3E") center / 18px no-repeat; }
.dl-chip .dl-st:has(img) { background-image: none; }
.dl-chip .dl-st img { position: absolute; left: 50%; top: 50%; max-width: 32px; max-height: 26px; border-radius: 4px; transform: translate(-50%, -50%) rotate(var(--r, 0deg)); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); background: #fff; }
.dl-chip .dl-st img.cut { box-shadow: none; background: none; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .4)); }
.dl-chip.busy .dl-st::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; border-top-color: #f3b83f; animation: spin .8s linear infinite; }
.dl-chip.bounce { animation: bounce .7s cubic-bezier(.3, .7, .3, 1); }
.play .stack-pop { left: auto; right: 22px; bottom: 84px; }
.demo-phone { display: none !important; }
@media (max-width: 980px) {
  .rg-pin { position: static; }
  .rgc { height: auto; min-height: 600px; }
  .dm-head, .rg-grid, .pr-grid, .fq-grid, .fin, .t-ai { grid-template-columns: 1fr; }
  .dm-head .lead { justify-self: start; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-crop, .t-ai { grid-column: span 2; }
  .t-redact, .t-trim, .t-bg, .t-note { grid-column: span 1; }
  .t-crop .ui { width: 68%; right: 0; bottom: -30px; }
}
@media (max-width: 900px) {
  .dm-frame .desk { padding: 40px 0; }
  .mo .hz, .mo .zg { height: auto; padding: 0 0 120px; display: block; overflow: visible; }
  .hz-card { width: 84vw; max-width: 420px; }
  .mo .hz-prog { display: none; }
  .zg-grid { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-template-areas: "c c" "a b" "d e" "f g" "h i"; }
  .zt { min-height: 150px; }
  .zc { min-height: 300px; }
}
@media (max-width: 720px) {
  .rgc { min-height: 520px; padding: 24px 22px; border-radius: 28px; }
  .rgc-ph { width: 46%; }
  .hx { padding-top: 110px; }
  .hx h1 br { display: none; }
  .bento { grid-template-columns: 1fr; }
  .t-crop, .t-ai, .t-redact, .t-trim, .t-bg, .t-note { grid-column: auto; }
  .tile { min-height: 420px; }
  .t-redact .ui, .t-trim .ui, .t-bg .ui, .t-note .ui { width: 118%; left: -6%; bottom: -26px; }
  .t-ai { padding: 32px 24px; }
  .ai-art { height: 300px; }
  .sec-head { display: block; }
  .sec-head .lead { margin-top: 16px; }
  .fan { flex-direction: column; gap: 14px; padding: 0; }
  .pc, .pc:nth-child(2) { width: 100%; margin: 0; }
  .pc .pc-in, .pc:nth-child(1) .pc-in, .pc:nth-child(3) .pc-in { transform: none; min-height: 0; }
  .pc .bt { margin-top: 22px; }
  .fin-a, .fin-b { min-height: 440px; padding: 28px; }
  .floater { display: none; }
  .band { border-radius: 30px; margin: 0 8px; }
  .pile { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; }
}
