/* Iron Will website — Lavender Prism, light, system fonts only. Tokens are the app's
   (client/constants/theme.ts in Iron-Will-Final). Volt lime is the app's PR colour and is
   deliberately absent here. */
:root {
  color-scheme: light;
  --bg: #F7F3FE;
  --bg-deep: #EFE9FE;
  --card: #FFFFFF;
  --border: #E7DFFB;
  --accent: #6D4AE0;
  --accent-bright: #7C5CF6;
  --orchid: #9B3ABF;
  --peri: #A5B4FC;
  --surface: #EDE9FB;
  --input: #F3EFFD;
  --text: #402F6B;
  --text-2: #665A8C;
  --muted: #6F6690;
  --shadow: 0 10px 30px rgba(74, 59, 122, 0.12);
  --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--orchid); }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── Header ─────────────────────────────────────────────── */
.top { background: rgba(247, 243, 254, 0.92); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -0.2px; white-space: nowrap; }
.brand img { border-radius: 8px; display: block; }
.top nav { display: flex; gap: 4px; }
.top nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.top nav a:hover { background: var(--surface); color: var(--accent); }
.top nav a[aria-current="page"] { background: var(--surface); color: var(--accent); }

/* ── Type ───────────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.5px; margin: 0; }
h1 { font-size: clamp(32px, 7vw, 50px); font-weight: 800; }
h2 { font-size: clamp(24px, 4.6vw, 32px); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--orchid); margin-bottom: 10px; }
.lede { font-size: 19px; color: var(--text-2); max-width: 640px; }
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }

/* ── Home hero ──────────────────────────────────────────── */
.hero { background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,0.20), rgba(255,255,255,0) 55%), linear-gradient(135deg, #6D4AE0, #9B3ABF); color: #FFFFFF; padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.pill { display: inline-block; background: #FFFFFF; color: var(--accent); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.hero h1 { color: #FFFFFF; }
.hero .lead { font-size: clamp(22px, 4.4vw, 28px); font-weight: 700; margin: 10px 0 22px; letter-spacing: -0.3px; }
.three { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.three li { background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.22); border-radius: 14px; padding: 12px 14px 12px 44px; position: relative; font-size: 16.5px; line-height: 1.5; }
.three li::before { content: attr(data-n); position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; color: var(--accent); font-weight: 800; font-size: 13px; display: grid; place-items: center; line-height: 1; }
.hero-shot { display: none; justify-self: center; width: min(300px, 78vw); }
.hero-shot img { border-radius: 22px; box-shadow: 0 24px 50px rgba(48, 22, 110, 0.35); display: block; }

/* ── Store badges: Apple's and Google's own artwork, unmodified (scripts/pages.mjs BADGE).
      48 px tall (Apple: at least 40); clear space a quarter of that, 12 px, on every side;
      Google's badge the same height, so never smaller. No hover change: the art is never altered. */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0; padding: 12px 0; }
.badges .badge { display: block; line-height: 0; border-radius: 9px; }
.badges .badge img { display: block; height: 48px; width: auto; max-width: none; border-radius: 0; box-shadow: none; }
.foot-legal { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }

/* ── Store buttons (plain text links; each page carries the badges once, above) ── */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 156px; min-height: 54px; padding: 7px 18px 8px; border-radius: 14px; background: var(--text); color: #FFFFFF; text-decoration: none; line-height: 1.15; box-shadow: 0 6px 16px rgba(64, 47, 107, 0.22); }
.store:hover { background: var(--accent); color: #FFFFFF; }
.store small { font-size: 12px; font-weight: 600; opacity: 0.85; letter-spacing: 0.2px; }
.store b { font-size: 19px; font-weight: 800; letter-spacing: -0.2px; }
.hero .store { background: #FFFFFF; color: var(--text); }
.hero .store:hover { background: var(--bg-deep); color: var(--accent); }
.free-line { font-weight: 700; margin: 0 0 10px; }
.hero .free-line { color: #FFFFFF; }

/* ── Screens strip ──────────────────────────────────────── */
.screens { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; margin: 0 -2px; overscroll-behavior-x: contain; }
.screens figure { flex: 0 0 auto; width: 210px; margin: 0; scroll-snap-align: start; }
.screens img { display: block; width: 100%; border-radius: 16px; box-shadow: var(--shadow); background: var(--surface); }
.screens figcaption { font-size: 13.5px; color: var(--text-2); margin-top: 8px; line-height: 1.4; }
.tag-pro { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--orchid); background: rgba(155, 58, 191, 0.10); border-radius: 999px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; }
.fine { font-size: 14px; color: var(--muted); }

/* ── Cards and lists ────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.two { display: grid; gap: 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li { padding-left: 28px; position: relative; color: var(--text-2); line-height: 1.5; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--accent); color: #FFFFFF; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; }
.card-h.pro + .ticks li::before { background: var(--orchid); }
.ticks li strong { color: var(--text); }
.card-h { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.card-h.pro { color: var(--orchid); }
.tools { display: grid; gap: 14px; }
.tool-link { display: block; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color .15s ease, transform .15s ease; }
.tool-link:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.tool-link h3 { color: var(--accent); margin-bottom: 6px; }
.tool-link p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.band { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── Calculator pages ───────────────────────────────────── */
.calc-head { padding: 34px 0 18px; }
.calc-head h1 { font-size: clamp(30px, 6.4vw, 44px); margin-bottom: 10px; }
.tool { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.units { display: inline-flex; background: var(--input); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin: 0 0 16px; }
.units input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.units label { padding: 7px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--text-2); cursor: pointer; user-select: none; }
.units input:checked + label { background: var(--accent); color: #FFFFFF; }
.units input:focus-visible + label { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; align-items: end; }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; color: var(--text); }
.field .box { display: flex; align-items: center; background: var(--input); border: 1.5px solid var(--border); border-radius: 14px; padding: 0 14px; }
.field .box:focus-within { border-color: var(--accent); background: #FFFFFF; }
.field input { width: 100%; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 24px; font-weight: 800; color: var(--text); padding: 11px 0; outline: none; }
.field .box span { color: var(--muted); font-weight: 700; padding-left: 6px; }
.go { font: inherit; font-weight: 800; font-size: 16px; color: #FFFFFF; background: linear-gradient(135deg, #6D4AE0, #9B3ABF); border: 0; border-radius: 14px; padding: 15px 22px; cursor: pointer; min-height: 54px; }
.go:hover { background: var(--accent); }
.result { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 18px; outline: none; }
.answer-label { font-size: 14px; font-weight: 700; color: var(--text-2); margin: 0 0 2px; }
.answer-big { font-size: clamp(40px, 11vw, 56px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.05; margin: 0 0 6px; color: var(--accent); }
.answer-big span { font-size: 0.42em; letter-spacing: 0; margin-left: 6px; color: var(--text-2); }
.answer-how { color: var(--text-2); font-size: 15.5px; margin: 6px 0 0; }
.note { background: var(--surface); border-radius: 12px; padding: 10px 14px; color: var(--text); font-size: 15.5px; }
.plates { list-style: none; padding: 0; margin: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.plates li { background: var(--surface); border-radius: 12px; padding: 8px 14px; font-size: 18px; color: var(--text); }
.plates b { font-size: 22px; color: var(--accent); }
.bar-drawing { display: block; max-width: 100%; height: auto; margin: 10px 0 0; }
.grid { width: 100%; border-collapse: collapse; margin: 16px 0 4px; font-size: 16px; }
.grid caption { text-align: left; font-weight: 700; font-size: 14.5px; color: var(--text-2); padding-bottom: 8px; }
.grid th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.grid td { padding: 9px 8px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.grid td small { color: var(--muted); font-size: 13px; margin-left: 4px; }
.grid tr.hit td { background: var(--surface); font-weight: 700; }
.warm td:first-child { color: var(--muted); width: 2.6em; }
.then { margin: 14px 0 0; font-size: 17px; }
.then span { color: var(--text-2); font-size: 15px; }

.app-band { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 22px 0 0; }
.app-band img { border-radius: 12px; display: block; }
.app-band h2 { font-size: 19px; margin: 2px 0 6px; letter-spacing: -0.2px; }
.app-band p { color: var(--text-2); font-size: 15.5px; }
.app-band .stores { margin-top: 4px; }
.app-band .badges { padding-bottom: 0; }
.app-band .store { min-width: 140px; min-height: 48px; }
.app-band .store b { font-size: 17px; }

.prose h2 { margin-top: 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.formula { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 12px 16px; font-weight: 700; color: var(--text); margin: 0 0 14px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; margin: 0 0 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 16px; list-style-position: outside; }
.faq details > div { padding: 0 16px 6px; color: var(--text-2); }
.safety { font-size: 14.5px; color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--border); margin-top: 24px; padding: 40px 0 34px; background: var(--bg-deep); }
.foot-grid { display: grid; gap: 26px; }
.foot-h { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot li a { font-weight: 700; text-decoration: none; }
.foot li span { display: block; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.foot p { font-size: 15px; color: var(--text-2); }
.foot-small { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* ── /get ───────────────────────────────────────────────── */
.get { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: linear-gradient(135deg, #6D4AE0, #9B3ABF); color: #FFFFFF; text-align: center; }
.get-card { max-width: 420px; }
.get-card img { border-radius: 22px; box-shadow: 0 18px 40px rgba(48, 22, 110, 0.35); }
.get-card h1 { color: #FFFFFF; margin: 18px 0 8px; font-size: 40px; }
.get-card p { font-size: 18px; }
.get .stores { justify-content: center; margin: 18px 0 14px; }
.get .badges { justify-content: center; margin: 6px 0 2px; }
.get .credit { margin: 22px auto 0; max-width: 360px; font-size: 11.5px; line-height: 1.45; opacity: 0.85; }
.get .store { background: #FFFFFF; color: var(--text); }
.get .store:hover { background: var(--bg-deep); color: var(--accent); }
.get-status { font-weight: 700; min-height: 1.6em; }
.get a.small { color: #FFFFFF; font-size: 14px; }

@media (min-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.25fr 0.75fr; }
  .hero-shot { display: block; }
  .two { grid-template-columns: 1fr 1fr; }
  .tools { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.1fr 0.8fr 1.3fr; }
  .tool { padding: 26px; }
  .screens figure { width: 230px; }
}
@media (max-width: 380px) {
  .top nav a { padding: 7px 7px; font-size: 14.5px; }
  .brand { font-size: 17px; }
  .store { min-width: 0; flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 719px) {
  form[data-calc="orm"] .go { grid-column: 1 / -1; }
}
