:root {
  --bg: #F4F3EE;
  --ink: #233A2A;
  --muted: #55554E;
  --line: #DEDDD3;
  --card: #FBFAF6;
  --serif: "Hedvig Letters Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--ink); }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }

main { flex: 1; }

/* Top bar on inner pages */
.topbar { padding: 22px 0; }
.topbar a { font-family: var(--serif); font-size: 24px; text-decoration: none; }

/* Home */
.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 20px 40px;
}
.hero h1 { font-size: clamp(64px, 17vw, 168px); letter-spacing: -0.02em; }
.hero p { margin: 20px 0 0; font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 34em; }
.hero .positioning { margin-top: 8px; font-size: 15px; }

.section { padding: 56px 0; }
.section h2 { font-size: 34px; margin-bottom: 28px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 4px 0 4px 44px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 2px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
}

.price {
  padding: 8px 0;
  text-align: center;
}
.price .amount { font-family: var(--serif); font-size: 52px; line-height: 1; }
.price .amount span { font-family: var(--sans); font-size: 18px; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 18px 0 26px; color: var(--muted); }
.price li { margin: 4px 0; }

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--card);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 999px;
}
.button:hover { opacity: 0.9; }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Legal pages */
.legal { padding: 48px 20px 64px; }
.legal h1 { font-size: clamp(36px, 7vw, 52px); }
.legal .updated { color: var(--muted); margin: 10px 0 36px; font-size: 15px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.note { padding: 0; }

/* Footer */
footer { padding: 40px 0 36px; color: var(--muted); font-size: 15px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
footer nav a { color: var(--ink); }
footer p { margin: 4px 0; }

/* Home: button under the two lines */
.hero { min-height: 82vh; }
.hero .hero-button { margin-top: 36px; }

/* How it works page */
.how-steps { margin: 36px 0 48px; }
.legal .price { text-align: left; padding: 0; }
.legal .price ul { margin-bottom: 0; padding-left: 0; }

/* Centered logo and footer */
.topbar { text-align: center; }
footer { text-align: center; }
footer nav { justify-content: center; }

/* ============ Ask flow (/ask) ============ */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ask { width: 100%; max-width: 480px; margin: 0 auto; padding: 12px 20px 40px; }

.ask-top {
  display: grid; grid-template-columns: 44px 1fr 40px; align-items: center;
  column-gap: 24px; height: 56px; margin-bottom: 16px;
}
/* fixed 44px arrow area (also the invisible 44x44 hit area); visible arrow tip 24px from the screen edge */
.ask-back { grid-column: 1; width: 44px; height: 44px; display: flex; align-items: center; justify-content: flex-start; line-height: 0; color: var(--ink); text-decoration: none; }
.ask-back svg { display: block; margin-left: 4px; }
/* no background, ring or highlight in any state */
.ask-back, .ask-back:hover, .ask-back:focus, .ask-back:focus-visible, .ask-back:active, .ask-back:visited {
  background: transparent !important; border: none !important; box-shadow: none !important; border-radius: 0 !important;
  outline: none !important; -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none;
}
.ask-progress { grid-column: 2; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ask-progress span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 999px; transition: width .3s ease; }
/* fixed-width counter so the bar never moves when the digit changes */
.ask-count { grid-column: 3; width: 40px; text-align: right; font-size: 15px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ask-last { grid-column: 1 / -1; text-align: center; font-weight: 600; font-size: 15px; }
.ask-logo { grid-column: 1 / -1; }

.ask-step h1 { font-size: clamp(30px, 8vw, 38px); }
.ask-sub { color: var(--muted); margin: 12px 0 28px; }

.ask-options { display: grid; gap: 10px; margin-bottom: 28px; }
.opt {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 56px; padding: 14px 18px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  font: inherit; font-weight: 500; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.opt::after {
  content: ""; flex: none; width: 20px; height: 20px; margin-left: 12px;
  background: no-repeat center / 20px 20px;
}
.opt.selected { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opt.selected::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23F4F3EE' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.opt:focus-visible, .ask-continue:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.ask-continue {
  display: block; width: 100%; min-height: 56px; padding: 14px 20px;
  background: var(--ink); color: var(--bg);
  border: 0; border-radius: 14px; font: inherit; font-weight: 600; cursor: pointer;
}
.ask-continue:disabled { opacity: 0.35; cursor: not-allowed; }

.ask-textarea, .ask-input {
  display: block; width: 100%; font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px;
}
.ask-textarea { min-height: 230px; resize: vertical; line-height: 1.5; }
.ask-input { min-height: 56px; }
.ask-textarea:focus, .ask-input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.ask-textarea::placeholder, .ask-input::placeholder { color: #8C8B82; }

.ask-note { color: var(--muted); font-size: 14px; margin: 10px 0 24px; }
.ask-label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 8px; }
.ask-error { color: #9A3B2E; font-size: 14px; margin: 8px 0 0; }
.ask-check { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 18px; cursor: pointer; }
.ask-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
#nickname-wrap { margin-bottom: 28px; }
.ask-step[data-step="question"] .ask-check + #nickname-wrap[hidden] + .ask-continue { margin-top: 28px; }

/* plan step */
.offer { background: var(--ink); color: var(--bg); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.offer-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: 14px; }
.offer-head span:last-child { font-weight: 400; opacity: 0.8; font-size: 15px; }
.offer-timer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.offer-timer div { background: rgba(244, 243, 238, 0.1); border-radius: 12px; padding: 12px 4px; text-align: center; }
.offer-timer strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.offer-timer span { font-size: 13px; opacity: 0.8; }

.plan-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px; margin-bottom: 18px; }
.plan-name { font-weight: 600; margin-bottom: 6px; }
.plan-price strong { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; }
.plan-price span { color: var(--muted); }
.plan-price s { color: var(--muted); margin-left: 6px; }
.plan-meta { color: var(--muted); font-size: 15px; margin-top: 8px; }

.plan-h2 { font-size: 24px; margin: 34px 0 12px; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
  background: no-repeat center / 20px 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23233A2A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.plan-fine { font-size: 13px; margin-bottom: 10px; }
.plan-links { font-size: 13px; color: var(--muted); }
.plan-links a { color: var(--muted); }

/* Ask flow: start step */
.ask-logo { text-align: center; font-family: var(--serif); font-size: 22px; text-decoration: none; color: var(--ink); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 600; color: var(--muted); margin: 8px 0 14px; }
.start-h1 { font-size: clamp(34px, 9.5vw, 44px); }
.start-h1 em { font-style: italic; }
.start-text { color: var(--muted); margin: 16px 0 24px; }
.start-time { text-align: center; font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.legal h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; margin: 20px 0 6px; }

/* start: shorter */
.start-h1 { font-size: clamp(30px, 8.2vw, 36px); }
.start-text { margin: 14px 0 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.stats div {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px;
  /* room for the title line + 3 lines of description, whatever the actual text length */
  min-height: calc(2px + 16px + 20px * 1.15 + 2px + 3 * 12.5px * 1.3);
  display: flex; flex-direction: column; justify-content: flex-start;
}
.stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.15; }
.stats span { display: block; font-size: 12.5px; line-height: 1.3; color: var(--muted); margin-top: 2px; }
.start-ticks { margin: 0 0 18px; }
.start-ticks li { margin: 4px 0; }

/* plan: compact top, edit link, centered fine print */
.plan-h1 { font-size: clamp(28px, 7.6vw, 34px); }
.plan-sub { margin: 10px 0 20px; }
.ask-step[data-step="plan"] .offer { padding: 14px 16px; margin-bottom: 14px; }
.ask-step[data-step="plan"] .offer-head { margin-bottom: 10px; }
.ask-step[data-step="plan"] .offer-timer div { padding: 8px 4px; }
.ask-step[data-step="plan"] .offer-timer strong { font-size: 28px; }
.ask-step[data-step="plan"] .plan-card { padding: 16px 18px; margin-bottom: 14px; }
.ask-step[data-step="plan"] .plan-price strong { font-size: 40px; }
.ask-step[data-step="plan"] .edit-link { display: block; width: 100%; text-align: center; margin: 28px 0 0; font-size: 15px; color: #55554E; text-decoration: underline; }
.ask-step[data-step="plan"] .plan-fine { text-align: center; margin-bottom: 0; }
.ask-step[data-step="plan"] .plan-links { display: flex; justify-content: center; gap: 32px; margin-top: 28px; font-size: 15px; color: #55554E; }
.ask-step[data-step="plan"] .plan-links a { color: #55554E; }
