/* ==========================================================================
   Orbitas — orbitas.in
   One stylesheet. No framework. Design system per PLAN.md §6.
   Order: tokens · reset · base type · layout · components · pages · a11y · media
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens (§6.1 / §6.2)
   -------------------------------------------------------------------------- */
:root {
  /* colour */
  --paper:       #ffffff;
  --paper-raise: #ffffff;
  --paper-sink:  #f8fafc;
  --ink:         #16211f;
  --ink-soft:    #55635e;
  --line:        #e2e8f0;
  --line-strong: #cbd5e1;
  --teal:        #0c7c76;
  --teal-deep:   #0a5c57;
  --teal-wash:   #e6f4f1;
  --amber:       #a5670f;   /* single accent — large text / figures only */
  --amber-deep:  #8a5410;   /* amber for small text — AA on paper, paper-sink, amber-wash */
  --amber-wash:  #fef3c7;
  --focus:       #0c7c76;

  /* type families */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* type scale */
  --f-xs:   0.78rem;
  --f-sm:   0.9rem;
  --f-base: 1.0625rem;
  --f-lg:   1.35rem;
  --f-xl:   1.9rem;
  --f-2xl:  clamp(2.4rem, 1.6rem + 3vw, 3.6rem);
  --f-3xl:  clamp(3rem, 2rem + 4.5vw, 4.75rem);

  /* rhythm */
  --section-pad: clamp(4rem, 9vw, 7rem);
  --container:   min(1140px, 100% - 2 * clamp(1.15rem, 5vw, 3rem));
  --radius:      8px;
  --ease:        150ms ease;
}

/* --------------------------------------------------------------------------
   2. Reset (compact)
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--f-base);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
:target { scroll-margin-top: 6rem; }

/* --------------------------------------------------------------------------
   3. Base typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--f-3xl); line-height: 1.06; font-weight: 600; }
h2 { font-size: var(--f-2xl); line-height: 1.08; }
h3 { font-size: var(--f-xl); font-weight: 600; }
h4 { font-size: var(--f-lg); font-weight: 600; }
p  { max-width: 63ch; }
strong { font-weight: 600; }
em { font-style: italic; }
.mono { font-family: var(--font-mono); }
:is(h1, h2, h3) em { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--teal-deep); }

.figure { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container { width: var(--container); margin-inline: auto; }

.section > .container {
  border-top: 1px solid var(--line);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
main > .section:last-of-type > .container { padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }

.stack > * + * { margin-top: 1.1rem; }
.stack-lg > * + * { margin-top: 1.8rem; }

.lede { font-size: var(--f-lg); color: var(--ink-soft); line-height: 1.55; max-width: 55ch; }
.measure { max-width: 63ch; }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: var(--f-xs);
  font-weight: 500;
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--teal); flex: none; }

.skip-link {
  position: absolute;
  left: 1rem; top: 0.4rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 200;
  transition: transform var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* --------------------------------------------------------------------------
   5. Buttons (§6.4)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--paper-raise);
  font-weight: 600;
  font-size: var(--f-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(22, 33, 31, 0.16), 0 6px 18px -8px rgba(12, 124, 118, 0.4);
  transition: background var(--ease), transform var(--ease);
}
.btn:hover { background: var(--teal-deep); }
.btn:active { transform: translateY(1px); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal-deep);
  font-weight: 600;
  font-size: var(--f-sm);
  text-decoration: none;
}
.btn-link:hover { text-decoration: underline; }
.btn-link .arrow { transition: transform var(--ease); }
.btn-link:hover .arrow { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }

/* --------------------------------------------------------------------------
   6. Nav (§3 / §6.3)
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 16px -8px rgba(22, 33, 31, 0.08);
}
.nav__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark span { color: var(--teal); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--f-sm);
  font-weight: 500;
  transition: color var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 1.25rem; }
.nav__actions .signin {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--f-sm);
  font-weight: 500;
}
.nav__actions .signin:hover { color: var(--ink); }
.nav__actions .btn { min-height: 44px; padding-inline: 1.15rem; }

.nav__toggle { display: none; }
.nav__drawer { display: none; }

/* mobile nav */
.nav__menu-btn {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav__menu-btn svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav__links, .nav__actions { display: none; }
  .nav__menu-btn { display: flex; }

  .nav__drawer {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--paper);
    z-index: 150;
    display: flex;
    flex-direction: column;
    padding: 1.25rem var(--section-pad, 1.5rem);
    padding-inline: clamp(1.15rem, 5vw, 3rem);
    transform: translateY(-100%);
    transition: transform 220ms ease;
    visibility: hidden;
  }
  .nav__drawer.is-open { transform: translateY(0); visibility: visible; }
  .nav__drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
  }
  .nav__drawer nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 2rem;
  }
  .nav__drawer nav a {
    font-family: var(--font-display);
    font-size: var(--f-xl);
    color: var(--ink);
    text-decoration: none;
    padding-block: 0.6rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__drawer-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
  }
  .nav__drawer-foot .signin { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
  .nav__drawer-foot .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nav__drawer { transition: none; }
}

/* --------------------------------------------------------------------------
   7. Hero + orbit (§4.1 / §6.5)
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  padding-bottom: var(--section-pad);
}
.hero h1 { margin-top: 1.1rem; }
.hero .lede { margin-top: 1.5rem; }
.hero .cta-row { margin-top: 2rem; }

.orbit-wrap { position: relative; }
.orbit-caption {
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-top: 1rem;
  text-align: center;
}
.orbit { width: 100%; height: auto; overflow: visible; }

.orbit__ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.orbit__center-ring { fill: var(--paper-raise); stroke: var(--teal); stroke-width: 1.5; }
.orbit__center-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--teal-deep);
}
.orbit__phone { fill: none; stroke: var(--ink-soft); stroke-width: 1.4; }
.orbit__dot { fill: var(--teal); }
.orbit__dot--amber { fill: var(--amber); }
.orbit__pulse { fill: var(--teal); opacity: 0; }

@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-pulse {
  0%   { opacity: 0; transform: scale(0.6); }
  10%  { opacity: 1; }
  70%  { opacity: 0.9; }
  100% { opacity: 0; transform: scale(1); }
}
.orbit__spinner { transform-box: fill-box; transform-origin: center; }
.orbit__g-outer { animation: orbit-spin 24s linear infinite; }
.orbit__g-inner { animation: orbit-spin 18s linear infinite reverse; }
.orbit.is-paused .orbit__g-outer,
.orbit.is-paused .orbit__g-inner,
.orbit.is-paused .orbit__pulse { animation-play-state: paused; }

.orbit__pulse--1 { animation: orbit-pulse 5s ease-out infinite; }
.orbit__pulse--2 { animation: orbit-pulse 5s ease-out 1.7s infinite; }
.orbit__pulse--3 { animation: orbit-pulse 5s ease-out 3.3s infinite; }

@media (prefers-reduced-motion: reduce) {
  .orbit__g-outer, .orbit__g-inner { animation: none !important; }
  .orbit__pulse--2 { opacity: 0.9; animation: none !important; }
  .orbit__pulse--1, .orbit__pulse--3 { opacity: 0; animation: none !important; }
}

/* --------------------------------------------------------------------------
   8. Contrast rows (§6.4)
   -------------------------------------------------------------------------- */
.contrast { border-top: 1px solid var(--line); margin-top: 2.5rem; }
.contrast__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.contrast__row .from { color: var(--ink-soft); }
.contrast__row .to { color: var(--ink); font-weight: 500; display: flex; gap: 0.6rem; }
.contrast__row .to::before { content: "→"; color: var(--teal); font-weight: 700; flex: none; }
.contrast__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  padding-bottom: 0.8rem;
}

/* --------------------------------------------------------------------------
   9. Agent cards (§6.4)
   -------------------------------------------------------------------------- */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.agent-card {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem 1.5rem;
}
.agent-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--f-lg);
  margin-bottom: 0.35rem;
}
.agent-card .claim {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--teal-deep);
  font-size: var(--f-base);
  display: block;
  margin-bottom: 0.6rem;
}
.agent-card p { color: var(--ink-soft); font-size: var(--f-sm); line-height: 1.65; }

.ai-strip {
  margin-top: 1.25rem;
  background: var(--teal-wash);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
}
.ai-strip h3 { font-size: var(--f-lg); margin-bottom: 0.5rem; }
.ai-strip p { color: var(--ink-soft); font-size: var(--f-sm); }
.ai-strip .examples { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.ai-strip .examples span {
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   10. Agent-log component (§6.6)
   -------------------------------------------------------------------------- */
.agent-log {
  background: var(--paper-sink);
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--f-sm);
  line-height: 1.5;
  max-width: 52ch;
}
.agent-log li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.5rem 0.9rem; padding-block: 0.4rem; }
.agent-log li + li { border-top: 1px solid var(--line); }
.agent-log .t { color: var(--teal-deep); font-weight: 500; }
.agent-log .e { color: var(--ink); }
.agent-log .e .sep { color: var(--ink-soft); padding-inline: 0.25rem; }
@media (max-width: 520px) {
  .agent-log li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* --------------------------------------------------------------------------
   11. Stats (§6.4)
   -------------------------------------------------------------------------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  margin-top: 2.5rem;
}
.stat { border-top: 2px solid var(--line-strong); padding-top: 1rem; }
.stat .fig {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--f-xl);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat .lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}
.stat--amber { border-top-color: var(--amber); }
.stat--amber .fig { color: var(--amber); }

.follow-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
  margin-top: 2.5rem;
}
.note { font-size: var(--f-sm); color: var(--ink-soft); font-style: italic; }

/* --------------------------------------------------------------------------
   12. Bullet lists / prose sections
   -------------------------------------------------------------------------- */
.ticks { margin-top: 1.5rem; }
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 3px; top: 0.9rem;
  width: 7px; height: 12px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
}
.ticks li strong { font-weight: 600; }
.ticks li span { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   13. CTA band (§6.4)
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--teal-wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding-block: var(--section-pad);
}
.cta-band .container { display: grid; gap: 1.1rem; justify-items: center; }
.cta-band p { color: var(--ink-soft); }
.cta-band .btn { margin-top: 0.6rem; }

/* --------------------------------------------------------------------------
   14. Timeline (how-it-works §5.2)
   -------------------------------------------------------------------------- */
.timeline { margin-top: 2.5rem; border-left: 2px solid var(--line-strong); padding-left: 1.75rem; }
.timeline li { position: relative; padding-bottom: 1.9rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem - 6px);
  top: 0.55rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  outline: 4px solid var(--paper);
}
.timeline .t {
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.timeline p { margin-top: 0.2rem; color: var(--ink); }

/* agent expansion split (how-it-works §4.4) */
.agent-detail { margin-top: 2.5rem; }
.agent-detail + .agent-detail { border-top: 1px solid var(--line); padding-top: 2.5rem; }
.agent-detail__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 3rem);
  margin-top: 1.5rem;
}
.agent-detail__split h4 {
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.agent-detail__split p { color: var(--ink-soft); font-size: var(--f-sm); }
.agent-detail .example {
  margin-top: 1.25rem;
  background: var(--paper-sink);
  border-radius: 6px;
  padding: 1rem 1.15rem;
  font-size: var(--f-sm);
  color: var(--ink-soft);
}
.agent-detail .example strong { color: var(--ink); font-weight: 600; }
.diagram { max-width: 220px; margin-bottom: 1rem; }
.diagram line, .diagram circle, .diagram rect, .diagram path { stroke: var(--teal); fill: none; stroke-width: 1.4; }
.diagram circle.node { fill: var(--teal-wash); }
.diagram text { font-family: var(--font-mono); font-size: 8px; fill: var(--ink-soft); stroke: none; }

/* --------------------------------------------------------------------------
   15. Feature grid + comparison table (features §5.3)
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.feature-group {
  background: #fbfbfa;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.feature-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(22, 33, 31, 0.07);
  border-color: var(--line-strong);
}
.feature-group h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--ink);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.feature-group ul {
  display: grid;
  gap: 0.45rem;
}
.feature-group li {
  padding-left: 1.15rem;
  position: relative;
  color: var(--ink-soft);
  font-size: var(--f-sm);
  line-height: 1.55;
}
.feature-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.table-scroll { overflow-x: auto; margin-top: 2.5rem; -webkit-overflow-scrolling: touch; }
.cmp {
  min-width: 640px;
  font-size: var(--f-sm);
}
.cmp th, .cmp td {
  text-align: left;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cmp thead th {
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--line-strong);
}
.cmp tbody th { font-family: var(--font-body); font-weight: 600; width: 28%; }
.cmp td:first-of-type { color: var(--ink-soft); }
.cmp td:last-of-type { color: var(--ink); }
.cmp thead th:last-child { color: var(--teal-deep); }

/* --------------------------------------------------------------------------
   16. Pricing (§5.4)
   -------------------------------------------------------------------------- */
.draft-banner {
  background: var(--amber-wash);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  font-size: var(--f-sm);
  color: var(--amber-deep);
  margin-top: 1.5rem;
  font-family: var(--font-mono);
}
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  align-items: start;
}
.tier {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  display: grid;
  gap: 0.9rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}
.tier:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 16px 32px -10px rgba(12, 124, 118, 0.15), 0 2px 8px rgba(0, 0, 0, 0.03);
}
.tier--featured { border-color: var(--teal); box-shadow: 0 10px 30px -14px rgba(12, 124, 118, 0.4); }
.tier--featured:hover {
  box-shadow: 0 20px 40px -12px rgba(12, 124, 118, 0.35), 0 4px 12px rgba(0, 0, 0, 0.04);
}
.tier h3 { font-size: var(--f-lg); }
.tier .price { font-family: var(--font-display); font-weight: 600; font-size: var(--f-xl); font-variant-numeric: tabular-nums; }
.tier .price small { font-family: var(--font-mono); font-size: var(--f-xs); color: var(--ink-soft); font-weight: 400; display: block; margin-top: 0.2rem; }
.tier ul { display: grid; gap: 0.4rem; }
.tier li { padding-left: 1.1rem; position: relative; font-size: var(--f-sm); color: var(--ink-soft); }
.tier li::before { content: "+"; position: absolute; left: 0; color: var(--teal); font-family: var(--font-mono); }
.tier .btn { width: 100%; margin-top: 0.4rem; }

.math-block {
  background: var(--paper-sink);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  padding: 1.4rem 1.5rem;
  margin-top: 2.5rem;
  max-width: 60ch;
}
.math-block .big { font-family: var(--font-display); font-size: var(--f-lg); color: var(--amber); font-weight: 600; }

.calc { margin-top: 2rem; display: grid; gap: 1rem; max-width: 32rem; }
.calc label { font-size: var(--f-sm); font-weight: 500; display: grid; gap: 0.35rem; }
.calc input {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  background: var(--paper-raise);
  font-variant-numeric: tabular-nums;
}
.calc__out {
  font-family: var(--font-mono);
  font-size: var(--f-sm);
  background: var(--paper-sink);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  color: var(--ink);
}
.calc__out b { color: var(--teal-deep); }

/* Centered math section on pricing */
.pricing-math {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pricing-math .eyebrow {
  justify-content: center;
}
.pricing-math h2 {
  text-align: center;
}
.pricing-math .math-block {
  margin-inline: auto;
  text-align: left;
  max-width: 520px;
  width: 100%;
}
.pricing-math .calc {
  margin-inline: auto;
  text-align: left;
  max-width: 520px;
  width: 100%;
}
.pricing-math .calc h3 {
  text-align: center;
}
.pricing-math .calc .note {
  text-align: center;
}

/* Centered FAQ section on pricing */
.pricing-faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pricing-faq .eyebrow {
  justify-content: center;
}
.pricing-faq h2 {
  text-align: center;
}
.pricing-faq .faq {
  margin-inline: auto;
  text-align: left;
  width: 100%;
  max-width: 720px;
}

/* Centered layout for About page */
.about-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.about-center .eyebrow {
  justify-content: center;
}
.about-center h1,
.about-center h2 {
  text-align: center;
}
.about-center h1 {
  max-width: 24ch;
  margin-inline: auto;
}
.about-center .draft-banner {
  margin-inline: auto;
  max-width: 580px;
  text-align: center;
}
.about-center .measure {
  margin-inline: auto;
  max-width: 600px;
  text-align: center;
}
.about-center ul.ticks {
  margin-inline: auto;
  width: 100%;
  max-width: 580px;
  text-align: left;
}

/* --------------------------------------------------------------------------
   17. FAQ accordion (§6.4)
   -------------------------------------------------------------------------- */
.faq { margin-top: 2rem; max-width: 70ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: var(--f-base);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--teal-deep);
  font-size: 1.3rem;
  flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: 1.2rem; color: var(--ink-soft); font-size: var(--f-sm); max-width: 63ch; }

/* --------------------------------------------------------------------------
   18. Forms (demo §5.6)
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; max-width: 34rem; margin-top: 2rem; }
.form .field { display: grid; gap: 0.4rem; }
.form label { font-size: var(--f-sm); font-weight: 500; }
.form input, .form select, .form textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  background: var(--paper-raise);
  width: 100%;
}
.form textarea { min-height: 6rem; resize: vertical; }
.form .hint { font-size: var(--f-xs); color: var(--ink-soft); }
.form .error { font-size: var(--f-xs); color: var(--amber-deep); font-weight: 500; }
.form [aria-invalid="true"] { border-color: var(--amber-deep); border-width: 2px; }
.form .btn { justify-self: start; margin-top: 0.4rem; }
.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  font-size: var(--f-sm);
  max-width: 34rem;
}
.form-status[data-state="success"] { background: var(--teal-wash); color: var(--teal-deep); }
.form-status[data-state="error"] { background: var(--amber-wash); color: var(--amber-deep); }

.expect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.expect-grid .item { border-top: 2px solid var(--line-strong); padding-top: 0.85rem; }
.expect-grid .item .k { font-family: var(--font-mono); font-size: var(--f-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-deep); }
.expect-grid .item p { font-size: var(--f-sm); color: var(--ink-soft); margin-top: 0.3rem; }

/* --------------------------------------------------------------------------
   19. UI fragment recreations (§6.7)
   Faithful static recreations of running-app surfaces, in the site palette.
   Not screenshots — one deliberate visual world. See fragments.html.
   -------------------------------------------------------------------------- */
.ui-frag {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
  font-size: var(--f-sm);
  box-shadow: 0 12px 30px -18px rgba(22, 33, 31, 0.4);
}
.ui-frag__label {
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}
.ui-frag__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.ui-frag__bar h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--f-base); }
.ui-frag__bar .tag {
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-deep);
}
.ui-frag__foot {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  color: var(--ink-soft);
}

/* chips — conditions / medications / allergies */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  background: var(--paper-sink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  color: var(--ink);
}
.chip--alert { background: var(--amber-wash); border-color: var(--line-strong); color: var(--amber-deep); }

/* 19a. Insight agent — "needs your attention" tile */
.attention-tile ul { display: grid; }
.attention-tile li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.attention-tile li:last-child { border-bottom: 0; }
.attention-tile .txt { display: grid; gap: 0.1rem; }
.attention-tile .k { color: var(--ink); }
.attention-tile .sub { font-size: var(--f-xs); color: var(--ink-soft); }
.attention-tile .v {
  flex: none;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: var(--f-lg);
  color: var(--teal-deep);
}
.attention-tile .v--amber { color: var(--amber); }

/* 19b. Orbitas AI chat panel */
.ai-panel__context {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  background: var(--paper-sink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  color: var(--ink-soft);
}
.ai-panel__empty { color: var(--ink-soft); margin: 1rem 0 1.1rem; max-width: 34ch; }
.ai-panel__prompts { display: grid; gap: 0.45rem; }
.ai-panel__prompts button {
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  color: var(--ink-soft);
  cursor: default;
}
.ai-panel__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.6rem 0.5rem 0.6rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--f-sm);
  color: var(--ink-soft);
}
.ai-panel__input .send {
  width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center;
  background: var(--teal);
  color: var(--paper-raise);
  border-radius: 999px;
  flex: none;
}

/* 19c. History agent — clinical brief */
.history-brief dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 1rem;
  margin-bottom: 0.9rem;
}
.history-brief dt {
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-deep);
  padding-top: 0.2rem;
}
.history-brief__points { display: grid; gap: 0.5rem; }
.history-brief__points li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.9rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: var(--f-sm);
}
.history-brief__points .yr { font-family: var(--font-mono); color: var(--teal-deep); }
.history-brief__points .chg { color: var(--amber-deep); }

/* 19d. Follow-up agent — WhatsApp thread */
.wa-thread { display: grid; gap: 0.6rem; max-width: 34ch; }
.wa-bubble {
  background: var(--teal-wash);
  border-radius: 12px 12px 12px 3px;
  padding: 0.8rem 1rem;
  font-size: var(--f-sm);
  color: var(--ink);
}
.wa-bubble--in { justify-self: end; border-radius: 12px 12px 3px 12px; background: var(--paper-sink); }
.wa-bubble .meta { font-family: var(--font-mono); font-size: var(--f-xs); color: var(--ink-soft); margin-top: 0.4rem; }
.wa-thread .sys {
  justify-self: center;
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  color: var(--ink-soft);
}

/* 19e. Medications — per-slot dosing control */
.dosing__name { font-family: var(--font-display); font-weight: 600; font-size: var(--f-base); margin-bottom: 0.75rem; }
.dosing__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.dosing__slot {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  color: var(--ink-soft);
}
.dosing__slot .n { display: block; font-size: var(--f-lg); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.dosing__slot--on { border-color: var(--teal); background: var(--teal-wash); color: var(--teal-deep); }
.dosing__slot--on .n { color: var(--teal-deep); }
.dosing__food {
  display: inline-flex;
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: var(--f-xs);
}
.dosing__food span { padding: 0.3rem 0.85rem; color: var(--ink-soft); }
.dosing__food span[aria-selected="true"] { background: var(--teal); color: var(--paper-raise); }

/* showcase grid — fragments.html */
.frag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 2.5rem;
  align-items: start;
}
.frag-grid figure { display: grid; gap: 0.7rem; }
.frag-grid figcaption { font-size: var(--f-sm); color: var(--ink-soft); }

/* Product UI screenshots (16:9) */
.product-shot {
  display: block;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-raise);
  box-shadow: 0 16px 40px -16px rgba(22, 33, 31, 0.12), 0 2px 6px rgba(22, 33, 31, 0.04);
}
.product-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.product-shot figcaption {
  padding: 0.75rem 1.15rem;
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  color: var(--ink-soft);
  background: var(--paper-sink);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.product-shot figcaption .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--teal-deep);
  font-weight: 500;
}
.product-shot figcaption .badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.product-shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2rem;
}

/* Product callout blocks below / beside screenshots */
.product-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem 2rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.product-callout {
  display: grid;
  gap: 0.35rem;
}
.product-callout strong {
  font-family: var(--font-body);
  font-size: var(--f-sm);
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.product-callout strong::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}
.product-callout p {
  font-size: var(--f-xs);
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: none;
}

/* --------------------------------------------------------------------------
   20. Footer (Apple-inspired directory & legal footer)
   -------------------------------------------------------------------------- */
.footer {
  background: #f8fafc;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: var(--f-xs);
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}
.footer a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color var(--ease);
}
.footer a:not(.btn):hover {
  color: var(--teal-deep);
}
.footer__top {
  width: var(--container);
  margin: 0 auto 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer__brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer .wordmark {
  color: var(--ink);
  font-size: 1.35rem;
}
.footer .wordmark span {
  color: var(--teal);
}
.footer__tagline {
  font-family: var(--font-body);
  font-size: var(--f-sm);
  color: var(--ink-soft);
  max-width: 48ch;
  line-height: 1.5;
}
.footer__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer__cta .btn,
.footer a.btn {
  min-height: 42px;
  padding-inline: 1.25rem;
  font-size: var(--f-xs);
  background: var(--teal);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(22, 33, 31, 0.12), 0 4px 12px -4px rgba(12, 124, 118, 0.35);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.footer__cta .btn:hover,
.footer a.btn:hover {
  background: var(--teal-deep);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(22, 33, 31, 0.16), 0 8px 16px -4px rgba(12, 124, 118, 0.4);
}
.footer__inner {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 2.5rem;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.footer ul {
  display: grid;
  gap: 0.65rem;
}
.footer ul li a {
  font-size: var(--f-sm);
  color: var(--ink-soft);
}
.footer ul li a:hover {
  color: var(--ink);
}
.footer__bottom {
  width: var(--container);
  margin: 2.75rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.footer__legal-links a {
  color: var(--ink-soft);
}
.footer__legal-links a:hover {
  color: var(--teal-deep);
}
.footer__locale {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   21. Accessibility
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   22. Utilities
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.narrow { max-width: 720px; margin-inline: auto; }
.prose h2 { margin-top: 2.5rem; font-size: var(--f-xl); }
.prose h3 { margin-top: 1.75rem; font-size: var(--f-lg); }
.prose p, .prose li { color: var(--ink-soft); margin-top: 1rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.lead-404 { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.lead-404 .orbit { max-width: 200px; margin: 2rem auto 0; }

/* --------------------------------------------------------------------------
   22. Apple-style Scroll Reveals, Hover Depth & Interactive Showcase
   -------------------------------------------------------------------------- */


/* Apple-style Product Card & Screenshot Hover Lift */
.product-shot {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}
.product-shot:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 24px 48px -16px rgba(12, 124, 118, 0.12), 0 4px 14px rgba(22, 33, 31, 0.04);
}

.agent-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}
.agent-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 18px 36px -12px rgba(12, 124, 118, 0.12), 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Apple-style Interactive Segmented Switcher */
.showcase-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 2.25rem auto 1.5rem;
  padding: 0.3rem;
  background: var(--paper-sink);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.showcase-nav__btn {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--f-sm);
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.showcase-nav__btn:hover {
  color: var(--ink);
}
.showcase-nav__btn.is-active {
  background: #ffffff;
  color: var(--teal-deep);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.showcase-views {
  position: relative;
}
.showcase-panel {
  display: none;
  opacity: 0;
  transform: translateY(14px) scale(0.995);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-panel.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Pulsing badge dot */
.badge--pulse::before {
  animation: pulse-ring 2s infinite ease-out;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(0.95); opacity: 1; }
}

/* --------------------------------------------------------------------------
   23. Apple MacBook Pro-Style Presentation Components
   -------------------------------------------------------------------------- */

/* Apple-style macOS Window Mockup Bezel */
.apple-window {
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 30px 70px -20px rgba(12, 124, 118, 0.18), 0 8px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.apple-window:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 85px -20px rgba(12, 124, 118, 0.22), 0 12px 30px rgba(0, 0, 0, 0.06);
}
.apple-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.apple-window__dots {
  display: flex;
  gap: 6px;
}
.apple-window__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}
.apple-window__dot--red { background: #ef4444; opacity: 0.8; }
.apple-window__dot--yellow { background: #f59e0b; opacity: 0.8; }
.apple-window__dot--green { background: #10b981; opacity: 0.8; }
.apple-window__title {
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.apple-window__pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #e6f4f1;
  color: var(--teal-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.apple-window__pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.apple-window img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Apple Marquee Hero Typography */
.apple-marquee {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem;
}
.apple-marquee__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal-deep);
  background: var(--teal-wash);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.apple-marquee h1 {
  font-size: clamp(2.8rem, 1.8rem + 3.8vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
}
.apple-marquee .lede {
  margin: 1.5rem auto 0;
  font-size: var(--f-lg);
  max-width: 58ch;
}
.apple-marquee .cta-row {
  justify-content: center;
  margin-top: 2rem;
}

/* Apple Highlights Gallery Cards */
.highlights-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.highlight-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background 0.3s ease;
}
.highlight-card:hover {
  transform: translateY(-5px);
  background: #ffffff;
  border-color: var(--teal);
  box-shadow: 0 20px 40px -12px rgba(12, 124, 118, 0.15), 0 2px 8px rgba(0, 0, 0, 0.03);
}
.highlight-card__badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
}
.highlight-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.highlight-card p {
  font-size: var(--f-sm);
  color: var(--ink-soft);
  line-height: 1.6;
}
.highlight-card__metric {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.highlight-card__num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--teal-deep);
  white-space: nowrap;
}
.highlight-card__num--amber {
  color: var(--amber);
}
.highlight-card__lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

/* Apple-style Interactive Product Viewer ("Take a closer look") */
.closer-look {
  margin-top: 2.5rem;
}
.closer-look__pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.closer-look__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-family: var(--font-body);
  font-size: var(--f-sm);
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.closer-look__btn:hover {
  background: #ffffff;
  color: var(--ink);
  border-color: #cbd5e1;
}
.closer-look__btn.is-active {
  background: #ffffff;
  color: var(--teal-deep);
  font-weight: 600;
  border-color: var(--teal);
  box-shadow: 0 4px 14px rgba(12, 124, 118, 0.16);
}
.closer-look__btn .btn-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: inline-block;
  position: relative;
}
.closer-look__btn.is-active .btn-icon::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.closer-look__panel {
  display: none;
  opacity: 0;
  transform: translateY(16px) scale(0.995);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.closer-look__panel.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Apple-style Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.bento-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px -12px rgba(12, 124, 118, 0.12);
}
.bento-card--wide {
  grid-column: span 2;
}
.bento-card--featured {
  background: #ffffff;
  border-color: var(--teal);
  box-shadow: 0 8px 24px -8px rgba(12, 124, 118, 0.18);
}
.bento-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.bento-card h3 {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.bento-card p {
  font-size: var(--f-sm);
  color: var(--ink-soft);
  line-height: 1.65;
}
.bento-card__footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--f-xs);
  color: var(--ink-soft);
}

/* Reduced motion safeguard */
@media (prefers-reduced-motion: reduce) {
  .product-shot:hover, .agent-card:hover, .tier:hover, .apple-window:hover, .highlight-card:hover, .bento-card:hover {
    transform: none !important;
  }
  .showcase-panel, .closer-look__panel {
    transform: none !important;
    transition: none !important;
  }
  .badge--pulse::before {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   23. Media queries
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .orbit-wrap { max-width: 420px; margin-inline: auto; order: -1; }
  .agent-grid { grid-template-columns: 1fr; }
  .follow-band { grid-template-columns: 1fr; }
  .agent-detail__split { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--wide { grid-column: span 1; }
}
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; }
  .contrast__row, .contrast__head { grid-template-columns: 1fr; gap: 0.5rem; }
  .contrast__head span:last-child { display: none; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .highlights-grid { grid-template-columns: 1fr; }
  .closer-look__pills { flex-direction: column; align-items: stretch; }
  .closer-look__btn { justify-content: center; }
}
