/* HeiHei Talk marketing site, cinematic variant.
   Layout concept: a dark screening room. Full-bleed chapters, oversized type,
   and one light source: the yellow Hold to Talk button, which glows and sends
   out talk rings. Everything else stays quiet. Dark by default; a light
   version follows the visitor's system setting or the viewer's theme. */

:root {
  --bg: #050506;
  --bg-2: #0d0d10;
  --surface: #131317;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --muted: #9a9aa3;
  --accent: #ffd60a;
  --glow: #ff9f0a;
  --on-accent: #000000;
  --available: #30d158;
  --accent-text: #ffd60a;
  --fill: rgba(255, 255, 255, .055);
  --fill-2: rgba(255, 255, 255, .015);
  --chip: rgba(255, 255, 255, .07);
  --underline: rgba(255, 255, 255, .35);
  --header-bg: rgba(5, 5, 6, .72);
  --prose: #d8d8de;
  --glow-1: rgba(255, 159, 10, .22);
  --glow-2: rgba(255, 214, 10, .18);
  --shadow: rgba(0, 0, 0, .9);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1200px;
  --prose-w: 700px;
  color-scheme: dark;
}

/* Light version: same chapters and the same glowing button, on daylight paper */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f6f8; --bg-2: #ececf0; --surface: #ffffff;
    --line: rgba(10, 10, 20, .1); --text: #0b0b0f; --muted: #5c5c66;
    --accent-text: #9a6200; --glow: #ff9f0a; --available: #248a3d;
    --fill: rgba(255, 255, 255, .95); --fill-2: rgba(255, 255, 255, .7);
    --chip: rgba(10, 10, 20, .06); --underline: rgba(10, 10, 20, .3);
    --header-bg: rgba(246, 246, 248, .78); --prose: #2b2b33;
    --glow-1: rgba(255, 159, 10, .20); --glow-2: rgba(255, 214, 10, .28);
    --shadow: rgba(30, 20, 0, .35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f6f8; --bg-2: #ececf0; --surface: #ffffff;
  --line: rgba(10, 10, 20, .1); --text: #0b0b0f; --muted: #5c5c66;
  --accent-text: #9a6200; --glow: #ff9f0a; --available: #248a3d;
  --fill: rgba(255, 255, 255, .95); --fill-2: rgba(255, 255, 255, .7);
  --chip: rgba(10, 10, 20, .06); --underline: rgba(10, 10, 20, .3);
  --header-bg: rgba(246, 246, 248, .78); --prose: #2b2b33;
  --glow-1: rgba(255, 159, 10, .20); --glow-2: rgba(255, 214, 10, .28);
  --shadow: rgba(30, 20, 0, .35);
  color-scheme: light;
}

*, *::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(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--underline); }
a:hover { text-decoration-color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header: floats over the hero, frosted once you scroll past it */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Buttons and badges */

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 650; text-decoration: none;
  box-shadow: 0 0 0 0 rgba(255, 214, 10, 0), 0 10px 40px -10px rgba(255, 214, 10, .55);
  transition: transform .2s, box-shadow .2s;
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 14px 50px -10px rgba(255, 214, 10, .75); }
.pill.secondary { background: var(--chip); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--chip); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--available); box-shadow: 0 0 10px var(--available); }

.eyebrow { color: var(--accent-text); font-size: 13px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }

/* Hero: the watch is the light source */

.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(64px, 10vw, 128px) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(60% 70% at 72% 45%, var(--glow-1), transparent 60%),
    radial-gradient(40% 50% at 72% 45%, var(--glow-2), transparent 70%),
    var(--bg);
}
.hero::after { /* film grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero .wrap > div { min-width: 0; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(48px, 8.4vw, 112px); line-height: .95; letter-spacing: -0.045em; font-weight: 750;
  margin: 22px 0 26px; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent-text); text-shadow: 0 0 40px rgba(255, 214, 10, .35); }
.hero p.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); margin: 0 0 34px; max-width: 32em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Short heroes (blog index) */
.hero.short { padding-block: 72px 32px; }
.hero.short .wrap { grid-template-columns: 1fr; }
.hero.short h1 { font-size: clamp(44px, 7vw, 84px); }

/* A drawn Apple Watch showing the Session screen (W-3), with talk rings */
.watch {
  justify-self: center; position: relative;
  width: min(300px, 78vw); aspect-ratio: 0.84; border-radius: 26%/22%;
  background: #000; border: 12px solid #1d1d20;
  box-shadow: 0 0 0 2px #333338 inset, 0 0 0 1px #3a3a3f, 0 60px 120px -30px rgba(255, 159, 10, .45), 0 30px 60px -20px var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 26px 18px 22px; color: #fff;
}
.watch::after { /* digital crown */
  content: ""; position: absolute; right: -22px; top: 22%;
  width: 10px; height: 52px; border-radius: 5px; background: linear-gradient(90deg, #2a2a2e, #4a4a50);
}
.watch .who { font-family: var(--display); font-size: 21px; font-weight: 650; }
.watch .talk {
  position: relative; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe766, #ffd60a 55%, #e6b800);
  color: #000; display: flex; align-items: center; justify-content: center;
  font-weight: 750; font-size: 17px;
  box-shadow: 0 0 0 6px #000, 0 0 0 10px var(--glow), 0 0 60px 10px rgba(255, 214, 10, .45);
}
.watch .talk::before, .watch .talk::after { /* talk rings leaving the button */
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(255, 214, 10, .6);
  animation: ring 2.6s cubic-bezier(.2,.6,.3,1) infinite;
}
.watch .talk::after { animation-delay: 1.3s; }
@keyframes ring {
  from { transform: scale(1); opacity: .9; }
  to { transform: scale(2.1); opacity: 0; }
}
.watch .talk svg { width: 100%; height: 100%; display: block; }
.watch .talk .wave rect { transform-box: fill-box; transform-origin: center; animation: voice 1.1s ease-in-out infinite; }
.watch .talk .wave rect:nth-child(2), .watch .talk .wave rect:nth-child(4) { animation-delay: -.35s; }
.watch .talk .wave rect:nth-child(3) { animation-delay: -.7s; }
@keyframes voice { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
.watch .talk .label { font: 600 14px var(--body); fill: #000; letter-spacing: .01em; }
.watch .status { font-size: 13px; color: #98989f; }
@media (prefers-reduced-motion: reduce) { .watch .talk::before, .watch .talk::after { animation: none; opacity: 0; } .watch .talk .wave rect { animation: none; } }

/* Chapters */

section.band { position: relative; padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
section.band h2 {
  font-family: var(--display);
  font-size: clamp(34px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 720;
  margin: 0 0 18px; text-wrap: balance; max-width: 16em;
}
section.band p.sub { color: var(--muted); font-size: clamp(18px, 1.7vw, 22px); margin: 0 0 48px; max-width: 34em; }
section.band.center { text-align: center; }
section.band.center h2, section.band.center p.sub { margin-left: auto; margin-right: auto; }

/* The Walkie-Talkie chapter: a title card */
section.band.marquee {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(255, 214, 10, .10), transparent 70%),
    var(--bg-2);
}
.marquee h2 { font-size: clamp(42px, 7.6vw, 104px) !important; max-width: 12em !important; }
.marquee h2 span { color: var(--muted); }
.marquee .credits {
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center;
  color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 40px;
}
.marquee .credits b { color: var(--text); font-weight: 650; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, 1fr); gap: 56px; align-items: center; }
.grid > * { min-width: 0; }
.card {
  position: relative; border-radius: 24px; padding: 30px 28px;
  background: linear-gradient(180deg, var(--fill), var(--fill-2));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .35), 0 20px 60px -30px rgba(255, 214, 10, .35); }
.card h3 { margin: 0 0 10px; font-family: var(--display); font-size: 21px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); margin-bottom: 20px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.steps li > div { min-width: 0; }
.steps li::before {
  content: counter(step); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 214, 10, .14); color: var(--accent-text); font-weight: 750; font-size: 19px;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .45);
  display: flex; align-items: center; justify-content: center;
}
.steps strong { display: block; font-size: 19px; margin-bottom: 4px; }
.steps span { color: var(--muted); }

.notice {
  border-radius: 20px; padding: 22px 24px; margin: 36px 0;
  background: linear-gradient(120deg, rgba(255, 214, 10, .14), rgba(255, 159, 10, .05));
  box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .3);
}
.notice p { margin: 0; }

/* Scroll-driven entrance: content is always visible; it only drifts into place */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    section.band > .wrap {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    @keyframes rise { from { transform: translateY(48px); } to { transform: none; } }
  }
}

/* Blog */

.post-list { display: grid; gap: 16px; }
.post-card {
  display: block; text-decoration: none; border-radius: 24px; padding: 30px 30px 28px;
  background: linear-gradient(180deg, var(--fill), var(--fill-2));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s;
}
.post-card:hover { box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .4); }
.post-card h3 { margin: 8px 0 10px; font-family: var(--display); font-size: clamp(21px, 2.2vw, 28px); line-height: 1.18; letter-spacing: -0.02em; }
.post-card p { margin: 0; color: var(--muted); }
.meta { color: var(--accent-text); font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }

article.post {
  max-width: var(--prose-w); margin: 0 auto;
  padding-block: clamp(64px, 9vw, 120px) 96px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
article.post h1 {
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 740;
  margin: 14px 0 22px; text-wrap: balance;
}
article.post .dek { font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--muted); margin: 0 0 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
article.post h2 { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.025em; margin: 64px 0 14px; text-wrap: balance; }
article.post p, article.post li { font-size: 18px; color: var(--prose); }
article.post strong { color: var(--text); }
article.post ul, article.post ol { padding-left: 1.3em; }
article.post li { margin: 8px 0; }
article.post li::marker { color: var(--accent-text); }
article.post blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.sources { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 64px; padding-top: 24px; }
.sources li, .sources p { font-size: 15px !important; color: var(--muted) !important; }

table.compare { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 16px; }
table.compare th, table.compare td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare th { color: var(--muted); font-weight: 600; }

/* FAQ */

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em;
  padding: 20px 40px 20px 0; position: relative; transition: color .2s;
}
.faq summary:hover { color: var(--accent-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--accent-text); }
.faq details p { margin: 0 0 22px; color: var(--muted) !important; }
.faq details p a { color: var(--text); }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding-block: 44px 56px; color: var(--muted); font-size: 13px; background: var(--bg); }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .grid.two { gap: 40px; }
  .nav { gap: 16px; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .watch::after { right: -18px; }
}

/* App Store call to action in the header */
.nav-cta {
  color: var(--on-accent) !important; background: var(--accent);
  padding: 6px 14px; border-radius: 999px; font-weight: 650;
}
.nav-cta:hover { filter: brightness(1.05); }
a.soon { text-decoration: none; }
a.soon:hover { color: var(--text); }
@media (max-width: 520px) { .nav a[href$="#how"] { display: none; } }
