/* ==========================================================================
   Bookkeeping Legacy — single-page site
   Plain CSS, mobile-first, no framework.
   ========================================================================== */

:root {
  /* Brand palette — sampled from the logo */
  --color-ink: #0F1115;        /* near-black, primary */
  --color-ink-soft: #1c1f26;   /* dark surfaces (hero, footer) */
  --color-accent: #1C63D6;     /* blue, sampled from the logo block */
  --color-accent-dark: #144a9e;
  --color-bg: #FAFAF8;         /* off-white page background */
  --color-surface: #FFFFFF;
  --color-border: #E4E3DF;
  --color-muted: #565A62;      /* secondary text, AA on white/off-white */
  --color-on-dark: #F4F4F2;
  --color-on-dark-muted: #B7BAC2;

  --font-heading: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap-max: 1120px;
  --radius: 4px;
  --shadow-card: 0 1px 2px rgba(15, 17, 21, 0.06), 0 6px 20px rgba(15, 17, 21, 0.06);

  /* The logo's angular cut, reused as a shape everywhere: a tick built from two
     diagonal strokes, echoing the notch cut through the "B" mark. */
  --tick-shape: polygon(14% 46%, 0% 64%, 44% 100%, 100% 18%, 83% 4%, 43% 70%);
  --notch: 22px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-ink);
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 20px;
}

.tick {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: var(--color-accent);
  clip-path: var(--tick-shape);
  flex-shrink: 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

/* Visible focus state everywhere, keyboard nav */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-dark);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--color-ink);
  color: #fff;
}
.hero .btn-primary,
.pricing-card .btn-primary,
.pricing-card .btn-secondary { width: 100%; text-align: center; }

@media (min-width: 640px) {
  .hero .btn-primary { width: auto; }
}

/* Email buttons: the address is long, so keep it readable (no forced caps),
   let it fit the screen, and wrap only as a last resort on very narrow phones. */
a.btn[href^="mailto:"] {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.9rem;
  padding-left: 16px;
  padding-right: 16px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}
@media (max-width: 359px) {
  a.btn[href^="mailto:"] { font-size: 0.82rem; padding-left: 8px; padding-right: 8px; letter-spacing: 0; }
}

.pricing-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  position: relative;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
/* Horizontal logo (about 3.7:1). The aspect-ratio keeps the space reserved
   while the image loads, regardless of the width/height attributes. */
.brand-logo { height: 40px; width: auto; aspect-ratio: 1200 / 324; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav {
  padding: 10px 16px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.btn-nav-text-short { display: none; }

@media (max-width: 479px) {
  .btn-nav-text-full { display: none; }
  .btn-nav-text-short { display: inline; }
}

/* Very narrow phones: shrink the logo a touch so the header never overflows. */
@media (max-width: 359px) {
  .brand-logo { height: 30px; }
  .header-actions { gap: 8px; }
  .btn-nav { padding: 10px 10px; font-size: 0.72rem; }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--color-ink);
  border-radius: 1px;
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav > ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 8px 20px 16px;
}
.site-nav a {
  display: block;
  white-space: nowrap;
  padding: 12px 0;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}
.site-nav li:last-child a { border-bottom: none; }
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--color-accent); }

/* ---- Services dropdown ---- */
.has-dropdown { position: relative; }
.dropdown-toggle {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dropdown-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.has-dropdown.is-open .dropdown-caret { transform: rotate(225deg); }
.dropdown-menu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  padding: 0 0 0 16px;
  transition: max-height 0.2s ease;
}
.has-dropdown.is-open .dropdown-menu { max-height: 200px; }
.dropdown-menu li a {
  padding: 10px 0;
  font-weight: 500;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible { color: var(--color-accent); }
/* Separates "Compare Plans" from the three tier links above it. The tier link
   right above it already has its own border-bottom, so this just adds a
   little extra breathing room instead of stacking a second line under it. */
.dropdown-menu li.dropdown-divider { margin-top: 6px; padding-top: 6px; }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: block;
    background: none;
    border-bottom: none;
    flex: 1;
  }
  .site-nav > ul {
    flex-direction: row;
    justify-content: flex-end;
    padding: 0;
    padding-right: 32px;
    gap: 28px;
  }
  .dropdown-menu {
    display: block;
  }
  .site-nav a {
    padding: 8px 0;
    border-bottom: none;
  }
  .btn-nav {
    padding: 12px 22px;
    font-size: 0.85rem;
  }

  .has-dropdown { display: flex; align-items: center; }
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    max-height: none;
    overflow: visible;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    padding: 14px 0 6px;
    min-width: 180px;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }
  /* Desktop: opens only on hover (or keyboard focus, for accessibility). */
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .dropdown-menu li a {
    padding: 10px 18px;
    border-bottom: none;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background-color: var(--color-ink-soft);
  background-image:
    linear-gradient(rgba(28, 99, 214, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 99, 214, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -1px -1px;
  color: var(--color-on-dark);
  padding: 56px 0 56px;
  overflow: hidden;
}
.hero-inner { max-width: 760px; position: relative; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 12px;
  background: rgba(28, 99, 214, 0.14);
  border: 1px solid rgba(94, 143, 224, 0.4);
  color: var(--color-on-dark);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
  font-weight: 600;
  clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 9px) 100%, 0 100%);
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  clip-path: var(--tick-shape);
  flex-shrink: 0;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw + 1rem, 3.25rem);
  margin-bottom: 0.4em;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--color-on-dark-muted);
  max-width: 46ch;
  margin-bottom: 1.75em;
}

/* ---- Section shell ---- */
.section { padding: 64px 0; }
.section h2 {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.25rem);
  margin-bottom: 0;
}
.section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 5px;
  margin-top: 14px;
  margin-bottom: 0.7em;
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}
.section-intro {
  max-width: 62ch;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.services { background: var(--color-bg); }

/* ---- How it works ---- */
.how-it-works {
  position: relative;
  background-color: var(--color-surface);
  background-image:
    linear-gradient(rgba(15, 17, 21, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 17, 21, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.how-it-works-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .how-it-works-grid { grid-template-columns: repeat(3, 1fr); }
}
.how-it-works-step {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 24px;
}
.how-it-works-number {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: -44px;
  margin-bottom: 16px;
  background: var(--color-accent);
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 55%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(15, 17, 21, 0.22), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.how-it-works-number::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: var(--color-ink);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.how-it-works-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35em;
}
.how-it-works-step p {
  color: var(--color-muted);
  margin: 0;
}

/* ---- Pricing ---- */
.pricing-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  scroll-margin-top: 90px;
}
@media (min-width: 720px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.pricing-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}
.pricing-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--notch);
  height: var(--notch);
  background: var(--color-accent);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25em;
  padding-right: 20px;
}
.pricing-price {
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-size: 1.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding-bottom: 12px;
  margin-bottom: 0.9em;
  border-bottom: 1px solid var(--color-border);
}
.pricing-price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: none;
  letter-spacing: normal;
}
.pricing-card p {
  color: var(--color-muted);
  flex-grow: 1;
}
.pricing-compare-link {
  margin-top: 24px;
  text-align: center;
}
.pricing-compare-link a {
  font-weight: 600;
  text-decoration: none;
}
.pricing-compare-link a:hover,
.pricing-compare-link a:focus-visible {
  text-decoration: underline;
}

/* ---- About ---- */
.about { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.about-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 880px;
}
.about-portrait {
  flex-shrink: 0;
  width: 148px;
  height: 148px;
  background: var(--color-ink-soft);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-portrait span {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 2.75rem;
  letter-spacing: 0.02em;
}
img.about-portrait {
  object-fit: cover;
  display: block;
}
.about-text { max-width: 68ch; }
.about-text h3 { font-size: 1.3rem; }

@media (min-width: 640px) {
  .about-content { flex-direction: row; align-items: flex-start; }
}
.credentials {
  list-style: none;
  margin-top: 1.25em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.credentials li {
  padding-left: 26px;
  position: relative;
  font-weight: 500;
}
.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 13px;
  height: 13px;
  background: var(--color-accent);
  clip-path: var(--tick-shape);
}

/* ---- FAQ ---- */
.faq { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.faq-list {
  margin-top: 24px;
  border-top: 1px solid var(--color-border);
  max-width: 780px;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--color-accent);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
.faq-item p {
  color: var(--color-muted);
  max-width: 66ch;
  margin: 0 0 20px;
}

/* ---- Contact ---- */
.contact { background: var(--color-bg); }
.contact-inner { max-width: 640px; }
.contact p { color: var(--color-muted); font-size: 1.05rem; }
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.contact-actions .btn-secondary { text-align: center; }
@media (min-width: 520px) {
  .contact-actions { flex-direction: row; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-surface);
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-logo { height: 38px; width: auto; aspect-ratio: 1200 / 324; }
.footer-tagline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--color-ink);
  margin: 0;
  font-weight: 500;
}
.footer-meta { margin: 0; font-size: 0.9rem; }
.footer-meta a { color: var(--color-muted); text-decoration: underline; }
.footer-meta a:hover,
.footer-meta a:focus-visible { color: var(--color-accent); }

.noscript-note {
  margin-top: 24px;
  padding: 16px;
  border: 1px dashed var(--color-border);
  color: var(--color-muted);
}

/* ---- Tier detail pages ---- */
.tier-hero {
  position: relative;
  scroll-margin-top: 70px;
  background-color: var(--color-ink-soft);
  background-image:
    linear-gradient(rgba(28, 99, 214, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 99, 214, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -1px -1px;
  color: var(--color-on-dark);
  padding: 48px 0 44px;
}
.tier-hero .wrap { max-width: 860px; }
.tier-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--color-on-dark-muted);
  margin-bottom: 14px;
}
.tier-eyebrow a { color: var(--color-on-dark-muted); }
.tier-eyebrow a:hover { color: #fff; }
.tier-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw + 1rem, 2.75rem);
  margin-bottom: 0.35em;
}
.tier-hero-price {
  font-family: var(--font-heading);
  color: var(--color-on-dark);
  font-size: 1.15rem;
  margin-bottom: 0.9em;
}
.tier-hero-price strong {
  color: #fff;
  font-size: 1.5rem;
}
.tier-hero-sub {
  font-size: 1.1rem;
  color: var(--color-on-dark-muted);
  max-width: 56ch;
  margin-bottom: 1.6em;
}
.tier-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* .btn-secondary defaults to near-black text and border, which reads fine on
   the site's light section backgrounds but disappears on this dark hero. */
.tier-hero-actions .btn-secondary {
  color: var(--color-on-dark);
  border-color: var(--color-on-dark-muted);
}
.tier-hero-actions .btn-secondary:hover,
.tier-hero-actions .btn-secondary:focus-visible {
  background: var(--color-on-dark);
  color: var(--color-ink);
  border-color: var(--color-on-dark);
}

.tier-image {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-bottom: 20px;
}
@media (min-width: 640px) {
  .tier-image {
    height: 320px;
    padding: 24px;
  }
}
.tier-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--color-border);
  background: var(--color-bg);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  padding: 20px;
  margin-bottom: 20px;
}

.tier-includes {
  margin-top: 8px;
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) {
  .tier-includes { grid-template-columns: repeat(2, 1fr); }
}
.tier-includes-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 18px 20px;
}
.tier-includes-item .tick {
  margin-top: 6px;
  width: 15px;
  height: 15px;
}
.tier-includes-item h4 {
  font-size: 1rem;
  margin-bottom: 0.3em;
}
.tier-includes-item p {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---- Compare Plans page ---- */
.compare-detail { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); scroll-margin-top: 90px; }
.compare-categories {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-category {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}
.compare-category summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
  font-size: 1rem;
}
.compare-category summary::-webkit-details-marker { display: none; }
.compare-category summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--color-accent);
  transition: transform 0.15s ease;
}
.compare-category[open] summary::after { transform: rotate(45deg); }
.compare-category summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}
.compare-table {
  border-top: 1px solid var(--color-border);
  padding: 4px 20px 12px;
}
.compare-row {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.compare-row:last-child { border-bottom: none; }
.compare-row-head {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.7rem;
  color: var(--color-muted);
  border-bottom: 2px solid var(--color-border);
}
.compare-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.compare-cell-label {
  justify-content: flex-start;
  text-align: left;
  color: var(--color-ink);
  font-size: 0.92rem;
  font-weight: 500;
}
.compare-row-head .compare-cell-label { color: var(--color-muted); font-weight: 600; }
.compare-cell .tick { width: 14px; height: 14px; }
.compare-cell-dash {
  color: var(--color-border);
  font-size: 1.2rem;
  line-height: 1;
}
.compare-cell-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
}

.tier-cta {
  background: var(--color-bg);
}
.tier-cta-inner {
  max-width: 640px;
}
.tier-cta p {
  color: var(--color-muted);
  font-size: 1.05rem;
}
.tier-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
@media (min-width: 520px) {
  .tier-cta-actions { flex-direction: row; }
}

/* ---- Free resources page ---- */
.resource-cards {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .resource-cards { grid-template-columns: repeat(2, 1fr); }
}
.resource-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: 24px 22px;
}
.resource-card .tick {
  width: 15px;
  height: 15px;
  margin-bottom: 12px;
}
.resource-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4em;
}
.resource-card p {
  color: var(--color-muted);
  margin-bottom: 0;
}
.resource-download-btn {
  display: inline-block;
  margin-top: 16px;
}

.resource-form-section { background: var(--color-bg); }
.resource-form-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  text-align: center;
}
.resource-form-card h2 { display: inline-block; margin-bottom: 0.2em; }
.resource-form-card .section-intro {
  max-width: 44ch;
  margin: 0 auto 24px;
}
.resource-form { text-align: left; }
.form-honeypot {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: 6px;
}
.form-field input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-ink);
}
.form-field input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.form-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
}

/* Compare table on small phones: tighter columns so the three plan headings
   and the tick columns all stay inside the card. */
@media (max-width: 400px) {
  .compare-table { padding: 4px 12px 12px; }
  .compare-row { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 4px; }
  .compare-row-head { font-size: 0.58rem; letter-spacing: 0; }
  .compare-cell-label { font-size: 0.85rem; }
  .compare-cell-value { font-size: 0.72rem; }
}
