/* ============================================================
   MyTaxSVB lane sites — shared stylesheet
   Mobile-first. One 42rem reading column. Lane accent via --accent:
     efinready.com  #1E6B4E   (deep season green)
     yourflow.tax   #0E5A8A   (working blue)
     buildmysvb.com #7A3E12   (earned bronze)
   Each lane page overrides --accent in a tiny inline <style>.
   Voice of the visuals: warm paper, ink, one strong accent —
   a well-thumbed planner, not a corporate deck.
   ============================================================ */

:root {
  --accent: #1E6B4E;

  /* fallbacks for browsers without color-mix */
  --accent-ink: var(--accent);
  --accent-tint: #F1EFE8;
  --accent-line: #CFE0D8;

  --paper: #FAF7F1;
  --card: #FFFFFF;
  --ink: #26221A;
  --muted: #6E6759;
  --line: #E6DFD2;
  --danger: #9A3B2E;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino,
    "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(38, 34, 26, 0.06), 0 10px 28px -18px rgba(38, 34, 26, 0.35);
  --col: 42rem;
}

@supports (color: color-mix(in srgb, red 50%, white)) {
  :root {
    --accent-ink: color-mix(in srgb, var(--accent) 80%, #1A1712);
    --accent-tint: color-mix(in srgb, var(--accent) 7%, var(--paper));
    --accent-line: color-mix(in srgb, var(--accent) 26%, var(--paper));
  }
}

/* ---------- base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(
    64rem 30rem at 50% -6rem,
    var(--accent-tint) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

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

::selection { background: var(--accent); color: var(--paper); }

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

.wrap { max-width: var(--col); margin-inline: auto; padding-inline: 1.25rem; }
.wrap-wide { max-width: 64rem; margin-inline: auto; padding-inline: 1.25rem; }

/* ---------- type ---------- */

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

h1 { font-size: clamp(2.3rem, 8.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.lede { font-size: clamp(1.1rem, 4vw, 1.25rem); color: var(--muted); max-width: 36rem; }

.overline {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.75rem;
}

.accent { color: var(--accent-ink); }
.serif-em { font-family: var(--font-display); font-style: italic; }
.muted { color: var(--muted); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark b { color: var(--accent-ink); font-weight: 700; }

.site-nav { display: none; gap: 1.1rem; font-size: 0.92rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--accent-ink); }

@media (min-width: 44em) {
  .site-nav { display: flex; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--accent-ink);
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.btn:hover { background: var(--accent-ink); color: #FFFFFF; }
.btn:active { transform: translateY(1px); box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--accent-ink);
  border: 1.5px solid var(--accent-line);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--accent-tint); color: var(--accent-ink); }

.btn-block { display: block; width: 100%; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.92rem; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- hero ---------- */

.hero { padding-block: 3rem 2.5rem; }
.hero h1 .turn { display: block; color: var(--accent-ink); font-style: italic; }
.hero .lede { margin-bottom: 1.5rem; }
.hero-note { font-size: 0.88rem; color: var(--muted); margin-top: 1rem; }

@media (min-width: 44em) {
  .hero { padding-block: 4.5rem 3.5rem; }
}

/* ---------- badges ---------- */

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
}

.badge-gold {
  color: #7A5A16;
  background: #FAF3E1;
  border-color: #E5D3A6;
}

/* ---------- sections ---------- */

.section { padding-block: 2.75rem; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 1.75rem; }

@media (min-width: 44em) {
  .section { padding-block: 3.75rem; }
}

/* ---------- cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

/* ---------- steps (how it works) ---------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 4.1rem;
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.15rem;
  top: 1.15rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #FFFFFF;
  background: var(--accent);
  border-radius: 50%;
}
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- calculator / interactive panel ---------- */

.calc {
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.calc-field { margin-bottom: 1.25rem; }
.calc-field:last-child { margin-bottom: 0; }

.calc-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}
.calc-field output {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-ink);
  white-space: nowrap;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 2.2rem;      /* generous thumb target on phones */
  margin: 0;
  background: transparent;
}

.input,
input[type="email"],
input[type="text"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.input-prefix { position: relative; }
.input-prefix > span {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 700;
}
.input-prefix > input { padding-left: 1.9rem; }

/* result block — gated until email capture */
.calc-result {
  margin-top: 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.calc-result .figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  line-height: 1.05;
  color: var(--accent-ink);
  letter-spacing: -0.02em;
  transition: filter 500ms ease;
}
.calc-result .figure-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.calc-result .figure-sub { color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; }

.gated .figure,
.gated .figure-sub { filter: blur(13px); user-select: none; pointer-events: none; }

.calc-gate { margin-top: 1.1rem; }
.calc-gate p { font-size: 0.95rem; margin-bottom: 0.6rem; }
.calc-gate .gate-row { display: grid; gap: 0.6rem; }
@media (min-width: 34em) {
  .calc-gate .gate-row { grid-template-columns: 1fr auto; align-items: center; }
}

.calc-cta { margin-top: 1.1rem; }

.calc-keep-line {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent-ink);
}

/* ---------- packages ---------- */

.pkg-grid { display: grid; gap: 1.1rem; }
@media (min-width: 54em) {
  .pkg-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.pkg {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.pkg-featured { border: 2px solid var(--accent); position: relative; }
.pkg-flag {
  position: absolute;
  top: -0.85rem;
  left: 1.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}
.pkg h3 { margin-bottom: 0.15rem; }
.pkg .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--accent-ink);
  margin: 0.15rem 0 0.65rem;
}
.pkg .price small { font-size: 0.9rem; font-family: var(--font-body); font-weight: 400; color: var(--muted); }
.pkg ul { margin: 0 0 1.25rem; padding-left: 1.1rem; color: var(--muted); font-size: 0.95rem; display: grid; gap: 0.4rem; }
.pkg .btn { margin-top: auto; }

/* ---------- banner (e.g. free-migration strip) ---------- */

.banner {
  background: var(--accent);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}
.banner h3 { color: inherit; margin-bottom: 0.2rem; }
.banner p { margin: 0; opacity: 0.9; font-size: 0.97rem; }
.banner a { color: inherit; }

/* ---------- proof strip ---------- */

.proof {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 0.7rem; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 2.6rem 1rem 1.1rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-ink);
  transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > p { padding: 0 1.1rem 1rem; margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- forms (qualify / capture) ---------- */

.form-grid { display: grid; gap: 0.9rem; }
.form-grid label { font-weight: 700; font-size: 0.92rem; display: grid; gap: 0.35rem; }
.form-grid .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.form-msg { font-size: 0.92rem; color: var(--accent-ink); min-height: 1.3em; margin: 0.4rem 0 0; }
.form-msg.error { color: var(--danger); }

/* ---------- fine print / footer ---------- */

.fineprint {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-block: 2rem 2.6rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}
.fineprint p { margin-bottom: 0.7em; }
.fineprint a { color: var(--muted); }

/* ---------- load-in motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 640ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.rise-2 { animation-delay: 110ms; }
.rise-3 { animation-delay: 220ms; }
.rise-4 { animation-delay: 330ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .rise-2, .rise-3, .rise-4 { animation: none; }
  .btn { transition: none; }
}

/* ---------- utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
