/* ISO 26517 Revision Checker: a mobile field guide.
   Palette: pale sage paper, teal ink, coral signal, amber stage marker.
   Type: humanist sans headings, serif body, mono for record data. */

:root {
  --paper: #f5f7f1;
  --sheet: #ffffff;
  --ink: #14231f;
  --ink-soft: #3a4b45;
  --muted: #5b6b64;
  --teal: #0d5c4a;
  --teal-deep: #08402f;
  --mint: #dff0e6;
  --mint-line: #c6e2d2;
  --coral: #b03a24;
  --coral-soft: #fbe6e0;
  --amber: #f2c14e;
  --amber-soft: #fdf2d4;
  --rule: #dde4d8;
  --mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  --sans: "Avenir Next", Avenir, "Futura", "Trebuchet MS", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --radius: 18px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-deep); }
p { margin: 0 0 1.05em; }
h1, h2, h3, h4, .sans { font-family: var(--sans); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.45rem); line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 .42em; font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2.05rem); line-height: 1.16; letter-spacing: -0.015em; margin: 2.2em 0 .55em; font-weight: 700; }
h3 { font-size: 1.16rem; line-height: 1.3; margin: 1.7em 0 .4em; font-weight: 700; }
h4 { font-size: 1rem; margin: 1.3em 0 .3em; font-weight: 700; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin: 0 0 .45em; }
code, .mono, .code { font-family: var(--mono); font-size: max(.86em, 12px); letter-spacing: .01em; }
strong { font-weight: 700; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin: 0 auto; }
.narrow { max-width: 760px; }
.measure { max-width: 68ch; }

/* Signal strip and header */
.signal { height: 6px; display: flex; }
.signal span { flex: 1; }
.signal .s1 { background: var(--teal); }
.signal .s2 { background: var(--mint-line); }
.signal .s3 { background: var(--amber); }
.signal .s4 { background: var(--coral); }
.topbar { background: var(--sheet); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); font-family: var(--sans); font-weight: 700; line-height: 1.1; }
 .brand .mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--teal); color: #fff; font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; }
.brand small { display: block; font-family: var(--mono); font-weight: 400; font-size: .75rem; letter-spacing: .04em; color: var(--muted); margin-top: .2rem; }
nav.main { display: flex; flex-wrap: wrap; gap: .2rem; font-family: var(--sans); font-size: .9rem; }
nav.main a { text-decoration: none; color: var(--ink-soft); padding: .5rem .65rem; border-radius: 999px; }
nav.main a:hover { background: var(--mint); color: var(--teal-deep); }
nav.main a[aria-current="page"] { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding: 3.4rem 0 2.6rem; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); background: var(--mint); border: 1px solid var(--mint-line); padding: .38rem .7rem; border-radius: 999px; margin: 0 0 1rem; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 34em; }
.price-line { font-family: var(--sans); font-size: .98rem; font-weight: 600; margin: 1.1rem 0 1.3rem; }
.trust { font-family: var(--sans); font-size: .95rem; line-height: 1.45; color: var(--ink-soft); border-left: 4px solid var(--teal); padding: .1rem 0 .1rem .8rem; margin: 1rem 0 .7rem; max-width: 36em; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.hero-badges li { font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; background: var(--sheet); border: 1px solid var(--mint-line); border-radius: 999px; padding: .32rem .6rem; color: var(--teal-deep); }
.price-line .sep { color: var(--rule); padding: 0 .5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.2rem; border-radius: 999px; background: var(--teal); color: #fff; font-family: var(--sans); font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid var(--teal); cursor: pointer; }
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn.alt { background: transparent; color: var(--teal); }
.btn.alt:hover { background: var(--mint); color: var(--teal-deep); }
.btn.coral { background: var(--coral); border-color: var(--coral); }
.btn.coral:hover { background: #a83621; border-color: #a83621; }
.btn.small { min-height: 40px; padding: .45rem .85rem; font-size: .88rem; }

/* Phone frame with the hero photograph */
.phone-card { position: relative; display: flex; justify-content: center; }
.phone { position: relative; width: min(100%, 360px); background: var(--ink); border-radius: 38px; padding: 10px; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 86px; height: 8px; border-radius: 99px; background: #2a3a34; z-index: 2; }
.phone img { border-radius: 29px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.phone .caption { position: absolute; left: -18px; right: -18px; bottom: -26px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: .8rem .95rem; font-family: var(--sans); font-size: .82rem; line-height: 1.4; color: var(--ink-soft); }
.stamp { position: absolute; top: -16px; right: -10px; z-index: 3; background: var(--amber); color: var(--ink); font-family: var(--mono); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .5rem .7rem; border-radius: 8px; transform: rotate(3deg); border: 1px solid #d9a72f; }

/* Stage tracker */
.tracker { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0 0 2rem; }
.tracker .top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .9rem; }
.tracker .top strong { font-family: var(--sans); }
.tracker .top span { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.track .step { position: relative; padding: 1.55rem .6rem 0 0; border-top: 3px solid var(--rule); }
.track .step.done { border-top-color: var(--teal); }
.track .step.now { border-top-color: var(--coral); }
.track .step .tag { position: absolute; top: -.72rem; left: 0; font-family: var(--mono); font-size: .75rem; background: var(--paper); padding-right: .35rem; color: var(--muted); }
.track .step.done .tag, .track .step.now .tag { color: var(--ink); }
.track .step b { display: block; font-family: var(--sans); font-size: .88rem; line-height: 1.25; }
.track .step em { display: block; font-style: normal; font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-top: .3rem; }
.track .step.now b { color: var(--coral); }

/* Sections */
section.band { padding: 3rem 0; }
section.band.tint { background: var(--mint); border-top: 1px solid var(--mint-line); border-bottom: 1px solid var(--mint-line); }
section.band.dark { background: var(--ink); color: #f0f5ee; }
section.band.dark h2, section.band.dark h3 { color: #fff; }
section.band.dark a { color: #b9e3ce; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.kicker { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin: 0 0 .4rem; }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.3rem 1.35rem; }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: var(--teal-deep); font-family: var(--mono); font-size: .8rem; font-weight: 700; margin-bottom: .7rem; }
.big { font-family: var(--sans); font-size: 2.4rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.card .stat { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--sheet); }
table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: .92rem; }
th, td { text-align: left; padding: .72rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: #eef4ec; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); position: sticky; top: 0; }
tbody tr:nth-child(even) { background: #fbfcf9; }
tbody tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
.state { display: inline-block; font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; padding: .18rem .45rem; border-radius: 6px; background: var(--mint); color: var(--teal-deep); border: 1px solid var(--mint-line); white-space: nowrap; }
.state.draft { background: var(--amber-soft); border-color: #efd79b; color: #6b4c07; }
.state.open { background: var(--coral-soft); border-color: #f2c4b8; color: #8f2c18; }

/* Unit page */
.unit-head { background: var(--sheet); border-bottom: 1px solid var(--rule); padding: 2.6rem 0 2rem; }
.crumbs { font-family: var(--sans); font-size: .82rem; color: var(--muted); margin: 0 0 .8rem; }
.crumbs a { color: var(--muted); }
.unit-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 20ch; }
.unit-head .lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 46em; }
.unit-body { padding: 2.4rem 0 3rem; }
.unit-grid { display: grid; grid-template-columns: 270px 1fr; gap: 2.4rem; align-items: start; }
.record { position: sticky; top: 96px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.15rem; font-family: var(--sans); font-size: .86rem; }
.record .big-code { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; color: var(--teal); line-height: 1; margin-bottom: .2rem; }
.record dl { margin: .8rem 0 0; }
.record dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: .7rem; }
.record dd { margin: .12rem 0 0; line-height: 1.4; }
.record .src { font-family: var(--mono); font-size: .75rem; word-break: break-word; }
.record dd a, .source-box a, .pager a { display: inline-block; min-height: 24px; padding: 2px 0; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose .step-list { counter-reset: step; list-style: none; padding: 0; }
.prose .step-list li { counter-increment: step; position: relative; padding-left: 2.4rem; margin-bottom: .85rem; }
.prose .step-list li::before { content: counter(step); position: absolute; left: 0; top: .05rem; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--mint); color: var(--teal-deep); font-family: var(--mono); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.ask { background: var(--amber-soft); border: 1px solid #efd79b; border-radius: 14px; padding: 1.1rem 1.2rem; margin: 1.6rem 0; }
.ask h3 { margin: 0 0 .4rem; font-size: 1rem; }
.ask ul { margin: 0; }
.source-box { background: var(--sheet); border: 1px dashed #b9c9bf; border-radius: 12px; padding: 1rem 1.1rem; font-family: var(--sans); font-size: .86rem; margin-top: 2rem; }
.source-box p { margin: 0 0 .35rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); margin-top: 2.4rem; padding-top: 1.2rem; font-family: var(--sans); font-size: .9rem; }

/* Subheading chips */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 1.2rem; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chips a, .chips span { display: inline-flex; align-items: center; min-height: 30px; font-family: var(--mono); font-size: .75rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; padding: .28rem .5rem; color: var(--ink-soft); text-decoration: none; }
.chips a:hover { border-color: var(--teal); color: var(--teal); }

/* Free check */
.check { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; }
.check h2 { margin-top: 0; }
.check fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
.check legend, .check .field > label { display: block; font-family: var(--sans); font-weight: 700; font-size: .98rem; margin-bottom: .5rem; }
.check .field { margin: 0 0 1.2rem; }
.check .hint { font-family: var(--sans); font-size: .82rem; color: var(--muted); margin: .3rem 0 0; }
.check label.radio { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem .55rem; border: 1px solid var(--rule); border-radius: 10px; margin-bottom: .35rem; font-family: var(--sans); font-size: .92rem; cursor: pointer; }
.check label.radio:hover { border-color: var(--teal); background: #f4faf6; }
.check input[type=radio], .check input[type=checkbox] { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--teal); flex: none; }
.check select, .check input[type=date] { width: 100%; min-height: 46px; border: 1px solid #b9c9bf; border-radius: 10px; padding: .5rem .65rem; font-family: var(--sans); font-size: 1rem; background: #fff; color: var(--ink); }
.check .actions { margin-top: .4rem; }
.disclaimer { font-family: var(--sans); font-size: .8rem; color: var(--muted); margin-top: 1rem; }
.verdict { margin-top: 1.4rem; border-radius: 14px; border: 1px solid var(--mint-line); background: var(--mint); padding: 1.1rem 1.2rem; }
.verdict-word { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; color: var(--teal-deep); margin: 0 0 .35rem; }
.verdict .reading { font-family: var(--mono); font-size: .8rem; color: var(--teal-deep); }
.verdict h3 { margin: .7rem 0 .3rem; font-size: .95rem; }
.verdict ul { margin: 0 0 .6rem; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.plan { background: var(--sheet); border: 2px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.plan.feature { border-color: var(--teal); }
.plan .amount { font-family: var(--sans); font-size: 2.7rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: .4rem 0 .1rem; }
.plan .amount span { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 1rem 0 1.3rem; padding-left: 1.1rem; }
.plan .btn { margin-top: auto; }
.plan .tagline { font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--coral); }

/* FAQ */
details { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: .9rem 1rem; margin-bottom: .55rem; }
details summary { cursor: pointer; font-family: var(--sans); font-weight: 700; font-size: .98rem; }
details p { margin: .6rem 0 0; }

/* Grounding band */
.ground { background: #eaf4ec; border-top: 1px solid var(--mint-line); border-bottom: 1px solid var(--mint-line); padding: 2.4rem 0; }
.ground .badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.ground .badges li { font-family: var(--mono); font-size: .75rem; letter-spacing: .03em; background: #fff; border: 1px solid var(--mint-line); border-radius: 999px; padding: .35rem .65rem; color: var(--teal-deep); }
.prov { background: var(--ink); color: #cfe3d6; font-family: var(--mono); font-size: .75rem; padding: 1rem 0; }
.prov .wrap { display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }

/* Footer */
footer.site { background: var(--ink); color: #d8e6dc; padding: 2.8rem 0 1.6rem; font-family: var(--sans); font-size: .9rem; }
footer.site h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #9fc4ae; margin: 0 0 .7rem; }
footer.site a { color: #d8e6dc; }
footer.site .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: .35rem; }
footer.site .fine { border-top: 1px solid #2b4038; margin-top: 2rem; padding-top: 1rem; font-size: .78rem; color: #a9bdb1; }
footer.site .fine p { margin: 0; }

/* Utility */
.notice { background: var(--coral-soft); border: 1px solid #f2c4b8; border-radius: 12px; padding: .9rem 1rem; font-family: var(--sans); font-size: .9rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.pill-row li { font-family: var(--mono); font-size: .75rem; background: var(--mint); border: 1px solid var(--mint-line); border-radius: 999px; padding: .24rem .55rem; }
.timeline { list-style: none; padding: 0; margin: 1rem 0; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.6rem; border-left: 2px solid var(--rule); margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--rule); border: 2px solid var(--paper); }
.timeline li.done::before { background: var(--teal); }
.timeline li.now::before { background: var(--coral); }
.timeline li strong { font-family: var(--sans); }
.timeline li span { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-left: .45rem; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2.2rem; }
  .phone-card { order: 2; }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .unit-grid { grid-template-columns: 1fr; }
  .record { position: static; }
  .plans { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 1.4rem); }
  .topbar .wrap { min-height: 64px; }
  nav.main { font-size: .82rem; gap: 0; }
  nav.main a { padding: .4rem .45rem; }
  .brand .mark { width: 38px; height: 38px; }
  .brand span:last-child { font-size: .86rem; }
  .hero { padding: 2rem 0 1.6rem; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .track { grid-template-columns: repeat(2, 1fr); row-gap: 1.2rem; }
  footer.site .cols { grid-template-columns: 1fr; gap: 1.4rem; }
  .phone .caption { position: static; margin-top: .7rem; left: 0; right: 0; bottom: 0; }
  .stamp { right: 0; }
  th, td { padding: .55rem .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
