/*
 * The public pages — pricing, thank-you, licence.
 *
 * Deliberately separate from the application's stylesheet. These three pages
 * are read by people who have not bought anything and may never sign in; they
 * must load on their own, without the bundle, and they must not start caring
 * what the app's components look like. The palette is copied from the app so
 * the two do not look like different companies, and that is the whole of the
 * relationship between them.
 */
:root{
  --bg:#f6f7f9; --surface:#fff; --surface-2:#f0f2f5; --line:#d8dde5; --line-strong:#b9c1cd;
  --text:#131820; --text-2:#4a5464; --text-3:#78828f;
  --accent:#1d4ed8; --accent-weak:#e8eeff; --accent-text:#fff;
  --warn:#a15c00; --warn-weak:#fdf3e2; --ok:#0b7a45; --ok-weak:#e6f4ec;
  --stop:#b42318; --stop-weak:#fdeceb;
  --radius:10px;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,"SF Mono","JetBrains Mono",Menlo,Consolas,monospace;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#0e1116; --surface:#161b22; --surface-2:#1c222b; --line:#2b323d; --line-strong:#3d4552;
    --text:#e8ecf1; --text-2:#a4aebd; --text-3:#7c8698;
    --accent:#5b8dff; --accent-weak:#1a2540; --accent-text:#0b0f16;
    --warn:#e3a008; --warn-weak:#2c2109; --ok:#4ac57f; --ok-weak:#0f2b1c;
    --stop:#ff7b72; --stop-weak:#2d1614;
    color-scheme:dark;
  }
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 var(--sans);-webkit-font-smoothing:antialiased}
a{color:var(--accent)}
.wrap{max-width:1040px;margin:0 auto;padding:0 20px}
.wrap.narrow{max-width:640px}
header{border-bottom:1px solid var(--line);background:var(--surface)}
header .wrap{display:flex;align-items:center;gap:16px;height:62px}
.brand{display:flex;align-items:center;gap:10px;font-weight:650;letter-spacing:-.01em}
.mark{width:30px;height:30px;border-radius:7px;background:var(--accent);color:var(--accent-text);
  display:grid;place-items:center;font-size:13px;font-weight:700}
header nav{margin-left:auto;display:flex;gap:18px;align-items:center;font-size:15px}
header nav a{color:var(--text-2);text-decoration:none}
header nav a:hover{color:var(--text)}
h1{font-size:clamp(28px,4.2vw,42px);line-height:1.14;letter-spacing:-.02em;margin:0 0 14px}
h2{font-size:22px;letter-spacing:-.01em;margin:0 0 14px}
h3{font-size:16px;margin:0 0 6px}
.lede{font-size:19px;color:var(--text-2);max-width:64ch;margin:0 0 8px}
section{padding:52px 0}
section+section{border-top:1px solid var(--line)}
.muted{color:var(--text-2)}
.small{font-size:14px}
.grid{display:grid;gap:18px}
@media(min-width:760px){.g3{grid-template-columns:repeat(3,1fr)}.g2{grid-template-columns:repeat(2,1fr)}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.notice{background:var(--warn-weak);border:1px solid var(--warn);border-left-width:5px;
  border-radius:var(--radius);padding:18px 20px;margin:26px 0 0}
.notice h3{color:var(--warn)}
.btn{display:inline-block;border:1px solid var(--line-strong);background:var(--surface);color:var(--text);
  border-radius:8px;padding:11px 18px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}
.btn[disabled]{opacity:.55;cursor:default}
.price{font-size:38px;font-weight:680;letter-spacing:-.02em;line-height:1.1}
.price .per{font-size:15px;font-weight:500;color:var(--text-2)}
.plan{display:flex;flex-direction:column;gap:14px}
.plan ul{margin:0;padding-left:20px;color:var(--text-2);font-size:15px}
/* The two cards are not the same height — only one of them earns a "save"
   badge — so the buttons are pushed to the bottom instead of floating at
   whatever height the copy above them happens to end. */
.plan .btn{margin-top:auto}
.tag{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;
  background:var(--ok-weak);color:var(--ok);border-radius:999px;padding:3px 10px}
ol.steps{counter-reset:s;list-style:none;padding:0;margin:0;display:grid;gap:14px}
ol.steps li{counter-increment:s;padding-left:44px;position:relative;color:var(--text-2)}
ol.steps li::before{content:counter(s);position:absolute;left:0;top:1px;width:28px;height:28px;border-radius:50%;
  background:var(--accent-weak);color:var(--accent);display:grid;place-items:center;font-weight:700;font-size:14px}
ol.steps strong{color:var(--text)}
footer{border-top:1px solid var(--line);background:var(--surface);padding:30px 0;color:var(--text-3);font-size:14px}
.err{background:var(--stop-weak);border:1px solid var(--stop);border-radius:8px;padding:12px 14px;margin-top:14px}
.hide{display:none!important}
.field{display:block;margin:0 0 14px}
.field label{display:block;font-size:14px;font-weight:600;margin-bottom:5px}
.field input{width:100%;padding:11px 12px;border:1px solid var(--line-strong);border-radius:8px;
  background:var(--surface);color:var(--text);font:inherit}
.field input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
dl.receipt{margin:0;display:grid;grid-template-columns:auto 1fr;gap:6px 18px;font-size:15px}
dl.receipt dt{color:var(--text-2)}
dl.receipt dd{margin:0;font-weight:600}
