/* WeaverAll colour roles: the one place colours are set (the type roles are at the end of this file). Components use only these roles, never a colour value.
   Rules (docs/website/02-design-system.md, Colours):
   - Red (accent) means "act": buttons, the closing section, emphasis words. Teal (good) means "it worked": done,
     results, the free plan. Nothing else gets a colour.
   - Surfaces: bg (the page), surface (cards), surface-alt (grey sections), surface-sunk (inside a card).
   - Inverse sections (hero, the dark band, footer) stay dark in both light and dark mode.
   - White text sits only on accent, good-strong, good, strong or inverse, all at least 4.5 to 1.
   Dark mode follows the visitor's device setting (prefers-color-scheme). */
:root{
  color-scheme:light dark;
  --bg:#FFFFFF; --surface:#FFFFFF; --surface-alt:#F4F3F0; --surface-sunk:#FAF9F7; --fill-soft:#EBEAE6;
  --text:#0E1113; --text-2:#33393C; --mute:#62686C; --faint:#9BA1A4; --line:#E2E1DD; --line-strong:#D6D4CE;
  --strong:#0E1113; --on-strong:#FFFFFF; --strong-press:#000000;
  --accent:#D33F2D; --accent-press:#B23122; --accent-text:#D33F2D; --accent-soft:#FBE4E0;
  --bad:#B23122; --bad-text:#B23122;
  --good:#2A8279; --good-strong:#23716A; --good-press:#174F4A; --good-text:#23716A; --good-soft:#DDF1EE; --good-mint:#A9D9CD;
  --inverse:#0E1113; --inverse-2:#1A1F22; --on-color:#FFFFFF;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#0F1315; --surface:#1A1F22; --surface-alt:#15191C; --surface-sunk:#22282C; --fill-soft:#2A3034;
    --text:#ECEDEA; --text-2:#C8CCCE; --mute:#9BA2A6; --faint:#737B7F; --line:#2A3034; --line-strong:#3B4347;
    --strong:#ECEDEA; --on-strong:#0E1113; --strong-press:#8C9498;
    --accent-press:#9E2A1D; --accent-text:#EF6A57; --accent-soft:#3A1E1A;
    --bad:#EF6A57; --bad-text:#EF6A57;
    --good-text:#4CBDB1; --good-soft:#163330;
    --inverse:#07090A; --inverse-2:#14181B;
  }
  /* Parts that are dark already, and drawings of a customer's website, keep their light-mode roles inside */
  .keep-light,
  #top,.nav,.mng,.free,.close,footer,.sc.ink,.sc.red,.fc.pay,.agd-hub,.shopb,.phone-msg,.minip,
  .hero.real,.card.real,.cta{
    color-scheme:light;
    --bg:#FFFFFF; --surface:#FFFFFF; --surface-alt:#F4F3F0; --surface-sunk:#FAF9F7; --fill-soft:#EBEAE6;
    --text:#0E1113; --text-2:#33393C; --mute:#62686C; --faint:#9BA1A4; --line:#E2E1DD; --line-strong:#D6D4CE;
    --strong:#0E1113; --on-strong:#FFFFFF; --strong-press:#000000;
    --accent-press:#B23122; --accent-text:#D33F2D; --accent-soft:#FBE4E0;
    --bad:#B23122; --bad-text:#B23122;
    --good-text:#23716A; --good-soft:#DDF1EE;
    --inverse:#0E1113; --inverse-2:#1A1F22;
  }
}

/* WeaverAll type roles: the one place the font lists and the shared text shapes are set. Both stylesheets (the home
   page's and the one for stories, guides and the facts page) use these, so the same thing looks the same everywhere.
   display: headings and big numbers. body: all other text. leading: the line height of body text.
   head: a page's or a section's big headline. title: the title of a card.
   lead: the larger text under a headline. leading-small: the line height of small text (15px and under).
   Other sizes stay with each component (docs/website/02-design-system.md, Type). */
:root{
  --display:"Archivo","Inter",system-ui,sans-serif; --body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --leading:1.55; --leading-small:1.45;
  --lead:clamp(18px,1.6vw,21px);
  --head-stretch:112%; --head-weight:850; --head-tracking:-.045em; --head-leading:.9;
  --title-stretch:106%; --title-weight:800; --title-tracking:-.03em; --title-leading:1.05;
}
:root{--gut:clamp(20px,4vw,72px)}
*{box-sizing:border-box;margin:0}
html{-webkit-text-size-adjust:100%;scrollbar-gutter:stable} /* the scrollbar's space is kept from the first paint, so the page never gets narrower while it loads */
body{background:var(--bg);color:var(--text);font-family:var(--body);font-size:17px;line-height:var(--leading)}
a{color:inherit}
.wrap{max-width:1280px;margin:0 auto;padding:0 var(--gut)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:14px;background:var(--accent);color:var(--on-color);font:inherit;font-weight:700;font-size:16px;padding:15px 24px;text-decoration:none;box-shadow:0 4px 0 var(--accent-press);cursor:pointer}
.btn.sm{padding:10px 16px;font-size:14.5px;border-radius:12px;box-shadow:0 3px 0 var(--accent-press)}
.logo{display:flex;align-items:center;gap:10px;font-family:var(--display);font-stretch:112%;font-weight:850;font-size:21px;letter-spacing:-.02em;text-decoration:none}
.logo svg{width:32px;height:21px}
.bar{position:sticky;top:0;z-index:5;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.bar .wrap{display:flex;align-items:center;justify-content:space-between;height:68px;gap:16px}
.bar nav{display:flex;align-items:center;gap:22px;font-weight:600;font-size:15px}
.bar nav a:not(.btn){text-decoration:none;color:var(--mute)}
.hero{background:var(--surface-alt);padding:clamp(48px,7vw,96px) 0 clamp(36px,5vw,64px)}
.hero.real{background:var(--inverse);color:var(--on-color)}
.kick{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.hero.real .kick{color:rgba(255,255,255,.65)}
.kick a{text-decoration:none}
.kick .dot{width:10px;height:10px;border-radius:50%;background:var(--accent)}
.badge{font-style:normal;font-size:11px;font-weight:800;letter-spacing:.06em;padding:4px 10px;border-radius:999px;background:var(--fill-soft);color:var(--text)}
.badge.real{background:var(--accent);color:var(--on-color)}
.hero h1{font-family:var(--display);font-stretch:var(--head-stretch);font-weight:var(--head-weight);letter-spacing:var(--head-tracking);line-height:var(--head-leading);font-size:clamp(38px,5.6vw,84px);max-width:16em;margin:18px 0 0}
.hero.idx h1{font-size:clamp(48px,8vw,128px)}
.hero h1 span{color:var(--accent-text)}
.dek{font-size:var(--lead);line-height:1.5;max-width:40em;margin-top:20px;color:var(--text-2)}
.hero.real .dek{color:rgba(255,255,255,.85)}
.meta{display:flex;align-items:center;gap:16px;margin-top:22px;font-size:14px;color:var(--mute)}
.hero.real .meta{color:rgba(255,255,255,.65)}
.st{font-weight:800;font-size:12.5px;border-radius:999px;padding:5px 12px;background:var(--good-soft);color:var(--good-text)}
.st.no{background:var(--accent-soft);color:var(--bad-text)}.st.wait{background:var(--fill-soft);color:var(--text)}.st.alert{background:var(--accent);color:var(--on-color)}
.disc{font-size:14px;color:var(--mute);border-left:3px solid var(--accent);padding:4px 0 4px 14px;margin:32px 0 0;max-width:44em}
.disc.top{margin-top:22px;color:var(--text);font-weight:600}
.loopline{list-style:none;padding:0;display:flex;gap:6px;margin-top:34px;max-width:860px}
.loopline li{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;font-size:12.5px;font-weight:700;color:var(--mute)}
.loopline i{height:6px;border-radius:3px;background:var(--line-strong)}
.loopline .done i{background:var(--strong)}.hero.real .loopline .done i{background:var(--surface)}.hero.real .loopline i{background:rgba(255,255,255,.2)}
.loopline .done{color:var(--text)}.hero.real .loopline li{color:rgba(255,255,255,.5)}.hero.real .loopline .done{color:var(--on-color)}
.loopline .ok i{background:var(--good)!important}.loopline .no i{background:var(--accent-press)!important}
.loopline span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.body{display:grid;grid-template-columns:minmax(0,360px) minmax(0,1fr);gap:clamp(32px,6vw,96px);padding-top:56px;padding-bottom:80px;align-items:start}
.sheet{position:sticky;top:92px}
.sheet-in{background:var(--surface-alt);border-radius:24px;padding:22px}
.lbl{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);margin-bottom:10px}
dl div{display:grid;grid-template-columns:96px 1fr;gap:10px;padding:9px 0;border-top:1px solid var(--line);font-size:14.5px;line-height:var(--leading-small)}
dt{color:var(--mute);font-weight:600}dd{font-weight:600}
.cap{font-size:13px;color:var(--mute);line-height:var(--leading-small);margin-top:8px}
.paper{max-width:700px}
.sec+.sec,.pull+.sec{margin-top:40px}
.sec h2{font-family:var(--display);font-stretch:108%;font-weight:850;font-size:clamp(24px,2.3vw,32px);letter-spacing:-.025em;line-height:1.1;margin-bottom:14px;display:flex;gap:14px;align-items:baseline}
.sec h2 span{font-size:.55em;color:var(--accent-text);letter-spacing:0}
.sec p+p{margin-top:14px}
.sec ul{margin:14px 0 0;padding-left:22px}.sec li{margin:6px 0}
.pull{margin:44px 0;font-family:var(--display);font-stretch:108%;font-weight:800;font-size:clamp(24px,2.6vw,34px);line-height:1.15;letter-spacing:-.02em;border-left:6px solid var(--accent);padding-left:22px}
.pn{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:48px}
.pn a{display:block;border:1.5px solid var(--line);border-radius:18px;padding:16px 18px;text-decoration:none;font-weight:700;line-height:1.3;font-size:15.5px}
.pn a:hover{border-color:var(--text)}
.pn small{display:block;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--mute);margin-bottom:6px}
.pn .n{text-align:right}
.chart{height:150px;margin-top:16px;--cb:var(--line-strong);--cl:var(--text);--cm:var(--mute)}
.chart svg{width:100%;height:100%;overflow:visible}
.chart .bar{fill:var(--cb)}.chart .hi{fill:var(--accent)}.chart .aft{fill:var(--good)}
.chart .ref{stroke:var(--cl);stroke-width:1.5;stroke-dasharray:5 5}
.chart .tx{font-family:var(--body);font-size:11px;fill:var(--cm)}
.chart .val{font-family:var(--display);font-weight:800;font-size:13px;fill:var(--cl)}
.chart .pre{fill:none;stroke:var(--cb);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.chart .post{fill:none;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
.chart .mk{stroke:var(--cm);stroke-width:1;stroke-dasharray:3 4}
.chart .band{fill:var(--cb);opacity:.45}
.chart .pend{fill:none;stroke:var(--cm);stroke-width:2;stroke-dasharray:6 5}
.filters{display:flex;gap:8px;margin-top:28px;flex-wrap:wrap}
.filters button{border:1.5px solid var(--text);background:transparent;border-radius:999px;padding:9px 16px;font:inherit;font-weight:700;font-size:14.5px;cursor:pointer;color:var(--text)}
.filters button b{font-weight:600;color:var(--mute);margin-left:4px}
.filters button.on{background:var(--strong);color:var(--on-strong)}.filters button.on b{color:color-mix(in srgb,var(--on-strong) 70%,transparent)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:18px;padding:48px 0 0}
.card{display:flex;flex-direction:column;gap:10px;background:var(--surface-alt);border-radius:24px;padding:22px;text-decoration:none;transition:transform .2s}
.card:hover{transform:translateY(-3px)}
.card.real{background:var(--inverse);color:var(--on-color)}
.card.real .chart{--cb:rgba(255,255,255,.28);--cl:rgba(255,255,255,.75);--cm:rgba(255,255,255,.7)}
.card .ct{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700;color:color-mix(in srgb,currentColor 80%,transparent)}
.card h2{font-family:var(--display);font-stretch:var(--title-stretch);font-weight:var(--title-weight);font-size:24px;letter-spacing:var(--title-tracking);line-height:var(--title-leading)}
.card p{font-size:14.5px;line-height:var(--leading-small);color:color-mix(in srgb,currentColor 80%,transparent)}
.card .cf{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:6px;font-size:14px;font-weight:700}
.grid + .disc{margin:36px 0 80px}
.cta{background:var(--accent);color:var(--on-color);padding:clamp(56px,8vw,110px) 0}
.cta h2{font-family:var(--display);font-stretch:var(--head-stretch);font-weight:var(--head-weight);font-size:clamp(36px,5vw,72px);letter-spacing:var(--head-tracking);line-height:var(--head-leading);max-width:12em}
.cta p{font-size:var(--lead);margin-top:16px;color:var(--on-color)}
.addr{display:flex;gap:8px;max-width:560px;background:var(--surface);border-radius:18px;padding:7px 7px 7px 20px;margin-top:26px}
.addr input{flex:1;min-width:0;border:0;outline:0;font:inherit;font-size:18px;color:var(--text);background:transparent}
.addr .btn{background:var(--strong);box-shadow:0 4px 0 var(--strong-press)}
footer{background:var(--inverse);color:rgba(255,255,255,.7);padding:28px 0;font-size:13.5px}
footer .wrap{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
footer .logo{color:var(--on-color);font-size:18px}footer .r{margin-left:auto}
@media (max-width:900px){
  .body{grid-template-columns:1fr;padding-top:32px}
  .sheet{position:static}
  .bar nav a:not(.btn){display:none}
  .pn{grid-template-columns:1fr}.pn .n{text-align:left}
  .loopline span{font-size:11px}
}
@media (max-width:560px){
  .loopline li span{display:none}.loopline{gap:4px}
  .addr{flex-direction:column;padding:8px}.addr input{padding:10px 12px}
  dl div{grid-template-columns:88px 1fr}
  footer .r{margin-left:0}
}

/* ---------- WordPress (theme weaverall) ---------- */
.admin-bar .bar{top:32px}
@media (max-width:782px){.admin-bar .bar{top:46px}}
.chart svg{direction:ltr}
/* the top bar button keeps to one line; on phones it and the gap get smaller so it fits beside the logo */
.bar .btn{white-space:nowrap}
@media (max-width:560px){.bar .wrap{gap:10px}.bar .btn.sm{padding:9px 12px;font-size:13.5px}}
@media (max-width:400px){.bar .logo{font-size:18px}}
/* the Guides link leaves the top bar on phones */
@media (max-width:640px){.bar nav .ng{display:none}}
