/* JantaHR site: tokens from docs/design-system.md (Apple web design analysis), value for value. */
:root {
  --primary: #0066cc;          /* Action Blue: every interactive element */
  --primary-focus: #0071e3;    /* focus ring */
  --primary-on-dark: #2997ff;  /* links on dark tiles */
  --ink: #1d1d1f;
  --ink-muted-80: #333333;
  --muted: #6e6e73;            /* secondary text (AA on white) */
  --body-muted-dark: #cccccc;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --tile-1: #272729;
  --tile-2: #2a2a2c;
  --tile-3: #252527;
  --black: #000000;
  --hairline: #e0e0e0;
  --product-shadow: 3px 5px 30px 0 rgba(0, 0, 0, 0.22);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --section: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 17px/1.47 var(--font); letter-spacing: -0.374px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 2px; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.narrow-text { max-width: 680px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---- navigation: 44px black global bar + 52px frosted sub-nav ---- */
.global-nav { background: var(--black); height: 44px; }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -0.374px; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-sm); background: #fff; color: #000; font-size: 11px; font-weight: 700; letter-spacing: 0; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: rgba(255, 255, 255, 0.8); font-size: 12px; line-height: 1; letter-spacing: -0.12px; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.sub-nav { position: sticky; top: 0; z-index: 10; height: 52px; background: rgba(245, 245, 247, 0.8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
@media (prefers-reduced-transparency: reduce) { .sub-nav { background: var(--parchment); } }
.sub-nav-title { font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: 0.231px; }
.sub-nav-actions { display: flex; align-items: center; gap: 20px; }
.sub-link { color: var(--ink); font-size: 14px; letter-spacing: -0.224px; }

/* ---- buttons: pills are actions; press shrinks to 95% ---- */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px; border: 1px solid var(--primary); border-radius: 9999px; background: var(--primary); color: #fff; font-size: 17px; line-height: 1; letter-spacing: -0.374px; transition: transform 0.15s ease; }
.pill:hover { text-decoration: none; }
.pill:active { transform: scale(0.95); }
.pill-sm { min-height: 32px; padding: 6px 14px; font-size: 12px; letter-spacing: -0.12px; }
.pill-ghost { background: transparent; color: var(--primary); }
.pill-ghost-dark { color: var(--primary-on-dark); border-color: var(--primary-on-dark); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.text-link { display: inline-block; margin-top: 16px; }

/* ---- tiles: full bleed, square, the colour change is the divider ---- */
.tile { padding: var(--section) 0; }
.tile-light { background: var(--canvas); }
.tile-parchment { background: var(--parchment); }
.tile-dark { background: var(--tile-1); color: #fff; }
.tile-dark-2 { background: var(--tile-2); color: #fff; }
.tile-dark-3 { background: var(--tile-3); color: #fff; }
.tile-dark a:not(.pill), .tile-dark-2 a:not(.pill), .tile-dark-3 a:not(.pill) { color: var(--primary-on-dark); }

.eyebrow { margin: 0 0 16px; color: var(--muted); font-size: 14px; letter-spacing: -0.224px; }
.hero-display { margin: 0; font-size: 56px; font-weight: 600; line-height: 1.07; letter-spacing: -0.28px; }
.display { margin: 0; font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: 0; }
.lead { margin: 20px auto 0; font-size: 28px; font-weight: 400; line-height: 1.14; letter-spacing: 0.196px; }
.hero .lead { max-width: 720px; }
.body-copy { max-width: 440px; margin: 16px auto 0; }
.on-dark-muted { color: var(--body-muted-dark); }

/* the one shadow in the system: product imagery resting on a surface */
.shot-wrap { margin-top: 56px; }
.product-shot { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--product-shadow); }
.tile-dark .product-shot { box-shadow: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-cell { display: flex; flex-direction: column; align-items: center; gap: 48px; padding-left: 40px; padding-right: 40px; overflow: hidden; }
.split-shot { width: 115%; max-width: none; align-self: flex-start; margin-left: 8%; }
.phone-shot { width: 260px; border-radius: 36px; }

/* ---- utility cards: white, hairline, 18px, no shadow ---- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 24px; }
.card p { margin: 8px 0 0; color: var(--ink-muted-80); font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; }
.card-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.24; letter-spacing: -0.374px; }
.editions { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 20px; margin-top: 48px; }
.edition { padding: 32px; }
.price { margin: 12px 0 0 !important; color: var(--ink) !important; font-size: 28px !important; line-height: 1.14 !important; letter-spacing: 0.196px !important; }
.price span { color: var(--muted); font-size: 14px; letter-spacing: -0.224px; }

.code { margin: 32px auto 0; max-width: 560px; padding: 20px 24px; border-radius: var(--radius-lg); background: var(--black); color: #f5f5f7; text-align: left; font: 14px/1.7 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; white-space: pre-wrap; word-break: break-word; }

/* ---- footer: parchment, dense link columns ---- */
.footer { background: var(--parchment); color: var(--ink-muted-80); padding: 64px 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 32px; }
.footer h4 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.29; letter-spacing: -0.224px; }
.footer li a { color: var(--ink-muted-80); font-size: 14px; line-height: 2.41; }
.legal { margin: 40px 0 0; padding-top: 16px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 12px; line-height: 1.33; letter-spacing: -0.12px; }

/* ---- responsive (reference breakpoints) ---- */
@media (max-width: 1068px) {
  .hero-display { font-size: 40px; line-height: 1.1; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 833px) {
  .nav-links li:not(:last-child) { display: none; }
  .sub-link { display: none; }
  .split { grid-template-columns: 1fr; }
  .split-shot { width: 100%; margin-left: 0; }
  .editions { grid-template-columns: minmax(0, 1fr); }
  .lead { font-size: 21px; line-height: 1.38; }
}
@media (max-width: 640px) {
  :root { --section: 48px; }
  .hero-display { font-size: 34px; line-height: 1.12; }
  .display { font-size: 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 16px; }
  .split-cell { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 419px) {
  .hero-display { font-size: 28px; }
}
