/* Ringround (weldonhastings.org) — own design system, SPEC 6. Evergreen + one amber signal colour, Prompt / Anuphan /
   M PLUS 1 Code (self-hosted, SIL OFL 1.1). No inline styles anywhere: the CSP allows only this file. */

@font-face { font-family: "Prompt"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/prompt-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Prompt"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/prompt-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("fonts/anuphan-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/anuphan-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "M PLUS 1 Code"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("fonts/m-plus-1-code-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/m-plus-1-code-latin-wght-normal.woff2") format("woff2"); }

:root {
  --night: #0b2a22;
  --night-2: #12382e;
  --pine: #0f5132;
  --pine-2: #176a45;
  --pine-ink: #0a3a25;
  --amber: #f4b23e;
  --amber-soft: #fbe2b0;
  --amber-ink: #7a4d00;
  --ink: #13201a;
  --muted: #4a5a52;
  --paper: #fbfbf8;
  --white: #ffffff;
  --mist: #e9f0ec;
  --mist-2: #f3f7f4;
  --line: #cfdad3;
  --line-2: #e2e9e5;
  --danger: #a61b1b;
  --danger-bg: #fdecec;
  --ok-bg: #e5f4ea;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 42, 34, .06), 0 8px 24px rgba(11, 42, 34, .08);
  --shadow-lg: 0 2px 4px rgba(11, 42, 34, .08), 0 24px 60px rgba(11, 42, 34, .16);
  --display: "Prompt", "Segoe UI", system-ui, sans-serif;
  --text: "Anuphan", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "M PLUS 1 Code", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; font-weight: 400; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--pine); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--pine-2); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; color: var(--pine-ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
code, .mono { font-family: var(--mono); font-size: .95em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--read { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pine-2); margin: 0 0 .9rem; }
.lede { font-size: 1.22rem; line-height: 1.55; color: var(--muted); max-width: 40em; }

/* ---------- logo ---------- */
.mark__ring { fill: none; stroke: currentColor; stroke-width: 3; opacity: .55; }
.mark__branch { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; }
.mark__leaf { fill: var(--amber); }
.mark__hub { fill: currentColor; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pine-ink); }
.logo__mark { width: 36px; height: 36px; color: var(--pine); }
.logo__word { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -.01em; }

/* ---------- top bar ---------- */
.topbar { position: relative; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line-2); }
.is-home .topbar { background: var(--night); border-bottom-color: rgba(255, 255, 255, .08); }
.is-home .topbar .logo { color: var(--white); }
.is-home .topbar .logo__mark { color: var(--white); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.topbar__left { display: flex; align-items: center; gap: 14px; }
.chip { display: inline-block; font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink); text-decoration: none; }
.chip:hover { color: var(--amber-ink); background: var(--amber); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .98rem; color: var(--ink); text-decoration: none; }
.nav__list a:hover { background: var(--mist); color: var(--pine-ink); }
.nav__list a[aria-current="page"] { background: var(--mist); color: var(--pine-ink); font-weight: 600; }
.is-home .nav__list a { color: rgba(255, 255, 255, .86); }
.is-home .nav__list a:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.nav__menu { display: none; position: relative; }
.nav__toggle { list-style: none; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: .95rem; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--pine-ink); }
.nav__toggle::-webkit-details-marker { display: none; }
.is-home .nav__toggle { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.nav__drop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0; }
.nav__drop a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav__drop a:hover { background: var(--mist); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1; padding: 15px 26px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--signal { background: var(--amber); color: var(--night); }
.btn--signal:hover { background: #ffc25a; color: var(--night); box-shadow: 0 6px 18px rgba(244, 178, 62, .35); }
.btn--pine { background: var(--pine); color: var(--white); }
.btn--pine:hover { background: var(--pine-2); color: var(--white); }
.btn--line { background: transparent; color: var(--pine-ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--pine); color: var(--pine-ink); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .4); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn--danger { background: var(--danger); color: var(--white); }
.btn--danger:hover { background: #8a1515; color: var(--white); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--xs { padding: 7px 12px; font-size: .82rem; border-width: 1px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
button.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--pine); text-decoration: underline; cursor: pointer; }

/* ---------- home hero ---------- */
.hero { position: relative; background: var(--night); color: var(--white); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 48%, rgba(244, 178, 62, .14), transparent 42%), radial-gradient(circle at 12% 110%, rgba(23, 106, 69, .55), transparent 50%); pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 24px; }
.hero h1 span { display: block; color: var(--amber); }
.hero .eyebrow { color: var(--amber); }
.hero__link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 4px; font-family: var(--display); font-weight: 600; color: var(--white); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.hero__link:hover { color: var(--amber); }
.hero__lede { font-size: 1.24rem; line-height: 1.55; color: rgba(255, 255, 255, .84); max-width: 34em; margin-bottom: 30px; }
.hero__price { margin: 26px 0 0; font-size: .98rem; color: rgba(255, 255, 255, .78); }
.hero__price strong { color: var(--white); }
.hero__art { position: relative; }
.radial { width: 100%; height: auto; display: block; }
.radial__ring { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; stroke-dasharray: 3 7; }
.radial__edge { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 2; }
.radial__node { fill: var(--night-2); stroke: rgba(255, 255, 255, .55); stroke-width: 2; }
.radial__node--1 { fill: var(--amber); stroke: var(--amber); }
.radial__node--2 { fill: #2f8a5f; stroke: #8fd1ae; }
.radial__hub { fill: var(--white); }
.radial__label { fill: rgba(255, 255, 255, .85); font-family: var(--mono); font-size: 13px; }
.radial__label--hub { fill: var(--night); font-family: var(--display); font-weight: 700; font-size: 13px; }
.radial__pulse { fill: none; stroke: var(--amber); stroke-width: 2; opacity: 0; transform-origin: 260px 260px; animation: pulse 4.5s ease-out infinite; }
.radial__pulse--b { animation-delay: 1.5s; }
.radial__pulse--c { animation-delay: 3s; }
@keyframes pulse { 0% { transform: scale(.15); opacity: .7; } 80% { opacity: 0; } 100% { transform: scale(1); opacity: 0; } }
.hero__caption { margin: 14px 0 0; font-size: .92rem; color: rgba(255, 255, 255, .7); text-align: center; }

/* ---------- stats strip ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line-2); }
.stats__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 34px 28px; border-right: 1px solid var(--line-2); }
.stat:last-child { border-right: 0; }
.stat__n { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--pine-ink); line-height: 1; letter-spacing: -.02em; }
.stat__n small { font-size: .45em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.stat__t { margin: 10px 0 0; color: var(--muted); font-size: .98rem; }

/* ---------- sections ---------- */
.band { padding: 96px 0; }
.band--mist { background: var(--mist-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.band--night { background: var(--night); color: rgba(255, 255, 255, .86); }
.band--night h2, .band--night h3 { color: var(--white); }
.band--night .eyebrow { color: var(--amber); }
.band__head { max-width: 760px; margin-bottom: 48px; }
.band__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* timeline: the word travels */
.timeline { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 32px 26px; box-shadow: var(--shadow); }
.timeline__row { display: grid; grid-template-columns: 210px minmax(0, 1fr) 96px; gap: 18px; align-items: center; padding: 12px 0; }
.timeline__row + .timeline__row { border-top: 1px dashed var(--line); }
.timeline__who { font-family: var(--display); font-weight: 600; color: var(--pine-ink); }
.timeline__who small { display: block; font-family: var(--text); font-weight: 400; color: var(--muted); font-size: .88rem; }
.timeline__bar { position: relative; height: 18px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.timeline__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--line); }
.timeline__fill--tree { background: linear-gradient(90deg, var(--pine), var(--pine-2)); }
.timeline__fill--one { background: repeating-linear-gradient(90deg, #b8c6be 0 10px, #cdd8d1 10px 20px); }
.w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; } .w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; } .w-50 { width: 50%; } .w-55 { width: 55%; } .w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; } .w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; } .w-95 { width: 95%; } .w-100 { width: 100%; }
.timeline__min { font-family: var(--mono); font-weight: 600; text-align: right; color: var(--ink); }
.timeline__note { margin: 16px 0 0; font-size: .92rem; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px 28px; }
.step__art { display: block; width: 100%; height: 132px; margin-bottom: 22px; border-radius: 12px; background: var(--mist-2); }
.step__no { font-family: var(--mono); font-weight: 600; font-size: .86rem; color: var(--amber-ink); letter-spacing: .08em; }
.step h3 { margin-top: 6px; }
.step p { color: var(--muted); margin: 0; }
.art-line { fill: none; stroke: var(--pine); stroke-width: 2; stroke-linecap: round; }
.art-soft { fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.art-dot { fill: var(--pine); }
.art-amber { fill: var(--amber); }
.art-card { fill: var(--white); stroke: var(--line); stroke-width: 1.5; }
.art-text { fill: var(--muted); font-family: var(--mono); font-size: 10px; }

/* showcase: a real pocket card */
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.showcase__notes { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.showcase__notes li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
.showcase__notes b { font-family: var(--mono); color: var(--amber-ink); }
.sample-tag { display: inline-block; margin-bottom: 12px; font-size: .82rem; color: var(--muted); }

/* pocket card (used on the home page and in print) */
.pcard { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.pcard__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--night); color: var(--white); padding: 14px 20px; }
.pcard__group { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.pcard__brand { font-family: var(--mono); font-size: .74rem; color: var(--amber); letter-spacing: .06em; text-transform: uppercase; }
.pcard__body { padding: 18px 20px 16px; }
.pcard__me { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--pine-ink); margin: 0 0 2px; }
.pcard__from { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.pcard__label { font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pine-2); margin: 0 0 6px; }
.pcard__calls { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: c; }
.pcard__calls > li { counter-increment: c; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line-2); }
.pcard__calls > li::before { content: counter(c); font-family: var(--mono); font-weight: 600; color: var(--white); background: var(--pine); border-radius: 50%; width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .78rem; }
.pcard__who { font-weight: 600; }
.pcard__num { font-family: var(--mono); font-size: .95rem; white-space: nowrap; }
.pcard__num a { color: var(--ink); text-decoration: none; }
.pcard__alt { grid-column: 2 / -1; font-size: .86rem; color: var(--muted); }
.pcard__fall { grid-column: 2 / -1; font-size: .86rem; color: var(--ink); background: var(--amber-soft); border-radius: 8px; padding: 6px 9px; margin-top: 2px; }
.pcard__fall b { font-weight: 600; }
.pcard__foot { border-top: 1px dashed var(--line); padding: 10px 20px 14px; font-size: .86rem; color: var(--muted); }
.pcard__pad { height: 30px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pcard__body .pcard__pad:last-of-type { margin-bottom: 14px; }

/* audience */
.groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.group svg { width: 40px; height: 40px; display: block; margin-bottom: 14px; }
.group h3 { font-size: 1.05rem; margin-bottom: 6px; }
.group p { margin: 0; color: var(--muted); font-size: .95rem; }
.ico-stroke { fill: none; stroke: var(--pine); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-fill { fill: var(--amber); }

/* plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; }
.plans--center { margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 32px 30px; }
.plan--plus { border: 2px solid var(--pine); box-shadow: var(--shadow-lg); }
.plan__flag { position: absolute; top: -14px; left: 30px; background: var(--amber); color: var(--night); font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan__name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--pine-ink); margin: 0 0 4px; }
.plan__price { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1.1; color: var(--ink); margin: 10px 0 2px; letter-spacing: -.02em; }
.plan__price small { font-size: .38em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan__alt { margin: 0 0 6px; color: var(--muted); }
.plan__free { align-self: flex-start; display: inline-block; margin: 6px 0 18px; padding: 6px 12px; border-radius: 999px; background: var(--ok-bg); color: var(--pine-ink); font-weight: 600; font-size: .92rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 28px; }
.plan li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%; background: var(--mist); border: 4px solid var(--pine); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.price-tag { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink); }
.price-tag__plan { font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: var(--pine); color: var(--white); padding: 3px 9px; border-radius: 999px; }
.price-tag__free { color: var(--pine-ink); background: var(--ok-bg); padding: 2px 8px; border-radius: 999px; font-size: .82rem; }
.preview-note { max-width: 980px; margin: 28px auto 0; padding: 18px 22px; border-radius: var(--radius); background: var(--white); border: 1px dashed var(--pine); color: var(--ink); }

/* promise list */
.promise { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 0; }
.promise li { border-top: 3px solid var(--amber); padding-top: 16px; }
.promise h3 { color: var(--white); font-size: 1.08rem; }
.promise p { margin: 0; font-size: .97rem; color: rgba(255, 255, 255, .78); }

/* faq */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--pine-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; color: var(--pine); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 40px; }

/* ---------- inner pages ---------- */
.pagehead { position: relative; background: var(--white); border-bottom: 1px solid var(--line-2); overflow: hidden; }
.pagehead::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; border: 2px dashed var(--line); box-shadow: 0 0 0 46px var(--mist-2), 0 0 0 48px var(--line-2); pointer-events: none; }
.pagehead__in { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 54px; }
.pagehead .lede { margin-bottom: 0; }
.content { padding: 64px 0 88px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .45em; }
.callout { border-radius: var(--radius); padding: 18px 22px; background: var(--amber-soft); color: var(--ink); margin: 24px 0; }
.callout--mist { background: var(--mist); }
.callout p:last-child { margin-bottom: 0; }

/* checklist (guide) */
.checklist { list-style: none; padding: 0; margin: 0; counter-reset: chk; display: grid; gap: 18px; max-width: 860px; }
.checklist > li { counter-increment: chk; position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.checklist > li::before { content: counter(chk, decimal-leading-zero); font-family: var(--mono); font-weight: 600; font-size: 1.05rem; color: var(--night); background: var(--amber); border-radius: 12px; width: 52px; height: 52px; display: grid; place-items: center; }
.checklist h2 { font-size: 1.28rem; margin: 4px 0 8px; }
.checklist p { margin: 0 0 .6em; color: var(--muted); }
.checklist p:last-child { margin-bottom: 0; }

/* math tool */
.tool { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.3rem; }
.result__big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.result__cell { background: var(--mist-2); border-radius: var(--radius); padding: 16px; }
.result__cell b { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1.1; color: var(--pine-ink); }
.result__cell span { color: var(--muted); font-size: .92rem; }
.rounds { width: 100%; border-collapse: collapse; font-size: .98rem; }
.rounds th, .rounds td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
.rounds th { font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rounds td.num { font-family: var(--mono); }

/* forms */
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field small, .hint { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }
input[type="text"], input[type="tel"], input[type="number"], input[type="date"], input[type="url"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(15, 81, 50, .18); }
textarea { min-height: 150px; resize: vertical; font-family: var(--mono); font-size: .95rem; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--pine); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; }
.alert { border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px; }
.alert--err { background: var(--danger-bg); color: var(--danger); border: 1px solid #f3c2c2; }
.alert--err ul { margin: 0; }
.alert--ok { background: var(--ok-bg); color: var(--pine-ink); border: 1px solid #bfe0cb; }
.start { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.start__side { background: var(--mist-2); border-radius: var(--radius-lg); padding: 28px; }
.start__side ol { margin: 0; padding-left: 1.2em; }
.start__side li { margin-bottom: .6em; }

/* ---------- tree editor ---------- */
.treehead { background: var(--night); color: var(--white); }
.treehead__in { padding-top: 34px; padding-bottom: 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.treehead h1 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.treehead .eyebrow { color: var(--amber); }
.treehead p { margin: 0; color: rgba(255, 255, 255, .8); }
.privlink { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.privlink input { max-width: 560px; font-family: var(--mono); font-size: .88rem; background: var(--night-2); color: var(--white); border-color: rgba(255, 255, 255, .22); }
.privlink small { flex-basis: 100%; color: rgba(255, 255, 255, .7); font-size: .88rem; }
.tabs { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line-2); }
.tabs__in { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; }
.tabs a { white-space: nowrap; padding: 9px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .94rem; }
.tabs a:hover { background: var(--mist); }
.editor { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; padding: 36px 24px 80px; align-items: start; }
.sect { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 26px; scroll-margin-top: 70px; }
.sect h2 { font-size: 1.4rem; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sect__meta { font-family: var(--text); font-weight: 400; font-size: .92rem; color: var(--muted); letter-spacing: 0; }
.people { list-style: none; padding: 0; margin: 0 0 20px; }
.person { border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; scroll-margin-top: 80px; }
.person--starter { border-color: var(--pine); background: var(--mist-2); }
.person__n { font-family: var(--mono); font-weight: 600; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--pine-ink); font-size: .88rem; }
.person--starter .person__n { background: var(--pine); color: var(--white); }
.person__name { font-weight: 600; }
.person__line { font-size: .92rem; color: var(--muted); }
.person__line .mono { color: var(--ink); }
.badge { display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--mist); color: var(--pine-ink); margin-left: 6px; vertical-align: 1px; }
.badge--amber { background: var(--amber-soft); color: var(--amber-ink); }
.badge--grey { background: #eceeed; color: #48524d; }
.person__acts { display: flex; gap: 6px; align-items: center; }
.person__acts form { margin: 0; }
.person details { grid-column: 1 / -1; }
.person details summary { cursor: pointer; font-size: .9rem; color: var(--pine); font-weight: 600; }
.person details[open] summary { margin-bottom: 12px; }
.edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.meter { margin: 0 0 18px; }
.meter__bar { height: 10px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.meter__fill { height: 100%; background: var(--pine); border-radius: 999px; }
.meter__fill--over { background: var(--amber); }
.meter__txt { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-top: 6px; }
.summary { position: sticky; top: 76px; }
.sum-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.sum-grid div { background: var(--mist-2); border-radius: 12px; padding: 12px 14px; }
.sum-grid b { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--pine-ink); line-height: 1.1; }
.sum-grid span { font-size: .86rem; color: var(--muted); }
.warn { background: var(--amber-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: .95rem; }
.outline { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.outline ul { list-style: none; margin: 0; padding-left: 22px; border-left: 2px solid var(--line-2); margin-left: 9px; }
.outline li { padding: 4px 0; }
.outline .min { font-family: var(--mono); font-size: .82rem; color: var(--muted); margin-left: 6px; }
.chartwrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 14px; background: var(--mist-2); padding: 10px; margin: 0 0 16px; }
.treesvg { display: block; height: auto; }
.chartwrap .treesvg { max-width: none; }
.treesvg__edge { fill: none; stroke: #9db3a7; stroke-width: 2; }
.treesvg__node rect { fill: var(--white); stroke: var(--pine); stroke-width: 1.5; }
.treesvg__node--l0 rect { fill: var(--night); stroke: var(--night); }
.treesvg__node--l0 text { fill: var(--white); }
.treesvg__node--l1 rect { fill: var(--amber-soft); stroke: #d99a2b; }
.treesvg__name { font-family: var(--display); font-weight: 600; font-size: 13px; fill: var(--ink); }
.treesvg__sub { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); }
.treesvg__node--l0 .treesvg__sub { fill: var(--amber); }
.plusfeat { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.plusfeat h3 { font-size: 1.05rem; margin-bottom: 4px; }
.plusfeat p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.drills { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 12px; }
.drills th, .drills td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line-2); }
.drills th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.danger-zone { border-color: #efc9c9; }
.keybox { font-family: var(--mono); font-size: .92rem; background: var(--ok-bg); border-radius: 10px; padding: 10px 12px; word-break: break-all; }
.alert .keybox { background: var(--white); border: 1px solid #bfe0cb; margin: 12px 0 10px; }

/* ---------- message page ---------- */
.message { padding: 90px 0 110px; }
.message h1 { max-width: 18em; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: rgba(255, 255, 255, .78); padding: 64px 0 34px; font-size: .97rem; }
.foot a { color: var(--white); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; }
.foot .logo { color: var(--white); }
.foot .logo__mark { color: var(--white); }
.foot__lead { margin: 14px 0 0; max-width: 28em; }
.foot__911 { margin-top: 14px; color: var(--amber); font-weight: 600; }
.foot h2 { font-family: var(--display); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }

/* ---------- AdEngine slot (PLAN-2026-10-16 s3; label + reserved height live on the ins, so a hidden slot leaves no box) ---------- */
.ae-slot { margin: 0; padding: 0; }
.ae-slot ins.adengine { display: block; max-width: 728px; min-height: 110px; margin: 32px auto; text-align: center; text-decoration: none; }
.ae-slot ins.adengine::before { content: "Advertisement"; display: block; margin-bottom: 4px; font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #5f6b76); }
.ae-slot ins.adengine a { display: inline-block; }
@media (max-width: 767px) { .ae-slot ins.adengine { max-width: 300px; min-height: 270px; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav__list--wide { display: none; }
  .nav__menu { display: block; }
  .hero__in { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 64px; gap: 30px; }
  .hero__art { max-width: 460px; margin: 0 auto; width: 100%; }
  .showcase, .tool, .start, .editor { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__grid > :first-child { grid-column: 1 / -1; }
  .band { padding: 72px 0; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .editor { padding: 24px 16px 64px; }
  .stats__in { grid-template-columns: minmax(0, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-2); padding: 22px 4px; }
  .stat:last-child { border-bottom: 0; }
  .groups, .plans, .promise, .result__big, .grid2, .grid4, .edit-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline { padding: 22px 18px; }
  .timeline__row { grid-template-columns: minmax(0, 1fr) 70px; }
  .timeline__bar { grid-column: 1 / -1; grid-row: 2; }
  .checklist > li { grid-template-columns: minmax(0, 1fr); }
  .person { grid-template-columns: 34px minmax(0, 1fr); }
  .person__acts { grid-column: 1 / -1; flex-wrap: wrap; }
  .treehead__in { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .chip { display: none; }
  .topbar .btn--sm { padding: 9px 14px; }
  .sect { padding: 20px 16px; }
  .panel { padding: 20px; }
  .plan { padding: 28px 22px 24px; }
  .pagehead::after { display: none; }
}
@media (max-width: 400px) {
  .logo__word { font-size: 1.15rem; }
  .nav { gap: 10px; }
  .hero h1 { font-size: 2.35rem; }
}

/* ---------- print: chart and pocket cards ---------- */
.printbar { background: var(--mist-2); border-bottom: 1px solid var(--line-2); }
.printbar__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.sheet { padding: 28px 24px 60px; }
.sheet__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 3px solid var(--night); padding-bottom: 10px; margin-bottom: 18px; }
.sheet__head h1 { font-size: 1.8rem; margin: 0; }
.sheet__meta { font-size: .9rem; color: var(--muted); text-align: right; }
.sheet__rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; font-size: .92rem; }
.sheet__rules div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.sheet__rules b { display: block; font-family: var(--display); color: var(--pine-ink); }
.msgpad { border: 2px solid var(--night); border-radius: 12px; padding: 12px 14px; margin: 16px 0; }
.msgpad p { margin: 0 0 6px; font-weight: 600; }
.msgpad .pcard__pad { height: 26px; }
.tablewrap { overflow-x: auto; }
.listing { width: 100%; border-collapse: collapse; font-size: .92rem; }
.listing th, .listing td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.listing th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.listing td.mono { white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cards .pcard { box-shadow: none; break-inside: avoid; page-break-inside: avoid; }
.cards .pcard__top { padding: 9px 14px; }
.cards .pcard__body { padding: 10px 14px 8px; }
.cards .pcard__me { font-size: 1.1rem; }
.cards .pcard__calls > li { padding: 4px 0; }
.cards .pcard__foot { padding: 7px 14px 9px; font-size: .8rem; }
@media (max-width: 720px) { .cards, .sheet__rules { grid-template-columns: minmax(0, 1fr); } .sheet { padding: 20px 16px 48px; } .sheet__head { flex-direction: column; align-items: flex-start; } .sheet__meta { text-align: left; } }

@media print {
  @page { size: letter; margin: 0.45in; }
  body { background: #fff; font-size: 10.5pt; }
  .topbar, .foot, .printbar, .tabs, .ae-slot, .skip, .noprint { display: none !important; }
  .sheet { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
  .chartwrap { border: 0; background: none; padding: 0; overflow: visible; }
  .treesvg, .chartwrap .treesvg { max-width: 100%; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .cards .pcard { border: 1px dashed #777; border-radius: 0; }
  .cards .pcard__top { background: #fff; color: #000; border-bottom: 2px solid #000; }
  .cards .pcard__brand { color: #000; }
  .cards .pcard__calls > li::before { background: #000; }
  .cards .pcard__fall { background: #f1f1f1; }
  .listing { font-size: 9pt; }
  .tablewrap { overflow: visible; }
  /* v1.0.2: tighter print spacing, so a free tree (12 people) fits its chart on one letter page; v1.0.3: a long tree
     name no longer wraps the heading onto two big lines */
  .sheet__head { margin-bottom: 10px; }
  .sheet__head h1 { font-size: 17pt; }
  .sheet__meta { font-size: 8.5pt; }
  .msgpad { margin: 10px 0; padding: 8px 12px; }
  .msgpad .pcard__pad { height: 20px; }
  .sheet__rules { margin: 10px 0; gap: 8px; font-size: 9pt; }
  .sheet__rules div { padding: 6px 9px; }
  .listing th, .listing td { padding: 2px 5px; }
  .sheet > .hint { font-size: 8pt; margin: 6px 0 0; }
  .listing tr { break-inside: avoid; }
}
