/* Eagle Lift website. Colours follow the app icon (navy + orange) and docs/UI_STYLE.md:
   orange only for things you tap, dark mode is lifted slate (never pure black).
   Restyle by changing the tokens in :root (light) and the two dark blocks below; the rules use tokens only.
   Contrast (WCAG AA, checked 2026-10-15): light: --on-accent/--accent 4.6, --link/--bg 4.7, --text-2 on --bg 5.4 / --card 5.8 / --tint-bg 5.0,
   --tint-fg/--tint-bg 11.0, --good/--card 5.4, --link-on-navy/--navy-2 5.9, --on-navy-2 on the eyebrow pill 7.4.
   dark: --on-accent/--accent 6.9, --link/--bg 6.9, --text-2 on --card 6.2 / --tint-bg 5.1, --tint-fg/--tint-bg 9.0, --good/--card 6.8,
   --on-navy-2 on the eyebrow pill 5.2. Re-check if you change any of these. */
:root {
  /* Brand surfaces */
  --navy: #03234d;
  --navy-2: #0b3166;          /* lower end of the hero gradient */
  --on-navy: #ffffff;
  --on-navy-2: #b9c6dc;       /* secondary text on navy */

  /* Tappable (orange) */
  --accent: #c2540a;          /* button fill; white text on it = 4.6:1 */
  --accent-hover: #a94808;
  --on-accent: #ffffff;
  --link: #b84f09;            /* text links on --bg / --card (4.7:1) */
  --link-on-navy: #f59b56;    /* text links on navy (7:1) */
  --focus: #b84f09;           /* focus ring on light surfaces */
  --focus-on-navy: #ffb27a;   /* focus ring on navy */

  /* Page surfaces and text */
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #0f1b2d;
  --text-2: #5a6678;          /* secondary text */
  --line: #e2e7ef;
  --good: #1a7a43;            /* done tick in the example card */
  --tint-bg: #e8eef9;         /* icon tiles and the Next time panel */
  --tint-fg: #0b3166;         /* icons on --tint-bg */
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .05), 0 1px 1px rgba(15, 27, 45, .03);
  --shadow-md: 0 12px 32px -12px rgba(15, 27, 45, .18), 0 2px 6px rgba(15, 27, 45, .05);
  --shadow-phone: 0 40px 80px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-caption: 13px;
  --fs-h1-hero: clamp(38px, 7vw, 68px);
  --fs-h1-page: clamp(34px, 6vw, 48px);
  --fs-h2: clamp(28px, 4.5vw, 40px);
  --fs-h3: 19px;
  --lh: 1.55;

  /* Shape and space */
  --radius: 20px;
  --radius-lg: 24px;
  --radius-sm: 14px;
  --max: 1120px;              /* page width */
  --max-text: 760px;          /* text pages (support, privacy) */
  --gutter: 16px;
  --section-y: 88px;
  --tap: 44px;                /* minimum tap target */
  --header-h: 64px;

  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #0e2347; --navy-2: #163262; --on-navy-2: #a9b8d1;
    --accent: #f08a3e; --accent-hover: #f59b56; --on-accent: #151b26;
    --link: #f08a3e; --link-on-navy: #f59b56; --focus: #f59b56; --focus-on-navy: #ffb27a;
    --bg: #151b26; --card: #1e2635; --text: #e8edf5; --text-2: #9aa7ba; --line: #2c3648;
    --good: #4cc282; --tint-bg: #283450; --tint-fg: #cfdcf5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, .5); --shadow-phone: 0 40px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy: #0e2347; --navy-2: #163262; --on-navy-2: #a9b8d1;
  --accent: #f08a3e; --accent-hover: #f59b56; --on-accent: #151b26;
  --link: #f08a3e; --link-on-navy: #f59b56; --focus: #f59b56; --focus-on-navy: #ffb27a;
  --bg: #151b26; --card: #1e2635; --text: #e8edf5; --text-2: #9aa7ba; --line: #2c3648;
  --good: #4cc282; --tint-bg: #283450; --tint-fg: #cfdcf5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, .5); --shadow-phone: 0 40px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: var(--fs-body)/var(--lh) var(--font);
  overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
p a:not(.btn), dd a { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.top :focus-visible, .hero :focus-visible, .promise :focus-visible { outline-color: var(--focus-on-navy); }
[id] { scroll-margin-top: 16px; }
.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.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;
}

/* Skip link: hidden until focused */
.skip {
  position: absolute; left: 8px; top: -100px; z-index: 10;
  background: var(--card); color: var(--text); padding: 10px 16px; border-radius: 10px;
  min-height: var(--tap); display: inline-flex; align-items: center; font-weight: 600;
}
.skip:focus { top: 8px; }

/* Header: same navy as the hero so the two read as one surface. Narrow screens: links move under the brand. */
.top { background: var(--navy); color: var(--on-navy); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 16px; min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap);
  color: var(--on-navy); font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav ul a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px;
  color: var(--on-navy-2); font-size: var(--fs-small); font-weight: 500; border-radius: 10px;
}
.nav ul a:hover, .nav ul a[aria-current] { color: var(--on-navy); text-decoration: none; }
.nav ul a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
@media (max-width: 479px) {
  .nav { padding-top: 8px; padding-bottom: 4px; }
  .nav nav { width: 100%; }
  .nav ul { justify-content: space-between; margin: 0 -12px; }
}

/* Hero */
.hero {
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(120, 160, 230, .16) 0%, rgba(120, 160, 230, 0) 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--on-navy); padding: 48px 0 96px; overflow: hidden;
}
.hero a:not(.btn) { color: var(--link-on-navy); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
  color: var(--on-navy-2); font-size: 14px; font-weight: 500; letter-spacing: .01em;
}
.hero h1 { font-size: var(--fs-h1-hero); line-height: 1.04; margin: 0 0 20px; letter-spacing: -0.035em; font-weight: 750; max-width: 12em; }
.hero .lead { font-size: clamp(18px, 2.3vw, 21px); line-height: 1.5; color: var(--on-navy-2); margin: 0 0 32px; max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.btn-quiet {
  display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; font-size: 16px;
}
.btn-quiet::after { content: "\2193"; margin-left: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .btn-quiet::after { transition: transform .2s ease; }
  .btn-quiet:hover::after { transform: translateY(3px); }
}

/* Buttons (the only filled orange) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 10px 28px; border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1.25;
  max-width: 100%; letter-spacing: -0.005em;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px -6px rgba(194, 84, 10, .55); }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .15s ease, transform .15s ease; }
  .btn-primary:hover { transform: translateY(-1px); }
}

/* The phone: the example is what the app shows after a set */
.phone {
  margin: 0 auto; width: 100%; max-width: 330px; padding: 10px; border-radius: 50px;
  background: #0a1220; box-shadow: var(--shadow-phone);
}
.screen {
  position: relative; background: var(--bg); color: var(--text); border-radius: 40px; padding: 48px 14px 30px;
  display: flex; flex-direction: column; gap: 12px;
}
.island { position: absolute; top: 14px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 999px; background: #0a1220; }
.home-bar { align-self: center; width: 110px; height: 5px; border-radius: 999px; background: var(--text-2); opacity: .45; margin-top: 8px; }
.demo { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-sm); }
.demo .ex { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; line-height: 1.25; }
.demo .meta { color: var(--text-2); font-size: 13px; margin-bottom: 10px; }
.sets { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.sets th { text-align: left; color: var(--text-2); font-weight: 500; font-size: 12px; padding: 4px 6px 4px 0; }
.sets td { padding: 8px 6px 8px 0; border-top: 1px solid var(--line); }
.sets th:last-child, .sets td:last-child { padding-right: 0; }
.sets tr.done td { color: var(--text-2); }
.sets .check, .sets tr.done .check { color: var(--good); font-weight: 700; text-align: right; }
.next { background: var(--tint-bg); border-radius: 18px; padding: 16px; }
.next .label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.next .val { font-size: 30px; line-height: 1.15; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 2px 0 4px; }
.next .why { font-size: 14px; line-height: 1.4; color: var(--text-2); }

/* Sections */
.section { padding: var(--section-y) 0 0; }
main > .section:last-child { padding-bottom: var(--section-y); }
.section h2 { font-size: var(--fs-h2); line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.025em; font-weight: 750; }
.section .sub { color: var(--text-2); font-size: 19px; line-height: 1.5; margin: 0 0 40px; max-width: 34em; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { position: relative; }
.num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 16px;
  background: var(--tint-bg); color: var(--tint-fg); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums;
}
.steps h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; }
.steps p { margin: 0; color: var(--text-2); }

/* Feature cards */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
}
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform .2s ease, box-shadow .2s ease; }
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}
.card h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--tint-bg); color: var(--tint-fg);
  display: grid; place-items: center; margin-bottom: 20px;
}
.icon svg { width: 24px; height: 24px; }

/* Everything a lifter needs */
.list {
  columns: 2; column-gap: 56px; padding: 8px 32px; margin: 0; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.list li { break-inside: avoid; padding: 18px 0; border-bottom: 1px solid var(--line); }
.list li:nth-child(5), .list li:last-child { border-bottom: 0; }
.list b { display: block; letter-spacing: -0.005em; }
.list span { color: var(--text-2); font-size: var(--fs-small); line-height: 1.5; display: block; margin-top: 2px; }

.promise {
  background-color: var(--navy); color: var(--on-navy); border-radius: var(--radius-lg); padding: 48px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center;
  background-image: radial-gradient(60% 120% at 100% 0%, rgba(120, 160, 230, .14) 0%, rgba(120, 160, 230, 0) 70%);
}
.promise img { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); }
.promise h2 { color: var(--on-navy); margin: 0 0 8px; }
.promise p { color: var(--on-navy-2); margin: 0; max-width: 38em; font-size: 18px; }
.promise a { color: var(--link-on-navy); }

/* Text pages (support, privacy, 404) */
.page { padding: 64px 0 96px; }
.page .wrap { max-width: var(--max-text); }
.page h1 { font-size: var(--fs-h1-page); line-height: 1.1; margin: 0 0 8px; letter-spacing: -0.03em; font-weight: 750; }
.page .date { color: var(--text-2); font-size: 18px; margin: 0 0 36px; }
.page h2 { font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 16px; line-height: 1.2; }
.page p { margin: 0 0 16px; }
details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
@media (prefers-reduced-motion: no-preference) {
  details { transition: box-shadow .2s ease; }
}
details:hover, details[open] { box-shadow: var(--shadow-md); }
summary {
  cursor: pointer; font-weight: 600; min-height: 60px; padding: 14px 0; display: flex; align-items: center; gap: 16px;
  list-style: none; letter-spacing: -0.005em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; margin-left: auto; flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg) translate(-2px, -2px);
}
details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
@media (prefers-reduced-motion: no-preference) {
  summary::after { transition: transform .2s ease; }
}
summary:focus-visible { outline-offset: 2px; border-radius: 10px; }
details p { color: var(--text-2); margin: 0 0 20px; }
.contact {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; margin: 0 0 8px;
  box-shadow: var(--shadow-md);
}
.contact .icon { margin: 0; }
.contact h2 { margin: 0 0 8px; font-size: 24px; }
.contact p { margin: 0 0 20px; color: var(--text-2); }
.contact .btn { overflow-wrap: anywhere; }

/* Privacy: long-form reading */
.legal .wrap { max-width: 720px; }
.legal p { line-height: 1.7; color: var(--text); margin-bottom: 20px; }
.legal p > strong:first-child { display: block; font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; margin-top: 16px; margin-bottom: 4px; }
.legal .date { margin-bottom: 40px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--text-2); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0 -12px; }
.foot nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; color: var(--text-2); }
.foot nav a:hover { color: var(--text); }

/* Tablet and phone */
@media (max-width: 899px) {
  .grid3 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; padding: 24px; }
  .card .icon { grid-row: span 2; margin-bottom: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; padding-bottom: 28px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: 19.5px; top: 48px; bottom: 8px; width: 1px; background: var(--line); }
  .num { grid-row: span 2; margin-bottom: 0; }
}
@media (max-width: 819px) {
  .hero { padding: 32px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .promise { grid-template-columns: minmax(0, 1fr); padding: 32px; gap: 20px; }
  .promise img { width: 72px; height: 72px; border-radius: 16px; }
  :root { --section-y: 64px; }
}
@media (max-width: 699px) {
  .list { columns: 1; padding: 4px 20px; }
  .list li:nth-child(5) { border-bottom: 1px solid var(--line); }
  .section .sub { font-size: 17px; margin-bottom: 28px; }
}
@media (max-width: 479px) {
  .card { display: block; }
  .card .icon { margin-bottom: 16px; }
  .promise { padding: 28px 22px; }
  .page { padding: 40px 0 64px; }
  .contact { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .hero .cta { flex-direction: column; align-items: stretch; }
  .hero .cta .btn { width: 100%; }
  .btn-quiet { justify-content: center; }
}
