/* achoo.fyi — shared styles
 *
 * Aesthetic: editorial-warm, Austin-rooted, "tool not temple."
 * Cream paper + charcoal ink + honey-amber accent + terracotta CTA.
 * Fraunces (variable serif, expressive) + IBM Plex Sans (body).
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,400;9..144,500;9..144,700;9..144,900&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --paper: #f5f1e8;
  --paper-deep: #ede8db;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-muted: #7a7367;
  --rule: #d9d2c0;
  --honey: #c8a951;
  --honey-deep: #a88828;
  --terracotta: #a85a3a;
  --terracotta-deep: #8a4528;
  --leaf: #5a6f4a;
  --max: 720px;
  --max-wide: 920px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(200, 169, 81, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(168, 90, 58, 0.03) 0%, transparent 40%);
  min-height: 100vh;
}

/* Subtle paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
a:hover { text-decoration-color: var(--terracotta); }

/* ───────── Header / nav ───────── */

.site-nav {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  font-variation-settings: 'opsz' 144, 'SOFT' 70;
  text-decoration: none;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark .dot {
  color: var(--honey-deep);
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--terracotta); }

/* ───────── Hero ───────── */

.hero {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.3fr 1fr; padding: 96px 24px 64px; }
}

.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-copy h1 em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--terracotta-deep);
}

.hero-copy .lede {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: 'opsz' 36;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: 32px;
}

.hero-copy .meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}
.hero-copy .meta span::before { content: "→ "; color: var(--honey-deep); }

/* Phone preview SMS mockup */
.phone-preview {
  background: var(--ink);
  color: #fff;
  border-radius: 28px;
  padding: 24px 20px 28px;
  max-width: 320px;
  margin: 0 auto;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 30px 60px -20px rgba(26,26,26,0.35),
    0 18px 36px -18px rgba(168,90,58,0.18);
  position: relative;
  transform: rotate(1.5deg);
}
.phone-preview::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

.phone-preview .ts {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  margin: 12px 0 14px;
  letter-spacing: 0.04em;
}
.phone-preview .from {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.phone-preview .from strong { color: rgba(255,255,255,0.95); font-weight: 600; }
.phone-preview .bubble {
  background: rgba(255,255,255,0.12);
  border-radius: 18px 18px 18px 4px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.4;
  font-family: var(--sans);
}
.phone-preview .bubble + .bubble { margin-top: 6px; }

/* ───────── Section frame ───────── */

section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px;
}
section.wide { max-width: var(--max-wide); }

.section-mark {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--honey-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-mark::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--honey);
}

h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 24ch;
}
h2 em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--terracotta-deep);
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: 'opsz' 36;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

p { font-size: 16px; line-height: 1.6; margin-bottom: 16px; max-width: 60ch; }
p:last-child { margin-bottom: 0; }

/* ───────── How it works (steps) ───────── */

.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.step {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  position: relative;
}
.step .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--honey-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.step p { font-size: 15px; color: var(--ink-soft); }

/* ───────── Form ───────── */

.signup-card {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px 28px;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
@media (min-width: 640px) {
  .signup-card { padding: 40px 36px; }
}

.signup-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  background: linear-gradient(90deg, var(--honey) 0%, var(--terracotta) 100%);
  border-radius: 4px 4px 0 0;
}

.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input[type="tel"],
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  font-family: var(--sans);
  font-size: 17px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 3px;
  color: var(--ink);
  transition: border-color 0.15s;
}
.field input:focus {
  outline: none;
  border-color: var(--honey-deep);
  background: #fff;
}
.field .hint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 6px;
  display: block;
}

.pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (min-width: 480px) {
  .pill-grid { grid-template-columns: repeat(3, 1fr); }
}
.pill-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 3px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.pill-option:hover { border-color: var(--ink-muted); }
.pill-option input { accent-color: var(--terracotta); cursor: pointer; }
.pill-option input:checked + span { color: var(--terracotta-deep); }
.pill-option:has(input:checked) {
  border-color: var(--terracotta);
  background: rgba(168, 90, 58, 0.05);
}

.consent {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 12px;
  cursor: pointer;
}
.consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--terracotta);
  flex: none;
  cursor: pointer;
}

.btn {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 14px 24px;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  transition: background 0.15s, transform 0.05s;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 4px 10px -4px rgba(168,90,58,0.4);
}
.btn:hover { background: var(--terracotta-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.compliance {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-top: 16px;
  text-align: center;
  letter-spacing: 0.01em;
}
.compliance a { color: var(--ink-soft); text-decoration-color: var(--ink-muted); }

/* ───────── UPI legend ───────── */

.upi-legend {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px;
  max-width: 560px;
  margin: 0 auto;
}
.upi-legend h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.upi-legend > p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-family: var(--sans);
}
.upi-scale {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
}
.upi-row {
  display: grid;
  grid-template-columns: 28px 80px 1fr;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--rule);
}
.upi-row:last-child { border-bottom: none; padding-bottom: 0; }
.upi-row .num {
  font-weight: 500;
  color: var(--ink);
  font-size: 16px;
}
.upi-row .dots {
  color: var(--honey-deep);
  letter-spacing: 0.15em;
  font-size: 18px;
  line-height: 1;
}
.upi-row .lab { color: var(--ink-soft); }

/* ───────── Sample message highlight ───────── */

.sample-msgs {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.sample-msg {
  background: var(--paper-deep);
  border-left: 3px solid var(--honey);
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.5;
}
.sample-msg .label {
  font-size: 10.5px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
  font-weight: 500;
}

/* ───────── Footer ───────── */

footer {
  border-top: 1px solid var(--rule);
  margin-top: 64px;
  padding: 40px 24px 48px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  letter-spacing: 0.02em;
}
footer a { color: var(--ink-soft); text-decoration-color: var(--rule); }
footer .footer-line {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}
footer .made { display: block; margin-top: 14px; color: var(--ink-muted); }
footer .made em { font-style: italic; color: var(--terracotta-deep); }

/* ───────── Beta banner ───────── */

.beta-banner {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 10px 24px;
  text-align: center;
}
.beta-banner strong {
  color: var(--honey);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-right: 8px;
}

/* ───────── Long-form pages (privacy / terms) ───────── */

.longform {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}
.longform .doc-header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.longform h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.longform .effective {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.longform h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: 'opsz' 36;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--ink);
  max-width: none;
}
.longform p, .longform ul, .longform ol {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: none;
}
.longform ul, .longform ol { padding-left: 22px; }
.longform li { margin-bottom: 8px; }
.longform li::marker { color: var(--honey-deep); }
.longform strong { color: var(--ink); font-weight: 600; }
.longform .uppercase-block {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  background: var(--paper-deep);
  padding: 16px 18px;
  border-left: 3px solid var(--ink);
  margin-bottom: 16px;
}
