/* =========================================================
   InterviewOnCue layer on top of the template's <style> block.
   The template stays untouched (check.mjs compares it byte-for-byte);
   everything here refines it: theme, type, spacing, the live phones and motion.
   Pages work fully without this file and without site.js.
========================================================= */

/* ---------- Type: SF Pro on Apple devices, Inter everywhere else ---------- */
@font-face {
  font-family: "Inter Var";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Theme ---------- */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter Var", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --rec: #ff3b30;                   /* iOS system red */
  --go: #30d158;                    /* iOS system green */
  --wait: #ff9f0a;                  /* iOS system orange */
  --spring-soft: linear(0, .2 5%, .55 12%, .84 20%, 1.01 29%, 1.04 35%, 1.02 44%, 1 60%, 1);
}
@media (prefers-color-scheme: light) {
  :root {
    --accent: #0a7366;               /* calm teal: 5.6:1 on white */
    --accent-soft: rgba(10, 115, 102, .10);
    --mute: #56565c;                  /* a touch darker than the template for easier reading */
    --beige: #f0efeb;
    --sep: rgba(60, 60, 67, .13);
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06), 0 24px 56px rgba(0, 0, 0, .06);
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #45d3c2;
    --accent-soft: rgba(69, 211, 194, .16);
    --mute: #a9a9b0;
  }
}

body {
  font-feature-settings: "cv11", "ss01", "ss03";   /* Inter: single-storey a, open digits; ignored by SF */
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, .glass-card strong, .card-row strong, .logo { font-feature-settings: "cv11", "ss01", "ss03", "kern"; }
.kicker { letter-spacing: -.005em; }
.hero h1 { letter-spacing: -.04em; font-weight: 700; }
.lead { line-height: 1.58; }
.feature-copy p, .faq-list .answer { line-height: 1.62; }

/* ---------- Spacing rhythm ---------- */
@media (min-width: 901px) {
  .hero-wrap { padding-block: 24px 48px; }
  .logos { padding-block: 24px 72px; }
  .feature-wrap { padding-block: 0 64px; }
  .directory { padding-block: 72px 112px; }
  .faq { padding-block: 32px 120px; }
  .hero-copy { padding: clamp(40px, 5.5vw, 80px); }
}
.logo-row li { opacity: .72; }
.byline { margin-top: 14px; font-size: .86rem; color: var(--mute); }
.byline time { white-space: nowrap; }
.logos-cap { margin: 0 auto 22px; text-align: center; color: var(--mute); font-size: .82rem; letter-spacing: .01em; }
@media (min-width: 901px) { .logos-cap { margin-bottom: 28px; } }
.logo-row li:hover { opacity: 1; }

/* ---------- Buttons: soft press like iOS ---------- */
.pill { transition: opacity .2s, filter .2s, transform .5s var(--spring-soft); }
.pill:active { transform: scale(.96); transition-duration: .12s; }
.card { will-change: transform; }
.card:active { transform: scale(.985); }
@media (hover: hover) { .card:hover { transform: translateY(-4px); } }

/* =========================================================
   LIVE PHONE
   Replaces the old SVG phones. Scales with its own width (cqi units),
   bleeds off the bottom of the feature card like the template's art.
========================================================= */
.device {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 420 / 520;
  overflow: visible;            /* the feature card clips the bottom, so the shadow isn't boxed in */
  align-self: end;
  justify-self: center;
}
.phone {
  position: absolute; left: 7%; right: 7%; top: 3.2%;
  height: 128%;
  padding: 2.3cqi;
  border-radius: 15.5cqi;
  background: #050505;
  box-shadow:
    0 0 0 .45cqi #3a3a3c,                       /* titanium edge */
    0 0 0 .8cqi #121214,
    inset 0 0 0 .35cqi #1c1c1e,
    0 4cqi 10cqi -2cqi rgba(0, 0, 0, .28),
    0 18cqi 40cqi -10cqi rgba(0, 0, 0, .35);
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.phone-screen {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  padding: 4.2cqi 6.2cqi 0;
  border-radius: 13.4cqi;
  background: #000;
  color: #fff;
  font-family: var(--font);
  font-feature-settings: "tnum", "cv11";
  overflow: hidden;
}
.ph-status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 8.4cqi; }
.ph-clock { font-size: 4.4cqi; font-weight: 600; letter-spacing: -.01em; padding-left: 2cqi; }
.ph-island { width: 26cqi; height: 7.6cqi; border-radius: 99px; background: #000; box-shadow: inset 0 0 0 .3cqi #1f1f22; }
.ph-sig { justify-self: end; display: flex; align-items: flex-end; gap: .55cqi; height: 3.4cqi; padding-right: 2cqi; }
.ph-sig i { width: .95cqi; border-radius: .3cqi; background: #fff; }
.ph-sig i:nth-child(1) { height: 35%; } .ph-sig i:nth-child(2) { height: 55%; }
.ph-sig i:nth-child(3) { height: 78%; } .ph-sig i:nth-child(4) { height: 100%; }

.ph-pill {
  align-self: center;
  display: inline-flex; align-items: center; gap: 2.6cqi;
  margin-top: 5.6cqi;
  padding: 1.5cqi 3.4cqi 1.5cqi 1.5cqi;
  border-radius: 99px;
  background: #fff; color: #1d1d1f;
  font-size: 4.5cqi; font-weight: 600; letter-spacing: -.015em; line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1cqi 4cqi rgba(255, 255, 255, .08);
}
.ph-rec { width: 7.4cqi; height: 7.4cqi; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, var(--rec) 32%); }
.ph-eq { display: flex; align-items: center; gap: .75cqi; height: 4.6cqi; }
.ph-eq i { width: .95cqi; height: 100%; border-radius: 1cqi; background: var(--rec); transform-origin: center; }
.ph-eq i:nth-child(1) { transform: scaleY(.45); } .ph-eq i:nth-child(2) { transform: scaleY(.8); } .ph-eq i:nth-child(3) { transform: scaleY(1); }

.ph-big {
  margin-top: 6.2cqi;
  text-align: center;
  font-size: 17cqi; font-weight: 300; line-height: 1; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ph-big.m { font-size: 14cqi; }
.ph-big.l { font-size: 10.5cqi; font-weight: 400; letter-spacing: -.02em; }

.ph-prog { position: relative; height: .9cqi; margin: 6.4cqi 0 3.4cqi; border-radius: 1cqi; background: rgba(255, 255, 255, .2); overflow: hidden; }
.ph-prog span { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, .3) * 100%); border-radius: inherit; background: #fff; }

.ph-rows { list-style: none; }
.ph-rows li {
  display: grid; grid-template-columns: 17cqi minmax(0, 1fr) auto; align-items: center; gap: 3cqi;
  padding: 3.7cqi 0;
  border-bottom: .22cqi solid rgba(255, 255, 255, .14);
}
.ph-code { font-size: 3.9cqi; color: #8e8e93; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-title { font-size: 4.5cqi; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-rows .is-done .ph-title { color: rgba(255, 255, 255, .6); }
.ph-dot { position: relative; width: 2cqi; height: 2cqi; border-radius: 50%; background: #48484a; margin-right: 1cqi; }
.is-live .ph-dot { background: var(--rec); }
.is-next .ph-dot { background: var(--wait); }
.is-done .ph-dot { background: var(--go); }

/* fact-card version */
.ph-label { margin-top: 6cqi; text-align: center; font-size: 5.4cqi; font-weight: 600; line-height: 1.28; letter-spacing: -.02em; text-wrap: balance; color: #f5f5f7; }
.ph-src { margin-top: 7cqi; padding-top: 4cqi; border-top: .22cqi solid rgba(255, 255, 255, .14); text-align: center; font-size: 3.5cqi; line-height: 1.4; color: #8e8e93; text-wrap: balance; }

@media (prefers-color-scheme: dark) {
  .phone { box-shadow: 0 0 0 .45cqi #48484a, 0 0 0 .8cqi #0a0a0b, inset 0 0 0 .35cqi #1c1c1e, 0 18cqi 40cqi -10cqi rgba(0, 0, 0, .7); }
}

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* =========================================================
   MOTION (site.js adds .js to <html>; nothing hides without it)
========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* the template's scroll-timeline reveal is replaced by the JS one, so they don't double up */
  html.js .logos, html.js .feature, html.js .faq { animation: none; }

  html.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    filter: blur(6px);
    transition:
      opacity .9s var(--ease) var(--d, 0ms),
      transform 1.15s var(--spring-soft) var(--d, 0ms),
      filter .9s var(--ease) var(--d, 0ms);
  }
  html.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

  html.js .hero-media[data-reveal] { transform: scale(1.03); filter: none; }
  html.js .hero-media[data-reveal].in { transform: none; }
  html.js .hero-media > img { transform: translate3d(0, var(--hy, 0px), 0) scale(1.06); will-change: transform; }
  html.js .glass-card { transition: opacity .8s var(--ease) .5s, translate 1.1s var(--spring-soft) .5s, filter .8s var(--ease) .5s; }
  html.js .hero-media:not(.in) .glass-card { opacity: 0; translate: 0 18px; filter: blur(8px); }

  html.js .device[data-reveal] { transform: translate3d(0, 70px, 0); filter: none; transition-duration: .9s, 1.4s, 0s; }

  /* cards wait until the grid is on screen */
  html.js .grid:not(.in) > li { animation-play-state: paused; }

  /* inside the phone */
  html.js .ph-prog span { transition: width 1.6s var(--ease) .45s; }
  html.js .device:not(.in) .ph-prog span { width: 0; }
  html.js .ph-pill { transition: transform 1s var(--spring-soft) .25s, opacity .6s ease .25s; }
  html.js .device:not(.in) .ph-pill { transform: scale(.7); opacity: 0; }
  html.js .ph-rows li, html.js .ph-label, html.js .ph-src {
    transition: opacity .7s var(--ease), transform .9s var(--spring-soft);
    transition-delay: calc(.55s + var(--i, 0) * 90ms);
  }
  html.js .device:not(.in) .ph-rows li,
  html.js .device:not(.in) .ph-label,
  html.js .device:not(.in) .ph-src { opacity: 0; transform: translate3d(0, 4cqi, 0); }
  .ph-label { --i: 1; } .ph-src { --i: 3; }

  .device.in .ph-eq i { animation: ph-eq .9s ease-in-out infinite alternate; }
  .device.in .ph-eq i:nth-child(2) { animation-delay: -.35s; }
  .device.in .ph-eq i:nth-child(3) { animation-delay: -.7s; }
  @keyframes ph-eq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
  .device.in .is-live .ph-dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--rec);
    animation: ph-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
  }
  @keyframes ph-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

  /* cross-page transitions (Chrome, Edge, Safari 18.2+): the header stays, the page fades */
  .header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .22s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
  @keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
}

@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .device { break-inside: avoid; }
}
