/* Thornby - thornbysoft.com
   Calm by default. One accent, one warning colour, generous whitespace. */

:root {
  --ground: #EEF1F2;
  --surface: #FFFFFF;
  --surface-2: #F6F8F8;
  --ink: #141A1D;
  --muted: #55646B;
  --faint: #8A9AA1;
  --line: #D7DEE1;
  --pewter: #3E4B54;
  --haw: #A93529;
  --moss: #3F6B49;
  --amber: #A96C1F;
  --shadow: 0 1px 2px rgba(20,26,29,0.06), 0 8px 24px rgba(20,26,29,0.06);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F1417;
    --surface: #161D21;
    --surface-2: #1C252A;
    --ink: #E8EDEF;
    --muted: #9BACB3;
    --faint: #6E7F86;
    --line: #26323A;
    --pewter: #B4C3CA;
    --haw: #E4685B;
    --moss: #86B08B;
    --amber: #D9A05B;
    --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.35);
  }
}

* { margin: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink); background: var(--ground); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--pewter); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--haw); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.nav ul { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; }
.nav li a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav li a:hover, .nav li a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--ink); font: inherit; }
@media (max-width: 720px) {
  .nav ul { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 24px 12px; }
  .nav ul.open { display: flex; }
  .nav li a { display: block; padding: 10px 0; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero { text-align: center; padding: 84px 0 56px; }
.hero .mark { width: 96px; height: 96px; margin: 0 auto 28px; }
h1 { font-size: clamp(38px, 6vw, 56px); font-weight: 650; letter-spacing: -0.025em; line-height: 1.08; }
.tag { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); margin: 16px auto 0; max-width: 620px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.cta {
  display: inline-block; background: var(--pewter); color: var(--ground);
  padding: 13px 28px; border-radius: 999px; text-decoration: none; font-size: 16px; font-weight: 500;
  border: 1px solid transparent;
}
.cta:hover { background: var(--ink); color: var(--ground); }
.cta.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.cta.secondary:hover { border-color: var(--pewter); background: var(--surface); }

/* Sections */
section { padding: 52px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 620; letter-spacing: -0.015em; margin-bottom: 14px; line-height: 1.2; }
h3 { font-size: 18px; font-weight: 600; margin: 22px 0 6px; }
p { color: var(--muted); max-width: 72ch; }
p + p { margin-top: 12px; }
ul, ol { color: var(--muted); padding-left: 22px; margin-top: 10px; max-width: 72ch; }
li { margin-bottom: 8px; }
li strong, p strong { color: var(--ink); font-weight: 600; }
.lede { font-size: 19px; color: var(--ink); }
.quiet { color: var(--faint); font-size: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--faint); font-weight: 600; margin-bottom: 8px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p { font-size: 15px; }
.card .icon { width: 34px; height: 34px; margin-bottom: 12px; color: var(--pewter); }

.promise, .notice {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px; margin-top: 18px;
}
.notice { border-left: 4px solid var(--amber); }
.notice.danger { border-left-color: var(--haw); }
.promise strong, .notice strong { color: var(--ink); }

table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
th { color: var(--ink); font-weight: 600; }
td:first-child { color: var(--ink); }
.yes { color: var(--moss); font-weight: 600; }
.no { color: var(--haw); font-weight: 600; }
.partial { color: var(--amber); font-weight: 600; }

code { background: var(--surface-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; font-size: 14.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
pre { background: var(--surface-2); border: 1px solid var(--line); padding: 16px 18px; border-radius: 10px; overflow-x: auto; margin-top: 12px; }
pre code { background: none; border: 0; padding: 0; }

.states { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.state { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }

.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; }

/* Legal pages */
.legal h1 { font-size: clamp(30px, 4vw, 40px); margin-top: 48px; }
.legal .effective { color: var(--faint); margin: 8px 0 32px; font-size: 15px; }
.legal h2 { font-size: 21px; margin-top: 34px; }
.legal p, .legal li { max-width: 72ch; }
.legal-nav { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; }

footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--faint); font-size: 14px; margin-top: 40px; }
footer .wrap { display: grid; gap: 22px; grid-template-columns: 2fr 1fr 1fr; }
footer h4 { color: var(--ink); font-size: 14px; margin-bottom: 8px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 5px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .legal-line { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; }
@media (max-width: 720px) { footer .wrap { grid-template-columns: 1fr; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 20; }

.advisory{max-width:640px;margin:22px auto 0;padding:12px 16px;border:1px solid rgba(229,118,27,.45);background:rgba(229,118,27,.08);border-radius:12px;font-size:15px;line-height:1.5;text-align:left}
.advisory a{white-space:nowrap}
