/* Look follows the EON marketing draft: paper + ink, Sora display, Manrope UI,
   the EON spectrum on emphasis, dark glass pill buttons. */
@font-face { font-family: Sora; src: url("assets/fonts/Sora-Variable.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: Manrope; src: url("assets/fonts/Manrope-Variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  --paper: #faf9f6;
  --ink: #202230;
  --muted: #787784;
  --line: #dedce5;
  --lilac: #9b86ce;
  --blue: #6b9cdd;
  --pink: #d99fbd;
  --navy: #1d2540;
  --red: #e5484d;
  --muted-red: #d93636;
  --spectrum: linear-gradient(100deg, #0e389d 0%, #4d9fea 23%, #b292ec 46%, #e794cf 67%, #fa70a5 84%, #e93b2f 100%);
  --display: Sora, Manrope, sans-serif;
  --ui: Manrope, -apple-system, "Segoe UI", sans-serif;
  --shell: 1200px;
  --header: 76px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
.shell { width: min(100% - 48px, var(--shell)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -.035em; margin: 0; font-weight: 600; }
h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; }
h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.06; }
h3 { font-size: 20px; letter-spacing: -.02em; }
p { margin: 0; }
.spectrum {
  background-image: var(--spectrum);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-weight: 800; text-transform: uppercase; letter-spacing: -.05em; font-size: .86em;
}
.eyebrow { font: 700 11px/1 var(--ui); letter-spacing: .14em; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 13px; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 26px; border-radius: 100px; border: 1px solid transparent;
  font: 700 15px/1 var(--ui); letter-spacing: -.015em; text-decoration: none;
  transition: translate .2s, box-shadow .2s;
}
.button-dark {
  background: linear-gradient(135deg, #252a40, #393046); color: #fff; border-color: #ffffff66;
  box-shadow: inset 0 1px 0 #ffffff6b, inset 0 -1px 0 #0003, 0 7px 18px #2e233626;
}
.button-dark:not(:disabled):hover { translate: 0 -1px; box-shadow: inset 0 1px 0 #ffffff6b, 0 12px 26px #2e233640; }
.button-small { padding: 11px 18px; font-size: 13px; }
.button-call { padding: 18px 30px; font-size: 16px; }
.button-call svg { width: 18px; height: 18px; fill: currentColor; }
.g-mark { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #4d6fea; display: grid; place-items: center; font: 800 13px/1 var(--ui); }
.text-button { border: 0; background: none; padding: 8px 4px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.text-button.inline { padding: 0; font-size: inherit; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; height: var(--header);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid #dedce566;
}
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 26px; width: auto; }
nav { display: flex; gap: 32px; font-size: 14px; font-weight: 600; }
nav a { text-decoration: none; color: #3a3b4a; }
nav a:hover { color: var(--ink); }
.header-end { display: flex; align-items: center; gap: 12px; }
.badge { font: 700 10px/1 var(--ui); text-transform: uppercase; letter-spacing: .1em; padding: 5px 9px; border-radius: 999px; background: #efe9fb; color: #6a55a8; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 40px 0 72px;
  background:
    radial-gradient(40% 50% at 82% 30%, #dfe9fb 0%, transparent 70%),
    radial-gradient(35% 45% at 95% 75%, #f6dcec 0%, transparent 70%),
    radial-gradient(40% 50% at 10% 100%, #ece5fb 0%, transparent 70%);
}
.waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-copy .eyebrow { margin-bottom: 0; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fbf7f; box-shadow: 0 0 0 4px #3fbf7f26; }
.lede { font-size: 18px; color: #4b4c5c; max-width: 34em; }

.panels { min-height: 168px; padding-top: 6px; }
.panel { display: none; flex-direction: column; align-items: flex-start; gap: 14px; animation: rise .35s ease both; }
.panel.active { display: flex; }
@keyframes rise { from { opacity: 0; translate: 0 6px; } }
.panel-title { font: 600 20px/1.3 var(--display); letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.check {
  display: flex; gap: 12px; align-items: flex-start; max-width: 32em;
  padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  font-size: 15px; cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #393046; flex: none; }
.prompts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; max-width: 34em; }
.prompts li { padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.honesty { font-size: 13px; color: var(--muted); padding-left: 12px; border-left: 2px solid var(--lilac); max-width: 34em; }

.dots { display: inline-flex; gap: 6px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--lilac); animation: blink 1.2s infinite ease-in-out; }
.dots span:nth-child(2) { animation-delay: .15s; background: var(--blue); }
.dots span:nth-child(3) { animation-delay: .3s; background: var(--pink); }
.dots.small span { width: 6px; height: 6px; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- phone: iPhone X at its native size ----------
   375 x 812 pt screen in a 426 x 863 body (4.25 mm bezel at 458 ppi). It shrinks only
   when the window is too short. Inside, --pt is one iOS point, so the overlays keep
   the app's proportions at any scale. The video fills the screen (cover), as the app does. */
.device-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.device {
  position: relative; container-type: inline-size;
  width: min(100%, 426px, calc((100svh - var(--header) - 90px) * 426 / 863));
  aspect-ratio: 426 / 863;
  border-radius: 15.1% / 7.45%;
  background: #0b0b0d;
  box-shadow:
    inset 0 0 0 1.5px #3b3b40,
    0 0 0 2.5px #c4c4cb, 0 0 0 4px #8f8f97,
    0 50px 90px -40px #3b2f5a80, 0 24px 44px -24px #20223070;
}
/* side buttons: power right, volume left */
.device::before, .device::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #8f8f97, #c4c4cb); }
.device::before { right: -7px; top: 21%; height: 11.5%; }
.device::after { left: -7px; top: 18%; height: 15%; }
.screen {
  --pt: calc(100cqw / 426);
  position: absolute; inset: 2.95% 5.99%;
  border-radius: calc(39 * var(--pt)); overflow: hidden; background: #0d0d10;
}
#replica { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
/* pre-call screen, iOS-call style: portrait over a blurred, darkened backdrop of the same photo */
.lobby {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  padding-top: calc(150 * var(--pt)); color: #fff; text-align: center; transition: opacity .6s;
  background: linear-gradient(#0d0d1080, #0d0d10d9), url(assets/echo-backdrop.webp) center / cover;
}
.avatar { position: relative; width: calc(128 * var(--pt)); aspect-ratio: 1; border-radius: 50%; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 calc(3 * var(--pt)) #ffffff26; }
.avatar::before, .avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #ffffff80; opacity: 0; }
.lobby-name { margin: calc(22 * var(--pt)) 0 0; font: 600 calc(30 * var(--pt))/1.1 var(--display); letter-spacing: -.02em; }
.lobby-sub { margin: calc(8 * var(--pt)) 0 0; font-size: calc(15 * var(--pt)); color: #ffffffb3; }
.when-connecting { display: none; }
.device[data-phone="connecting"] .when-idle { display: none; }
.device[data-phone="connecting"] .when-connecting { display: inline; }
.device[data-phone="connecting"] .avatar::before, .device[data-phone="connecting"] .avatar::after { animation: ring 2s ease-out infinite; }
.device[data-phone="connecting"] .avatar::after { animation-delay: 1s; }
@keyframes ring { from { opacity: .8; scale: 1; } to { opacity: 0; scale: 1.6; } }
@media (prefers-reduced-motion: reduce) { .avatar::before, .avatar::after { animation: none !important; } }
.scrim { position: absolute; inset: 0 0 auto; height: calc(110 * var(--pt)); background: linear-gradient(#00000073, transparent); pointer-events: none; }
.notch {
  position: absolute; top: 0; left: 50%; translate: -50% 0;
  width: calc(209 * var(--pt)); height: calc(30 * var(--pt));
  background: #0b0b0d; border-radius: 0 0 calc(20 * var(--pt)) calc(20 * var(--pt));
}
.status-bar {
  position: absolute; inset: 0 0 auto; height: calc(44 * var(--pt)); padding: 0 calc(14 * var(--pt)) 0 calc(32 * var(--pt));
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; font: 600 calc(15 * var(--pt))/1 -apple-system, "SF Pro Text", var(--ui); letter-spacing: -.01em;
}
.status-icons { display: flex; align-items: center; gap: calc(4 * var(--pt)); }
.status-icons svg { height: calc(11 * var(--pt)); width: auto; fill: #fff; }
.home-bar { position: absolute; bottom: calc(8 * var(--pt)); left: 50%; translate: -50% 0; width: calc(134 * var(--pt)); height: calc(5 * var(--pt)); border-radius: 3px; background: #ffffffd9; }
.pill {
  position: absolute; top: calc(54 * var(--pt)); left: 50%; translate: -50% 0; display: flex; gap: calc(6 * var(--pt));
  padding: calc(7 * var(--pt)) calc(14 * var(--pt)); border-radius: 999px; background: #00000059; color: #fff;
  font-size: calc(14 * var(--pt)); font-weight: 600; white-space: nowrap; backdrop-filter: blur(8px);
}
#clock { font-variant-numeric: tabular-nums; }
#clock.low { color: #ffd38a; }
.call-only { display: none !important; }
.dock { position: absolute; left: 0; right: 0; bottom: calc(40 * var(--pt)); justify-content: center; align-items: center; gap: calc(22 * var(--pt)); }
.circle { border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
#mic { width: calc(58 * var(--pt)); height: calc(58 * var(--pt)); background: #00000066; backdrop-filter: blur(8px); }
#mic.off { background: var(--muted-red); }
.hangup { width: calc(68 * var(--pt)); height: calc(68 * var(--pt)); background: var(--red); }
.circle svg { width: calc(26 * var(--pt)); height: calc(26 * var(--pt)); fill: currentColor; }
.hangup svg { width: calc(30 * var(--pt)); height: calc(30 * var(--pt)); }
#idle-banner {
  position: absolute; left: calc(14 * var(--pt)); right: calc(14 * var(--pt)); bottom: calc(128 * var(--pt));
  display: flex; gap: calc(10 * var(--pt)); align-items: center;
  padding: calc(12 * var(--pt)); border-radius: calc(14 * var(--pt)); background: #141418e0; color: #fff;
  font-size: calc(14 * var(--pt)); line-height: 1.35;
}
#idle-banner[hidden] { display: none; }
#idle-banner button { flex: none; border: 0; border-radius: 999px; padding: calc(8 * var(--pt)) calc(13 * var(--pt)); background: #fff; color: #111; font-weight: 700; font-size: calc(14 * var(--pt)); }
.device-caption { font: 600 13px/1 var(--display); color: var(--muted); letter-spacing: .02em; }

.device:not([data-phone="call"]) .pill { display: none; }
.device[data-phone="call"] .lobby { opacity: 0; }
.device[data-phone="call"] #replica { opacity: 1; }
.device[data-phone="call"] .call-only { display: flex !important; }
.device[data-phone="call"] .pill .call-only { display: inline !important; }

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.cards { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 30px 28px 32px; border-radius: 24px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.card p { color: #55566a; }
.card-num { font: 700 12px/1 var(--ui); letter-spacing: .1em; background-image: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }

.dark-band { background: radial-gradient(70% 90% at 80% 0%, #2c3a63 0%, var(--navy) 55%, #191c2e 100%); color: #eef0f8; }
.dark-band .eyebrow { color: #b8c3e6; }
.dark-band h2 { color: #fff; }
.facts { margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.facts div { padding-top: 22px; border-top: 1px solid #ffffff2e; }
.facts dt { font: 600 18px/1.3 var(--display); letter-spacing: -.02em; color: #fff; margin-bottom: 10px; }
.facts dd { margin: 0; color: #b9bdd0; font-size: 15px; }

.story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.story-photo { margin: 0; position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -30px #20223066; }
.story-photo figcaption { position: absolute; left: 20px; bottom: 18px; font: 700 11px/1 var(--ui); letter-spacing: .14em; color: #fff; text-shadow: 0 1px 8px #0008; }
.story-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.story-copy .eyebrow { margin-bottom: 0; }
.story-copy p { color: #4b4c5c; }
.story-intro { font-size: 18px; color: var(--ink) !important; }
.story-closing { font: 600 18px/1.4 var(--display); color: var(--ink) !important; letter-spacing: -.02em; }
.signoff { display: flex; flex-direction: column; margin-bottom: 8px; }
.signoff span { color: var(--muted); font-size: 14px; }

.faq { max-width: 860px; padding-top: 32px; }
.faq h2 { margin-bottom: 36px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 600 18px/1.35 var(--display); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 24px; font-weight: 300; color: var(--muted); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 40px 22px 0; color: #55566a; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-row img { height: 24px; width: auto; margin-bottom: 8px; }
.footer-links { display: flex; gap: 28px; font-weight: 600; font-size: 14px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 32px; color: var(--muted); font-size: 13px; }
#log { width: min(100% - 48px, 960px); margin: 0 auto 24px; white-space: pre-wrap; font: 12px ui-monospace, monospace; background: #f0eef5; padding: 10px 14px; max-height: 220px; overflow: auto; border-radius: 10px; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  nav { display: none; }
  .hero { padding: 32px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .device-wrap { order: -1; }
  .device { width: min(100%, 360px); }
  .panels { min-height: 0; }
  .waves { display: none; }
  .cards, .facts { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .header-end .button { display: none; }
  .cards, .facts { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; }
}
