/* turnsweep.com: the policy, account and checkout pages
 *
 * The home page is built from the design kit (assets/system.css and the
 * rest). Every other page keeps its own markup, inline styles and scripts, and
 * links this file last, so it takes the same look: one face (Plus Jakarta
 * Sans, served from /fonts/, display weight 500 with tight tracking), the same
 * header proportions, round corners, pill buttons in the app's coral-deep
 * (white on it reads 4.6:1), and the light ground the home page uses.
 * House rules: no monospace and no all-caps or letter-spaced labels. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-v1.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* the home page's colours; these selectors match the pages' own dark-mode
   blocks, so one light look holds everywhere */
:root, :root:not([data-theme="light"]), :root:not([data-theme="dark"]) {
  --coral: #FF385C;
  --coral-deep: #E00B41;
  --coral-pale: #FFF0F3;
  --page: #FFFFFF;
  --paper: #FAF7F6;
  --card: #FFFFFF;
  --ink: #222222;
  --ink-2: #4A4A4A;
  --ink-3: #6E6E6E;
  --hairline: #ECE8E7;
  --border: #DCD7D6;
  --danger: #B3123A;
  --shadow: none;
  --shadow-soft: none;
  color-scheme: light;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration-color: var(--coral-deep); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--coral-deep); }
:focus-visible { outline: 2px solid var(--coral-deep); outline-offset: 3px; }

/* ---- type ----------------------------------------------------------------- */

h1, h2, h3 { font-weight: 500; letter-spacing: -.028em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); letter-spacing: -.036em; line-height: 1.04; }
h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); }
h3 { font-size: 1.125rem; letter-spacing: -.01em; }
strong, b { font-weight: 600; }

/* ---- header and footer: the home page's proportions ----------------------- */

.topbar { background: var(--page); border-bottom: 1px solid var(--hairline); }
.topbar .wrap { min-height: 72px; }
.logo b, .mark b { font-size: 1.375rem; font-weight: 500; letter-spacing: -.02em; }
.logo img, .mark img { border-radius: 22%; }
footer, footer.doc { font-size: .875rem; color: var(--ink-3); }
footer a, footer.doc a { color: var(--ink-2); }

/* ---- labels: sentence case, never tracked capitals ------------------------ */

label, th, .facts dt { text-transform: none; letter-spacing: 0; font-weight: 500; }
th { color: var(--ink-3); }

/* ---- one face: figures that line up, in the page's own font ---------------- */

.who, .facts .ref, .facts dd.mono, .code {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

/* ---- controls: pill buttons, round fields and cards ---------------------- */

.btn { border-radius: 999px; font-weight: 500; min-height: 48px; background: var(--coral-deep); color: #FFFFFF; }
.btn:hover, .btn:hover:not([disabled]) { background: var(--coral-deep); color: #FFFFFF; filter: brightness(1.06); }
.ghost { border-radius: 999px; font-weight: 500; min-height: 48px; }
.card { border-radius: 24px; box-shadow: none; border: 1px solid var(--hairline); }
input { border-radius: 16px; min-height: 48px; font-size: 1rem; }
.plan { border-radius: 16px; }
.fallback-box { border-radius: 24px; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
