/* RUN12 site styles. Colours, radii and spacing come from design/tokens/run12-tokens.json
   (Direction A, Modern). System fonts only: the site loads nothing from third parties. */

:root {
  --color-bg-primary: #F6F4EF;
  --color-bg-elevated: #FFFFFF;
  --color-bg-sunken: #EEECE6;
  --color-bg-inverse: #111214;
  --color-text-primary: #111214;
  --color-text-secondary: #55585E;
  --color-text-tertiary: #666970;
  --color-text-inverse: #F6F4EF;
  --color-text-link: #0058B3;
  --color-border-card: rgba(17, 18, 20, .07);
  --color-border-default: rgba(17, 18, 20, .14);
  --color-brand-motion: #0A7CEB;
  --color-action-primary: #006CD9;
  --color-focus-ring: #0A7CEB;
  --color-status-success: #16875A;
  --color-status-warning: #8A5A00;
  --color-status-adjustment: #6E4FF0;

  --hero-bg: #111214;
  --hero-text: #F6F4EF;
  --hero-text-secondary: #B4B5B9;
  --hero-motion: #3E93F1;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-card: 22px;
  --radius-pill: 999px;
  --space-screen-x: 20px;
  --space-stack: 12px;
  --space-section: 32px;
  --ease-standard: cubic-bezier(.2, 0, 0, 1);

  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg-primary: #111214;
    --color-bg-elevated: #1A1B1E;
    --color-bg-sunken: #0A0B0C;
    --color-text-primary: #F6F4EF;
    --color-text-secondary: #B4B5B9;
    --color-text-tertiary: #8E9096;
    --color-text-link: #70AEF6;
    --color-border-card: rgba(246, 244, 239, .07);
    --color-border-default: rgba(246, 244, 239, .16);
    --color-brand-motion: #3E93F1;
    --color-focus-ring: #70AEF6;
    --color-status-success: #3FCB8E;
    --color-status-warning: #F5B83D;
    --color-status-adjustment: #A28BFF;
    --hero-bg: #0A0B0C;
  }
}

:root[data-theme="dark"] {
  --color-bg-primary: #111214;
  --color-bg-elevated: #1A1B1E;
  --color-bg-sunken: #0A0B0C;
  --color-text-primary: #F6F4EF;
  --color-text-secondary: #B4B5B9;
  --color-text-tertiary: #8E9096;
  --color-text-link: #70AEF6;
  --color-border-card: rgba(246, 244, 239, .07);
  --color-border-default: rgba(246, 244, 239, .16);
  --color-brand-motion: #3E93F1;
  --color-focus-ring: #70AEF6;
  --color-status-success: #3FCB8E;
  --color-status-warning: #F5B83D;
  --color-status-adjustment: #A28BFF;
  --hero-bg: #0A0B0C;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--color-text-link); text-underline-offset: 2px; }
a:focus-visible, .button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--color-bg-elevated); color: var(--color-text-primary);
  padding: 8px 14px; border-radius: var(--radius-pill); z-index: 10;
}
.skip-link:focus { left: 12px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--space-screen-x); }
.narrow { max-width: 760px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { height: 22px; width: auto; }
.brand .mark { height: 30px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: inherit; text-decoration: none; font-size: 15px; font-weight: 600; opacity: .82; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }

/* Hero (always the dark Foundation ground) */
.hero { background: var(--hero-bg); color: var(--hero-text); }
.hero .site-header .nav a { color: var(--hero-text); }
.hero-body { padding: 40px 0 72px; display: grid; gap: 40px; align-items: center; }
.eyebrow {
  margin: 0 0 12px; font-size: 12px; line-height: 16px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--hero-motion);
}
.section .eyebrow { color: var(--color-brand-motion); }
.hero h1 {
  margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: clamp(40px, 8vw, 64px); line-height: 1.0; letter-spacing: -.01em;
}
.hero .lede { margin: 18px 0 0; font-size: clamp(18px, 2.4vw, 21px); line-height: 1.45; color: var(--hero-text-secondary); max-width: 34em; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 22px; border-radius: var(--radius-pill); font-size: 17px; font-weight: 650;
  text-decoration: none; transition: background-color 160ms var(--ease-standard);
}
.button.primary { background: var(--color-action-primary); color: #FFFFFF; box-shadow: 0 8px 24px rgba(10, 124, 235, .28); }
.button.primary:hover { background: #0058B3; }
.button.ghost { color: var(--hero-text); border: 1px solid rgba(246, 244, 239, .24); }
.button.ghost:hover { background: rgba(246, 244, 239, .08); }
.availability { margin: 14px 0 0; font-size: 14px; color: var(--hero-text-secondary); }
.hero-art { justify-self: center; width: min(320px, 70vw); }
.hero-art img { border-radius: 22.5%; box-shadow: 0 24px 80px rgba(10, 124, 235, .22); }

@media (min-width: 820px) {
  .hero-body { grid-template-columns: 1.4fr 1fr; padding: 56px 0 96px; }
}

/* Sections */
.section { padding: 64px 0; }
.section.sunken { background: var(--color-bg-sunken); }
.section h2 {
  margin: 0 0 12px; font-family: var(--font-display); font-weight: 750;
  font-size: clamp(28px, 4.4vw, 34px); line-height: 1.12; letter-spacing: -.005em;
}
.section .intro { margin: 0 0 28px; color: var(--color-text-secondary); max-width: 40em; font-size: 19px; }

.cards { display: grid; gap: var(--space-stack); grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards.four { grid-template-columns: repeat(4, 1fr); } .cards.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .cards.four, .cards.three { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--color-bg-elevated); border: 1px solid var(--color-border-card);
  border-radius: var(--radius-card); padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.2; font-weight: 650; }
.card p { margin: 0; color: var(--color-text-secondary); font-size: 16px; line-height: 1.45; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  margin-bottom: 14px; border-radius: var(--radius-pill); background: var(--color-action-primary);
  color: #FFFFFF; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.checklist svg { width: 22px; height: 22px; margin-top: 1px; color: var(--color-status-success); }
.checklist strong { display: block; font-weight: 650; }
.checklist span { color: var(--color-text-secondary); }

.notice {
  border: 1px solid var(--color-border-default); border-radius: var(--radius-md);
  padding: 16px 18px; background: var(--color-bg-elevated); font-size: 15px; color: var(--color-text-secondary);
}
.notice strong { color: var(--color-text-primary); }

.split { display: grid; gap: 32px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Long-form pages */
.page-title { padding: 40px 0 8px; }
.page-title h1 { margin: 0; font-family: var(--font-display); font-weight: 750; font-size: clamp(32px, 5vw, 42px); line-height: 1.1; }
.page-title .meta { margin: 10px 0 0; color: var(--color-text-tertiary); font-size: 15px; }
.prose { padding: 16px 0 64px; }
.prose h2 { font-size: 24px; line-height: 1.2; margin: 40px 0 10px; font-weight: 700; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; font-weight: 650; }
.prose p, .prose li { color: var(--color-text-primary); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .summary { background: var(--color-bg-elevated); border: 1px solid var(--color-border-card); border-radius: var(--radius-card); padding: 20px 22px; }
.prose .summary ul { margin: 8px 0 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--color-border-default); }
.prose th { font-weight: 650; background: var(--color-bg-sunken); }

details.faq { border-bottom: 1px solid var(--color-border-default); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 650; font-size: 18px; list-style-position: outside; }
details.faq p, details.faq ul { color: var(--color-text-secondary); margin: 10px 0 0; }

/* Footer */
.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--color-border-default); font-size: 14px; color: var(--color-text-tertiary); }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--color-text-secondary); font-weight: 600; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.more { margin: 22px 0 0; font-weight: 600; }
