/* The free guides on the front door (/guides, hub.ts): written to be found
   by someone searching, and dressed as the app is, so the page they land on
   already looks like the product -- the oxblood bar, its colour carried on
   below as the band and stopping halfway down the first card, white lifted
   cards, pills. Light only, as the prices and Try pages are. No script is
   needed: guides.js adds only the Copy buttons. */
:root{--bar:#140000;--ink:#140000;--text:#1a1a1a;--soft:#6e6e73;--bg:#f4f1ea;--line:#e4ded2;--rose:#d79d9d;--rose-bg:#f2dede;
  --ok:#2f6b4f;--accent:#7f6329;
  --sans:-apple-system,BlinkMacSystemFont,"Inter","Helvetica Neue",Arial,sans-serif;
  --r-card:24px;--gut:24px;--pad:28px;
  --card-bg:linear-gradient(180deg,#fff 0%,#fdfbf7 100%);
  --card-edge:1px solid rgba(20,0,0,.08);
  --card-shadow:inset 0 1px 0 #fff,0 1px 2px rgba(20,0,0,.04),0 24px 60px -30px rgba(20,0,0,.3)}
*{box-sizing:border-box}
html{text-size-adjust:100%;-webkit-text-size-adjust:100%;background:var(--bg)}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:17px;line-height:1.55;
  -webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
a{color:var(--accent)}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* The bar, the band, the card and the hero are site.css's, shared with
   the prices and Try pages. */
@media(hover:hover){
  .more a:hover{transform:translateY(-2px);box-shadow:inset 0 1px 0 #fff,0 1px 2px rgba(20,0,0,.05),0 28px 60px -28px rgba(20,0,0,.36)}
  .copy:hover{background:#e9e2d4}
  .toc a:hover{background:#fff}
}

.kick{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;color:var(--soft)}
.kick b{display:inline-flex;align-items:center;height:26px;padding:0 12px;border-radius:999px;background:var(--rose-bg);color:var(--ink);font-size:13px;font-weight:600}
.toc{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:22px 0 0}
.toc li{margin:0}
.toc a{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 14px;border-radius:999px;text-decoration:none;color:#3c0707;font-size:14px;font-weight:500;
  border:1px solid rgba(20,0,0,.1);background:linear-gradient(180deg,#fff 0,#f7f3ec 100%);box-shadow:inset 0 1px 0 #fff,0 1px 2px rgba(20,0,0,.05)}
.toc a i{font-style:normal;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}

/* The steps: numbered cards joined by a thin line, as a timeline. */
.steps{list-style:none;padding:0;margin:32px 0 0;position:relative}
.steps::before{content:"";position:absolute;left:47px;top:40px;bottom:40px;width:2px;background:linear-gradient(180deg,var(--rose),rgba(215,157,157,.25))}
.step{position:relative;margin:0 0 20px}
.step:last-child{margin-bottom:0}
.sh{display:flex;align-items:center;gap:14px;margin:0 0 12px}
.num{flex:none;width:40px;height:40px;border-radius:999px;background:var(--bar);color:#f4f1ea;display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:17px;box-shadow:0 0 0 5px #fff,0 0 0 6px rgba(215,157,157,.6);font-variant-numeric:tabular-nums}
.sh h2{margin:0;font-size:23px;line-height:1.2;letter-spacing:-.015em;color:var(--ink)}
.when{display:inline-block;margin:2px 0 0;font-size:14px;color:var(--soft)}
.step p,.sec p{margin:0 0 12px}
.step ul,.sec ul{margin:0 0 12px;padding-left:22px}
.step li,.sec li{margin:4px 0}

/* An email, drawn as the app draws one (.mailprev): white, its subject on
   a line of its own, and Copy, which guides.js shows where it works. */
.mail{background:#fff;border:1px solid var(--line);border-radius:calc(var(--r-card) - 10px);margin:16px 0 4px;overflow:hidden}
.mail .mh{display:flex;align-items:center;gap:10px;padding:10px 12px 10px 16px;border-bottom:1px solid var(--line);background:#fbf9f5}
.mail .mh .s{flex:1;min-width:0;font-size:14px;color:#3a3a3c}
.mail .mh .s b{color:var(--text);font-weight:600}
.mail pre{margin:0;padding:14px 16px 16px;font:inherit;font-size:15.5px;line-height:1.55;white-space:pre-wrap;word-wrap:break-word;color:var(--text)}
.mail .ph{background:#f4ecd9;color:#5e4515;border-radius:4px;padding:0 3px}
.copy{flex:none;min-height:36px;padding:0 14px;border:0;border-radius:999px;background:#f1ece2;color:var(--ink);font:inherit;font-size:14px;font-weight:600;cursor:pointer;
  display:inline-flex;align-items:center;gap:6px;transition:background-color .15s}
.copy[hidden]{display:none}
.copy.done{background:var(--ok);color:#fff}

/* What the app does at this step: a tinted strip with the app's own icon. */
.inapp{display:flex;gap:12px;align-items:flex-start;margin:16px 0 0;padding:12px 14px;border-radius:calc(var(--r-card) - 10px);background:#f7efe9;border:1px solid #efdfd6}
.inapp img{flex:none;width:32px;height:32px;border-radius:9px;display:block;box-shadow:0 1px 2px rgba(20,0,0,.2)}
.inapp p{margin:0;font-size:15px;line-height:1.5;color:#3a3a3c}
.inapp b{color:var(--ink)}

.note{margin:16px 0 0;padding:12px 14px;border-radius:calc(var(--r-card) - 10px);background:#f7f4ee;font-size:15px;color:#3a3a3c}
.note b{color:var(--ink)}

/* Sections of a guide that is not a sequence: plain cards, a mark each. */
.secs{margin:32px 0 0;display:flex;flex-direction:column;gap:20px}
.sec .sh .mk{flex:none;width:40px;height:40px;border-radius:12px;background:var(--rose-bg);color:var(--ink);display:flex;align-items:center;justify-content:center}

/* Ticks, for the checklist. */
.ticks{list-style:none;padding:0!important;margin:4px 0 0!important}
.ticks li{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--line);margin:0!important}
.ticks li:first-child{border-top:0}
.ticks .k{flex:none;width:26px;height:26px;border-radius:999px;background:var(--bar);color:#f4f1ea;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:1px;font-variant-numeric:tabular-nums}
.ticks .k.t{background:var(--rose-bg);color:var(--ink)}
.ticks b{display:block;color:var(--text)}
.ticks span{display:block;font-size:15px;color:var(--soft);line-height:1.45}

/* A drawn invoice with numbered pins, for "what must be on an invoice".
   Drawn as the app's own document is (views/docHtml.ts, ".doc" in
   main.css), in its Classic colours and type, so the invoice a visitor is
   shown is the one they would send. Kept here rather than imported: this
   page loads nothing of the app's. */
.paper{--d-accent:#8a6d2f;--d-ink:#1a1a1a;--d-bar:#1a1a1a;--d-barink:#f3efe6;--d-head:"Inter",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  position:relative;background:#fff;border:1px solid #e7e2d8;border-radius:6px;box-shadow:0 2px 6px rgba(20,0,0,.06),0 30px 60px -30px rgba(20,0,0,.35);
  padding:38px 40px 32px;margin:8px auto 0;max-width:660px;font-family:Georgia,"Times New Roman",serif;font-size:13px;line-height:1.5;
  color:var(--d-ink);letter-spacing:-.01em;font-variant-numeric:lining-nums}
.paper p{margin:0 0 3px}
.paper .dtop{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;margin-bottom:20px}
.paper .logo{flex:none;max-width:150px;height:auto}
.paper .logo path{fill:var(--d-accent)}
.paper .logo .w{font-family:Georgia,"Times New Roman",serif;font-size:17px;fill:var(--d-ink)}
.paper .logo .s{font-family:var(--d-head);font-size:9px;font-weight:700;letter-spacing:.32em;fill:var(--d-accent)}
.paper .issuer{font-family:var(--d-head);font-size:11.5px;color:#5d574b;text-align:right;line-height:1.5}
.paper .issuer strong{color:var(--d-ink);font-size:13px}
.paper .dh{font-family:var(--d-head);font-size:26px;font-weight:700;letter-spacing:.15em;margin:0 0 5px;line-height:1.2}
.paper .rule{height:2px;background:var(--d-accent);margin-bottom:20px}
.paper .cols{display:flex;gap:26px;margin-bottom:20px}
.paper .cols>div{flex:1}
.paper .lbl{font-family:var(--d-head);font-size:10px;font-weight:700;letter-spacing:.1em;color:#8a8272;margin-bottom:6px}
.paper .k{display:inline-block;min-width:108px;color:#5d574b}
.paper .dl{width:100%;border-collapse:collapse;margin-bottom:14px;font-size:13px;table-layout:fixed}
.paper .dl th{font-family:var(--d-head);font-size:10px;font-weight:700;letter-spacing:.08em;text-align:left;padding:8px;background:var(--d-bar);color:var(--d-barink)}
.paper .dl .vc{width:84px}
.paper .dl .ac{width:118px}
.paper .dl .r{text-align:right}
.paper .dl td{padding:9px 8px;border-bottom:1px solid #eae5db;vertical-align:top}
.paper .dl td.r{font-variant-numeric:tabular-nums;white-space:nowrap}
.paper .dl .t{font-weight:600}
.paper .dl .d{font-size:11.5px;color:#6b6559;margin-top:2px}
.paper .sums{display:flex;justify-content:flex-end}
.paper .sin{width:290px}
.paper .srow{display:flex;justify-content:space-between;padding:4px 8px}
.paper .srow span:last-child{font-variant-numeric:tabular-nums}
.paper .srow.big{background:var(--d-bar);color:var(--d-barink);font-family:var(--d-head);font-weight:700;font-size:15px;padding:11px 8px;margin-top:7px;border-radius:3px}
.paper .foot{margin-top:26px;font-size:12.5px}
.paper .fh{font-family:var(--d-head);font-size:10px;font-weight:700;letter-spacing:.1em;color:#8a8272;margin:0 0 6px;border-top:1px solid var(--d-accent);padding-top:9px}
.paper .fh.next{margin-top:16px}
.paper .foot p:not(.fh){margin:0 0 5px}
.paper .ty{font-style:italic;text-align:center;margin-top:20px!important;color:#5d574b}
/* A pin on the document's dark bars is drawn light, or it vanishes. */
.paper .dl th .pin:not(.t),.paper .big .pin{background:var(--d-barink);color:var(--d-bar);box-shadow:none}
.pin{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:999px;background:var(--bar);color:#f4f1ea;
  font-family:var(--sans);font-size:11px;font-weight:700;vertical-align:1px;margin-right:4px;box-shadow:0 0 0 2px #fff}
.pin.t{background:var(--rose);color:var(--ink)}
.drawn{background:#efe9de;border-radius:calc(var(--r-card) - 8px);padding:22px 16px;margin:0}
.drawn figcaption{font-family:var(--sans);text-align:center;font-size:14px;color:var(--soft);margin:14px 0 0}

/* An invoice's lines, small, for the creative guide's examples. */
.lines{width:100%;border-collapse:collapse;margin:14px 0 4px;font-size:15px;background:#fff;border:1px solid var(--line);border-radius:calc(var(--r-card) - 10px);overflow:hidden;
  border-collapse:separate;border-spacing:0}
.lines th{text-align:left;font-size:13px;font-weight:600;color:var(--soft);padding:10px 14px;background:#fbf9f5;border-bottom:1px solid var(--line)}
.lines td{padding:10px 14px;border-bottom:1px solid #f0ece4;vertical-align:top}
.lines tr:last-child td{border-bottom:0}
.lines td small{display:block;color:var(--soft);font-size:13px}
.lines .r{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}

/* The end: a dark card in the bar's colour, the one action on it. */
.end{margin:32px 0 0;background:var(--bar);background-image:linear-gradient(180deg,color-mix(in srgb,var(--bar) 88%,#fff 12%) 0,var(--bar) 70%);
  color:#f5f5f7;border:0;box-shadow:0 30px 60px -30px rgba(20,0,0,.55)}
.end .eh{display:flex;align-items:center;gap:14px;margin:0 0 10px}
.end .eh img{width:48px;height:48px;border-radius:12px;display:block;box-shadow:0 0 0 1px rgba(255,255,255,.12)}
.end h2{margin:0;font-size:24px;line-height:1.2;letter-spacing:-.015em;color:#fff}
.end p{margin:0 0 14px;color:#e2d9d9}
.end ul{list-style:none;padding:0;margin:0 0 6px}
.end li{display:flex;gap:10px;align-items:flex-start;margin:8px 0;color:#f1eaea;font-size:16px}
.end li svg{flex:none;margin-top:3px;color:var(--rose)}
.end .act{margin:18px 0 0}
.end .go{display:inline-flex;align-items:center;min-height:48px;padding:0 26px;border-radius:999px;background:#f4f1ea;color:var(--ink);font-weight:700;text-decoration:none}
@media(hover:hover){.end .go:hover{background:#fff}.end .see a:hover{color:#fff}}
.end .see{margin:14px 0 0;font-size:15px}
.end .see a{color:#e2d9d9}
.end .soon{background:rgba(255,255,255,.08);border-radius:calc(var(--r-card) - 12px);padding:14px 16px;margin:18px 0 0;color:#f1eaea}
.end .soon a{color:#fff}
.end .tell{background:#fff;color:var(--text);border-radius:calc(var(--r-card) - 10px);padding:18px 18px 14px;margin:18px 0 0}
.end .tell p{color:var(--text);margin:0 0 10px}
.tell .row{display:flex;gap:8px}
.tell input{flex:1;min-width:0;min-height:44px;border:1px solid #8f887a;border-radius:999px;padding:0 16px;font:inherit;font-size:16px;color:var(--text);background:#fff}
.tell button{flex:none;min-height:44px;border:0;border-radius:999px;padding:0 20px;background:var(--ink);color:#fff;font:inherit;font-weight:600;cursor:pointer}
.end .tell .fine{margin:10px 0 0;font-size:13px;color:var(--soft)}
.end .tell .fine a{color:var(--soft)}
.tell .msg{margin:0 0 10px;padding:8px 12px;border-radius:10px;font-size:14px}
.tell .msg.ok{background:#e9f3ec;color:#1f5130}
.tell .msg.bad{background:#fbeaea;color:#8a1f1f}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Other guides. */
.more{margin:40px 0 0}
.more h2{margin:0 0 14px;font-size:19px;color:var(--ink)}
.more ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
/* The guides' own page lists every guide, three across on a laptop. */
.more.all{margin-top:28px}
.more.all ul{grid-template-columns:repeat(3,minmax(0,1fr))}
.more li{margin:0}
.more a{display:flex;flex-direction:column;gap:6px;height:100%;padding:20px;border-radius:var(--r-card);background:var(--card-bg);border:var(--card-edge);box-shadow:var(--card-shadow);
  text-decoration:none;color:var(--text);transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s}
.more .mk{width:40px;height:40px;border-radius:12px;background:var(--rose-bg);color:var(--ink);display:flex;align-items:center;justify-content:center;margin:0 0 6px}
.more b{font-size:18px;line-height:1.25;color:var(--ink)}
.more span{font-size:15px;color:var(--soft);line-height:1.45}
.more .go2{margin-top:auto;padding-top:6px;font-size:14px;font-weight:600;color:var(--ink)}

.src{margin:24px 0 0;font-size:14px;color:var(--soft)}
.src a{color:var(--soft)}

@media(max-width:640px){
  :root{--gut:16px;--pad:20px}
  body{font-size:16px}
  .steps::before{left:39px}
  .sh h2{font-size:20px}
  .mail pre{font-size:15px}
  .more ul,.more.all ul{grid-template-columns:1fr}
  .tell .row{flex-direction:column}
  /* As the app's own preview does on a narrow screen: the two columns
     stack, so no label wraps off its value. */
  .paper{padding:22px 16px 20px;font-size:12px}
  .paper .dtop{flex-direction:column;gap:12px}
  .paper .issuer{text-align:left}
  .paper .dh{font-size:22px}
  .paper .cols{flex-direction:column;gap:14px}
  .paper .k{min-width:104px}
  .paper .dl .vc{width:72px}
  .paper .dl .ac{width:94px}
  .paper .sin{width:100%}
  .drawn{padding:14px 10px}
}
@media(prefers-reduced-motion:reduce){.more a{transition:none}}
@media print{.end,.more,.copy{display:none!important}}
.step p.after{margin:16px 0 12px}
/* Drawn at 36px, tapped at 44: on a touch screen each pill reaches 4px
   further up and down, invisibly. The gaps between them are 8px, so no two
   reach over each other. */
@media(pointer:coarse){
  .toc a,.copy{position:relative}
  .toc a::after,.copy::after{content:"";position:absolute;inset:-4px 0}
}
