/* Gravida Scan — Atelier-warm system
   Serif display (Cormorant Garamond) + humanist sans (Hanken Grotesk) */

:root {
  /* palette */
  --beige:        #f0ece2;
  --paper:        #faf8f2;
  --paper-2:      #f4efe4;
  --ink:          #1f2a1f;   /* dark green */
  --ink-soft:     #3c463a;
  --ink-mute:     #6f7468;
  --hairline:     #ddd6c6;
  --rose:         #d4a59a;
  --rose-deep:    #c08c80;
  --gold:         #8a7a5a;
  --gold-soft:    #a99a78;
  --dark:         #16201a;   /* camera / dark screens */
  --dark-2:       #1f2a22;
  --on-dark:      #ece7da;
  --on-dark-mute: #9aa295;

  --accent:       var(--rose);
  --accent-deep:  var(--rose-deep);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Hanken Grotesk", system-ui, sans-serif;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ── screen shell ─────────────────────────────────────────── */
.scr {
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  font-family: var(--sans);
  color: var(--ink);
  animation: scr-in .5s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes scr-in { from { transform: translateY(12px); } to { transform: none; } }
.scr--light { background: var(--beige); }
.scr--paper { background: var(--paper); }
.scr--dark  { background: var(--dark); color: var(--on-dark); }

.pad { padding: 26px 26px 22px; }
.flex1 { flex: 1; min-height: 0; }
.col   { display: flex; flex-direction: column; }
.center{ display: flex; align-items: center; justify-content: center; }
.grow  { flex: 1; }

/* ── type ─────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); white-space: nowrap;
}
.scr--dark .eyebrow { color: var(--gold-soft); }
.display {
  font-family: var(--serif); font-weight: 500;
  font-size: 40px; line-height: 1.12; letter-spacing: -0.01em;
  text-wrap: balance;
}
.display--sm { font-size: 31px; }
.title {
  font-family: var(--serif); font-weight: 600;
  font-size: 25px; line-height: 1.28; letter-spacing: -0.005em;
}
.lede {
  font-size: 16px; line-height: 1.55; color: var(--ink-soft);
  text-wrap: pretty; font-weight: 380;
}
.scr--dark .lede { color: var(--on-dark-mute); }
.muted { color: var(--ink-mute); }
.serif-num { font-family: var(--serif); font-weight: 500; }

/* ── buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  border: none; cursor: pointer; width: 100%; white-space: nowrap;
  padding: 16px 20px; border-radius: 999px;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.975); }
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: 0 8px 20px rgba(31,42,31,.18); }
.btn--accent  { background: var(--accent); color: #fff; box-shadow: 0 8px 20px color-mix(in oklch, var(--accent), transparent 65%); }
.btn--ghost   { background: transparent; color: var(--ink); border: 1.5px solid var(--hairline); }
.scr--dark .btn--ghost { color: var(--on-dark); border-color: rgba(236,231,218,.28); }
.btn--quiet   { background: transparent; color: var(--ink-mute); font-weight: 600; box-shadow: none; }
.btn-row { display: flex; flex-direction: column; gap: 10px; }

.linkbtn {
  background: none; border: none; cursor: pointer; font-family: var(--sans);
  font-size: 14.5px; font-weight: 600; color: var(--gold); padding: 6px;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ── progress dots ────────────────────────────────────────── */
.dots { display: flex; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--hairline); transition: all .3s; }
.dots i.on { width: 20px; background: var(--gold); }

/* ── cards / list ─────────────────────────────────────────── */
.card {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 16px;
}
.checkrow { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.checkrow + .checkrow { border-top: 1px solid var(--hairline); }
.chk {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklch, var(--gold), transparent 86%);
  color: var(--gold); margin-top: 1px;
}
.checkrow h4 { margin: 0 0 2px; font-size: 15.5px; font-weight: 650; color: var(--ink); }
.checkrow p  { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-mute); }

/* ── help bar ─────────────────────────────────────────────── */
.help {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: color-mix(in oklch, var(--rose), transparent 88%);
  border: 1px solid color-mix(in oklch, var(--rose), transparent 72%);
}
.help .av {
  width: 38px; height: 38px; border-radius: 999px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--serif); font-size: 18px; font-weight: 600;
}
.help .t { flex: 1; min-width: 0; }
.help .t b { font-size: 13.5px; font-weight: 700; color: var(--ink); display: block; }
.help .t span { font-size: 12.5px; color: var(--ink-mute); }
.help button {
  flex: 0 0 auto; border: none; background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
}

/* utility */
.hair { height: 1px; background: var(--hairline); border: 0; margin: 0; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 6px 11px; border-radius: 999px; white-space: nowrap;
  background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--hairline);
}
.fadein { animation: fadein .45s ease both; }
@keyframes fadein { from { transform: translateY(8px); } to { transform: none; } }

@keyframes cnt { 0% { opacity: 0; transform: scale(1.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(.7); } }
@keyframes flash { 0% { opacity: 0; } 22% { opacity: .92; } 100% { opacity: 0; } }
@keyframes spin360 { to { transform: rotate(360deg); } }
@keyframes pulsering { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes scan-sweep { 0% { transform: translateY(0); } 100% { transform: translateY(84vh); } }
@keyframes scan-dot { 0% { opacity: .25; transform: scale(.9); } 100% { opacity: 1; transform: scale(1); } }
