/* StormArc — shared design system. Warm, honest, phone-first.
   The voice is a trustworthy friend who happens to know the math, not a bank. */
:root {
  --ink: #1d2733;
  --ink-soft: #47566a;
  --paper: #fbf7f0;      /* warm parchment */
  --card: #ffffff;
  --line: #e7ddcd;
  --primary: #1f6f7a;    /* calm teal — the "arc" */
  --primary-dark: #175660;
  --accent: #e0a13c;     /* warm amber — the rainbow before the storm */
  --accent-soft: #f6ead2;
  --good: #2f8f5b;
  --bad: #c0563f;
  --shadow: 0 1px 2px rgba(29,39,51,.06), 0 8px 24px rgba(29,39,51,.06);
  --radius: 14px;
  --maxw: 640px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 0 18px env(safe-area-inset-bottom);
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 28px 0 72px; }
h1, h2, h3, .display {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600; line-height: 1.2; color: var(--ink); letter-spacing: -.01em;
}
h1 { font-size: 30px; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 32px 0 10px; }
h3 { font-size: 18px; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
a { color: var(--primary-dark); }
.lead { font-size: 19px; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

/* brand mark */
.brand { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.brand .arc {
  width: 26px; height: 26px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--accent), var(--primary), var(--accent));
  box-shadow: inset 0 0 0 3px var(--paper);
}
.brand b { font-family: Georgia, serif; font-size: 18px; letter-spacing: .01em; }

/* cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin: 16px 0;
}
.card.accent { border-left: 4px solid var(--accent); }
.pill {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--primary-dark); background: var(--accent-soft);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--primary); color: #fff; border: none;
  padding: 14px 22px; border-radius: 12px; text-decoration: none;
  transition: transform .04s ease, background .15s ease; width: auto;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--primary-dark); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn[disabled] { opacity: .5; cursor: default; }

/* forms */
.field { margin: 18px 0; }
.field > label.q { display: block; font-weight: 600; margin-bottom: 8px; }
.field .hint { font-size: 14px; color: var(--ink-soft); margin: -2px 0 8px; }
input[type=text], input[type=email], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 13px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); }
.opts { display: grid; gap: 8px; }
.opt {
  display: flex; align-items: flex-start; gap: 11px; padding: 12px 13px;
  border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff;
}
.opt:hover { border-color: var(--primary); }
.opt input { margin-top: 3px; accent-color: var(--primary); flex: none; }
.opt.checked { border-color: var(--primary); background: #f2f8f8; }
.scale { display: flex; gap: 8px; }
.scale label {
  flex: 1; text-align: center; padding: 12px 0; border: 1.5px solid var(--line);
  border-radius: 10px; cursor: pointer; font-weight: 600;
}
.scale input { position: absolute; opacity: 0; }
.scale input:checked + span { }
.scale label:has(input:checked) { border-color: var(--primary); background: #f2f8f8; color: var(--primary-dark); }

/* section divider */
.section-head { margin-top: 34px; padding-top: 10px; border-top: 1px solid var(--line); }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 4px 0 24px; }
.progress > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s ease; }

/* toasts / states */
.done { text-align: center; padding: 40px 10px; }
.done .big { font-size: 46px; }
.footer { margin-top: 40px; font-size: 13px; color: var(--ink-soft); text-align: center; }
.footer a { color: var(--ink-soft); }
.hidden { display: none !important; }
