/* NotchViber for Claude Code - notchviber.com
   Concept: MIDNIGHT DESK. A MacBook Pro in a dark room; the site is the scene.
   The real notch demo lives inside a CSS-built laptop. Film grain, aurora
   wallpaper, desk reflection, cursor tilt, scroll zoom, variable-weight type.
   Radius: interactive 10px, nested media 10px, screen 3.2%/22px.
   Dark locked: it is a room at night. */

@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-400.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-400.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: oklch(12.5% 0.014 285);
  --bg-deep: oklch(9.8% 0.012 285);
  --line: oklch(27% 0.02 285);
  --line-soft: oklch(21% 0.018 285);
  --text: oklch(96.5% 0.004 285);
  --muted: oklch(75% 0.018 285);
  --faint: oklch(63% 0.022 285);
  --accent: oklch(70% 0.145 265);
  --accent-bright: oklch(78% 0.125 262);
  --working: oklch(68% 0.15 262);
  --waiting: oklch(85% 0.1 195);
  --done: oklch(80% 0.17 150);
  --fable: oklch(75% 0.15 305);
  --ember: oklch(75% 0.14 60);
  --radius-i: 10px;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-island: cubic-bezier(0.32, 0.72, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
::selection { background: oklch(70% 0.145 265 / 0.32); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 300;
  background: var(--accent);
  color: oklch(15% 0.02 265);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-i) 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
}

/* film grain over the whole room: fixed, non-interactive, cheap */
.grain {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ================= nav: quiet until the scene scrolls ================= */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.1rem, 3vw, 2.2rem);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s var(--ease-out);
}
.nav.scrolled {
  background: oklch(14% 0.015 285 / 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  padding-block: 0.6rem;
  border-bottom: 1px solid oklch(100% 0 0 / 0.05);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 640;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 22px; height: 22px; border-radius: 6px; }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-right ul { display: flex; gap: 1.4rem; list-style: none; }
.nav-right a:not(.mb-cta) { color: var(--muted); font-size: 0.88rem; }
.nav-right a:not(.mb-cta):hover { color: var(--text); text-decoration: none; }
.mb-cta {
  font-size: 0.84rem;
  font-weight: 560;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.38rem 0.8rem;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.16s var(--ease-out);
}
.mb-cta:hover { text-decoration: none; border-color: var(--faint); background: oklch(100% 0 0 / 0.05); }
.mb-cta:active { transform: scale(0.97); }

/* ================= hero: the room, the machine ================= */

.hero {
  position: relative;
  padding-top: clamp(5.5rem, 11vh, 8rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
  overflow: clip;
}
/* room light: what the screen throws on the walls */
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -20%;
  background:
    radial-gradient(46% 34% at 50% 34%, oklch(45% 0.1 265 / 0.24), transparent 68%),
    radial-gradient(80% 60% at 50% 110%, var(--bg-deep), transparent 60%);
  pointer-events: none;
}

.stage {
  position: relative;
  perspective: 1700px;
  width: min(1060px, 94vw, calc((100dvh - 190px) * 1.42));
  margin-inline: auto;
}
.laptop {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s var(--ease-out);
}
.screen {
  position: relative;
  aspect-ratio: 16 / 10.4;
  border-radius: clamp(14px, 2.6vw, 26px);
  overflow: hidden;
  /* aluminum edge: lit from above */
  border: 1px solid oklch(45% 0.01 270 / 0.9);
  box-shadow:
    inset 0 0 0 clamp(4px, 0.7vw, 7px) oklch(8% 0.008 280),          /* glass-to-bezel */
    inset 0 1px 0 oklch(70% 0.01 270 / 0.35),                         /* top edge light */
    0 2px 6px oklch(0% 0 0 / 0.5),
    0 40px 120px -20px oklch(45% 0.13 265 / 0.4),                     /* screen glow into the room */
    0 90px 160px -40px oklch(0% 0 0 / 0.8);
}
.wallpaper {
  position: absolute;
  inset: clamp(4px, 0.7vw, 7px);
  border-radius: clamp(10px, 2vw, 20px);
  background:
    radial-gradient(105% 85% at 16% 104%, oklch(46% 0.115 310 / 0.5), transparent 56%),
    radial-gradient(120% 95% at 86% 96%, oklch(55% 0.12 235 / 0.52), transparent 58%),
    radial-gradient(85% 62% at 50% 34%, oklch(38% 0.1 268 / 0.65), transparent 64%),
    radial-gradient(140% 110% at 50% -30%, oklch(24% 0.05 275), oklch(13% 0.02 280) 70%);
}
/* aurora ribbon */
.wallpaper::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 22% at 62% 58%, oklch(70% 0.11 200 / 0.14), transparent 70%),
    radial-gradient(45% 16% at 34% 44%, oklch(66% 0.13 290 / 0.13), transparent 70%);
  filter: blur(6px);
}
/* vignette + glass sheen + legibility pool under the headline */
.wallpaper::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 42%, oklch(100% 0 0 / 0.045) 47%, oklch(100% 0 0 / 0.01) 51%, transparent 55%),
    radial-gradient(85% 60% at 50% 96%, oklch(0% 0 0 / 0.5), transparent 68%),
    radial-gradient(120% 100% at 50% 50%, transparent 62%, oklch(0% 0 0 / 0.42));
}
/* the machine's own menu bar */
.screen-menubar {
  position: absolute;
  inset: clamp(4px, 0.7vw, 7px) clamp(4px, 0.7vw, 7px) auto;
  height: clamp(16px, 2.6vw, 26px);
  z-index: 1;
  border-radius: clamp(10px, 2vw, 20px) clamp(10px, 2vw, 20px) 0 0;
  background: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

/* the real notch demo, inside the screen */
.notch-demo {
  position: absolute;
  top: clamp(4px, 0.7vw, 7px);
  left: 50%;
  translate: -50% 0;
  z-index: 10;
  isolation: isolate;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  width: 46%;
  color: #f4f4f6;
}
.bar-img {
  width: 100%;
  transition: opacity 0.2s ease, visibility 0s 0.2s;
}
.island-img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 142%;
  translate: -50% 0;
  transform: translateY(-10px) scale(0.9);
  transform-origin: 50% 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border-radius: 0 0 16px 16px;
  filter: drop-shadow(0 26px 60px oklch(30% 0.1 265 / 0.75));
  transition: transform 0.5s var(--ease-island), opacity 0.26s ease, visibility 0s 0.26s;
}
.notch-demo.open .bar-img { opacity: 0; visibility: hidden; }
.notch-demo.open .island-img {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

/* desk: the laptop sits on something */
.desk {
  position: relative;
  height: clamp(60px, 10vw, 110px);
  margin-top: 2px;
  pointer-events: none;
}
/* reflected glow */
.desk::before {
  content: '';
  position: absolute;
  inset: 0 6%;
  background: radial-gradient(52% 90% at 50% 0%, oklch(45% 0.11 265 / 0.22), transparent 70%);
  filter: blur(10px);
  transform: scaleY(-1);
}
/* contact shadow */
.desk::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 12%;
  right: 12%;
  height: 14px;
  border-radius: 50%;
  background: oklch(0% 0 0 / 0.65);
  filter: blur(12px);
}

/* headline overlays the screen but lives OUTSIDE the tilting layer,
   so the CTAs never move under the cursor mid-click */
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(clamp(60px, 10vw, 110px) + 5%);
  z-index: 20;
  text-align: center;
  padding-inline: clamp(1rem, 4vw, 3rem);
}
.hero h1 {
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 1.0;
  text-shadow: 0 2px 30px oklch(0% 0 0 / 0.5);
}
.hero .sub {
  margin: 1.2rem auto 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  text-shadow: 0 1px 18px oklch(0% 0 0 / 0.6);
}
.hero-ctas {
  margin-top: 1.9rem;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-i);
  font-size: 0.99rem;
  font-weight: 570;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s var(--ease-out), background 0.16s ease, border-color 0.16s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: oklch(14% 0.03 265);
  box-shadow: 0 6px 28px -6px oklch(70% 0.145 265 / 0.5);
}
.btn-primary:hover { background: var(--accent-bright); box-shadow: 0 8px 34px -6px oklch(70% 0.145 265 / 0.65); }
.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--faint); }

/* ================= problem: cinema title card ================= */

.problem {
  position: relative;
  padding: clamp(6rem, 14vw, 11rem) 0;
}
.problem .wrap { max-width: 1080px; }
.problem h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 17ch;
}
.problem p {
  margin-top: 1.8rem;
  max-width: 52ch;
  color: var(--faint);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
}
.problem p strong { color: var(--text); font-weight: 600; }

/* ================= diagram: anatomy, lit blue ================= */

.diagram {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(5rem, 10vw, 8rem);
}
.diagram::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 42% at 50% 46%, oklch(55% 0.12 262 / 0.09), transparent 70%);
  pointer-events: none;
}
.diagram h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 690;
  letter-spacing: -0.034em;
  line-height: 1.08;
  max-width: 22ch;
}
.figure {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr minmax(0, 660px) 1fr;
  align-items: stretch;
}
.figure-shot {
  position: relative;
  filter: drop-shadow(0 36px 90px oklch(45% 0.13 265 / 0.42));
}
.figure-shot img { border-radius: 14px 14px 20px 20px; width: 100%; }
.anno-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 0.3rem;
}
.anno {
  position: relative;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.015em;
  color: var(--muted);
  max-width: 22ch;
}
.anno b { color: var(--text); font-weight: 620; display: block; }
.anno-col--left { align-items: flex-end; text-align: right; }
.anno-col--left .anno { padding-right: clamp(1.4rem, 3.4vw, 3rem); }
.anno-col--right .anno { padding-left: clamp(1.4rem, 3.4vw, 3rem); }
.anno::after {
  content: '';
  position: absolute;
  top: 0.66em;
  width: clamp(1rem, 2.6vw, 2.3rem);
  height: 1px;
  background: linear-gradient(90deg, var(--faint), var(--line));
}
.anno-col--left .anno::after { right: 0; }
.anno-col--right .anno::after { left: 0; background: linear-gradient(270deg, var(--faint), var(--line)); }
.dots { display: inline-flex; gap: 4px; margin-left: 2px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.d-working { background: var(--working); box-shadow: 0 0 8px oklch(68% 0.15 262 / 0.7); }
.d-waiting { background: var(--waiting); box-shadow: 0 0 8px oklch(85% 0.1 195 / 0.6); }
.d-done { background: var(--done); box-shadow: 0 0 8px oklch(80% 0.17 150 / 0.6); }

/* ================= actions ================= */

.actions { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.actions .wrap > h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 690;
  letter-spacing: -0.034em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.actions-grid {
  display: grid;
  grid-template-columns: 5fr 4fr 4fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.action h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  font-weight: 660;
  letter-spacing: -0.022em;
  line-height: 1.18;
}
.action p {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 40ch;
}
.action .kbd {
  display: inline-block;
  margin-top: 1.15rem;
  font-family: var(--mono);
  font-size: 0.79rem;
  color: var(--accent-bright);
  background: oklch(70% 0.145 265 / 0.09);
  border: 1px solid oklch(70% 0.145 265 / 0.22);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}
.action .shot {
  margin-top: 1.25rem;
  border-radius: var(--radius-i);
  border: 1px solid var(--line-soft);
}

/* ================= privacy: the loudest quiet line ================= */

.privacy {
  position: relative;
  padding: clamp(7rem, 15vw, 12rem) 0;
  background: radial-gradient(75% 95% at 50% 105%, var(--bg-deep), transparent 72%);
}
.privacy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(42% 34% at 50% 58%, oklch(80% 0.17 150 / 0.05), transparent 70%);
  pointer-events: none;
}
.privacy .wrap { max-width: 1080px; text-align: center; }
.privacy h3 {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.privacy p {
  margin: 1.8rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  max-width: 52ch;
}
.privacy .path {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--text);
  word-break: break-all;
}

/* ================= limits: the numeral ================= */

.limits {
  border-top: 1px solid var(--line-soft);
  padding: clamp(5rem, 10vw, 8rem) 0;
}
.limits-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.limits h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 690;
  letter-spacing: -0.034em;
  line-height: 1.08;
}
.limits .lede {
  margin-top: 1.3rem;
  color: var(--muted);
  max-width: 56ch;
  font-size: 1.03rem;
}
.limits .fine {
  margin-top: 1.6rem;
  color: var(--faint);
  font-size: 0.9rem;
  max-width: 56ch;
}
.big-num {
  font-family: var(--mono);
  font-weight: 640;
  font-size: clamp(5.5rem, 13vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--text);
}
.big-num .pct { color: var(--accent-bright); }
.big-num-label {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--faint);
}
.weights {
  margin-top: 2.2rem;
  font-family: var(--mono);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
}
.weight .x {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 620;
  color: var(--muted);
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.15;
}
.weight .lbl { color: var(--faint); font-size: 0.74rem; letter-spacing: 0.02em; }

/* ================= terminals ================= */

.terminals {
  border-top: 1px solid var(--line-soft);
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  overflow: hidden;
}
.terminals h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 670;
  letter-spacing: -0.028em;
}
.terminals .lede { margin-top: 0.9rem; color: var(--muted); max-width: 56ch; }
.marquee {
  margin-top: 3rem;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee ul {
  display: flex;
  align-items: baseline;
  gap: clamp(2.4rem, 6vw, 5rem);
  padding-right: clamp(2.4rem, 6vw, 5rem);
  list-style: none;
  flex-shrink: 0;
  animation: slide 40s linear infinite;
}
.marquee:hover ul,
.marquee:focus ul,
.marquee:focus-within ul { animation-play-state: paused; }
.marquee li {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 480;
  letter-spacing: -0.02em;
  color: oklch(40% 0.02 285);
  white-space: nowrap;
  transition: color 0.25s ease;
}
.marquee li:hover { color: var(--text); }
@keyframes slide { to { transform: translateX(-100%); } }

/* ================= install ================= */

.install {
  border-top: 1px solid var(--line-soft);
  padding: clamp(5rem, 10vw, 8rem) 0;
}
.install .wrap { max-width: 1000px; text-align: center; }
.install h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 690;
  letter-spacing: -0.034em;
}
.install ol {
  margin: 1.6rem auto 0;
  list-style: none;
  max-width: 58ch;
}
.install li {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  line-height: 1.55;
  display: inline;
}
.install li::after { content: ' '; }
.install .hero-ctas { margin-top: 2.6rem; }
.install .meta {
  margin-top: 1.3rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--faint);
}

/* ================= faq ================= */

.faq {
  border-top: 1px solid var(--line-soft);
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(5.5rem, 11vw, 9rem);
}
.faq .wrap { max-width: 840px; }
.faq h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 690;
  letter-spacing: -0.034em;
}
.faq-list { margin-top: 2.4rem; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:first-child { border-top: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0.1rem;
  font-weight: 570;
  font-size: 1.05rem;
  letter-spacing: -0.012em;
  transition: color 0.15s ease;
}
.faq summary:hover { color: var(--accent-bright); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--faint);
  transition: rotate 0.22s var(--ease-out);
  flex-shrink: 0;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p {
  padding: 0 0.1rem 1.4rem;
  color: var(--muted);
  max-width: 64ch;
}

/* ================= footer ================= */

footer {
  border-top: 1px solid var(--line-soft);
  padding: 3rem 0 3.5rem;
  background: var(--bg-deep);
}
footer .wrap { display: flex; align-items: baseline; gap: 2rem; flex-wrap: wrap; }
.tagline { color: var(--text); font-weight: 620; letter-spacing: -0.015em; }
footer nav { margin-left: auto; display: flex; gap: 1.4rem; }
footer nav a { color: var(--faint); font-size: 0.9rem; }
footer nav a:hover { color: var(--text); }
.copyright {
  flex-basis: 100%;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

/* ================= reveals: rise + weight bloom (html.js gated) ================= */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

.js h2.reveal, .js .privacy h3.reveal {
  font-variation-settings: 'wght' 430;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out),
              font-variation-settings 0.8s var(--ease-out);
}
.js h2.reveal.in, .js .privacy h3.reveal.in { font-variation-settings: 'wght' 700; }

/* scroll-driven: lean into the screen as you scroll (progressive enhancement) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .laptop {
      animation: lean linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
    @keyframes lean {
      to { transform: translateY(3.5rem) scale(1.05); }
    }
  }
}

/* ================= responsive ================= */

@media (max-width: 1020px) {
  .nav-right ul { display: none; }
}

@media (max-width: 900px) {
  .figure { grid-template-columns: 1fr; gap: 1.6rem; }
  .anno-col { flex-direction: row; flex-wrap: wrap; gap: 1rem 2rem; padding: 0; }
  .anno-col--left { align-items: flex-start; text-align: left; order: 2; }
  .anno-col--left .anno, .anno-col--right .anno { padding: 0; }
  .anno::after { display: none; }
  .anno-col--right { order: 3; }
  .figure-shot { order: 1; }
  .actions-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .limits-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 700px) {
  .stage { width: 94vw; }
  .hero-copy {
    position: static;
    padding: 2.2rem 1.25rem 0;
  }
}

@media (max-width: 640px) {
  .hero h1 br { display: none; }
  .mb-cta { display: none; }
  .screen { overflow: visible; }
  .screen-menubar { border-radius: 10px 10px 0 0; }
  .notch-demo { width: 58%; }
  .island-img { width: min(94vw, 480px); z-index: 20; }
  footer nav { margin-left: 0; }
}

/* ================= reduced motion ================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  .js h2.reveal, .js .privacy h3.reveal { font-variation-settings: 'wght' 700; transition: none; }
  .marquee ul { animation: none; flex-wrap: wrap; justify-content: flex-start; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .island-img, .bar-img, .btn, .mb-cta, .faq summary::after, .laptop { transition: none; }
}

/* ================= the app, rebuilt in CSS =================
   Faithful recreation of NotchViber's bar + island with fictional session data.
   em-based sizing throughout: scale by setting font-size on the root. */

.vi-bar, .vi {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Geist', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.vi-bar b, .vi b { font-weight: 640; }
.vi-bar em, .vi em { font-style: normal; font-weight: 620; }
.g { color: #45de85; }
.p { color: #c08cfc; }
.dim { color: #83828e; font-weight: 400; }

.vi-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 2.55em;
  font-size: clamp(10px, 1.28vw, 13.5px);
  background: #050507;
  border-radius: 0 0 0.9em 0.9em;
  padding: 0 1em;
  color: #f4f4f6;
}
.vi-bar .wing { display: inline-flex; align-items: center; gap: 0.5em; }
.vi-bar .gap { flex: 0 0 30%; }
.ring {
  width: 1.05em;
  height: 1.05em;
  border-radius: 50%;
  border: 0.16em solid #23233a;
  border-top-color: #5f8bf7;
  border-right-color: #5f8bf7;
  display: inline-block;
  animation: vi-spin 1.8s linear infinite;
}
@keyframes vi-spin { to { transform: rotate(360deg); } }
.dot { width: 0.55em; height: 0.55em; border-radius: 50%; display: inline-block; flex: none; }
.dot.b { background: #5f8bf7; }
.dot.c { background: #67e2e6; }
.bc { color: #5f8bf7; font-size: 0.9em; }

.vi {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  width: 100%;
  background: #08080b;
  border-radius: 0 0 1.5em 1.5em;
  padding: 0.75em 1.05em 0.9em;
  color: #f4f4f6;
  text-align: left;
  box-shadow: inset 0 0 0 1px #17171d;
}
.vi > * { display: flex; align-items: center; gap: 0.55em; min-width: 0; }

.vi-top { font-size: 0.95em; }
.vi-spark { color: #f0a24b; font-size: 1.05em; }
.vi-top .sp { flex: 1; }
.vi-top > * { flex: none; }

.vi-done {
  background: rgba(69, 222, 133, 0.09);
  border-radius: 0.75em;
  padding: 0.5em 0.75em;
}
.vi-check {
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: #2fc465;
  color: #06180c;
  display: grid;
  place-items: center;
  font-size: 0.85em;
  font-weight: 700;
  flex: none;
}
.vi-done .t { flex: 1; min-width: 0; display: block; }
.vi-done .t b { display: block; font-size: 0.92em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vi-done .t i { font-style: normal; display: block; color: #45de85; font-size: 0.8em; line-height: 1.3; }

.vi-avatar {
  width: 2em;
  height: 2em;
  border-radius: 0.55em;
  background: linear-gradient(165deg, #262645, #141422);
  color: #f0a24b;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: inset 0 0 0 1px #26263a;
}
.vi-main { flex: 1; min-width: 0; display: block; }
.vi-main b { display: block; font-size: 0.98em; line-height: 1.32; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vi-main i { font-style: normal; display: block; color: #6b93f8; font-size: 0.83em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vi-row > b {
  flex: 1;
  min-width: 0;
  font-size: 0.92em;
  font-weight: 590;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vi-chip {
  font-size: 0.7em;
  background: #1c1c23;
  color: #b7b7c1;
  padding: 0.3em 0.65em;
  border-radius: 0.55em;
  white-space: nowrap;
  flex: none;
}
.vi-chip.g { background: rgba(69, 222, 133, 0.13); color: #45de85; }
.vi-arrow {
  width: 1.6em;
  height: 1.6em;
  border-radius: 0.5em;
  background: #1c1c23;
  color: #9a9aa6;
  display: grid;
  place-items: center;
  font-size: 0.78em;
  flex: none;
}
.vi-foot { color: #6d6c79; font-size: 0.72em; margin-top: 0.1em; }
.vi .dim { font-size: 0.78em; flex: none; }

/* placements */
.notch-demo .vi-bar { border-radius: 0 0 0.9em 0.9em; }
.figure .vi {
  font-size: clamp(11px, 1.05vw, 14.5px);
  border-radius: 1em 1em 1.5em 1.5em;
}
.action .vi-done {
  margin-top: 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Geist', sans-serif;
  font-size: 13px;
  background: color-mix(in srgb, #45de85 8%, #0b0b0f);
  box-shadow: inset 0 0 0 1px #1a2a20;
  display: flex;
  align-items: center;
  gap: 0.55em;
}

@media (prefers-reduced-motion: reduce) {
  .ring { animation: none; }
}

/* hero sizing for the CSS island */
.notch-demo .island-img.vi { width: 140%; font-size: clamp(9.5px, 1.2vw, 13.5px); }
@media (max-width: 640px) {
  .notch-demo .island-img.vi { width: min(94vw, 480px); font-size: 10.5px; }
}

/* Safari belt-and-braces: never let recreated app text inherit UA colors */
.vi, .vi-bar { color: #f4f4f6; }
.vi b, .vi-bar b { color: #f4f4f6; }
.vi { background: #08080b; }
.vi-bar { background: #050507; }

/* ================= guide pages ================= */

.article {
  padding: calc(64px + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(4rem, 8vw, 6rem);
}
.article .wrap { max-width: 760px; }
.crumbs {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--faint);
  margin-bottom: 1.6rem;
}
.crumbs a { color: var(--faint); }
.crumbs a:hover { color: var(--text); }
.article h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.article .intro {
  margin-top: 1.3rem;
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--muted);
}
.prose { margin-top: 2.2rem; }
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 670;
  letter-spacing: -0.024em;
  line-height: 1.2;
  margin: 2.6rem 0 0.9rem;
}
.prose h3 {
  font-size: 1.12rem;
  font-weight: 640;
  letter-spacing: -0.015em;
  margin: 1.9rem 0 0.6rem;
}
.prose p { color: var(--muted); margin-bottom: 1rem; max-width: 68ch; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.3rem; color: var(--muted); }
.prose li { margin-bottom: 0.45rem; }
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: oklch(100% 0 0 / 0.06);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}
.prose pre {
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-i);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin-bottom: 1.1rem;
}
.prose pre code { background: none; padding: 0; font-size: 0.82rem; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.4rem 0;
  display: block;
  overflow-x: auto;
}
.prose th, .prose td {
  text-align: left;
  padding: 0.55rem 0.9rem 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  white-space: nowrap;
}
.prose th { color: var(--text); font-weight: 600; font-size: 0.82rem; }
.prose td:first-child, .prose th:first-child { color: var(--text); }

.cta-banner {
  margin: 3rem 0 0;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background:
    radial-gradient(80% 120% at 50% -20%, oklch(45% 0.1 265 / 0.25), transparent 70%),
    var(--bg-deep);
  padding: 2rem;
  text-align: center;
}
.cta-banner p {
  color: var(--muted);
  max-width: 46ch;
  margin: 0.4rem auto 1.4rem;
}
.cta-banner .h {
  font-size: 1.35rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  color: var(--text);
}
.article .faq-list { margin-top: 1rem; }
.article .faq-h {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 670;
  letter-spacing: -0.024em;
  margin-top: 3rem;
}

.footer-guides {
  flex-basis: 100%;
  display: flex;
  gap: 0.5rem 1.4rem;
  flex-wrap: wrap;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-soft);
}
.footer-guides a { color: var(--faint); font-size: 0.85rem; }
.footer-guides a:hover { color: var(--text); }

.footer-legal {
  display: flex;
  gap: 1.4rem;
}
.footer-legal a { color: var(--faint); font-size: 0.85rem; }
.footer-legal a:hover { color: var(--text); }
.legal .prose p { max-width: 72ch; }
.legal h1 { margin-bottom: 0.4rem; }
