/* Steward CPAs — design tokens and page styles.
   Layout from the Steward CPAs design doc (variant 1A);
   identity from the Steward CPAs brand kit (v1, July 2026). */

/* Tokens mirror the Steward CPAs brand kit (v1, July 2026) and the
   "Classical" design system it is built on. Accent is filled only in the
   mark's third column — everywhere else colour is stroke or type. */

:root {
  --ink: #201f1d;            /* Ink                       */
  --ink-2: #2d2b2b;          /* neutral-900, dark panels  */
  --ink-3: #444141;          /* neutral-800               */
  --muted: #605d5d;          /* neutral-700, body muted   */
  --quiet: #9b9797;          /* neutral-500, shortest bar */

  --gold: #b68235;           /* accent — graphics only    */
  --gold-deep: #7d5411;      /* accent-700, small text    */
  --gold-light: #e1ad66;     /* accent-400, on dark       */

  --cream: #f3f2f2;          /* Ground                    */
  --tint: #eae9e9;           /* surface                   */
  --rule: color-mix(in srgb, #201f1d 16%, transparent);
  --dark-rule: #605d5d;
  --dark-muted: #bab6b6;     /* neutral-400               */

  --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Lora', Georgia, 'Times New Roman', serif;

  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 56px);
  --section-y: clamp(52px, 7vw, 80px);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;   /* Lora needs more leading than a sans at the same size */
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { opacity: .75; }

:where(a, button):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Cormorant Garamond runs small and light for its point size; headings take
   600 per the design system, and hero display drops to 500 per the brand kit. */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
p { margin: 0; }
ul { margin: 0; }

img, svg { max-width: 100%; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Tracked caps, per the brand kit's label style. Uses accent-700 rather than
   the accent itself — #b68235 on the ground only reaches ~3:1, which fails
   for text this small. The mark keeps the true accent. */
.eyebrow {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

.lede {
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  padding: 16px 30px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background .15s ease;
}
.btn:hover { background: var(--ink-2); opacity: 1; }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 11px 20px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); opacity: 1; }

.link-underline {
  font-size: 15px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

/* Logo lockup — mark plus wordmark. Built in markup rather than dropped in as
   steward-logo.svg because that master sets STEWARD in <text>, and an SVG
   loaded through <img> cannot reach the page's webfonts; it would silently
   fall back to Garamond. Inline, the real Cormorant applies. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.wordmark svg {
  display: block;
  width: 34px;
  height: 34px;
  flex: none;
}
.wordmark-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wordmark-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .07em;
  line-height: 1;
}
.wordmark-sub {
  font-size: 9px;
  letter-spacing: .38em;
  line-height: 1;
  color: var(--gold-deep);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav a:not(.btn-outline) { color: var(--muted); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  border-bottom: 1px solid var(--rule);
}

/* Scoped to .hero-copy, not `.hero .wrap`. The picker is a second .wrap in
   this section, and the descendant selector was winning on specificity and
   dropping 88px of padding on it — which pushed the picker below the fold. */
.hero-copy {
  padding-top: clamp(44px, 6.5vw, 68px);
  padding-bottom: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero h1 {
  font-size: clamp(40px, 6.6vw, 74px);
  font-weight: 500;              /* display cut, per the kit */
  line-height: 1.04;
  max-width: 19ch;
  text-wrap: pretty;
}
.hero .lede { max-width: 60ch; }

/* ---------- Stat strip ---------- */

.stats {
  border-bottom: 1px solid var(--rule);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-left: 0;
  padding-right: 0;
}
.stat {
  padding: 30px var(--pad);
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: 0; }
.stat-title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.9vw, 33px);
  font-weight: 600;
  line-height: 1.15;
}
.stat-note { font-size: 14px; color: var(--muted); margin-top: 5px; }

/* ---------- Generic section ---------- */

.section { border-bottom: 1px solid var(--rule); }
.section .wrap {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.section h2 {
  font-size: clamp(30px, 4.1vw, 44px);
  line-height: 1.12;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.section-head h2 { max-width: 18ch; }
.section-head p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
}

.split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(28px, 4vw, 56px);
}
.split > div > p {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Comparison ---------- */

.cmp { border-top: 1px solid var(--ink); }

.cmp-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.4fr;
}

.cmp-row > * { border-bottom: 1px solid var(--rule); }

.cmp-label {
  padding: 20px 20px 20px 0;
  font-weight: 600;
  font-size: 15px;
}
.cmp-cell {
  padding: 20px 24px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.cmp-cell.is-steward {
  background: var(--tint);
  color: var(--ink);
}

.cmp-head .cmp-cell {
  padding: 16px 24px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.cmp-head .cmp-cell.is-steward { color: var(--gold-deep); }
.cmp-head .cmp-label { padding: 16px 20px 16px 0; }

/* ---------- Row list (team, onboarding) ---------- */

.rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.row strong { font-size: 16.5px; }
.row span {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

.steps .step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.step-num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--gold);
}
.step strong { font-size: 16px; display: block; margin-bottom: 6px; }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Coverage grid ---------- */

.coverage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.coverage > div {
  background: var(--cream);
  padding: 24px 28px;
}
.coverage strong { font-size: 16px; display: block; margin-bottom: 6px; }
.coverage span { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- Path picker ---------- */

.paths-wrap {
  padding-top: clamp(20px, 2.5vw, 28px);
  padding-bottom: clamp(40px, 5.5vw, 60px);
}
.paths-ask {
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 600;
  margin-bottom: 16px;
}
.paths-sep { margin: 0 10px; color: var(--muted); }
.paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Both doors are identical by construction — same border, padding, and type.
   Neither may read as the recommended one. */
.path {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: none;
  border: 1px solid var(--rule);
  padding: 30px 28px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.path:hover { border-color: var(--ink); background: var(--tint); opacity: 1; }
.path[aria-pressed='true'] { border-color: var(--ink); background: var(--tint); }

.path-label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
}
.path-title {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.15;
}
.path-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}
.path-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  margin-top: 4px;
}
.path-price { font-size: 14.5px; font-weight: 600; }
.path-cta {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}

.paths-both { margin-top: 18px; }
.linkish {
  font: inherit;
  font-size: 14.5px;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-bottom: 1px solid var(--muted);
}
.linkish:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Filter bar + the filtering itself */

/* Sits inside .site-header, so it sticks with it rather than competing as a
   second sticky layer pinned to the same top:0. */
.path-bar {
  background: var(--tint);
  border-top: 1px solid var(--rule);
}
.path-bar[hidden] { display: none; }
.section[tabindex='-1']:focus { outline: none; }
.path-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 11px;
  padding-bottom: 11px;
  font-size: 13.5px;
  color: var(--muted);
}
.path-bar strong { color: var(--ink); }

html[data-path='accounting'] [data-path='tax'],
html[data-path='accounting'] [data-for='tax'],
html[data-path='tax'] [data-path='accounting'],
html[data-path='tax'] [data-for='accounting'] { display: none; }

/* Once a path is chosen the picker has done its job. */
html[data-path] .paths-wrap { display: none; }

@media (max-width: 700px) {
  .paths { grid-template-columns: 1fr; }
}

/* ---------- Path banner ---------- */

.path-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.path-banner p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.path-banner a { border-bottom: 1px solid var(--gold-deep); }

/* Hide the cross-reference when the other path is filtered out anyway. */
html[data-path] .path-banner p a { display: none; }

/* ---------- Pricing groups ---------- */

.plan-group + .plan-group {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--dark-rule);
}
.plan-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.plan-group-name {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  color: var(--cream);
}
.plans-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) {
  .plans-2 { grid-template-columns: 1fr; }
}

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

.fit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.fit > div {
  background: var(--cream);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fit h3 { font-size: 25px; line-height: 1.18; }
.fit span { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Pricing (dark) ---------- */

.pricing {
  background: var(--ink);
  color: var(--cream);
}
.pricing .wrap {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.pricing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}
.pricing-head h2 { font-size: clamp(30px, 4.1vw, 44px); }
.pricing-head p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--dark-muted);
  max-width: 54ch;
}
.pricing-flag {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--dark-rule);
}
.plan {
  background: var(--ink);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan.is-featured { background: var(--ink-2); }
.plan-name {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}
.plan.is-featured .plan-name { color: var(--gold-light); }
.plan-price {
  font-family: var(--serif);
  font-size: 41px;
  font-weight: 600;
}
.plan-price small {
  font-size: 15px;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--dark-muted);
}
.plan-blurb {
  font-size: 14px;
  line-height: 1.55;
  color: var(--dark-muted);
  border-bottom: 1px solid var(--dark-rule);
  padding-bottom: 14px;
}
.plan ul {
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--dark-muted);
}
.pricing-fine {
  margin-top: 26px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark-muted);
  max-width: 80ch;
}

/* ---------- Closing CTA ---------- */

.cta .wrap {
  padding-top: clamp(52px, 6.5vw, 76px);
  padding-bottom: clamp(52px, 6.5vw, 76px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.cta h2 {
  font-size: clamp(31px, 4.3vw, 46px);
  max-width: 22ch;
  line-height: 1.12;
}
.cta p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
}

/* Loads the scheduler on demand — see the comment in index.html for why the
   frame is not mounted at page load. */
.booking-prompt {
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--ink);
  padding: 15px 28px;
  margin: 10px 0 4px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.booking-prompt:hover { background: var(--ink); color: var(--cream); }
.booking-prompt span { margin-left: 6px; }

/* Scheduler embed. min-height lives on the container, not the iframe, so the
   container reserves the frame's full height the moment it is revealed —
   before the iframe exists. That keeps the scroll target reachable. */
.booking {
  width: 100%;
  min-height: 720px;
  margin: 10px 0 4px;
  border: 1px solid var(--rule);
  background: #fff;
}
.booking[hidden] { display: none; }
.booking iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
}

/* Placeholder while the frame is in flight, so the reserved box is not blank */
.booking[data-booking-loading] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.booking[data-booking-loading]::before {
  content: 'Loading available times…';
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--muted);
}

@media (max-width: 700px) {
  .booking,
  .booking iframe { min-height: 900px; }
}

/* ---------- Footer ---------- */

/* Reversed lockup on ink — the brand kit names the site footer as a
   reversed-logo placement. */
.site-footer {
  background: var(--ink-2);
  color: var(--dark-muted);
}
.site-footer .wrap {
  padding-top: 34px;
  padding-bottom: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}
.site-footer a { color: var(--dark-muted); }
.site-footer .wordmark svg { width: 30px; height: 30px; }
.site-footer .wordmark-name { font-size: 20px; color: var(--cream); }
.site-footer .wordmark-sub { font-size: 8px; color: var(--gold-light); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .site-header .wrap { flex-wrap: wrap; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--rule);
    margin-top: 18px;
  }
  .site-header[data-open='true'] .site-nav { display: flex; }
  .site-nav a:not(.btn-outline) {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
  }
  .site-nav .btn-outline {
    margin-top: 18px;
    text-align: center;
  }

  .split { grid-template-columns: 1fr; }
  .section-head h2 { max-width: none; }

  .coverage { grid-template-columns: repeat(2, 1fr); }
  .fit { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }

  /* Comparison collapses to stacked cards */
  .cmp-row {
    display: block;
    padding: 22px 0 8px;
    border-bottom: 1px solid var(--rule);
  }
  .cmp-row.cmp-head { display: none; }
  .cmp-row > * { border-bottom: 0; }
  .cmp-label {
    padding: 0 0 12px;
    font-family: var(--serif);
    font-size: 20px;
  }
  .cmp-cell { padding: 14px 16px; }
  .cmp-cell::before {
    content: attr(data-col);
    display: block;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--muted);
  }
  .cmp-cell.is-steward { margin-top: 8px; }
  .cmp-cell.is-steward::before { color: var(--gold-deep); }
}

@media (max-width: 700px) {
  .stats .wrap { grid-template-columns: 1fr; }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .stat:last-child { border-bottom: 0; }

  .row { grid-template-columns: 1fr; gap: 8px; }
  .coverage { grid-template-columns: 1fr; }
  .steps .step { grid-template-columns: 40px 1fr; gap: 14px; }
  .btn { width: 100%; text-align: center; }
  .actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }
:target { scroll-margin-top: 96px; }

/* Two onboarding sequences stack in the unfiltered view; give the second
   one air so it doesn't read as a continuation of the first. */
.split + .split {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--rule);
}
