/* ─────────────────────────────────────────────────────────────
   Vowline — letterpress/stationery palette
   paper ivory · deep ink · laurel green accent
   Display: Fraunces · Body: system sans
   Mobile-first; designed at 375px and scaled up.
───────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2026, U+2116;
}

:root {
  --paper: #FBF9F4;
  --paper-deep: #F3EFE6;
  --ink: #181716;
  --ink-soft: #4A4742;
  --laurel: #3E5C49;
  --laurel-deep: #2E4536;
  --rule: #DDD6C8;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

a { color: var(--laurel-deep); }

:focus-visible {
  outline: 2px solid var(--laurel);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ── Top bar ── */
.topbar {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.topbar-note {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── Hero ── */
.hero {
  padding: 3rem 1.25rem 2.5rem;
  max-width: 72rem; margin: 0 auto;
  display: grid; gap: 2.75rem;
}
.hero h1 { font-size: clamp(2.1rem, 8.5vw, 3.4rem); }
.subhead {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

/* signup form */
.signup { display: grid; gap: 0.65rem; max-width: 26rem; }
.signup input,
.signup select {
  font: inherit; color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.78rem 0.9rem;
  width: 100%;
}
.signup select:invalid { color: var(--ink-soft); }
.signup input::placeholder { color: #8B867D; }
.signup button {
  font: inherit; font-weight: 600;
  background: var(--ink); color: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 0.82rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.signup button:hover { background: var(--laurel-deep); border-color: var(--laurel-deep); }
.signup button:disabled { opacity: 0.6; cursor: wait; }
.form-msg { min-height: 1.4em; margin: 0; font-size: 0.92rem; color: var(--laurel-deep); }
.form-msg.error { color: #8C3B2E; }

/* success state */
.success { max-width: 26rem; padding: 1.4rem 1.3rem; background: var(--paper-deep);
  border: 1px solid var(--rule); border-radius: 10px; }
.success-head { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; margin: 0 0 0.4rem; }
.success-sub { color: var(--ink-soft); font-size: 0.97rem; margin: 0 0 1rem; }
.share-btn {
  font: inherit; font-weight: 600;
  background: transparent; color: var(--laurel-deep);
  border: 1.5px solid var(--laurel-deep); border-radius: 6px;
  padding: 0.6rem 1.1rem; cursor: pointer;
}
.share-btn:hover { background: var(--laurel-deep); color: var(--paper); }

/* launch countdown line */
.launch-note { margin: 1.1rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.launch-note strong { color: var(--laurel-deep); font-weight: 600; }
#countdown { font-variant-numeric: tabular-nums; color: var(--laurel-deep); font-weight: 600; }

/* store badges */
.stores { margin-top: 1.9rem; }
.stores-note {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 0.6rem;
}
.badges { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--ink); border-radius: 8px;
  padding: 0.45rem 0.85rem;
  color: var(--ink);
}
.badge svg { width: 1.25rem; height: 1.45rem; flex: none; }
.badge small { display: block; font-size: 0.62rem; line-height: 1.2; letter-spacing: 0.04em; }
.badge strong { display: block; font-size: 0.95rem; line-height: 1.15; }

/* ── Hero visual: the invoice that writes itself ── */
.hero-visual { display: grid; justify-items: center; }
.invoice {
  width: min(100%, 22.5rem);
  background: #FFFEFB;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.5rem 1.4rem 1.2rem;
  box-shadow: 0 18px 40px -18px rgba(24, 23, 22, 0.28);
  transform: rotate(-1.2deg);
  font-size: 0.95rem;
}
.inv-line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.28rem 0; }
.inv-head { align-items: baseline; }
.inv-studio { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; }
.inv-no { color: var(--ink-soft); font-size: 0.85rem; white-space: nowrap; }
.inv-client { color: var(--ink-soft); font-size: 0.9rem; }
.inv-rule { border-top: 1px solid var(--rule); margin: 0.55rem 0; }
.inv-item span:last-child { font-variant-numeric: tabular-nums; }
.inv-total { font-weight: 700; }
.inv-pay { justify-content: flex-start; padding-top: 0.7rem; }
.inv-paybtn {
  background: var(--laurel); color: var(--paper);
  border-radius: 6px; padding: 0.45rem 1rem;
  font-weight: 600; font-size: 0.9rem;
}
.inv-stamp {
  margin-top: 0.9rem;
  font-size: 0.8rem; color: var(--laurel-deep);
  font-style: italic;
}

/* write-itself animation: lines reveal in sequence */
@media (prefers-reduced-motion: no-preference) {
  .invoice .inv-line,
  .invoice .inv-stamp {
    opacity: 0;
    transform: translateY(6px);
    animation: inv-write 0.55s ease forwards;
  }
  .invoice .inv-line:nth-child(1) { animation-delay: 0.3s; }
  .invoice .inv-line:nth-child(2) { animation-delay: 0.75s; }
  .invoice .inv-line:nth-child(4) { animation-delay: 1.25s; }
  .invoice .inv-line:nth-child(5) { animation-delay: 1.7s; }
  .invoice .inv-line:nth-child(6) { animation-delay: 2.15s; }
  .invoice .inv-line:nth-child(8) { animation-delay: 2.7s; }
  .invoice .inv-line:nth-child(9) { animation-delay: 3.2s; }
  .invoice .inv-stamp { animation-delay: 3.8s; animation-duration: 0.8s; }
}
@keyframes inv-write {
  to { opacity: 1; transform: none; }
}

/* ── Social-proof strip ── */
.proof {
  background: var(--ink); color: var(--paper);
  text-align: center; padding: 1.05rem 1.25rem;
}
.proof p { margin: 0; }
.proof-badge {
  font-family: var(--serif); font-size: 1.08rem; font-weight: 500;
  letter-spacing: 0.015em;
}
.proof-badge::before, .proof-badge::after { content: "  ✦  "; color: var(--rule); font-size: 0.8em; }

/* ── Steps ── */
.steps { max-width: 72rem; margin: 0 auto; padding: 3.5rem 1.25rem 1rem; }
.steps h2, .compare h2, .faq h2 { font-size: clamp(1.7rem, 6vw, 2.3rem); margin-bottom: 1.4rem; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.9rem; }
.steps li { border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.step-no {
  font-family: var(--serif); font-size: 0.95rem;
  display: inline-grid; place-items: center;
  width: 1.9rem; height: 1.9rem;
  border: 1px solid var(--ink); border-radius: 50%;
  margin-bottom: 0.7rem;
}
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--ink-soft); margin: 0; max-width: 30rem; }

/* ── Comparison ── */
.compare { max-width: 72rem; margin: 0 auto; padding: 3.5rem 1.25rem 1rem; }
.compare-row { display: grid; gap: 1rem; }
.card {
  border: 1px solid var(--rule); border-radius: 12px;
  padding: 1.5rem 1.4rem;
  background: #FFFEFB;
}
.card-vowline { border: 2px solid var(--laurel); }
.card-name {
  margin: 0; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.card-vowline .card-name { color: var(--laurel-deep); }
.card-price { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; margin: 0.2rem 0 0.8rem; }
.card-price span { font-size: 1.05rem; color: var(--ink-soft); font-family: var(--sans); font-weight: 400; }
.card ul { margin: 0 0 1.1rem; padding: 0; list-style: none; }
.card li { padding: 0.32rem 0 0.32rem 1.4rem; position: relative; color: var(--ink-soft); }
.card-vowline li::before { content: "✓"; position: absolute; left: 0; color: var(--laurel); font-weight: 700; }
.card-them li::before { content: "—"; position: absolute; left: 0; color: var(--rule); }
.card-foot { margin: 0; font-size: 0.95rem; border-top: 1px solid var(--rule); padding-top: 0.9rem; }
.card-vowline .card-foot strong { color: var(--laurel-deep); }
.card-them { opacity: 0.85; }

/* ── FAQ ── */
.faq { max-width: 46rem; margin: 0 auto; padding: 3.5rem 1.25rem 1rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  padding: 1rem 2rem 1rem 0.1rem;
  cursor: pointer; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.3rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--laurel-deep);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.2rem; color: var(--ink-soft); max-width: 38rem; }

/* ── Closing CTA ── */
.closing { text-align: center; padding: 4rem 1.25rem 4.5rem; max-width: 40rem; margin: 0 auto; }
.closing h2 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); margin-bottom: 1.5rem; }
.closing-cta {
  display: inline-block; text-decoration: none;
  font-weight: 600;
  background: var(--ink); color: var(--paper);
  border-radius: 6px; padding: 0.85rem 1.8rem;
  transition: background 0.15s ease;
}
.closing-cta:hover { background: var(--laurel-deep); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--rule);
  padding: 1.6rem 1.25rem 2.2rem;
  text-align: center;
  color: var(--ink-soft); font-size: 0.9rem;
}
footer a { color: inherit; }

/* ── ≥ 760px ── */
@media (min-width: 760px) {
  .topbar { padding: 1.2rem 2.5rem; }
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center;
    padding: 4.5rem 2.5rem 4rem; gap: 3rem; }
  .signup { grid-template-columns: 1fr; }
  .invoice { transform: rotate(-2deg); }
  .steps ol { grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
  .compare-row { grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 52rem; }
  .steps, .compare, .faq { padding-top: 4.5rem; }
}

/* privacy page */
.legal { max-width: 42rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--ink-soft); }
