/* =========================================================================
   Apple Design System — Tokens
   --------------------------------------------------------------------------
   Colors, type, spacing, radii, shadow, and semantic CSS for the
   Apple marketing & store surfaces.

   Font: Inter (Google Fonts) substituted for SF Pro Display / SF Pro Text.
   On Apple platforms, system-ui / -apple-system resolves to the real
   SF Pro and is preferred via the font stack.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  /* Apple's design language is explicitly light-mode-only.
     Opt out of browser auto-darkening so Parchment stays Parchment. */
  color-scheme: light;

  /* ---------- COLORS · Brand & Accent ---------- */
  --color-primary:           #0066cc;  /* Action Blue — the single interactive color */
  --color-primary-focus:     #0071e3;  /* Focus ring */
  --color-primary-on-dark:   #2997ff;  /* Sky Link Blue — links on dark surfaces */

  /* ---------- COLORS · Surface ---------- */
  --color-canvas:            #ffffff;  /* Pure white */
  --color-canvas-parchment:  #f5f5f7;  /* Signature off-white */
  --color-surface-pearl:     #fafafc;  /* Pearl button fill */
  --color-surface-tile-1:    #272729;  /* Dark tile primary */
  --color-surface-tile-2:    #2a2a2c;  /* Dark tile micro-lighter */
  --color-surface-tile-3:    #252527;  /* Dark tile micro-darker */
  --color-surface-black:     #000000;  /* True void — nav, video, photo overlays */
  --color-surface-chip-translucent: rgba(210, 210, 215, 0.64);

  /* ---------- COLORS · Ink & Text ---------- */
  --color-ink:               #1d1d1f;  /* Near-black ink — all headlines, body */
  --color-body:              #1d1d1f;  /* Same as ink — single near-black */
  --color-body-on-dark:      #ffffff;  /* Text on dark tiles */
  --color-body-muted:        #cccccc;  /* Secondary copy on dark */
  --color-ink-muted-80:      #333333;  /* Pearl-button text */
  --color-ink-muted-48:      #7a7a7a;  /* Disabled, fine print */

  /* ---------- COLORS · Hairlines ---------- */
  --color-divider-soft:      #f0f0f0;  /* Pearl button soft ring */
  --color-hairline:          #e0e0e0;  /* 1px utility-card border */
  --color-hairline-translucent: rgba(0, 0, 0, 0.04);
  --color-hairline-product:  rgba(0, 0, 0, 0.08);

  /* ---------- TYPE · Family ---------- */
  --font-display: "SF Pro Display", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-text:    "SF Pro Text",    "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---------- TYPE · Weight ladder (500 deliberately absent) ---------- */
  --weight-light:   300;
  --weight-regular: 400;
  --weight-semi:    600;
  --weight-bold:    700;

  /* ---------- TYPE · Hero & Display ---------- */
  --type-hero-display-size: 56px;
  --type-hero-display-lh:   1.07;
  --type-hero-display-ls:   -0.28px;

  --type-display-lg-size:   40px;
  --type-display-lg-lh:     1.10;
  --type-display-lg-ls:     0;

  --type-display-md-size:   34px;
  --type-display-md-lh:     1.47;
  --type-display-md-ls:     -0.374px;

  /* ---------- TYPE · Lead ---------- */
  --type-lead-size:         28px;
  --type-lead-lh:           1.14;
  --type-lead-ls:           0.196px;

  --type-lead-airy-size:    24px;
  --type-lead-airy-lh:      1.5;
  --type-lead-airy-ls:      0;

  --type-tagline-size:      21px;
  --type-tagline-lh:        1.19;
  --type-tagline-ls:        0.231px;

  /* ---------- TYPE · Body (17px not 16px is the brand) ---------- */
  --type-body-size:         17px;
  --type-body-lh:           1.47;
  --type-body-ls:           -0.374px;

  --type-body-strong-size:  17px;
  --type-body-strong-lh:    1.24;
  --type-body-strong-ls:    -0.374px;

  --type-dense-link-size:   17px;
  --type-dense-link-lh:     2.41;
  --type-dense-link-ls:     0;

  /* ---------- TYPE · Caption / Utility ---------- */
  --type-caption-size:        14px;
  --type-caption-lh:          1.43;
  --type-caption-ls:          -0.224px;

  --type-caption-strong-size: 14px;
  --type-caption-strong-lh:   1.29;
  --type-caption-strong-ls:   -0.224px;

  --type-button-large-size:   18px;
  --type-button-large-lh:     1.0;
  --type-button-large-ls:     0;

  --type-button-utility-size: 14px;
  --type-button-utility-lh:   1.29;
  --type-button-utility-ls:   -0.224px;

  --type-fine-print-size:     12px;
  --type-fine-print-lh:       1.0;
  --type-fine-print-ls:       -0.12px;

  --type-micro-legal-size:    10px;
  --type-micro-legal-lh:      1.3;
  --type-micro-legal-ls:      -0.08px;

  --type-nav-link-size:       12px;
  --type-nav-link-lh:         1.0;
  --type-nav-link-ls:         -0.12px;

  /* ---------- SPACING · Base 8px ---------- */
  --space-xxs:     4px;
  --space-xs:      8px;
  --space-sm:      12px;
  --space-md:      17px;
  --space-lg:      24px;
  --space-xl:      32px;
  --space-xxl:     48px;
  --space-section: 80px;

  /* ---------- RADII · 5-step ladder ---------- */
  --radius-none:  0px;
  --radius-xs:    5px;
  --radius-sm:    8px;
  --radius-md:    11px;
  --radius-lg:    18px;
  --radius-pill:  9999px;
  --radius-full:  9999px;

  /* ---------- ELEVATION · One shadow exists ---------- */
  --shadow-product:    rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
  --shadow-soft-ring:  inset 0 0 0 3px var(--color-divider-soft);
  --backdrop-blur:     saturate(180%) blur(20px);

  /* ---------- LAYOUT · Containers & nav heights ---------- */
  --width-text:       980px;
  --width-product:    1440px;
  --height-global-nav: 44px;
  --height-sub-nav:    52px;

  /* ---------- INTERACTION ---------- */
  --press-scale: 0.95;
  --focus-ring:  2px solid var(--color-primary-focus);
}

/* =========================================================================
   Base reset + page surface
   ========================================================================= */
html, body {
  margin: 0;
  padding: 0;
  background: var(--color-canvas);
  color: var(--color-body);
  font-family: var(--font-text);
  font-size: var(--type-body-size);
  font-weight: var(--weight-regular);
  line-height: var(--type-body-lh);
  letter-spacing: var(--type-body-ls);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }

/* =========================================================================
   Semantic type — use these instead of repeating the tokens inline.
   ========================================================================= */
.type-hero-display, h1.hero {
  font-family: var(--font-display);
  font-weight: var(--weight-semi);
  font-size: var(--type-hero-display-size);
  line-height: var(--type-hero-display-lh);
  letter-spacing: var(--type-hero-display-ls);
}
.type-display-lg, h1, h2.tile {
  font-family: var(--font-display);
  font-weight: var(--weight-semi);
  font-size: var(--type-display-lg-size);
  line-height: var(--type-display-lg-lh);
  letter-spacing: var(--type-display-lg-ls);
}
.type-display-md, h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-semi);
  font-size: var(--type-display-md-size);
  line-height: var(--type-display-md-lh);
  letter-spacing: var(--type-display-md-ls);
}
.type-lead {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: var(--type-lead-size);
  line-height: var(--type-lead-lh);
  letter-spacing: var(--type-lead-ls);
}
.type-lead-airy {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  font-size: var(--type-lead-airy-size);
  line-height: var(--type-lead-airy-lh);
  letter-spacing: var(--type-lead-airy-ls);
}
.type-tagline {
  font-family: var(--font-display);
  font-weight: var(--weight-semi);
  font-size: var(--type-tagline-size);
  line-height: var(--type-tagline-lh);
  letter-spacing: var(--type-tagline-ls);
}
.type-body, p {
  font-family: var(--font-text);
  font-weight: var(--weight-regular);
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  letter-spacing: var(--type-body-ls);
}
.type-body-strong, strong {
  font-family: var(--font-text);
  font-weight: var(--weight-semi);
  font-size: var(--type-body-strong-size);
  line-height: var(--type-body-strong-lh);
  letter-spacing: var(--type-body-strong-ls);
}
.type-dense-link {
  font-size: var(--type-dense-link-size);
  line-height: var(--type-dense-link-lh);
  letter-spacing: var(--type-dense-link-ls);
}
.type-caption {
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-lh);
  letter-spacing: var(--type-caption-ls);
}
.type-caption-strong {
  font-weight: var(--weight-semi);
  font-size: var(--type-caption-strong-size);
  line-height: var(--type-caption-strong-lh);
  letter-spacing: var(--type-caption-strong-ls);
}
.type-button-large {
  font-weight: var(--weight-light);
  font-size: var(--type-button-large-size);
  line-height: var(--type-button-large-lh);
}
.type-button-utility {
  font-size: var(--type-button-utility-size);
  line-height: var(--type-button-utility-lh);
  letter-spacing: var(--type-button-utility-ls);
}
.type-fine-print {
  font-size: var(--type-fine-print-size);
  line-height: var(--type-fine-print-lh);
  letter-spacing: var(--type-fine-print-ls);
}
.type-micro-legal {
  font-size: var(--type-micro-legal-size);
  line-height: var(--type-micro-legal-lh);
  letter-spacing: var(--type-micro-legal-ls);
}
.type-nav-link {
  font-size: var(--type-nav-link-size);
  line-height: var(--type-nav-link-lh);
  letter-spacing: var(--type-nav-link-ls);
}

/* Inline link colors */
a, .text-link              { color: var(--color-primary); text-decoration: none; }
a:hover, .text-link:hover  { text-decoration: underline; }
.on-dark a, .text-link-on-dark { color: var(--color-primary-on-dark); }

/* Surface helpers */
.surface-canvas       { background: var(--color-canvas);        color: var(--color-ink); }
.surface-parchment    { background: var(--color-canvas-parchment); color: var(--color-ink); }
.surface-dark         { background: var(--color-surface-tile-1); color: var(--color-body-on-dark); }
.surface-dark-2       { background: var(--color-surface-tile-2); color: var(--color-body-on-dark); }
.surface-dark-3       { background: var(--color-surface-tile-3); color: var(--color-body-on-dark); }
.surface-black        { background: var(--color-surface-black);  color: var(--color-body-on-dark); }
