/*
 * awna — the paper look for the site's own pages (ver 2.4): sign-up, the club account,
 * its delete page, Terms, Privacy and Support wear the home page's paper, ink, Playfair
 * Display and bracket labels.
 *
 * Purely visual. It is linked AFTER site.css by those six pages only and changes no id,
 * name, step, sentence or script: site.css stays as it is because /join, /join/qr, /pay,
 * the status page and the unsubscribe page read it too and keep their own look. Every
 * rule starts at `body.site` so it wins over the rule it restyles without `!important`.
 */
body.site {
  /* site.css's tokens, re-pointed (on the body: :root keeps site.css's for the other pages). */
  --accent: #05a5d8;
  --accent-deep: #0479a0;
  --accent-wash: rgba(5, 165, 216, .2);
  --ink: #141414;
  --ink-2: #4b4b47;
  --muted: #66665f;
  --line: #d6d6d1;
  --canvas: #efefec;
  --card: #fbfbf9;
  --radius: 22px;
  /* the home page's own */
  --paper-2: #e4e4e0;
  --ghost: #b5b5b0;
  --rule: #9b9b96;
  --pink-deep: #c8005f;
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --pad: clamp(16px, 2.2vw, 32px);
  --run-h: 44px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.site ::selection { background: var(--accent); color: var(--ink); }
body.site a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
body.site a:hover { color: var(--accent-deep); }
body.site :focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }

/* ---- The running header ------------------------------------------------------------
   The home page's bar, drawn from what these pages already have: the bar is the body's
   own, the logo link becomes the dark "awna" chip, and the dotted box names the page.
   Only the chip takes the pointer, so the bar is not one long link. */
body.site::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--run-h);
  background: rgba(239, 239, 236, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px dotted var(--rule);
}
body.site .wrap { padding-top: calc(var(--run-h) + clamp(28px, 5vw, 56px)); }
body.site .brand {
  position: fixed;
  inset: 0 0 auto;
  z-index: 41;
  height: var(--run-h);
  margin: 0;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  font: 600 11px/1.3 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
/* The wordmark stays for a screen reader (its alt names the link) and leaves the eye. */
body.site .brand img { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
body.site .brand::before {
  content: "awna";
  content: "awna" / "";
  pointer-events: auto;
  padding: 4px 8px 4px 26px;
  border-radius: 4px;
  background: var(--ink) url("/static/site/home/branding/awna-app-v1.png?v=ver2.6.3") 4px 50% / 16px 16px no-repeat;
  color: var(--canvas);
}
body.site .brand::after {
  padding: 4px 8px;
  border: 1px dotted var(--rule);
  white-space: nowrap;
}
body.site .brand:focus-visible { outline: none; }
body.site .brand:focus-visible::before { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
body.site[data-page="signup"] .brand::after { content: "[ Get started ]"; content: "[ Get started ]" / ""; }
body.site[data-page="account"] .brand::after { content: "[ Sign in ]"; content: "[ Sign in ]" / ""; }
body.site[data-page="delete"] .brand::after { content: "[ Club account ]"; content: "[ Club account ]" / ""; }
body.site[data-page="terms"] .brand::after { content: "[ Terms of Service ]"; content: "[ Terms of Service ]" / ""; }
body.site[data-page="privacy"] .brand::after { content: "[ Privacy Policy ]"; content: "[ Privacy Policy ]" / ""; }
body.site[data-page="support"] .brand::after { content: "[ Support ]"; content: "[ Support ]" / ""; }

/* ---- Cards and type ---------------------------------------------------------------- */
body.site .card {
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 40px 70px -52px rgba(4, 57, 75, .32);
}
body.site .card h1 {
  margin: 0 0 12px;
  font: 400 clamp(32px, 5vw, 44px)/1 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
body.site .card h2 { margin: 0 0 8px; font: 400 23px/1.15 var(--serif); letter-spacing: -.015em; }
body.site .card h2.h2-gap { margin-top: 26px; }
body.site .card p.sub { color: var(--ink-2); font-size: 15px; }
body.site .step-label { margin-bottom: 14px; font: 600 11px/1.3 var(--sans); letter-spacing: .08em; color: var(--ink-2); }
body.site .step-label::before { content: "[ "; }
body.site .step-label::after { content: " ]"; }
body.site .steps { gap: 4px; margin-bottom: 22px; }
body.site .steps li { height: 3px; border-radius: 0; background: var(--line); }
body.site .steps li.on, body.site .steps li.done { background: var(--ink); }
body.site .hint { color: var(--muted); }
body.site .hint.ok { color: var(--ok); }
body.site .hint.err { color: var(--err); }
body.site .hint .linkbtn { color: var(--accent-deep); }

/* ---- Forms -------------------------------------------------------------------------- */
body.site label:not(.check):not(.seg-opt) {
  margin: 18px 0 7px;
  font: 600 11px/1.3 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
body.site label .opt { letter-spacing: 0; text-transform: none; font-size: 12px; }
body.site input[type=text], body.site input[type=email], body.site input[type=password],
body.site input[type=search], body.site input[type=number], body.site select, body.site textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: #fff;
  color: var(--ink);
}
body.site input:focus, body.site select:focus, body.site textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-wash); }
body.site .slug-row input { border-radius: 12px 0 0 12px; }
body.site .slug-row .suffix { border-color: var(--line); border-radius: 0 12px 12px 0; background: var(--paper-2); color: var(--ink-2); }
body.site .ac ul { border-color: var(--line); border-radius: 12px; }
body.site .ac li:hover, body.site .ac li.on { background: var(--paper-2); }
body.site .pic .preview { border-color: var(--line); background: var(--paper-2); color: var(--ink-2); }
body.site .pic .preview.square { border-radius: 12px; }
body.site .pic .preview.round { border-radius: 50%; }
body.site label.check { color: var(--ink-2); }
body.site #creditsCard label.check input, body.site #updatesOptIn, body.site #acceptTerms,
body.site #codeCard label.check input { accent-color: var(--ink); }
body.site fieldset.seg legend { font: 600 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 7px; }
body.site .seg-row { padding: 3px; border-color: var(--line); border-radius: 999px; background: var(--paper-2); }
body.site .seg-opt span { border-radius: 999px; color: var(--ink-2); }
body.site .seg-opt input:checked + span { background: var(--ink); color: var(--canvas); box-shadow: none; }
body.site .seg-opt input:focus-visible + span { outline-color: var(--accent-deep); }

/* ---- Buttons: the home page's pills, and its bracket links for the quiet ones -------- */
body.site .btn {
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease);
}
body.site .btn:hover:not([disabled]) { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
body.site .btn.primary { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
body.site .btn.primary:hover:not([disabled]) { background: var(--accent); border-color: var(--accent); color: var(--ink); }
body.site .btn.small { padding: 7px 14px; }
body.site .btn.ghost {
  gap: 0; /* the brackets are flex items: site.css's 8px gap pushed them off the words */
  padding: 8px 2px;
  border-color: transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: 600 11px/1.3 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.site .btn.ghost::before { content: "[ "; white-space: pre; }
body.site .btn.ghost::after { content: " ]"; white-space: pre; }
body.site .btn.ghost:hover:not([disabled]) { background: transparent; border-color: transparent; color: var(--accent-deep); }
body.site .btn.ghost.wide { padding: 12px 2px; }
body.site .btn.danger { border-color: var(--err); color: var(--err); }
body.site .btn.danger:hover:not([disabled]) { background: var(--err); border-color: var(--err); color: #fff; }
body.site .btn.ghost.danger { border-color: transparent; }
body.site .btn.ghost.danger:hover:not([disabled]) { background: transparent; border-color: transparent; color: #991b1b; }
body.site .btn.destroy { background: var(--err); border-color: var(--err); color: #fff; }
body.site .btn.destroy:hover:not([disabled]) { background: #b91c1c; border-color: #b91c1c; color: #fff; }
body.site .back { margin: -2px 0 14px; font: 600 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
body.site .back::before { content: "[ "; white-space: pre; }
body.site .back::after { content: " ]"; white-space: pre; }
body.site .back:hover, body.site .back:focus-visible { color: var(--accent-deep); }
body.site .err-box, body.site .ok-box { border-radius: 12px; }

/* ---- Sign-up ------------------------------------------------------------------------
   "How it works" reads as the home page's index: ghost serif lines that turn to ink. */
body.site .how-item, body.site .next-step { border-top: 1px dotted var(--rule); }
body.site .how-item:last-child, body.site .next-step:last-child { border-bottom: 1px dotted var(--rule); }
body.site .how-head {
  font-family: var(--serif);
  font-stretch: normal;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.02em;
  color: var(--ghost);
}
body.site .how-head .num { font-style: italic; font-variant-numeric: lining-nums; }
body.site .how-item.open .how-head, body.site .how-head:focus-visible { color: var(--ink); }
body.site .how-in li::before { border-radius: 0; width: 5px; height: 5px; background: var(--ink); }
body.site .next-step h2 {
  font: 400 26px/1.12 var(--serif);
  letter-spacing: -.02em;
  text-transform: none;
}
body.site .next-step h2 .num { color: var(--accent-deep); font-style: italic; }
body.site .code-box { border-radius: 16px; background: var(--ink); }
body.site .code-box .btn { border-color: rgba(255, 255, 255, .6); color: #fff; }
body.site .code-box .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
body.site .congrats .note, body.site .provisioning-state .note { color: var(--muted); }

/* ---- The club account ----------------------------------------------------------------- */
body.site .clubmark { border-color: var(--line); border-radius: 12px; background: var(--paper-2); color: var(--ink-2); }
body.site .kv dt { font: 600 11px/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
body.site .list li { border-top: 1px dotted var(--rule); }
body.site .list li:first-child { border-top: 0; }
body.site .pill { background: var(--paper-2); color: var(--ink-2); }
body.site .pill.delivered { background: #dcfce7; color: #166534; }
body.site .banner { border: 1px dotted var(--rule); background: var(--paper-2); }
body.site .rid { background: var(--paper-2); color: var(--ink); }
body.site .terms { border-color: var(--line); border-radius: 14px; background: #fff; }
body.site .card.danger-zone { border-color: #e9b9b9; }

/* ---- Footer ---------------------------------------------------------------------------- */
body.site footer.site-foot { margin-top: 40px; padding-top: 18px; border-top: 1px dotted var(--rule); color: var(--ink-2); font-size: 12.5px; }
body.site footer.site-foot a { color: var(--ink-2); }
body.site footer.site-foot a:hover { color: var(--accent-deep); }

/* ---- Terms, Privacy, Support ------------------------------------------------------------ */
body.site .legal h1 { margin: 0 0 18px; font: 400 clamp(40px, 5.2vw, 72px)/.98 var(--serif); letter-spacing: -.025em; }
body.site .legal h2 {
  margin: 36px 0 12px;
  padding-top: 26px;
  border-top: 1px dotted var(--rule);
  font: 400 clamp(23px, 2.2vw, 28px)/1.12 var(--serif);
  letter-spacing: -.015em;
}
body.site .legal h3 { margin: 22px 0 6px; font: 700 15px/1.3 var(--sans); }
body.site .legal p, body.site .legal li { font-size: 15.5px; color: var(--ink-2); }
body.site .legal .updated, body.site .legal .operator { color: var(--ink-2); }
body.site .legal .updated { font: 600 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
body.site .legal section { scroll-margin-top: calc(var(--run-h) + 16px); }
body.site .legal .back { margin-top: 32px; padding-top: 18px; border-top: 1px dotted var(--rule); }
body.site .legal .back::before, body.site .legal .back::after { content: none; }
body.site .legal .back a { color: var(--ink); }
body.site .legal code { font: 600 .92em/1 var(--sans); color: var(--accent-deep); }
body.site .legal-toc details, body.site .legal-toc .toc-wide {
  padding: 14px 0 0;
  border: 0;
  border-top: 1px dotted var(--rule);
  border-radius: 0;
  background: transparent;
}
body.site .legal-toc summary, body.site .legal-toc .toc-title { font: 600 11px/1.3 var(--sans); letter-spacing: .08em; color: var(--ink-2); }
body.site .legal-toc a { color: var(--ink-2); text-decoration: none; }
body.site .legal-toc a:hover, body.site .legal-toc a:focus-visible { color: var(--ink); text-decoration: underline; }
@media (min-width: 900px) {
  body.site .legal-toc { top: calc(var(--run-h) + 20px); max-height: calc(100vh - var(--run-h) - 40px); }
}
@media (max-width: 520px) {
  body.site .legal h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  body.site a, body.site .btn { transition: none; }
}
