/* ============================================================
   Tax Flex — design system
   Tokens codified from the live site (see docs/BRAND-IDENTITY.md)
   ============================================================ */

:root {
  /* Brand tokens (from live CSS — do not rename, see AGENTS.md) */
  --paper: #f8f9f3;
  --ink: #252c25;
  --muted: #697065;
  --lime: #d5ee94;
  --line: #dfe3d6;

  /* Derived */
  --paper-soft: #f1f3ea;
  --ink-soft: #333b33;
  --on-lime: #20281e;

  --font-display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;

  --container: 72rem;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --shadow: 0 1px 2px rgb(37 44 37 / 0.05), 0 8px 24px rgb(37 44 37 / 0.06);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;

  --header-h: 4.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 var(--space-2); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 750; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-2); }
a { color: inherit; }
img, svg { max-width: 100%; height: auto; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 200;
}
.skip-link:focus { left: 0; }

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

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

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: var(--space-3); height: var(--header-h); }

.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.55rem; margin-right: auto;
}
.brand .brand-mark { display: grid; grid-template-columns: repeat(2, 6px); gap: 3px; }
.brand .brand-mark span { width: 6px; height: 6px; border-radius: 2px; background: var(--ink); }
.brand .brand-mark span:nth-child(2) { background: var(--lime); outline: 1px solid var(--ink); }
.brand .brand-flex { color: var(--muted); }
.brand .brand-dot { color: var(--muted); }

.nav-desktop { display: flex; gap: var(--space-3); }
.nav-desktop a, .nav-mobile a { text-decoration: none; font-weight: 550; padding: 0.35rem 0; }
.nav-desktop a:hover, .nav-mobile a:hover { color: var(--muted); }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 2.75rem; height: 2.75rem; place-items: center; cursor: pointer; color: var(--ink);
}

.nav-mobile { display: none; border-bottom: 1px solid var(--line); background: var(--paper); }
.nav-mobile .container { display: flex; flex-direction: column; padding-block: var(--space-2); gap: 0.25rem; }
.nav-mobile a { padding: 0.5rem 0; font-weight: 600; text-decoration: none; }
body.nav-open .nav-mobile { display: block; }

/* ---------- NotaryGO highlight (partner sub-brand) ---------- */

.nav-desktop a.nav-notary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--lime); color: var(--on-lime);
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: 999px; padding: 0.45rem 1.05rem;
  font-weight: 750; transition: transform 150ms ease, box-shadow 150ms ease;
}
.nav-desktop a.nav-notary:hover { color: var(--on-lime); transform: translateY(-1px); box-shadow: var(--shadow); }
.nav-mobile a.nav-notary {
  display: inline-flex; align-items: center; gap: 0.5rem; width: max-content;
  background: var(--lime); color: var(--on-lime);
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  border-radius: 999px; padding: 0.55rem 1.15rem;
}
.nav-notary .ng-seal { flex-shrink: 0; }
.nav-notary .ng-sub { font-weight: 600; font-size: 0.82em; opacity: 0.72; white-space: nowrap; }

/* ---------- Buttons & links ---------- */

.button {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  padding: 0.8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--ink-soft); }
.button-lime { background: var(--lime); color: var(--on-lime); border-color: color-mix(in srgb, var(--ink) 20%, transparent); }
.button-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.text-link { font-weight: 650; text-decoration-underline-offset: 4px; }

/* ---------- Sections ---------- */

section { padding-block: clamp(var(--space-6), 9vw, var(--space-7)); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: var(--space-2);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); outline: 2px solid var(--ink); display: inline-block; }

.section-head { max-width: 46rem; margin-bottom: var(--space-5); }
.section-head p { color: var(--muted); font-size: 1.15rem; }

/* ---------- Hero (home) ---------- */

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 .flourish-word { position: relative; white-space: nowrap; }
.hero h1 svg.flourish { position: absolute; left: 0; bottom: -0.35em; width: 100%; height: 0.35em; stroke: var(--lime); stroke-width: 6; fill: none; stroke-linecap: round; }
.hero-copy p { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-4); }

.hero-panel {
  background: var(--ink); color: var(--paper); border-radius: calc(var(--radius) + 0.5rem);
  padding: clamp(1.75rem, 3vw, 2.75rem); min-height: 26rem; display: flex; flex-direction: column; gap: var(--space-4);
}
.hero-panel .panel-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--lime); display: flex; justify-content: space-between; }
.hero-panel .panel-line strong { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; color: var(--lime); }
.hero-panel .panel-line span { color: color-mix(in srgb, var(--paper) 80%, transparent); }
.hero-panel .panel-foot { margin-top: auto; font-size: 0.95rem; color: color-mix(in srgb, var(--paper) 70%, transparent); border-top: 1px solid rgb(248 249 243 / 0.15); padding-top: var(--space-3); }

/* ---------- Audience strip ---------- */

.audience { background: var(--paper-soft); border-block: 1px solid var(--line); }
.audience .container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding-block: clamp(2rem, 4vw, 3rem); }
.audience .lead { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-right: var(--space-2); }
.audience .lead strong { color: var(--muted); }
.pill { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 0.6rem 1.25rem; font-weight: 600; text-decoration: none; transition: border-color 150ms ease, transform 150ms ease; }
.pill:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ---------- Cards / services ---------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--space-3); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-4); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: var(--space-2);
}
.card .num { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--lime); -webkit-text-stroke: 1px var(--ink); letter-spacing: -0.03em; }
.card p { color: var(--muted); margin-bottom: var(--space-2); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 var(--space-2); }
.tags li { font-size: 0.85rem; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; color: var(--muted); }

.strip-cta {
  margin-top: var(--space-4); background: var(--ink); color: var(--paper); border-radius: var(--radius);
  padding: var(--space-4) var(--space-5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
}
.strip-cta p { font-family: var(--font-display); font-weight: 650; font-size: 1.2rem; margin: 0; }

/* ---------- Steps (approach) ---------- */

.steps { display: grid; gap: var(--space-3); counter-reset: step; }
.step { display: flex; gap: var(--space-3); border-top: 1px solid var(--line); padding-top: var(--space-3); }
.step .num { font-family: var(--font-display); font-weight: 800; color: var(--muted); min-width: 2.5rem; }

/* ---------- Pricing table ---------- */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--space-3); align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); background: var(--paper); display: flex; flex-direction: column; gap: var(--space-2); box-shadow: var(--shadow); }
.plan.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan.featured .plan-price small, .plan.featured li { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.plan h3 { margin-bottom: 0; }
.plan-price { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.03em; }
.plan-price small { display: block; font-size: 0.95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 var(--space-2); display: grid; gap: 0.45rem; }
.plan li::before { content: "— "; color: var(--muted); }
.plan .button { align-self: flex-start; margin-top: auto; }

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

.faq-list { max-width: 46rem; display: grid; gap: var(--space-2); }
details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
summary { cursor: pointer; padding: var(--space-3) var(--space-4); font-family: var(--font-display); font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: var(--space-2); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 600; color: var(--muted); transition: transform 150ms ease; }
details[open] summary::after { transform: rotate(45deg); }
details .faq-body { padding: 0 var(--space-4) var(--space-3); color: var(--muted); }

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: var(--space-2); max-width: 46rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 650; font-size: 0.95rem; }
input, select, textarea {
  font: inherit; background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.8rem 1rem; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--lime); outline-offset: 1px; }
textarea { min-height: 8rem; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.checkbox-field { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.checkbox-field input { width: auto; margin-top: 0.3rem; }
.form-note { font-size: 0.9rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 0.8rem 1rem; background: var(--paper-soft); }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status[hidden] { display: none; }
.form-status { border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); font-weight: 600; background: color-mix(in srgb, var(--lime) 45%, var(--paper)); border: 1px solid var(--ink); }

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

.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(2.5rem, 6vw, 4rem) var(--space-4); margin-top: var(--space-6); }
.site-footer a { color: inherit; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid rgb(248 249 243 / 0.15); }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; text-decoration: none; }
.footer-tagline { color: color-mix(in srgb, var(--paper) 75%, transparent); max-width: 22rem; margin-top: var(--space-2); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(9rem, auto)); gap: 0.4rem var(--space-4); }
.footer-nav a { text-decoration: none; color: color-mix(in srgb, var(--paper) 85%, transparent); padding-block: 0.2rem; }
.footer-nav a:hover { color: var(--lime); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); padding-top: var(--space-4); font-size: 0.9rem; color: color-mix(in srgb, var(--paper) 65%, transparent); }
.footer-disclaimer { margin-top: var(--space-3); font-size: 0.85rem; color: color-mix(in srgb, var(--paper) 55%, transparent); max-width: 46rem; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Breadcrumb / misc ---------- */

.breadcrumb { font-size: 0.9rem; color: var(--muted); padding-top: var(--space-4); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.prose { max-width: 46rem; }
.prose h2 { margin-top: var(--space-5); }
.prose ul { padding-left: 1.25rem; }

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

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .nav-desktop { display: none; }
  .menu-toggle { display: grid; }
  .header-cta { display: none; }
  .field-row { grid-template-columns: 1fr; }
}

/* ================= Session #5: NotaryGO sub-brand accent + sticky mobile CTA ================= */
/* Amber signal accent for NotaryGO surfaces only; lime stays Tax Flex's signature. Token kept central here per AGENTS.md. */
:root { --ng-accent: #f4a63c; }
.site-header .nav-notary, .nav-mobile .nav-notary { background: var(--ng-accent); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.page-notarygo .button-lime { background: var(--ng-accent); border-color: color-mix(in srgb, var(--ink) 20%, transparent); }
.page-notarygo .status-dot { background: var(--ng-accent); }
.page-notarygo .hero-panel .panel-label, .page-notarygo .hero-panel .panel-line strong { color: var(--ng-accent); }
.site-footer .footer-nav a[href="/notarygo/"], .site-footer .footer-nav a[href="/notarygo/"]:hover { color: var(--ng-accent); }
section[aria-labelledby="notarygo-band-title"] .button-lime { background: var(--ng-accent); border-color: color-mix(in srgb, var(--ink) 20%, transparent); }
/* Sticky mobile CTA bar — NotaryGO page only */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  body.page-notarygo { padding-bottom: 5.5rem; }
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 0.6rem;
    padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--ink) 94%, transparent); backdrop-filter: blur(8px);
    border-top: 1px solid rgb(248 249 243 / 0.15); }
  .sticky-cta .button { flex: 1; justify-content: center; text-align: center; }
  .sticky-cta .button-outline { border-color: rgb(248 249 243 / 0.45); color: var(--paper); }
}

/* ================= Session #59: enhanced logo system + trust strip ================= */
/* Derived accessible variant of the lime accent for text/solid use on paper (same value the favicon has used since session #1).
   Pure --lime stays as-is for fills/outlines; --lime-text is what "flex" in the wordmark renders in, per BRAND-IDENTITY.md. */
:root { --lime-text: #738b4e; }

/* Header lockup: flex-grid mark + wordmark with flourish under "flex" */
.brand .brand-logo { display: block; width: 28px; height: auto; flex-shrink: 0; }
.brand .brand-flex { color: var(--lime-text); position: relative; }
.brand .brand-dot { color: var(--lime-text); }
.brand-flourish { position: absolute; left: -4%; bottom: -0.34em; width: 108%; height: 0.32em; stroke: var(--lime); stroke-width: 7; fill: none; stroke-linecap: round; }

/* Footer lockup: chip mark + wordmark */
.footer-brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.footer-logo { display: block; width: 34px; height: auto; flex-shrink: 0; }

/* Logo moment (404) */
.logo-moment { display: flex; align-items: center; gap: 0.9rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.03em; margin-bottom: var(--space-4); }
.logo-moment img { width: 64px; height: auto; flex-shrink: 0; }
.logo-moment .accent-l { color: var(--lime-text); }
.logo-moment .dot-l { color: var(--lime-text); }

/* Trust strip (home) — facts only, all sourced from existing site copy */
.trust-strip { background: var(--paper-soft); border-block: 1px solid var(--line); padding-block: clamp(1.5rem, 3vw, 2.25rem); }
.trust-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem var(--space-4); align-items: center; justify-content: space-between; }
.trust-strip li { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 650; font-size: 1rem; letter-spacing: -0.01em; }

/* Sticky mobile CTA — extended from NotaryGO to main Tax Flex conversion pages */
@media (max-width: 720px) {
  body.has-sticky-cta { padding-bottom: 5.5rem; }
}

/* Cross-brand endorsement (NotaryGO → Tax Flex) */
.brand-endorse { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--muted); margin-top: var(--space-2); }
.brand-endorse img { width: 22px; height: auto; border-radius: 6px; flex-shrink: 0; }
