/* ==========================================================================
   the desk card — design tokens (T6)
   One ground (deep ink/navy), one warm accent (coral), one real typeface
   (Fraunces display serif + Public Sans UI). No purple, no gradients.
   ========================================================================== */

/* --- Self-hosted fonts (no third-party requests) ------------------------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/fraunces-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/fraunces-latinext-500.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/publicsans-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/publicsans-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/publicsans-latin-700.woff2') format('woff2');
}

:root {
  --ground:        #0b1622;  /* deep ink/navy ground */
  --ground-raised: #0f1e2e;  /* chip / panel fill */
  --accent:        #f0623d;  /* the one warm accent (coral) */
  --accent-ink:    #10202f;  /* text on the accent button */
  --text:          #f4efe6;  /* cream — headings & primary text */
  --text-body:     #d7dde4;  /* body on dark, >= 4.5:1 on ground */
  --text-muted:    #93a4b5;  /* labels / secondary, >= 4.5:1 on ground */
  --hairline:      rgba(244, 239, 230, 0.14);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --tap: 56px;            /* minimum touch target */
  --radius: 12px;
  --pad: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--ground);
  color: var(--text-body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) var(--pad)
           max(24px, env(safe-area-inset-bottom)) var(--pad);
  display: flex;
  flex-direction: column;
}

.screen { display: flex; flex-direction: column; }
[hidden] { display: none !important; }

/* --- Booking strip -------------------------------------------------------- */
.booking-strip {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
.booking-strip.small { border: 0; padding: 6px 0 18px; }

.intro {
  color: var(--text-body);
  font-size: 16px;
  margin: 22px 0 4px;
  max-width: 34ch;
}

/* --- Labels --------------------------------------------------------------- */
.label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 26px 0 10px;
}

/* --- Words-to-write chip -------------------------------------------------- */
.words-chip {
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(240, 98, 61, 0.06);
  padding: 16px 18px;
  font-family: var(--serif);
  line-height: 1.25;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.words-en    { color: var(--accent); font-size: 26px; }
.words-sep   { color: var(--accent); font-size: 26px; opacity: 0.6; }
.words-local { color: var(--text); font-size: 26px; }

/* --- Primary action ------------------------------------------------------- */
.btn-primary {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(var(--tap) + 8px);
  margin-top: 28px;
  padding: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(240, 98, 61, 0.28);
  text-align: center;
  transition: transform 0.06s ease, filter 0.12s ease;
}
.btn-primary:active { transform: translateY(1px); filter: brightness(0.96); }
.btn-primary:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.btn-primary.as-label { position: relative; }

.reassure {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin: 14px 0 0;
}

/* --- Checklist ------------------------------------------------------------ */
.checklist {
  margin-top: auto;
  padding-top: 22px;
}
.checklist-toggle {
  width: 100%;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--hairline);
  padding: 16px 2px;
  cursor: pointer;
  color: var(--text);
}
.checklist-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 700;
}
.chevron {
  width: 12px; height: 12px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.checklist-toggle[aria-expanded="true"] .chevron { transform: rotate(-135deg); }
.checklist-toggle:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

.checklist-sub { color: var(--text-muted); font-size: 15px; margin: 2px 0 12px; }
.checklist-body ul { margin: 0 0 8px; padding-left: 20px; }
.checklist-body li { color: var(--text-body); font-size: 16px; margin-bottom: 10px; }

/* --- Dispute flow --------------------------------------------------------- */
.back {
  align-self: flex-start;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  padding: 8px 4px;
  min-height: var(--tap);
  cursor: pointer;
}
.back:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

.step-q { font-size: 20px; color: var(--text); font-weight: 600; margin: 20px 0 14px; }
.touchpoint-row { display: flex; gap: 12px; }
.touchpoint {
  flex: 1;
  min-height: calc(var(--tap) + 12px);
  background: var(--ground-raised);
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
.touchpoint:active { border-color: var(--accent); }
.touchpoint:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

.dispute-info {
  font-size: 17px;
  color: var(--text-body);
  margin: 22px 0 4px;
  max-width: 36ch;
}

.capture-status {
  min-height: 24px;
  margin: 16px 2px 0;
  font-size: 16px;
  color: var(--text);
  text-align: center;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  margin-top: 12px;
  padding: 12px 18px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.consent {
  margin: 20px 0 0;
  padding-top: 16px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* --- Neutral notice page (expired / root) -------------------------------- */
.notice-screen {
  flex: 1;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.notice-eyebrow { margin: 0; }
.notice-title {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--text);
  margin: 0;
  max-width: 22ch;
}
.notice-sub { color: var(--text-muted); margin: 0; max-width: 30ch; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
