/* Clearstep Guides — shared styles.
   Values are lifted 1:1 from the approved design exports. Mobile-first: one
   column, max 560px, and it simply stays that way on wider screens. */

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --field-bg: #FDFCFA;
  --ink: #3A332C;
  /* Brand: warm brown ink, cream paper, terracotta accent.
     --brand is the logo terracotta (decorative use only: 3.5:1 on cream).
     --accent is a darker terracotta for text and links (5.1:1 on cream).
     Primary buttons use the ink brown with white text (12:1). */
  --brand: #C4703A;
  --accent: #A35526;
  --accent-hover: #7F401B;
  --accent-tint: #F7EDE3;
  --btn: #3A332C;
  --btn-hover: #241F1A;

  --text-brand: oklch(0.45 0.02 80);
  --text-body: oklch(0.35 0.015 80);
  --text-muted: oklch(0.42 0.015 80);
  --text-soft: oklch(0.48 0.015 80);
  --text-faint: oklch(0.52 0.015 80);

  --line: oklch(0.9 0.008 80);
  --line-soft: oklch(0.93 0.008 80);
  --line-field: oklch(0.85 0.01 80);

  --font-head: 'Schibsted Grotesk', sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.ink { color: var(--ink); }

/* ---- Page frame ---- */
.page {
  padding: 28px 20px 64px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}
.flow { display: flex; flex-direction: column; gap: 28px; }
.wrap { width: 100%; max-width: 560px; }

/* ---- Masthead ---- */
.masthead { display: flex; flex-direction: column; gap: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; align-self: flex-start; }
.brand-mark { width: 40px; height: 40px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 6px; line-height: 1; font-family: 'Sora', var(--font-head); }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; color: #3A332C; }
.brand-sub { font-weight: 400; font-size: 12.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brand); }
h1 {
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1.18;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.lede { margin: 0; font-size: 17.5px; color: var(--text-muted); text-wrap: pretty; }

/* ---- Headings ---- */
h2.title { font-family: var(--font-head); font-size: 19px; font-weight: 600; margin: 0; }
h3.subtitle { font-family: var(--font-head); font-size: 16.5px; font-weight: 600; margin: 0; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-sizing: border-box;
}
.card--flush { padding: 0; overflow: hidden; }
.card--tight { padding: 18px 20px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-18 { gap: 18px; }
.gap-22 { gap: 22px; }
.stack { display: flex; flex-direction: column; }
.gap-2 { gap: 2px; }
.gap-5 { gap: 5px; }
.gap-8 { gap: 8px; }

.copy { margin: 0; font-size: 16.5px; color: var(--text-muted); }

/* ---- Form fields ---- */
.field-label { font-family: var(--font-head); font-weight: 600; font-size: 16.5px; }
.field-hint { margin: 0; font-size: 15.5px; color: var(--text-soft); }
.input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  font-size: 17px;
  font-family: inherit;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--line-field);
  border-radius: 10px;
  min-height: 48px;
}
.input.is-dim { color: oklch(0.62 0.01 80); background: oklch(0.96 0.005 80); }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 16.5px; cursor: pointer; min-height: 24px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

/* ---- Primary button ---- */
.btn {
  width: 100%;
  min-height: 50px;
  padding: 14px 18px;
  box-sizing: border-box;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: #FFFFFF;
  background: var(--btn);
}
.btn:hover { background: var(--btn-hover); }

/* ---- Path choice buttons ---- */
.choices { display: grid; gap: 10px; }
.choice {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  min-height: 56px;
  padding: 13px 15px;
  box-sizing: border-box;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: var(--field-bg);
  border: 1px solid var(--line-field);
}
.choice[aria-pressed="true"] {
  background: var(--accent-tint);
  border: 2px solid var(--accent);
  box-shadow: 0 1px 2px rgba(163, 85, 38, 0.14);
}
.choice-title { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.choice-desc { font-size: 15.5px; color: var(--text-soft); }

/* ---- Result cards ---- */
.eyebrow {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}
.result-main { padding: 24px 20px; border-bottom: 1px solid var(--line-soft); }
.result-main--open { padding: 24px 20px 20px; border-bottom: 0; }
.result-value {
  margin: 0;
  font-family: var(--font-head);
  font-size: 38px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.result-note { margin: 10px 0 0; font-size: 16.5px; color: var(--text-muted); }

.status { padding: 18px 20px; }
.status--ready { background: oklch(0.96 0.03 165); }
.status--wait { background: oklch(0.965 0.006 80); }
.status-title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.status--ready .status-title { color: oklch(0.42 0.1 160); }
.status--wait .status-title { color: oklch(0.3 0.012 80); }
.status-detail { margin: 4px 0 0; font-size: 16.5px; color: var(--text-body); }

.steps {
  margin: 0;
  padding: 0 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 16.5px;
  color: var(--text-body);
}

/* Test checker: figures table */
.stats {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
}
.stats dt, .stats dd { margin: 0; background: var(--surface); padding: 13px 20px; }
.stats dt { font-size: 16.5px; color: oklch(0.4 0.015 80); }
.stats dd { font-family: var(--font-head); font-size: 19px; font-weight: 700; text-align: right; }
.stats dd.is-pass { color: oklch(0.42 0.09 165); }

/* ---- Callouts ---- */
.callout { border-radius: 14px; padding: 18px 20px; }
.callout p { margin: 0; font-size: 16.5px; }
.callout--info { background: oklch(0.965 0.014 70); border: 1px solid oklch(0.87 0.03 70); }
.callout--info p { color: oklch(0.3 0.02 70); }
.callout--info strong { font-family: var(--font-head); font-weight: 700; }
.callout--warn {
  background: oklch(0.97 0.02 85);
  border: 1px solid oklch(0.86 0.05 80);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.callout--warn h2 { font-family: var(--font-head); font-size: 18px; font-weight: 700; margin: 0; color: oklch(0.42 0.09 55); }
.callout--warn p { color: oklch(0.33 0.02 70); }

/* ---- Key/value list (worked example, how-to-find) ---- */
.kv { display: flex; flex-direction: column; gap: 2px; }
.kv-label { font-size: 15px; color: oklch(0.5 0.015 80); }
.kv-value { font-family: var(--font-head); font-size: 17.5px; font-weight: 600; }
.kv--total { padding-top: 12px; border-top: 1px solid var(--line-soft); }
.kv--total .kv-label { color: var(--accent); font-weight: 600; }
.kv--total .kv-value { font-size: 22px; font-weight: 700; }
.how { display: flex; flex-direction: column; gap: 3px; }
.how-title { font-family: var(--font-head); font-size: 16.5px; font-weight: 600; }
.how-text { font-size: 16px; color: var(--text-muted); }

/* ---- Tool links ---- */
.tools { display: grid; gap: 10px; }
.tool {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.tool-title { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--ink); }
.tool-desc { font-size: 16px; color: oklch(0.45 0.015 80); }

/* ---- Notes + footer ---- */
.notes { padding-top: 4px; border-top: 1px solid var(--line); }
.note p { margin: 0; font-size: 16px; color: var(--text-muted); }
.fine { margin: 0; font-size: 14.5px; color: var(--text-faint); }

.site-footer {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15.5px; }
.site-footer p { margin: 0; }

/* Sender embed: keep it inside the card on narrow phones */
.sender-form-field { max-width: 100%; }

/* Visible to screen readers and search engines, hidden on screen */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
