/* MyNotch website: shared styles. Plain CSS, no build step. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --canvas: #EEF0F3;      /* page background: cool mist */
  --paper: #F8F9FB;       /* raised surfaces */
  --ink: #111318;         /* text */
  --muted: #5A606A;       /* secondary text */
  --rule: #D5D9DF;        /* hairlines */
  --wall-top: #D6DDE8;    /* "wallpaper" inside the display */
  --wall-bottom: #EEF0F3;
  --btn-bg: #000;
  --btn-ink: #fff;
  --btn2-line: rgba(17, 19, 24, .18);
  --focus: #0A84FF;

  /* The island is always black, in both themes, like the camera housing. */
  --notch: #000;
  --i-ink: #fff;
  --i-dim: rgba(255, 255, 255, .58);
  --i-faint: rgba(255, 255, 255, .14);
  --i-card: #1C1C1E;
  --orange: #FF9F0A;
  --green: #30D158;
  --blue: #0A84FF;
  --pink: #FF375F;
  --violet: #8E8CFF;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --bezel: 10px;          /* black band above the screen */
  --notch-w: 200px;
  --notch-h: 32px;
  --wrap: 1120px;
  --gutter: 20px;
  --ease: cubic-bezier(.32, .72, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #15171B;
    --paper: #1C1F24;
    --ink: #EDEFF2;
    --muted: #9AA1AB;
    --rule: #2C3038;
    --wall-top: #262B35;
    --wall-bottom: #15171B;
    --btn-bg: #fff;
    --btn-ink: #000;
    --btn2-line: rgba(237, 239, 242, .24);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
code { font-family: var(--mono); font-size: .9em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--btn-bg); color: var(--btn-ink); padding: 10px 14px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.icon { width: 1em; height: 1em; flex: none; }
.icon-stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform .15s var(--ease), background-color .15s, border-color .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn-bg) 82%, var(--canvas)); }
.btn-secondary { color: var(--ink); border-color: var(--btn2-line); }
.btn-secondary:hover { border-color: var(--ink); }
/* Pre-launch: the Buy button before checkout exists. */
.btn-soon, .btn-soon:hover { background: var(--btn-bg); opacity: .5; cursor: default; }
.btn-soon:active { transform: none; }

/* ---------- The display: bezel, screen, menu bar ---------- */
.device { position: relative; background: var(--notch); padding-top: var(--bezel); }

.screen {
  position: relative; overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(var(--wall-top), var(--wall-bottom) 560px);
}

.menubar {
  position: absolute; z-index: 2; left: 0; right: 0; top: var(--bezel); height: var(--notch-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 18px; font-size: 14px; line-height: 1;
}
.menubar a { text-decoration: none; padding: 6px 0; }
.menubar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mb-group { display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.brand img { width: 18px; height: 18px; border-radius: 4px; }
.mb-buy {
  padding: 7px 14px !important; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink); font-weight: 600;
}
.mb-buy:hover { text-decoration: none !important; }
.mb-links { display: none; }
@media (min-width: 1280px) { .mb-links { display: flex; } }

/* Narrow screens: the nav moves into a taller bezel so the island never covers it. */
@media (max-width: 1023px) {
  :root { --bezel: 52px; }
  .menubar { top: 0; height: var(--bezel); color: #fff; padding: 0 var(--gutter); }
  .menubar .mb-download { display: none; }
  .mb-buy { background: #fff; color: #000; }
  .brand img { width: 22px; height: 22px; border-radius: 5px; }
}

/* ---------- Island ---------- */
.stage { position: absolute; z-index: 3; top: var(--bezel); left: 50%; width: 0; height: 0; }

.camera {
  position: absolute; z-index: 5; top: 12px; left: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a4a6b 0 1px, #10141d 1.6px 100%);
  box-shadow: 0 0 0 1px #0a0b0f;
}

.island {
  --nw: var(--notch-w); --nh: var(--notch-h);
  --cw: 316px; --ch: 38px; --ew: 560px; --eh: 150px; --d: 0s;
  position: absolute; top: 0; left: 0; transform: translateX(-50%);
  width: var(--nw); height: var(--nh);
  border-radius: 0 0 12px 12px;
  color: var(--i-ink);
  animation: island 21s var(--ease) infinite;
  animation-delay: var(--d);
}
/* The concave fillets where the notch meets the bezel. */
.island::before, .island::after, .pill::before, .pill::after, .panel::before, .panel::after {
  content: ""; position: absolute; top: 0; width: 12px; height: 12px; pointer-events: none;
}
.island::before, .pill::before, .panel::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent 11.5px, var(--notch) 12px); }
.island::after, .pill::after, .panel::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent 11.5px, var(--notch) 12px); }

.isl-body {
  position: absolute; inset: 0; overflow: hidden; background: var(--notch);
  border-radius: inherit;
}
.isl-compact, .isl-full { position: absolute; opacity: 0; animation: 21s linear infinite; animation-delay: var(--d); }
.isl-compact {
  inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 11px;
  animation-name: show-compact;
}
.isl-full {
  top: 0; left: 50%; width: var(--ew); height: var(--eh); transform: translateX(-50%);
  padding: 9px 20px 16px; animation-name: show-full;
}

.island.is-music   { --cw: 316px; --ew: 560px; --eh: 148px; --d: -2.6s; }
.island.is-agent   { --cw: 316px; --ew: 560px; --eh: 178px; --d: -16.6s; }
.island.is-meeting { --cw: 460px; --ew: 480px; --eh: 120px; --d: -9.6s; }

/* One 21 s loop, three 7 s windows. Each island runs the same keyframes,
   offset by --d, so only one is open at a time. Within a window:
   0-0.4 s closed, 0.9-1.9 s compact, 2.5-6 s open, closed again by 6.6 s.
   The page starts 2.6 s into the music window, so it opens on the player. */
@keyframes island {
  0%, 1.9%       { width: var(--nw); height: var(--nh); border-radius: 0 0 12px 12px; z-index: 1; }
  4.29%, 9.05%   { width: var(--cw); height: var(--ch); border-radius: 0 0 16px 16px; z-index: 2; }
  11.9%, 28.57%  { width: var(--ew); height: var(--eh); border-radius: 0 0 30px 30px; z-index: 2; }
  31.43%, 100%   { width: var(--nw); height: var(--nh); border-radius: 0 0 12px 12px; z-index: 1; }
}
@keyframes show-compact {
  0%, 3.57% { opacity: 0; }
  4.52%, 8.33% { opacity: 1; }
  9.29%, 100% { opacity: 0; }
}
@keyframes show-full {
  0%, 10.71% { opacity: 0; }
  12.14%, 27.62% { opacity: 1; }
  29.05%, 100% { opacity: 0; }
}

/* Ambient glow on the wallpaper, in the colour of whatever the island shows. */
.glow {
  position: absolute; top: calc(-260px + var(--bezel)); left: 50%; width: 1100px; height: 560px;
  transform: translateX(-50%); pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
  opacity: 0; animation: glow 21s linear infinite -2.6s;
}
@keyframes glow {
  0%, 9%        { opacity: 0;   background-color: #B66CFF; }
  11.9%, 28.6%  { opacity: .42; background-color: #B66CFF; }
  31.4%, 33.3%  { opacity: 0;   background-color: #B66CFF; }
  33.4%, 42.4%  { opacity: 0;   background-color: #FF9F0A; }
  45.2%, 61.9%  { opacity: .36; background-color: #FF9F0A; }
  64.8%, 66.6%  { opacity: 0;   background-color: #FF9F0A; }
  66.7%, 75.7%  { opacity: 0;   background-color: #30D158; }
  78.6%, 95.2%  { opacity: .32; background-color: #30D158; }
  98.1%, 100%   { opacity: 0;   background-color: #30D158; }
}

/* Hovering the island pauses the loop; site.js also pauses it while it's off screen. */
.device:has(.stage:hover) :is(.island, .isl-compact, .isl-full, .glow),
.device.is-paused :is(.island, .isl-compact, .isl-full, .glow, .bars i) { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .island, .isl-compact, .isl-full, .glow, .bars i { animation: none !important; }
  .island.is-music { width: var(--ew); height: var(--eh); border-radius: 0 0 30px 30px; z-index: 2; }
  .island.is-music .isl-full { opacity: 1; }
  .glow { opacity: .3; background-color: #B66CFF; }
}

/* ---------- Pieces of island UI (hero and feature tiles) ---------- */
.i-row { display: flex; align-items: center; justify-content: space-between; height: 30px; }
.tabs { display: flex; align-items: center; gap: 6px; color: var(--i-dim); font-size: 15px; }
.tabs span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.tabs .on { color: #fff; background: rgba(255, 255, 255, .16); }
.tabs .on.music { color: var(--pink); background: rgba(255, 55, 95, .2); }
.i-more { color: var(--i-dim); font-size: 16px; }

.art {
  flex: none; width: 24px; height: 24px; border-radius: 6px;
  background:
    radial-gradient(circle at 70% 28%, #FFD27A 0 14%, transparent 15%),
    radial-gradient(120% 90% at 0% 100%, #FF4D7E 0 38%, transparent 39%),
    linear-gradient(160deg, #6E4BFF 0%, #B04DFF 45%, #FF7A59 100%);
}
.art-lg { width: 72px; height: 72px; border-radius: 13px; }
.art-md { width: 46px; height: 46px; border-radius: 10px; }

.bars { display: flex; align-items: center; gap: 2.5px; height: 16px; }
.bars i {
  display: block; width: 3px; height: 100%; border-radius: 2px; background: #FF8FB0;
  transform-origin: center; transform: scaleY(.45);
  animation: bar 1s ease-in-out infinite alternate;
}
.bars i:nth-child(1) { animation-duration: .9s; background: #FFB27A; }
.bars i:nth-child(2) { animation-duration: .62s; animation-delay: -.3s; }
.bars i:nth-child(3) { animation-duration: .78s; animation-delay: -.5s; background: #E58BFF; }
.bars i:nth-child(4) { animation-duration: .7s;  animation-delay: -.2s; }
@keyframes bar { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.bars.static i { animation: none; }
.bars.static i:nth-child(1) { transform: scaleY(.6); }
.bars.static i:nth-child(2) { transform: scaleY(1); }
.bars.static i:nth-child(3) { transform: scaleY(.45); }
.bars.static i:nth-child(4) { transform: scaleY(.8); }

.agent-tile {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  color: #F08A5D; background: #3A2116; font-size: 14px;
}
.agent-tile.codex { color: #A6A4FF; background: #23234A; }
.agent-tile.cursor { color: #E6E6E6; background: #2C2C2E; }

.needs { color: var(--orange); font-weight: 600; font-size: 13px; }
.cluster { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.meet-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: none; }
.join-round {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 14px;
}

/* Music, expanded */
.player { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.player-meta { flex: 1; min-width: 0; }
.track { display: flex; align-items: center; gap: 10px; }
.track b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.artist { color: var(--i-dim); font-size: 15px; font-weight: 500; }
.progress { display: flex; align-items: center; gap: 10px; margin-top: 9px; color: var(--i-dim); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.progress .track-bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.progress .track-bar::before { content: ""; display: block; width: 32%; height: 100%; background: rgba(255,255,255,.9); border-radius: inherit; }
.controls { display: flex; align-items: center; gap: 22px; font-size: 22px; padding-left: 8px; }
.controls .play { font-size: 28px; }

/* Agent approval, expanded */
.usage { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.usage span { display: inline-flex; align-items: center; gap: 6px; }
.ring {
  width: 16px; height: 16px; border-radius: 50%;
  background: conic-gradient(var(--c, var(--violet)) 0 var(--p, 30%), rgba(255,255,255,.18) 0);
  -webkit-mask: radial-gradient(circle, transparent 4.6px, #000 5px);
  mask: radial-gradient(circle, transparent 4.6px, #000 5px);
}
.approval { margin-top: 8px; padding: 13px 14px 12px; border-radius: 18px; background: var(--i-card); }
.approval-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.approval-head b { font-weight: 600; }
.approval-head .ask { color: var(--i-dim); }
.cmd {
  margin: 10px 0 12px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.07);
  font: 500 13px/1.3 var(--mono); color: rgba(255,255,255,.86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.approval-actions { display: flex; justify-content: flex-end; gap: 8px; }
.i-btn {
  display: inline-flex; align-items: center; height: 28px; padding: 0 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: rgba(255,255,255,.12); color: #fff;
}
.i-btn.primary { background: #fff; color: #000; }
.i-btn.join { background: var(--green); color: #fff; gap: 6px; height: 30px; padding: 0 14px; }

/* Meeting, expanded */
.meeting { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.meeting .bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--blue); }
.meeting-meta { flex: 1; min-width: 0; }
.meeting-meta b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.meeting-meta span { color: var(--i-dim); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.soon { color: var(--i-dim); font-size: 14px; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 1; padding: calc(var(--notch-h) + 214px) 0 72px; text-align: center; }
.hero h1 {
  font-size: clamp(44px, 7.4vw, 96px); line-height: .98; letter-spacing: -.045em;
  max-width: 11em; margin: 0 auto;
}
.hero-lede {
  max-width: 34em; margin: 26px auto 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Slot for a future product video or screenshot (hidden until filled). */
.media-slot { margin: 64px auto 0; max-width: 960px; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #000; }
.media-slot[hidden] { display: none; }
.media-slot > * { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { max-width: 40em; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -.035em; }
.section-head p { margin: 16px 0 0; font-size: 19px; color: var(--muted); }

/* ---------- Feature tiles: each one is the top of a small screen ---------- */
.features-major { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
.features-minor { display: grid; grid-template-columns: repeat(5, 1fr); gap: 44px 24px; margin-top: 72px; }

.feature h3 { margin-top: 20px; font-size: 21px; letter-spacing: -.015em; line-height: 1.25; }
.feature p { margin: 8px 0 0; color: var(--muted); max-width: 34em; }
.features-minor .feature h3 { margin-top: 16px; font-size: 16px; letter-spacing: -.01em; }
.features-minor .feature p { margin-top: 4px; font-size: 14px; line-height: 1.45; }

.mini {
  position: relative; overflow: hidden; border-radius: 16px; padding-top: 6px;
  background: linear-gradient(var(--notch) 0 20px, transparent 20px); /* bezel only behind the top */
}
.mini-screen {
  position: relative; height: 100%; border-radius: 10px 10px 0 0;
  background: linear-gradient(var(--wall-top), color-mix(in srgb, var(--wall-bottom) 60%, var(--wall-top)));
}
.features-major .mini { height: 268px; }
.features-minor .mini { height: 108px; }

.mini-screen > .pill, .mini-screen > .panel { position: absolute; top: 0; left: 50%; transform: translateX(-50%); }

.pill {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 196px; height: 30px; padding: 0 11px; border-radius: 0 0 13px 13px;
  background: var(--notch); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pill > span { display: inline-flex; align-items: center; gap: 6px; }
.pill.wide { width: 212px; }
.pill.notch-only { width: 96px; }
.pill .dim { color: var(--i-dim); }

.panel {
  width: 470px; padding: 8px 18px 16px; border-radius: 0 0 26px 26px; background: var(--notch); color: #fff;
}
.panel.small { width: 196px; padding: 8px 10px 10px; border-radius: 0 0 16px 16px; }

.lyrics { margin-top: 12px; display: grid; gap: 5px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.lyrics span { color: rgba(255,255,255,.3); }
.lyrics .now { color: #fff; }

.filters { display: flex; gap: 14px; margin: 6px 0 8px; font-size: 13px; font-weight: 600; color: var(--i-dim); }
.filters .on { color: #fff; }
.sessions { display: grid; gap: 6px; }
.session {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 12px;
  background: rgba(255,255,255,.06); font-size: 13px;
}
.session.asking { background: rgba(255, 159, 10, .13); }
.session b { font-weight: 600; flex: none; }
.session .what { flex: 1; min-width: 0; color: var(--i-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session .state { flex: none; font-weight: 600; color: var(--i-dim); }
.session .state.needs { color: var(--orange); }
.session .state.done { color: var(--green); }

.events { display: grid; gap: 8px; margin-top: 8px; }
.event { display: flex; align-items: center; gap: 11px; height: 44px; padding: 0 6px 0 2px; }
.event .bar { width: 4px; height: 32px; border-radius: 2px; background: var(--blue); flex: none; }
.event .bar.violet { background: #BF5AF2; }
.event .bar.green { background: var(--green); }
.event-meta { flex: 1; min-width: 0; line-height: 1.25; }
.event-meta b { display: block; font-size: 14px; font-weight: 600; }
.event-meta span { font-size: 12px; color: var(--i-dim); font-weight: 500; font-variant-numeric: tabular-nums; }
.event .when { font-size: 12px; font-weight: 600; color: var(--i-dim); }

.clip-tools { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.search { flex: 1; height: 28px; border-radius: 8px; background: rgba(255,255,255,.1); color: var(--i-dim); font-size: 13px; display: flex; align-items: center; gap: 6px; padding: 0 9px; }
.chip { height: 28px; padding: 0 10px; border-radius: 8px; background: rgba(255,255,255,.1); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; color: var(--i-dim); }
.clips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.clip {
  height: 104px; border-radius: 12px; background: #1C1C1E; padding: 9px; font-size: 11.5px; line-height: 1.3;
  overflow: hidden; color: rgba(255,255,255,.88);
}
.clip.code { font: 500 11px/1.4 var(--mono); white-space: pre; }
.clip.image {
  position: relative; padding: 0;
  background: linear-gradient(135deg, #2D8CFF, #6FD3FF);
}
.clip.image::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 26px; height: 46px;
  background:
    linear-gradient(#fff, #fff) 0 100% / 22% 55% no-repeat,
    linear-gradient(#fff, #fff) 39% 100% / 22% 80% no-repeat,
    linear-gradient(#fff, #fff) 78% 100% / 22% 40% no-repeat;
  opacity: .92;
}
.clip.image span {
  position: absolute; left: 8px; bottom: 7px; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 5px; background: rgba(0,0,0,.45); color: #fff;
}
.clip.file { position: relative; }
.clip.file .doc { position: absolute; left: 10px; top: 12px; width: 28px; height: 34px; border-radius: 4px; background: #fff; }
.clip.file .name { position: absolute; left: 9px; right: 9px; bottom: 9px; }
.clip.file .doc::after { content: ""; position: absolute; left: 5px; right: 5px; top: 9px; height: 14px; background: repeating-linear-gradient(#c8c8cc 0 2px, transparent 2px 5px); }

.mirror-view {
  height: 52px; border-radius: 10px; margin-top: 2px;
  background:
    radial-gradient(circle at 50% 42%, #E8B796 0 13px, transparent 14px),
    radial-gradient(ellipse 32px 22px at 50% 108%, #4B5E7A 0 98%, transparent 100%),
    linear-gradient(160deg, #4a5160, #22262e);
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stat { border-radius: 9px; background: #1C1C1E; padding: 6px 8px 0; font-size: 10px; color: var(--i-dim); font-weight: 600; overflow: hidden; }
.stat b { display: block; color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.stat svg { width: 100%; height: 16px; margin-top: 2px; }

.lock-screen { background: linear-gradient(170deg, #2B3560, #6A4C93 70%, #9D5C8E); }
.lock-clock { position: absolute; top: 33px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.95); font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.lock-card {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; width: 150px; padding: 5px; border-radius: 11px;
  background: rgba(255,255,255,.22); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.2;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lock-card .art { width: 22px; height: 22px; }
.lock-card small { display: block; font-weight: 500; opacity: .75; }

.batt { display: inline-block; width: 22px; height: 11px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 3.5px; padding: 1px; position: relative; }
.batt::before { content: ""; display: block; width: 63%; height: 100%; border-radius: 1.5px; background: var(--green); }
.batt::after { content: ""; position: absolute; right: -4px; top: 2.5px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255,255,255,.55); }
.level { display: inline-block; width: 46px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); overflow: hidden; }
.level::before { content: ""; display: block; height: 100%; width: 63%; background: #fff; border-radius: inherit; }
.timer-ring {
  width: 16px; height: 16px; border-radius: 50%;
  background: conic-gradient(var(--orange) 0 62%, rgba(255,255,255,.18) 0);
  -webkit-mask: radial-gradient(circle, transparent 4.6px, #000 5px);
  mask: radial-gradient(circle, transparent 4.6px, #000 5px);
}

/* ---------- Privacy & performance ---------- */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.facts li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.facts b { display: block; font-size: 17px; font-weight: 600; }
.facts span { display: block; margin-top: 2px; color: var(--muted); }

.figure-cpu { padding: 32px; border-radius: 24px; background: var(--paper); }
.figure-cpu .num { font-size: clamp(64px, 8vw, 104px); font-weight: 700; letter-spacing: -.05em; line-height: .9; }
.figure-cpu p { margin: 16px 0 0; color: var(--muted); }
.figure-cpu p:first-of-type { color: var(--ink); font-weight: 600; font-size: 19px; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Pricing ---------- */
.price-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px; border-radius: 28px; background: var(--paper);
}
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.price .now { font-size: clamp(64px, 8vw, 96px); font-weight: 700; letter-spacing: -.05em; line-height: .95; font-variant-numeric: tabular-nums; }
.price s { font-size: 28px; font-weight: 600; color: var(--muted); letter-spacing: -.02em; }
.price-note { margin: 14px 0 0; font-size: 17px; color: var(--muted); }
.price-block .cta-row { justify-content: flex-start; margin-top: 30px; }
.price-legal { margin: 18px 0 0; font-size: 14px; color: var(--muted); max-width: 30em; }
.includes { list-style: none; margin: 0; padding: 0; }
.includes li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.includes li:first-child { padding-top: 4px; }
.includes li:last-child { border-bottom: 0; }
.includes .icon { margin-top: 3px; font-size: 18px; color: var(--green); }
.includes b { display: block; font-weight: 600; }
.includes span { display: block; color: var(--muted); font-size: 15px; }

/* ---------- Requirements ---------- */
.reqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.req { padding: 26px 24px 26px 0; }
.req + .req { padding-left: 24px; border-left: 1px solid var(--rule); }
.req b { display: block; font-size: 19px; letter-spacing: -.01em; }
.req span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.req-note { margin: 22px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0;
  font-size: 19px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
              linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 40em; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer a { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 56px; font-size: 15px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand b { display: block; font-size: 17px; }
.footer-brand span { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { margin-top: 36px; color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 60em; }
.footer-legal p { margin: 0 0 6px; }

/* ---------- Document pages (privacy, terms, refunds, 404) ---------- */
.screen.is-short { background: linear-gradient(var(--wall-top), var(--wall-bottom)); }
.screen.is-short .page-head { padding: calc(var(--notch-h) + 76px) 0 48px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.04em; line-height: 1.02; }
.page-head p { margin: 14px 0 0; color: var(--muted); }
.page-head .notch-static { pointer-events: none; }

.prose { max-width: 720px; padding: 8px 0 96px; }
.prose h2 { margin: 48px 0 12px; font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.prose h3 { margin: 28px 0 8px; font-size: 18px; letter-spacing: -.01em; }
.prose p, .prose li { line-height: 1.6; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose .lead { font-size: 19px; color: var(--muted); }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 600; font-size: 14px; color: var(--muted); }
.prose code { font-size: .86em; background: color-mix(in srgb, var(--rule) 55%, transparent); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.prose td code { white-space: nowrap; overflow-wrap: normal; }
.placeholder { background: #FFE58F; color: #3D2E00; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.draft-note {
  margin: 0 0 32px; padding: 16px 18px; border-radius: 14px; border: 1px dashed #C99A00;
  background: color-mix(in srgb, #FFE58F 30%, var(--canvas)); font-size: 15px;
}

.lost { text-align: center; padding: calc(var(--notch-h) + 150px) 0 140px; }
.lost h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -.04em; line-height: 1.02; }
.lost p { margin: 16px auto 0; max-width: 28em; color: var(--muted); font-size: 19px; }
.lost .cta-row { margin-top: 30px; }

/* Static closed-notch variant for document pages. */
.notch-static { position: absolute; z-index: 3; top: var(--bezel); left: 50%; }
.notch-static .pill { position: absolute; top: 0; transform: translateX(-50%); width: var(--notch-w); height: var(--notch-h); border-radius: 0 0 12px 12px; }
.notch-static .pill.lost-pill { width: 316px; height: 38px; border-radius: 0 0 16px 16px; padding: 0 14px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .features-minor { grid-template-columns: repeat(3, 1fr); }
  .features-minor .feature:nth-child(10) { grid-column: 2; }
}

@media (max-width: 1023px) {
  .hero { padding-top: 232px; }
  .screen.is-short .page-head { padding-top: 86px; }
  .lost { padding-top: 160px; }
}

@media (max-width: 900px) {
  .features-major { grid-template-columns: 1fr; }
  .features-major .mini { height: 260px; }
  .split, .price-block { grid-template-columns: 1fr; gap: 40px; }
  .price-block { padding: 32px; }
  .reqs { grid-template-columns: 1fr; }
  .req, .req + .req { padding: 20px 0; border-left: 0; }
  .req + .req { border-top: 1px solid var(--rule); }
}

@media (max-width: 680px) {
  .stage > *, .notch-static > * { zoom: .6; }
  .hero { padding-top: 156px; padding-bottom: 48px; }
  .hero h1 { letter-spacing: -.04em; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 36px; }
  .features-major { gap: 48px; }
  .features-major .mini { height: 196px; }
  .features-major .panel { zoom: .66; }
  .features-minor { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; margin-top: 56px; }
  .features-minor .feature:nth-child(10) { grid-column: auto; }
  .features-minor .mini { height: 92px; }
  .features-minor :is(.pill, .pill.wide, .panel.small) { width: calc(100% - 30px); }
  .features-minor .pill { height: 27px; padding: 0 9px; font-size: 11px; }
  .features-minor .pill.notch-only { width: 44%; }
  .features-minor .lock-clock { top: 30px; font-size: 18px; }
  .features-minor .lock-card { bottom: 5px; width: calc(100% - 24px); padding: 4px; }
  .features-minor .stat { padding: 5px 6px 0; font-size: 9px; }
  .features-minor .stat b { font-size: 11px; white-space: nowrap; }
  .features-minor .stat svg { height: 12px; }
  .features-minor .mirror-view { height: 44px; }
  .price-block { padding: 24px; border-radius: 22px; }
  .figure-cpu { padding: 24px; }
  .cta-row .btn { flex: 1 1 100%; }
  .price-block .cta-row .btn { flex: 1 1 100%; }
  .faq summary { font-size: 17px; }
  /* The privacy table becomes one labelled block per row. */
  .prose table { min-width: 0; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .prose td { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 4px 0; border: 0; }
  .prose td::before { content: attr(data-label); font-weight: 600; font-size: 13px; color: var(--muted); padding-top: 2px; }
  .prose td code { white-space: normal; overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .stage > *, .notch-static > * { zoom: .56; }
  .features-major .panel { zoom: .6; }
}
