/* Isle — islenotch.com
   Dark product page. The island replica follows the app's NotchStyle tokens:
   pure black, 0.5pt rim at 8% white, SF Pro, bottom radius 10 closed / 26 open,
   6pt concave shoulders, 600 x 144 open, tiles 62pt high at 5% white, radius 14. */

:root {
  color-scheme: dark;

  --bg: #000;
  --tile: #141415;
  --tile-2: #1d1d1f;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #6e6e73;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #2997ff;
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --focus: #6cb6ff;

  /* From the app icon */
  --cyan: #3cd6ff;
  --violet: #7b5cff;
  --magenta: #e655ff;
  --wall-a: #0a17a6;
  --wall-b: #2316c4;
  --wall-c: #6a12e0;

  /* NotchStyle */
  --n-ink: #000;
  --n-rim: rgba(255, 255, 255, 0.08);
  --n-tile: rgba(255, 255, 255, 0.05);
  --n-hover: rgba(255, 255, 255, 0.08);
  --n-pressed: rgba(255, 255, 255, 0.14);
  --n-t1: rgba(255, 255, 255, 0.92);
  --n-t2: rgba(255, 255, 255, 0.55);
  --n-t3: rgba(255, 255, 255, 0.3);
  --n-accent: #0a84ff;
  --n-green: #30d158;
  --n-claude: #d97757;
  --n-openai: #e8e8ea;
  --n-gemini: #4c8dff;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --t-hero: clamp(3rem, 1.4rem + 6.4vw, 6rem);
  --t-h2: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  --t-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --t-lead: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  --gutter: clamp(16px, 4vw, 40px);
  --radius-tile: clamp(22px, 2.6vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.16em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #000; padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 56px; text-decoration: none; }

/* ───────────── Global nav ───────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  height: 48px;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav__in {
  width: min(1080px, 100% - 2 * var(--gutter)); height: 100%; margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
  font-size: 12px; letter-spacing: -0.01em;
}
.nav a { color: rgba(245, 245, 247, 0.82); white-space: nowrap; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin-right: auto; }
.nav .brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav .lang { color: var(--ink-2); }
.nav .buy { background: var(--btn); color: #fff; padding: 5px 13px; border-radius: 999px; font-weight: 500; }
.nav .buy:hover { background: var(--btn-hover); }
.nav [aria-current="page"]:not(.brand) { color: #fff; }
@media (max-width: 760px) {
  .nav__in { gap: 18px; }
  .nav .opt { display: none; }
}

/* ───────────── Buttons ───────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--btn); color: #fff;
  font: 400 1.0625rem/1 var(--font); letter-spacing: -0.02em;
  cursor: pointer; transition: background-color 0.2s ease;
}
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.btn.ghost:hover { background: rgba(41, 151, 255, 0.12); }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--tile-2); color: var(--ink-3); cursor: not-allowed; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.actions .more { font-size: 1.0625rem; }

/* ───────────── Layout ───────────── */

.wrap { width: min(1080px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wide { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(96px, 13vw, 180px); }
.section.tight { padding-top: 0; }

.head { max-width: 820px; margin: 0 auto clamp(48px, 7vw, 88px); text-align: center; }
.head h2 { font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.012em; text-wrap: balance; }
.head p { margin: 22px auto 0; max-width: 40em; font-size: var(--t-lead); line-height: 1.4; color: var(--ink-2); letter-spacing: -0.012em; text-wrap: pretty; }
.head.left { text-align: left; margin-left: 0; }
.head.left p { margin-left: 0; }

/* Scroll reveal: only hidden once JS has marked the page */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

/* ───────────── Hero ───────────── */

/* The stage: the top of a Mac screen, with the island at true scale */
.stage { margin: clamp(56px, 7vw, 88px) auto 0; width: min(1280px, 100% - 2 * var(--gutter)); }
.bezel {
  position: relative; border-radius: clamp(14px, 2.4vw, 30px) clamp(14px, 2.4vw, 30px) 0 0;
  padding: clamp(6px, 1vw, 12px) clamp(6px, 1vw, 12px) 0;
  background: linear-gradient(#2a2a2d, #111113);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 60px 120px -40px rgba(91, 75, 255, 0.5);
}
.screen {
  position: relative; overflow: hidden;
  border-radius: clamp(9px, 1.6vw, 20px) clamp(9px, 1.6vw, 20px) 0 0;
  height: calc(var(--canvas-h, 460px) * var(--s, 1));
  background: #050510;
}
.screen-fade { position: absolute; inset: auto 0 0 0; height: 34%; background: linear-gradient(transparent, #000); pointer-events: none; z-index: 3; }
.canvas {
  position: absolute; left: 50%; top: 0;
  width: 1280px; height: var(--canvas-h, 460px);
  transform-origin: top center;
  transform: translateX(-50%) scale(var(--s, 1));
}
.wallpaper {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 70% at 12% 0%, rgba(60, 214, 255, 0.55), transparent 70%),
    radial-gradient(45% 80% at 92% 90%, rgba(230, 85, 255, 0.6), transparent 70%),
    radial-gradient(70% 90% at 55% 60%, var(--wall-b), transparent 80%),
    linear-gradient(160deg, var(--wall-a), #1b0fb5 50%, var(--wall-c));
}
.menubar {
  position: absolute; inset: 0 0 auto 0; height: 32px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  font: 500 13px/1 var(--font); letter-spacing: -0.01em; color: rgba(255,255,255,.92);
  background: rgba(10, 10, 40, 0.18);
}
.menubar .l, .menubar .r { display: flex; gap: 20px; align-items: center; }
.menubar .l b { font-weight: 700; }
.menubar .r svg { width: 16px; height: 16px; }

/* ───────────── The island replica (canvas pixels = macOS points) ───────────── */

.isl {
  --w: 186px; --h: 32px; --r: 10px;
  position: absolute; left: 50%; top: 0; z-index: 2;
  width: var(--w); height: var(--h);
  transform: translateX(calc(-50% + var(--dx, 0px)));
  background: var(--n-ink);
  border-radius: 0 0 var(--r) var(--r);
  font-family: var(--font); color: var(--n-t1); letter-spacing: 0;
  transition:
    width 0.34s cubic-bezier(.3, 1.15, .45, 1),
    transform 0.34s cubic-bezier(.3, 1.15, .45, 1),
    height 0.4s cubic-bezier(.3, 1.1, .45, 1) 0.05s,
    border-radius 0.4s cubic-bezier(.3, 1.1, .45, 1) 0.05s;
}
/* the concave shoulders where the island meets the top edge */
.isl::before, .isl::after { content: ""; position: absolute; top: 0; width: 6px; height: 6px; pointer-events: none; }
.isl::before { left: -6px; background: radial-gradient(circle at 0 100%, transparent 5.6px, #000 6px); }
.isl::after { right: -6px; background: radial-gradient(circle at 100% 100%, transparent 5.6px, #000 6px); }
.isl .rim {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 0.5px solid var(--n-rim); border-top: 0; opacity: 0; transition: opacity 0.25s ease;
}
.isl.open .rim { opacity: 1; }

/* Sizes per state, from IslandLayout */
.isl[data-state="closed"] { --w: 186px; }
.isl[data-state="peek-music"] { --w: 266px; }
.isl[data-state="peek-hud"] { --w: 290px; }
.isl[data-state="peek-timer"] { --w: 252px; --dx: 33px; }
.isl.open { --w: 600px; --h: 144px; --r: 26px; --dx: 0px; }

.isl .layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.18s ease, visibility 0s linear 0.18s; }
.isl .layer.on { opacity: 1; visibility: visible; transition: opacity 0.3s ease 0.16s, visibility 0s; }

/* Ears (closed / peek) */
.ear { position: absolute; top: 0; height: 32px; display: flex; align-items: center; gap: 6px; }
.ear.l { left: 10px; }
.ear.r { right: 10px; }
.ear svg { width: 15px; height: 15px; }
.art { width: 22px; height: 22px; border-radius: 6px; background: var(--art); flex: none; }
:root { --art: conic-gradient(from 200deg at 40% 45%, #ffb36b, #ff5e8a, #9b5cff, #3cd6ff, #7fffd4, #ffb36b); }
.viz { display: flex; gap: 2px; align-items: center; height: 14px; }
.viz i { width: 3px; height: 100%; border-radius: 2px; background: var(--n-t1); transform: scaleY(.35); animation: viz 0.9s ease-in-out infinite; }
.viz i:nth-child(2) { animation-delay: -0.45s; }
.viz i:nth-child(3) { animation-delay: -0.2s; }
.viz i:nth-child(4) { animation-delay: -0.65s; }
@keyframes viz { 50% { transform: scaleY(1); } }
.level { width: 64px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.16); overflow: hidden; }
.level i { display: block; height: 100%; width: 62%; background: var(--n-t1); border-radius: 3px; }
.badge-text { font: 600 11px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--n-accent); display: flex; align-items: center; gap: 3px; }
.badge-text svg { width: 12px; height: 12px; }

/* Open: tabs in the top band */
.tabs { position: absolute; top: 2px; height: 28px; display: flex; gap: 2px; }
.tabs.l { right: calc(50% + 93px + 6px); }
.tabs.r { left: calc(50% + 93px + 6px); }
.tab { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--n-t3); transition: background-color .28s ease, color .28s ease; }
.tab svg { width: 16px; height: 16px; }
.tab.on { background: var(--n-pressed); color: var(--n-t1); }
.badges { position: absolute; top: 0; right: 9px; height: 32px; display: flex; align-items: center; gap: 4px; }
.badges svg { width: 15px; height: 15px; }

.body { position: absolute; left: 14px; right: 14px; top: 32px; bottom: 0; }

/* Hub */
.hub { display: grid; grid-template-columns: 92px 1fr; column-gap: 9px; height: 100%; padding-top: 2px; }
.hub-face { display: grid; grid-template-rows: 44px 1fr; gap: 6px; padding-bottom: 12px; }
.face-tile { justify-self: center; width: 64px; height: 44px; border-radius: 0 0 16px 16px; background: #141414; display: grid; place-items: center; }
.face-tile .eyes { --ew: 9px; --eh: 13px; --eg: 9px; }
.note { border-radius: 8px; background: #121212; padding: 5px 7px; font-size: 10px; line-height: 1.25; }
.note b { display: block; font-size: 10.5px; color: var(--n-t1); }
.note span { display: block; color: var(--n-t2); font-weight: 600; }
.note small { color: var(--n-t3); font-size: 9px; }
.hub-main { display: grid; grid-template-rows: 28px 62px; row-gap: 4px; min-width: 0; }
.hub-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.clock { font: 700 18px/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.date { font-size: 12px; color: var(--n-t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.readout { display: flex; align-items: center; gap: 4px; font: 600 11px/1 var(--font); color: var(--n-t2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout svg { width: 12px; height: 12px; }
.readout.strong { color: var(--n-t1); }
.coffee { width: 28px; height: 28px; border-radius: 8px; background: var(--n-accent); display: grid; place-items: center; flex: none; }
.coffee svg { width: 16px; height: 16px; color: #fff; }
.more-dots { width: 18px; display: grid; place-items: center; color: var(--n-t2); flex: none; }
.more-dots svg { width: 14px; height: 14px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { height: 62px; border-radius: 14px; background: var(--n-tile); padding: 8px; display: grid; grid-template-rows: 14px 1fr; row-gap: 4px; min-width: 0; }
.tile-h { display: flex; align-items: center; gap: 5px; font: 600 11px/14px var(--font); color: var(--n-t2); white-space: nowrap; overflow: hidden; }
.tile-h svg { width: 13px; height: 13px; flex: none; }
.tile-h em { font-style: normal; font-weight: 500; color: var(--n-t3); overflow: hidden; text-overflow: ellipsis; }
.drop { border: 1px dashed rgba(255,255,255,.22); border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--n-t2); }
.drop svg { width: 14px; height: 14px; }
.cap-row { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; font-size: 12px; font-weight: 600; }
.cap-row span { display: flex; align-items: center; gap: 6px; }
.cap-row svg { width: 14px; height: 14px; }
.cap-row kbd { font: 600 11px var(--font); color: var(--n-t3); }
.wx { display: flex; align-items: center; gap: 8px; }
.wx svg { width: 26px; height: 26px; }
.wx b { font-size: 16px; line-height: 1; display: block; }
.wx span { font-size: 10px; color: var(--n-t2); }

/* Music open */
.music { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; height: 100%; padding-bottom: 14px; }
.music .big-art { width: 80px; height: 80px; border-radius: 10px; background: var(--art); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1); }
.music .t b { display: block; font-size: 15px; font-weight: 600; }
.music .t span { display: block; font-size: 12px; color: var(--n-t2); margin-top: 2px; }
.scrub { margin-top: 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font: 500 10px var(--font); color: var(--n-t3); font-variant-numeric: tabular-nums; }
.scrub .bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.16); overflow: hidden; }
.scrub .bar i { display: block; height: 100%; width: var(--p, 36%); background: var(--n-t1); transition: width 1s linear; }
.ctrl { display: flex; gap: 18px; align-items: center; color: var(--n-t1); padding-right: 6px; }
.ctrl svg { width: 20px; height: 20px; }
.ctrl .main svg { width: 26px; height: 26px; }

/* Usage open */
.usage .uh { display: flex; align-items: center; gap: 7px; height: 26px; font-size: 13px; border-bottom: .5px solid rgba(255,255,255,.08); margin-top: 2px; }
.usage .uh i { width: 8px; height: 8px; border-radius: 50%; background: var(--n-accent); flex: none; }
.usage .uh b { font-weight: 600; }
.usage .uh span { color: var(--n-t2); }
.usage .uh .end { margin-left: auto; color: var(--n-t3); font-size: 12px; display: flex; gap: 8px; align-items: center; }
.usage .uh .end svg { width: 13px; height: 13px; color: var(--n-t2); }
.rings { display: flex; gap: 22px; margin-top: 12px; }
.ring { display: grid; justify-items: center; gap: 4px; }
.ring .rg { position: relative; width: 34px; height: 34px; }
.ring .rg svg.c { width: 34px; height: 34px; transform: rotate(-90deg); }
.ring .rg circle { fill: none; stroke-width: 3.5; }
.ring .rg .trk { stroke: rgba(255,255,255,.12); }
.ring .rg .val { stroke: var(--c); stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: calc(94.25 * (1 - var(--v))); transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1) .25s; }
.isl[data-state="usage"] .ring .val { stroke-dashoffset: calc(94.25 * (1 - var(--v))); }
.isl:not([data-state="usage"]) .ring .val { stroke-dashoffset: 94.25; }
.static .ring .val { stroke-dashoffset: calc(94.25 * (1 - var(--v))) !important; }
.ring .rg .g { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c); }
.ring .rg .g svg { width: 15px; height: 15px; }
.ring b { font: 700 12px/1 var(--font); font-variant-numeric: tabular-nums; }
.ring span { font-size: 10px; color: var(--n-t3); }

/* The bubble under the island (MascotMessage) */
.bubble {
  position: absolute; left: 50%; top: 44px; z-index: 2;
  width: 262px; padding: 11px 14px 10px;
  transform: translate(calc(-50% + 18px), -6px) scale(.96); transform-origin: 50% 0;
  background: #000; border-radius: 14px;
  box-shadow: 0 0 0 .5px rgba(255,255,255,.1), 0 12px 30px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; text-align: left;
  transition: opacity .2s ease, transform .35s cubic-bezier(.3,1.4,.5,1), visibility 0s linear .2s;
}
.bubble::before { content: ""; position: absolute; top: -7px; left: calc(50% + 18px - 7px); width: 14px; height: 8px; background: #000; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.bubble b { display: block; font-size: 13px; font-weight: 600; color: var(--n-t1); }
.bubble .row { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; font-weight: 600; }
.bubble .ok { color: var(--n-green); }
.bubble .open { color: var(--n-t2); }
.bubble.on { opacity: 1; visibility: visible; transform: translate(calc(-50% + 18px), 0) scale(1); transition-delay: .3s, .3s, 0s; }

/* ───────────── Real capture showcase ───────────── */

.shot {
  position: relative; border-radius: var(--radius-tile); overflow: hidden;
  background:
    radial-gradient(60% 90% at 15% 0%, rgba(60, 214, 255, .45), transparent 70%),
    radial-gradient(55% 90% at 90% 100%, rgba(230, 85, 255, .5), transparent 70%),
    linear-gradient(160deg, var(--wall-a), var(--wall-b) 50%, var(--wall-c));
  padding: 0 clamp(12px, 4vw, 64px) clamp(36px, 6vw, 80px);
}
.shot img { margin: 0 auto; width: 100%; max-width: 940px; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.caption { margin-top: 20px; text-align: center; color: var(--ink-3); font-size: var(--t-small); }

/* ───────────── Bento ───────────── */

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.cell { grid-column: span 2; background: var(--tile); border-radius: var(--radius-tile); overflow: hidden; display: flex; flex-direction: column; min-height: 340px; }
.cell.w3 { grid-column: span 3; }
.cell.w4 { grid-column: span 4; }
.cell.w6 { grid-column: span 6; }
.cell .copy { padding: clamp(26px, 3vw, 38px) clamp(26px, 3vw, 38px) 0; }
.cell h3 { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.016em; }
.cell p { margin-top: 10px; color: var(--ink-2); font-size: 1rem; line-height: 1.45; max-width: 34em; text-wrap: pretty; }
.cell p b { color: var(--ink); font-weight: 600; }
.cell .vis { flex: 1; position: relative; display: grid; place-items: center; padding: 28px; min-height: 170px; }
.cell .vis.flush { padding: 28px 0 0; place-items: end center; }
.cell .vis.real-pad { padding: 28px clamp(14px, 2.4vw, 28px) clamp(14px, 2.4vw, 28px); place-items: end center; }
.cell .glyph { width: 84px; height: 84px; color: var(--ink); }
.c-blue { color: #64d2ff !important; }
.c-orange { color: #ff9f0a !important; }
.c-green { color: #30d158 !important; }
.c-yellow { color: #ffd60a !important; }
.c-pink { color: #ff6482 !important; }
.c-purple { color: #bf5af2 !important; }
.cell .real { width: 100%; height: auto; border-radius: 0 0 20px 20px; }
.cell .crop { position: relative; width: 100%; overflow: hidden; }
.cell .crop .screen { border-radius: 0; background: transparent; }
.cell .crop .canvas { width: 640px; }
@media (max-width: 1000px) {
  .cell, .cell.w3 { grid-column: span 3; }
  .cell.w4, .cell.w6 { grid-column: span 6; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .cell, .cell.w3, .cell.w4, .cell.w6 { grid-column: auto; min-height: 0; }
}

/* ───────────── Duo panels ───────────── */

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.panel-big { background: var(--tile); border-radius: var(--radius-tile); padding: clamp(28px, 4vw, 52px); }
.panel-big h3 { font-size: var(--t-h3); letter-spacing: -0.016em; line-height: 1.15; }
.panel-big p { margin-top: 12px; color: var(--ink-2); }
.panel-big .huge { font: 700 clamp(3rem, 2rem + 4vw, 5.5rem)/1 var(--display); letter-spacing: -0.03em; margin-bottom: 20px;
  background: linear-gradient(120deg, var(--cyan), var(--violet) 55%, var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.panel-big ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink-2); }
.panel-big li { display: flex; gap: 10px; }
.panel-big li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); margin-top: .62em; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* External display art */
.display-art { width: 100%; max-width: 560px; margin: 0 auto; }

/* ───────────── Pricing ───────────── */

.price { text-align: center; }
.price .icon { width: clamp(120px, 16vw, 168px); height: auto; margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(106, 18, 224, .55)); }
.price h2 { margin-top: 30px; font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.012em; }
.price .amount { margin-top: 18px; font: 700 clamp(4rem, 2.6rem + 6vw, 7.5rem)/1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #fff, #d9d3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price .once { margin-top: 12px; font-size: var(--t-lead); color: var(--ink-2); }
.price ul { list-style: none; padding: 0; margin: 36px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 780px; }
.price li { background: var(--tile-2); border-radius: 999px; padding: 9px 16px; font-size: .9375rem; color: var(--ink-2); }
.price .actions { justify-content: center; margin-top: 40px; }
.price .setapp { margin-top: 22px; color: var(--ink-3); font-size: var(--t-small); }

/* ───────────── FAQ ───────────── */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font: 600 1.25rem/1.3 var(--display); letter-spacing: -0.016em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background: linear-gradient(var(--ink-2), var(--ink-2)) center / 100% 2px no-repeat, linear-gradient(var(--ink-2), var(--ink-2)) center / 2px 100% no-repeat;
  transition: transform .3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--ink-2); max-width: 40em; }

/* ───────────── Inner pages ───────────── */

.page { padding: clamp(64px, 10vw, 128px) 0 clamp(88px, 10vw, 144px); min-height: 72vh; }
.page h1 { font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.014em; }
.page .lead { margin-top: 16px; font-size: var(--t-lead); color: var(--ink-2); line-height: 1.4; max-width: 34em; }
.product-line { display: flex; gap: 18px; align-items: center; margin-bottom: 36px; }
.product-line img { width: 76px; height: 76px; }
.product-line b { display: block; font: 600 1.5rem/1.2 var(--display); letter-spacing: -0.02em; }
.product-line span { color: var(--ink-2); }
.card { margin-top: 36px; padding: clamp(24px, 4vw, 36px); background: var(--tile); border-radius: 24px; }
.card h2 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; }
.card p { margin-top: 10px; color: var(--ink-2); }
.card .actions { margin-top: 26px; }
.card.success { box-shadow: inset 0 0 0 1px rgba(48, 209, 88, .45); }
.steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; color: var(--ink-2); }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tile-2); color: var(--ink); font-weight: 600; font-size: 15px; }
.steps li b { color: var(--ink); font-weight: 600; display: block; }
.meta { margin-top: 14px; font-size: var(--t-small); color: var(--ink-3); }
.field { display: grid; gap: 8px; margin-top: 24px; }
.field label { font-size: var(--t-small); font-weight: 600; color: var(--ink-2); }
.field input {
  width: 100%; min-height: 52px; padding: 0 16px; background: #000; color: var(--ink);
  border: 1px solid rgba(255,255,255,.2); border-radius: 12px; font: 400 1.0625rem var(--font);
}
.field input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(108, 182, 255, .3); }
.form-msg { margin-top: 18px; min-height: 1.5em; color: var(--ink); }
.form-msg.error { color: #ff8a80; }

.legal h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); }
.legal .updated { margin-top: 14px; color: var(--ink-3); font-size: var(--t-small); }
.legal h2 { font-size: 1.375rem; letter-spacing: -0.02em; margin-top: 48px; line-height: 1.25; }
.legal p, .legal li { color: var(--ink-2); margin-top: 14px; }
.legal ul { padding-left: 1.2em; margin: 0; }
.legal strong { color: var(--ink); font-weight: 600; }

/* ───────────── Footer ───────────── */

.footer { border-top: 1px solid var(--line); padding: 44px 0 52px; font-size: 12px; color: var(--ink-3); background: #0b0b0c; }
.footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer .brand { display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 600; font-size: 15px; }
.footer .brand img { width: 30px; height: 30px; }
.footer nav { display: flex; gap: clamp(32px, 6vw, 72px); flex-wrap: wrap; }
.footer nav h2 { font: 600 12px var(--font); color: var(--ink); margin-bottom: 10px; }
.footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer .base { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ═════════════ Islet (ported from the owner's mascot board) ═════════════
   Design box per eye: 100 x 110. Neutral pill 44 x 76, white to 62% then #C9C9CE,
   black lid from the top, blush #FF6B8B. --k scales the whole face. */

.face { --k: 1; position: relative; display: inline-flex; align-items: center; justify-content: center; font-family: "Fredoka", ui-rounded, system-ui, sans-serif; }
.face .sq { transition: transform .38s cubic-bezier(.34, 1.8, .64, 1); }
.face .pair { display: flex; gap: calc(var(--k) * var(--gap, 20) * 1px); }
.face.breathing .pair { animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, .97); } }
.face .eb { position: relative; width: calc(var(--k) * 100px); height: calc(var(--k) * 110px); display: flex; align-items: center; justify-content: center; }
.face .pill {
  --w: 44; --h: 76; --r: 22; --tx: 0; --ty: 0; --op: 1; --lid: 0; --rot: 0;
  position: relative; overflow: hidden;
  width: calc(var(--k) * var(--w) * 1px); height: calc(var(--k) * var(--h) * 1px);
  border-radius: calc(var(--k) * var(--r) * 1px);
  background: linear-gradient(#fff 0 62%, #c9c9ce 62% 100%);
  transform: translate(calc(var(--k) * var(--tx) * 1px), calc(var(--k) * var(--ty) * 1px));
  opacity: var(--op);
  transition: width .28s cubic-bezier(.34, 1.56, .64, 1), height .13s ease, border-radius .28s ease, transform .22s ease, opacity .1s ease;
}
.face .lid {
  position: absolute; left: -40%; width: 180%; top: -60%;
  height: calc(var(--lid) * 1% + 60%);
  background: var(--lid-c, #000);
  transform: rotate(calc(var(--rot) * 1deg)); transform-origin: 50% 100%;
  transition: height .3s ease, transform .3s ease;
}
.face .ov { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: none; overflow: visible; }
.face .ov.on { display: block; animation: pop .34s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.face .beat { animation: beat 1s ease-in-out infinite; transform-origin: 50px 55px; }
@keyframes beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.14); } }
.face .spin { animation: spin 1.1s linear infinite; transform-origin: 50px 55px; }
@keyframes spin { to { transform: rotate(360deg); } }
.face .blush { position: absolute; bottom: calc(var(--k) * 6px); width: calc(var(--k) * 30px); height: calc(var(--k) * 12px); border-radius: 50%; background: #ff6b8b; opacity: 0; transition: opacity .3s ease; }
.face .eb:first-child .blush { left: calc(var(--k) * -4px); }
.face .eb:last-child .blush { right: calc(var(--k) * -4px); }
.face .zzz { position: absolute; right: calc(var(--k) * -64px); top: calc(var(--k) * -14px); display: none; gap: calc(var(--k) * 4px); align-items: flex-end; font-weight: 600; color: #8b95a1; line-height: 1; }
.face .zzz span { display: inline-block; animation: zf 2.4s ease-in infinite; }
.face .zzz span:nth-child(1) { font-size: calc(var(--k) * 18px); }
.face .zzz span:nth-child(2) { font-size: calc(var(--k) * 24px); animation-delay: .6s; }
.face .zzz span:nth-child(3) { font-size: calc(var(--k) * 30px); animation-delay: 1.2s; }
@keyframes zf { 0% { opacity: 0; transform: translate(0, 6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -20px); } }
.face .dots { position: absolute; right: calc(var(--k) * -52px); bottom: calc(var(--k) * 18px); display: none; gap: calc(var(--k) * 7px); }
.face .dots i { width: calc(var(--k) * 9px); height: calc(var(--k) * 9px); border-radius: 50%; background: #8b95a1; animation: dotp 1s ease-in-out infinite; }
.face .dots i:nth-child(2) { animation-delay: .2s; }
.face .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dotp { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.face .waves { position: absolute; right: calc(var(--k) * -44px); top: calc(var(--k) * 20px); width: calc(var(--k) * 40px); height: calc(var(--k) * 60px); display: none; }
.face .waves path { animation: dotp 1s ease-in-out infinite; }
.face .waves path + path { animation-delay: .3s; }
.face.zzz-on .zzz, .face.dots-on .dots { display: flex; }
.face.waves-on .waves { display: block; }

/* ═════════════ Nav with a notch, and Islet as the page's companion ═════════════ */

.nav { background: #000; transition: background-color .3s ease, border-color .3s ease; border-bottom-color: transparent; }
.nav.scrolled { background: rgba(0, 0, 0, .72); border-bottom-color: rgba(255, 255, 255, .08); }
.nav__in { position: relative; }
.say {
  position: absolute; left: 50%; top: 50px; z-index: 3;
  min-width: 220px; max-width: min(320px, calc(100vw - 32px));
  padding: 11px 15px 11px;
  background: #000; border-radius: 14px;
  box-shadow: 0 0 0 .5px rgba(255, 255, 255, .14), 0 16px 40px rgba(0, 0, 0, .5);
  font: 400 13px/1.3 var(--font); letter-spacing: 0; color: var(--n-t1); text-align: left;
  transform: translate(-50%, -8px) scale(.9); transform-origin: 50% 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1), visibility 0s linear .2s;
}
.say::before { content: ""; position: absolute; top: -7px; left: 50%; margin-left: -7px; width: 14px; height: 8px; background: #000; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.say b { display: block; font-weight: 600; font-size: 13px; }
.say span { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--n-t2); }
.say.on { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }

/* ═════════════ Hero: Islet in a big notch ═════════════ */

.hero2 { position: relative; text-align: center; padding: 0 0 clamp(80px, 10vw, 140px); overflow: hidden; isolation: isolate; }
.hero2::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 1600px; height: 1100px; margin-left: -800px; z-index: -1;
  background:
    radial-gradient(35% 30% at 50% 22%, rgba(123, 92, 255, .42), transparent 70%),
    radial-gradient(30% 28% at 30% 46%, rgba(60, 214, 255, .16), transparent 70%),
    radial-gradient(30% 28% at 72% 50%, rgba(230, 85, 255, .18), transparent 70%);
  transform: translate3d(0, var(--py, 0px), 0);
}
.hero-notch-wrap { --ow: min(380px, 84vw); position: relative; height: calc(var(--ow) * .348); z-index: 4; }
.hero-notch {
  position: absolute; left: 50%; top: 0;
  width: 200px; height: 36px;
  background: #000; border: 0; padding: 0; cursor: pointer;
  border-radius: 0 0 12px 12px;
  transform-origin: 50% 0;
  transform: translate3d(-50%, var(--pin, 0px), 0) scale(var(--shrink, 1));
  transition:
    width .5s cubic-bezier(.3, 1.22, .45, 1),
    height .56s cubic-bezier(.3, 1.18, .45, 1) .07s,
    border-radius .56s cubic-bezier(.3, 1.18, .45, 1) .07s,
    box-shadow .8s ease;
  will-change: transform;
}
.hero-notch.open {
  width: var(--ow); height: calc(var(--ow) * .348);
  border-radius: 0 0 calc(var(--ow) * .109) calc(var(--ow) * .109);
  box-shadow: 0 30px 70px -30px rgba(123, 92, 255, .75);
}
.hero-notch::before, .hero-notch::after { content: ""; position: absolute; top: 0; width: 10px; height: 10px; }
.hero-notch::before { left: -10px; background: radial-gradient(circle at 0 100%, transparent 9.5px, #000 10px); }
.hero-notch::after { right: -10px; background: radial-gradient(circle at 100% 100%, transparent 9.5px, #000 10px); }
.face-box { position: absolute; left: 50%; top: 11%; width: calc(var(--ow) * .478); margin-left: calc(var(--ow) * -.239); display: flex; justify-content: center; opacity: 0; transform: scale(.6); transform-origin: 50% 0; transition: opacity .3s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.hero-notch.open .face-box { opacity: 1; transform: none; transition-delay: .28s; }
.hero-notch .say { top: calc(100% + 16px); }
.wordmark { margin-top: clamp(40px, 6vw, 64px); font: 600 clamp(3.25rem, 2.2rem + 4.4vw, 5.5rem)/1 "Fredoka", ui-rounded, system-ui, sans-serif; letter-spacing: -0.02em; color: #fff; }
.hero2 h1 {
  margin: 20px auto 0; max-width: 16ch; padding-inline: var(--gutter);
  font-size: clamp(2.25rem, 1.3rem + 3.8vw, 4.25rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 600;
  text-wrap: balance; color: var(--ink);
}
.hero2 .sub { margin: 22px auto 0; max-width: 33em; padding-inline: var(--gutter); font-size: var(--t-lead); line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.hero2 .actions { justify-content: center; margin-top: 34px; padding-inline: var(--gutter); }
.hero2 .fine { margin-top: 16px; font-size: var(--t-small); color: var(--ink-3); }
.hint { margin-top: 44px; font-size: 13px; color: var(--ink-3); }

/* ═════════════ Story: scroll drives the island ═════════════ */

.story { position: relative; height: calc(var(--steps, 5) * 100vh + 20vh); }
.story-pin { position: sticky; top: 48px; height: calc(100vh - 48px); display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(24px, 4vw, 64px); align-items: center; width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.story-text { position: relative; min-height: 300px; }
.story-step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.story-step.on { opacity: 1; transform: none; pointer-events: auto; }
.story-step .kicker { font: 600 1.0625rem/1 var(--display); letter-spacing: -0.01em; color: var(--c, var(--ink-2)); }
.story-step h2 { margin-top: 14px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1.06; letter-spacing: -0.016em; text-wrap: balance; }
.story-step p { margin-top: 18px; font-size: 1.1875rem; line-height: 1.45; color: var(--ink-2); max-width: 28em; text-wrap: pretty; }
.story-step p b { color: var(--ink); font-weight: 600; }
.story-progress { display: flex; gap: 6px; margin-top: 28px; position: absolute; bottom: -60px; left: 0; }
.story-progress i { width: 26px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .16); transition: background-color .3s ease, width .3s ease; }
.story-progress i.on { background: var(--ink); width: 44px; }
.story-stage { position: relative; }
.story-stage .bezel { border-radius: 26px; padding: 10px; }
.story-stage .screen { border-radius: 17px; }
@media (max-width: 900px) {
  .story-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; padding-top: 16px; gap: 20px; }
  .story-stage { order: -1; }
  .story-text { min-height: 260px; }
  .story-step h2 { font-size: clamp(1.75rem, 1.2rem + 3vw, 2.4rem); }
  .story-step p { font-size: 1.0625rem; margin-top: 12px; }
  .story-progress { position: static; }
}

/* Island extras for the story: slot + more panels */
.isl[data-state="peek-shelf"] { --w: 270px; }
.isl[data-state="peek-capture"] { --w: 274px; }
.isl[data-state="peek-timer"] { --w: 245px; --dx: 29.5px; }
.ear .cnt { display: flex; align-items: center; gap: 4px; font: 600 12px/1 var(--font); }
.ear .saved { font: 600 12px/1 var(--font); color: var(--n-green); }
.ear .thumb { width: 26px; height: 18px; border-radius: 4px; background: linear-gradient(135deg, #3cd6ff, #7b5cff 60%, #e655ff); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3); }

/* Timer panel (from the real capture) */
.tmr { display: grid; grid-template-rows: 26px 1fr; height: 100%; padding: 4px 0 14px; }
.seg { display: flex; gap: 4px; }
.seg span { font: 600 12px/26px var(--font); padding: 0 10px; border-radius: 13px; color: var(--n-t2); }
.seg span.on { background: var(--n-pressed); color: var(--n-t1); }
.tmr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tmr-dig { font: 500 40px/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; color: var(--n-t1); }
.presets { display: flex; gap: 6px; }
.presets span { display: flex; align-items: center; gap: 5px; font: 600 12px/1 var(--font); padding: 8px 9px; border-radius: 8px; color: var(--n-t1); }
.presets span.on { background: var(--n-pressed); }
.presets svg { width: 13px; height: 13px; color: var(--n-t2); }

/* Shelf panel (ShelfMetrics: thumb 72 x 80, icon 40, name 14) */
.shelf { display: flex; align-items: stretch; gap: 8px; height: 86px; padding-top: 6px; }
.thumbs { flex: 1; display: flex; gap: 5px; min-width: 0; }
.th { width: 72px; height: 80px; border-radius: 10px; display: grid; justify-items: center; align-content: center; gap: 6px; }
.th.sel { background: var(--n-hover); }
.doc { position: relative; width: 32px; height: 40px; border-radius: 4px; background: #f2f2f7; }
.doc::after { content: ""; position: absolute; right: 0; top: 0; width: 10px; height: 10px; background: linear-gradient(225deg, #000 50%, #c7c7cc 50%); border-radius: 0 4px 0 0; }
.doc i { position: absolute; left: 3px; right: 3px; bottom: 5px; font: 800 7px/1 var(--font); font-style: normal; color: #fff; text-align: center; border-radius: 2px; padding: 2px 0; background: var(--dc, #ff453a); }
.th b { font: 500 10px/14px var(--font); color: var(--n-t1); max-width: 66px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th.new { animation: land .55s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes land { 0% { transform: translateY(-30px) scale(.5); opacity: 0; } 100% { transform: none; opacity: 1; } }
.vsep { width: 1px; background: rgba(255, 255, 255, .08); margin: 8px 0; }
.shelf-acts { width: 28px; display: grid; align-content: space-between; justify-items: center; padding: 6px 0; color: var(--n-t2); }
.shelf-acts svg { width: 15px; height: 15px; }
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 86px; padding-top: 6px; }
.zone { border: 1.5px dashed rgba(255, 255, 255, .28); border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; font: 600 13px/1 var(--font); color: var(--n-t1); transition: background-color .2s ease, border-color .2s ease; }
.zone svg { width: 16px; height: 16px; }
.zone.hot { background: rgba(10, 132, 255, .18); border-color: var(--n-accent); }

/* Flying file and capture overlay on the story screen */
.fly { position: absolute; left: 50%; top: 300px; z-index: 5; width: 46px; height: 58px; margin-left: -23px; opacity: 0; pointer-events: none; }
.fly .doc { width: 46px; height: 58px; border-radius: 6px; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.fly .doc i { font-size: 9px; bottom: 8px; }
.fly.go { animation: fly 1.1s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes fly { 0% { opacity: 0; transform: translate(120px, 40px) rotate(8deg); } 15% { opacity: 1; } 85% { opacity: 1; transform: translate(0, -230px) rotate(-4deg) scale(.7); } 100% { opacity: 0; transform: translate(0, -250px) scale(.4); } }
.cursor { position: absolute; width: 18px; height: 24px; z-index: 6; pointer-events: none; opacity: 0; }
.capture-ov { position: absolute; inset: 32px 0 0 0; z-index: 1; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.capture-ov.on { opacity: 1; }
.capture-ov .sel {
  position: absolute; left: 220px; top: 120px; width: 0; height: 0;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); outline: 1.5px solid #fff;
  transition: width .9s cubic-bezier(.2, .8, .2, 1), height .9s cubic-bezier(.2, .8, .2, 1);
}
.capture-ov.on .sel { width: 330px; height: 170px; }
.capture-ov .card { position: absolute; left: 30px; top: 26px; width: 180px; height: 110px; border-radius: 12px; background: rgba(255, 255, 255, .9); }
.capture-ov .card::before { content: ""; position: absolute; left: 16px; top: 16px; width: 90px; height: 10px; border-radius: 5px; background: #1d1d1f; }
.capture-ov .card::after { content: ""; position: absolute; left: 16px; top: 36px; width: 140px; height: 56px; border-radius: 8px; background: linear-gradient(135deg, #3cd6ff, #7b5cff); }
.capture-ov svg.arrow { position: absolute; left: 0; top: 0; overflow: visible; }
.capture-ov svg.arrow path { stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset .7s ease .9s; }
.capture-ov.on svg.arrow path { stroke-dashoffset: 0; }
.capture-ov .count { position: absolute; left: 490px; top: 130px; width: 22px; height: 22px; border-radius: 50%; background: #ff453a; color: #fff; font: 700 12px/22px var(--font); text-align: center; transform: scale(0); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1) 1.5s; }
.capture-ov.on .count { transform: scale(1); }
.toolbar { position: absolute; left: 230px; top: 298px; display: flex; gap: 2px; padding: 4px; border-radius: 10px; background: rgba(30, 30, 32, .92); box-shadow: 0 0 0 .5px rgba(255,255,255,.12); opacity: 0; transform: translateY(6px); transition: opacity .3s ease 1s, transform .4s ease 1s; }
.capture-ov.on .toolbar { opacity: 1; transform: none; }
.toolbar span { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: rgba(255, 255, 255, .85); }
.toolbar span.on { background: var(--n-accent); color: #fff; }
.toolbar svg { width: 15px; height: 15px; }

/* ═════════════ Islet showcase ═════════════ */

.islet-show { text-align: center; }
.islet-show .big-notch {
  position: relative; margin: 0 auto; width: min(460px, 88vw); height: calc(min(460px, 88vw) * .35);
  background: #000; border-radius: 0 0 calc(min(460px, 88vw) * .11) calc(min(460px, 88vw) * .11);
  border: 0; padding: 0; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 50px 100px -40px rgba(123, 92, 255, .9);
}
.islet-show .big-notch .face-box { opacity: 1; transform: none; top: 11%; --ow: min(460px, 88vw); }
.islet-show .now { margin-top: 30px; font: 500 1.375rem/1.2 "Fredoka", ui-rounded, system-ui, sans-serif; color: var(--ink-2); }
.islet-show .now b { color: var(--ink); font-weight: 600; }
.islet-show .why { margin-top: 6px; color: var(--ink-3); font-size: 1rem; min-height: 1.5em; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 34px auto 0; max-width: 980px; }
.chips button {
  appearance: none; border: 0; cursor: pointer; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--tile-2); color: var(--ink-2);
  font: 500 15px/1 "Fredoka", ui-rounded, system-ui, sans-serif; letter-spacing: 0;
  transition: background-color .2s ease, color .2s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.chips button:hover { color: var(--ink); transform: translateY(-2px); }
.chips button[aria-pressed="true"] { background: #f5f5f7; color: #000; }
.islet-show .tip { margin-top: 26px; color: var(--ink-3); font-size: var(--t-small); }

/* Magnetic buttons */
.magnet { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background-color .2s ease; will-change: transform; }

/* Stagger children inside a revealed container */
.js .stagger > * { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .7s ease, transform .8s cubic-bezier(.34, 1.3, .64, 1); }
.js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger.in > *:nth-child(2) { transition-delay: .06s; }
.js .stagger.in > *:nth-child(3) { transition-delay: .12s; }
.js .stagger.in > *:nth-child(4) { transition-delay: .18s; }
.js .stagger.in > *:nth-child(5) { transition-delay: .24s; }
.js .stagger.in > *:nth-child(6) { transition-delay: .30s; }
.js .stagger.in > *:nth-child(7) { transition-delay: .36s; }
.js .stagger.in > *:nth-child(8) { transition-delay: .42s; }
.js .stagger.in > *:nth-child(n+9) { transition-delay: .48s; }

/* Parallax helper */
.par { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .face.breathing .pair, .face .beat, .face .spin, .face .zzz span, .face .dots i, .face .waves path { animation: none !important; }
  .js .stagger > * { opacity: 1; transform: none; }
  .story { height: auto; }
  .story-pin { position: relative; top: 0; height: auto; padding-block: 40px; }
  .hero-notch { transform: none !important; }
}

/* fixes after first review */
.story-step { transition: opacity .22s ease, transform .3s ease; }
.story-step.on { transition: opacity .5s ease .18s, transform .7s cubic-bezier(.2, .8, .2, 1) .18s; }
.capture-ov .sel { left: 200px; top: 104px; }
.capture-ov.on .sel { width: 300px; height: 150px; }
.capture-ov .count { left: 452px; top: 114px; }
.toolbar { left: 205px; top: 262px; }
.fly { top: 262px; }
@keyframes fly { 0% { opacity: 0; transform: translate(110px, 30px) rotate(8deg); } 15% { opacity: 1; } 85% { opacity: 1; transform: translate(0, -200px) rotate(-4deg) scale(.7); } 100% { opacity: 0; transform: translate(0, -220px) scale(.4); } }
@media (max-width: 900px) { .story-progress { position: absolute; bottom: -34px; left: 0; } .story-text { margin-bottom: 40px; } }
.story { height: calc(var(--steps, 5) * 100vh); }
.story + .section { padding-top: clamp(48px, 7vw, 96px); }
.wordmark { margin-top: clamp(84px, 9vw, 110px); }
.cell .glyph { filter: drop-shadow(0 10px 30px color-mix(in srgb, currentColor 45%, transparent)); }

@media (max-width: 400px) { .nav .say { display: none; } }

/* ═════════════ The menu bar: the top of a MacBook screen ═════════════
   32 pt bar, notch 186 x 32 with bottom radius 10 and 6 pt shoulders, Islet in the
   46 pt slot beside it (IslandFace.slotWidth 36 + earPadding 10). Hover opens the
   hub at the app's real 600 x 144. */
.nav { height: 32px; background: #000 !important; border-bottom: 0 !important; }
.nav.scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav__in { width: auto; padding: 0 16px; gap: 0; font: 500 13px/1 var(--font); letter-spacing: -0.01em; }
.nav .brand { font-size: 13px; font-weight: 700; gap: 7px; margin-right: 10px; }
.nav .brand img { width: 16px; height: 16px; border-radius: 4px; }
.nav .menus { display: flex; gap: 0; }
.nav .menus a, .nav .lang { padding: 0 10px; height: 24px; display: inline-flex; align-items: center; border-radius: 5px; color: rgba(255, 255, 255, .78); }
.nav .menus a:hover, .nav .lang:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nav .spacer { flex: 1; }
.nav .buy { padding: 4px 11px; font-size: 12px; margin-left: 6px; }
.nav .brand, .nav .menus, .nav .lang, .nav .buy { position: relative; z-index: 3; }
@media (max-width: 980px) { .nav .menus { display: none; } }

.nav-island { position: absolute; left: 50%; top: 0; width: 0; height: 0; z-index: 60; }
.nav-island .isl { transform-origin: 50% 0; }
.nav-island .isl-hit {
  position: absolute; top: 0; left: 0; z-index: 3; width: 232px; height: 32px; margin-left: -93px;
  background: transparent; border: 0; padding: 0; cursor: pointer; border-radius: 0 0 10px 10px;
}
.nav-island.is-open .isl-hit { width: 600px; height: 144px; margin-left: -300px; cursor: default; pointer-events: none; }
.isl .face-tile .face { margin-top: -2px; }

/* Islet's speech bubble under the menu-bar island */
.nav-island .bubble { top: 42px; width: auto; min-width: 210px; max-width: min(300px, calc(100vw - 24px)); transform: translate(calc(-50% + 23px + 70px), -6px) scale(.94); }
.nav-island .bubble.on { transform: translate(calc(-50% + 23px + 70px), 0) scale(1); }
.nav-island .bubble::before { left: auto; right: 34px; }
.nav-island .bubble span.d { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--n-t2); }

@media (max-width: 640px) {
  .nav-island .isl.menu { --scale: .62; }
  .nav-island .isl-hit { width: 144px; height: 20px; margin-left: -58px; }
  .nav-island .bubble { top: 30px; transform: translate(-50%, -6px) scale(.94); }
  .nav-island .bubble.on { transform: translate(-50%, 0) scale(1); }
  .nav-island .bubble::before { right: auto; left: calc(50% + 40px); }
  .nav .lang { display: none; }
}

/* Hero now sits right under the menu bar */
.hero2 { padding-top: clamp(150px, 16vw, 190px); }
.hero2 .wordmark { margin-top: 0; }
.hero2 .hint { max-width: 34em; margin-inline: auto; padding-inline: var(--gutter); line-height: 1.5; }

/* Story: clearly a magnified detail */
.story-stage .zoom { position: absolute; top: -34px; right: 6px; font: 600 12px/1 var(--font); color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.story-stage .zoom::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; box-shadow: 4px 4px 0 -2.5px currentColor; }
.story-pin { top: 32px; height: calc(100vh - 32px); }
html { scroll-padding-top: 48px; }
.say { display: none; }
@media (max-width: 640px) { .nav-island .isl-hit { margin-left: -58px; width: 144px; } }

/* ═════════════ A real Mac top: wallpaper, translucent menu bar, black notch ═════════════ */
.nav {
  background: rgba(16, 18, 48, .26) !important;
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
}
.nav .brand, .nav .menus a, .nav .lang { color: rgba(255, 255, 255, .94); text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.nav .menus a:hover, .nav .lang:hover { background: rgba(255, 255, 255, .18); }
/* Past the wallpaper the bar keeps its colors, so the notch still reads */
.nav.scrolled {
  background: linear-gradient(90deg, rgba(14, 52, 120, .62), rgba(52, 30, 140, .62) 50%, rgba(120, 36, 130, .62)) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.nav.scrolled .isl.menu:not(.open) { box-shadow: 0 0 0 .5px rgba(255, 255, 255, .22); }
.nav.scrolled .isl.menu:not(.open)::before, .nav.scrolled .isl.menu:not(.open)::after { filter: drop-shadow(0 .5px 0 rgba(255,255,255,.22)); }

.hero2 { margin-top: -32px; padding-top: calc(32px + clamp(150px, 16vw, 190px)); }
.hero2::before {
  content: ""; position: absolute; inset: 0 0 auto 0; left: 0; width: auto; height: min(980px, 118vh); margin-left: 0; z-index: -1;
  background:
    radial-gradient(42% 60% at 8% 0%, rgba(38, 198, 218, .85), transparent 70%),
    radial-gradient(48% 70% at 46% -6%, rgba(92, 72, 255, .95), transparent 72%),
    radial-gradient(40% 60% at 92% 4%, rgba(255, 92, 170, .8), transparent 70%),
    radial-gradient(36% 50% at 78% 46%, rgba(255, 150, 80, .45), transparent 70%),
    radial-gradient(50% 60% at 22% 58%, rgba(20, 110, 190, .55), transparent 72%),
    linear-gradient(180deg, #121a5c 0%, #1a1450 45%, #0a0a1e 80%);
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%); mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  transform: translate3d(0, var(--py, 0px), 0);
}
.hero2 .sub { color: rgba(255, 255, 255, .8); }
.hero2 .fine, .hero2 .hint { color: rgba(255, 255, 255, .58); }

/* ═════════════ Islet's slot on the LEFT of the cutout (mascot leading) ═════════════ */
.nav-island .isl-hit { margin-left: -139px; width: 232px; }
.nav-island.is-open .isl-hit { margin-left: -300px; width: 600px; }

/* Bubbles anchor under Islet: her center is 93 + 23 = 116 pt left of the notch center */
.bubble { transform: translate(calc(-50% - 80px), -6px) scale(.96); }
.bubble.on { transform: translate(calc(-50% - 80px), 0) scale(1); }
.bubble::before { left: calc(50% - 36px - 7px); }
.nav-island .bubble { transform: translate(calc(-50% - 116px), -6px) scale(.94); }
.nav-island .bubble.on { transform: translate(calc(-50% - 116px), 0) scale(1); }
.nav-island .bubble::before { left: calc(50% - 7px); right: auto; }

@media (max-width: 640px) {
  .nav-island .isl-hit { margin-left: -86px; width: 144px; height: 20px; }
  .nav-island .bubble { top: 30px; left: calc(-50vw + 12px); min-width: 0; width: max-content; max-width: calc(100vw - 24px); transform: translateY(-6px) scale(.94); transform-origin: 0 0; }
  .nav-island .bubble.on { transform: none; }
  .nav-island .bubble::before { left: calc(50vw - 72px - 12px - 7px); }
}
@media (max-width: 760px) {
  .hero2::before {
    background:
      radial-gradient(360px 300px at 0% 0%, rgba(38, 198, 218, .8), transparent 70%),
      radial-gradient(420px 340px at 50% -4%, rgba(92, 72, 255, .95), transparent 72%),
      radial-gradient(340px 300px at 100% 6%, rgba(255, 92, 170, .75), transparent 70%),
      radial-gradient(320px 280px at 90% 52%, rgba(255, 150, 80, .4), transparent 70%),
      radial-gradient(380px 320px at 10% 58%, rgba(20, 110, 190, .55), transparent 72%),
      linear-gradient(180deg, #121a5c 0%, #1a1450 45%, #0a0a1e 80%);
  }
}

/* ═════════════ Islet's slot: ONE component, always on the leading (left) side ═════════════
   As in the app (mascot leading): the island grows by the 46 pt slot (IslandFace.slotWidth 36
   + earPadding 10) on the left of the cutout and shifts half a slot left, so the cutout stays
   over the camera. Nothing else may position the face; the right ear keeps the status badges. */
.isl { --sw: 0px; width: calc(var(--w) + var(--sw)); transform: translateX(calc(-50% + var(--dx, 0px) - var(--sw) / 2)); }
.isl[data-slot="1"]:not(.open) { --sw: 46px; }
.isl .islet-slot {
  position: absolute; top: 0; left: 0; width: 46px; height: 32px; padding-left: 10px;
  display: grid; place-items: center; opacity: 0; transition: opacity .2s ease;
}
.isl[data-slot="1"]:not(.open) .islet-slot { opacity: 1; transition-delay: .2s; }
.isl .islet-slot .face .dots, .isl .islet-slot .face .zzz, .isl .islet-slot .face .waves { display: none !important; }
.isl .ear.l { left: calc(10px + var(--sw)); transition: left .34s cubic-bezier(.3, 1.15, .45, 1); }
.isl .ear.r { right: 10px; }
.nav-island .isl.menu { --scale: 1; transform: translateX(calc(-50% + (var(--dx, 0px) - var(--sw) / 2) * var(--scale))) scale(var(--scale)); }
@media (max-width: 640px) { .nav-island .isl.menu { --scale: .62; } }
/* The expressions section shows Islet magnified on her own, not a notch: a rounded portrait. */
.islet-show .big-notch, .page .big-notch { border-radius: calc(min(460px, 88vw) * .12); }
.page .big-notch { border-radius: 40px; }
