/* =============================================================================
   Bay Area Support — marketing site stylesheet
   Hand-authored, framework-free. Loaded from /assets/css/site.css.
   Sections: tokens · base · layout · header · buttons · hero · trust ·
   what-we-handle · how-it-works · comparison · cta · footer · responsive
   ========================================================================== */

/* ---- Fonts ---------------------------------------------------------------- */
/* These match what the WordPress theme actually renders: the block "prata-regular"
   slug maps to Montserrat (headings) and "work-sans-regular" maps to Google Sans
   (body). Self-hosted variable woff2 (weights 400-700). */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Google Sans";
  src: url("/assets/fonts/google-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens -------------------------------------------------------- */
:root {
  /* Brand */
  --pacific: var(--bas-pacific,#0e3d4f);       /* Pacific Blue - structural dark: header/footer/trust/CTA */
  --orange: var(--bas-orange,#ff4532);        /* International Orange (Golden Gate) - buttons + accents */
  --orange-dark: var(--bas-orange-dark,#e63321);   /* orange hover */
  --yellow: var(--bas-yellow,#fff2a7);        /* Yellow - highlight, used sparingly */
  /* Ink + neutrals */
  --ink-black: var(--bas-ink-black,#132025);     /* headings + dark text */
  --ink-strong: var(--bas-ink-strong,#3c434a);    /* strong body text */
  --ink: var(--bas-ink,#55606a);           /* body text */
  --muted: var(--bas-muted,#8a8f98);         /* muted / disabled */
  --cream: var(--bas-cream,#fffdf4);
  --cream-2: var(--bas-cream-2,#fbf8f0);
  --white: #ffffff;
  --border: var(--bas-border,#e7e4d8);        /* warm hairline for light UI */
  --green: var(--bas-success,#047857);         /* functional checkmark (comparison table) */
  --pacific-ink: var(--bas-pacific,#0e3d4f);   /* navy used as TEXT/accent (prices, icons); flips light in dark */
  /* Orange as TEXT needs WCAG AA. --orange stays for FILLS/icons (passes 3:1);
     --orange-text is for orange text on light; --orange-ondark for orange text on
     the always-dark pacific bands (footer, --ondark). --danger-text flips lighter in dark. */
  --orange-text: var(--bas-orange-text,#c9351f);
  --orange-ondark: #ff9478;
  --orange-btn: var(--ui-primary,#cc3624);               /* primary-button fill = shared --ui-primary */
  --orange-btn-hover: var(--ui-primary-hover,#b02f1e);
  --danger-text: var(--bas-danger,#b32d2e);
  color-scheme: light;

  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1140px;
  --radius: 14px;
  --shadow-card: 0 4px 18px rgba(19, 32, 37, 0.05);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; } /* WCAG 2.4.11: keep focus/anchors clear of the sticky header */

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

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

/* Form controls don't inherit font-family in Firefox/Safari — force it so every
   button/input/select/textarea uses the site font. Controls needing a specific
   face set their own font-family and override this. */
button, input, select, textarea, optgroup { font-family: inherit; }

a { color: inherit; }

/* Inline text links in body copy get a prominent, branded indicator: a thick,
   offset International-Orange underline (thickens on hover). Scoped to prose
   (p / li / dd) inside the page content, so nav, buttons, cards and the footer
   are untouched. Uses the flip-in-dark short tokens, so it adapts in dark mode.
   WCAG 2.2 AA: weight + heavy underline is a non-color cue; color is AA on cream. */
#main-content :is(p, li, dd) a:not(.btn):not(.site-nav__cta) {
	color: var(--orange-text);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--orange);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
#main-content :is(p, li, dd) a:not(.btn):not(.site-nav__cta):hover {
	text-decoration-thickness: 3px;
}

h1, h2, h3 { margin: 0; }

/* ---- Layout helpers ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: 5rem; }
.section--pad-sm { padding-block: 2.5rem; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--pacific { background: var(--pacific); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange-text);
  margin: 0 0 0.75rem;
}
.eyebrow--ondark { color: var(--orange-ondark); }

.section__head { text-align: center; max-width: 720px; margin-inline: auto; }

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1.15;
  color: var(--ink-black);
  margin: 0 0 2rem;
  text-wrap: balance;
}
.h2--ondark { color: var(--bas-cream,#fffdf4); }

.lead { font-size: 1.1rem; color: var(--ink); margin: 0; }
.lead--ondark { color: #d6d8dd; }

/* ---- Accessibility skip link --------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 999;
  background: var(--pacific);
  color: var(--bas-cream,#fffdf4);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--ui-focus-ring, #0e3d4f); outline-offset: 2px; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 9px;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--orange-btn); color: #fff; }
.btn--solid:hover { background: var(--orange-btn-hover); }
.btn--outline { background: transparent; color: var(--ink-black); border-color: var(--ink-black); }
.btn--outline:hover { background: rgba(19, 32, 37, 0.06); color: var(--ink-black); }
.btn--cream { background: var(--bas-cream,#fffdf4); color: var(--bas-ink-black,#132025); }
.btn--cream:hover { background: #fff; }
.btn--ghost { background: transparent; color: var(--bas-cream,#fffdf4); border-color: #5b6472; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn-row--center { justify-content: center; }

/* ---- Header --------------------------------------------------------------- */
.site-header { background: var(--pacific); border-bottom: 2px solid var(--orange); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  padding-block: 2.3rem;
}
.site-logo { margin-right: auto; }
.site-logo img { width: 207px; height: auto; }
/* Solid pacific header shows the cream-wordmark variant; the dark-wordmark one
   is only revealed on the homepage's light-sky float (see home.php). */
.site-logo__light { display: none; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2.51rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a { text-decoration: none; color: var(--ui-on-dark, #fffdf4); font-size: 1.1rem; font-weight: 400; }
.site-nav a:hover { color: #ffffff; }
.site-nav .site-nav__cta {
  background: var(--orange);
  color: #fff;
  padding: 0.55rem 1.15rem;
  border-radius: 9px;
  font-weight: 600;
}
.site-nav .site-nav__cta:hover { background: var(--orange-dark); color: #fff; }

.nav-toggle { display: none; }

/* Logged-in account menu (replaces the Sign In button). */
.site-account { position: relative; display: flex; align-items: center; }
.site-account__btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 40px; padding: 0; background: var(--orange); color: #fff; border: none; border-radius: 9px; cursor: pointer; }
.site-account__btn:hover { background: var(--orange-dark); }
.site-account__btn svg { width: 22px; height: 22px; }
/* Desktop: a dropdown below the account button, with a Welcome/Profile-ID
   section divided from the links. (Mobile turns the whole nav into a right
   drawer — see the .site-nav--authed rules in the mobile media query.) */
.site-account__menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; display: none; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 11px; box-shadow: 0 12px 32px rgba(19, 32, 37, 0.14); padding: 0.4rem; z-index: 60; }
.site-account.is-open .site-account__menu { display: flex; }
.site-account__welcome { padding: 8px 12px 10px; margin-bottom: 4px; font-size: 0.82rem; font-weight: 600; color: var(--ink-black); border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-account__code { display: block; margin-top: 2px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }
.site-account__links { display: flex; flex-direction: column; gap: 2px; }
.site-account__menu a { padding: 9px 12px; border-radius: 8px; color: var(--ink-strong); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.site-account__menu a:hover { background: var(--cream-2); color: var(--ink-strong); }
.site-account__menu .site-account__signout { color: var(--danger-text); }
.site-account__menu .site-account__signout:hover { color: var(--danger-text); }
/* Signed-in account menu: light/dark sliding toggle (mirrors the portal menu). */
/* Theme segmented control (.ui-theme-seg) spacing inside the account menu. */
.site-account__menu .ui-theme-seg { margin: 4px 2px 6px; }
.site-account__theme { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 500; color: var(--ink-strong); }
.site-account__theme:hover { background: var(--cream-2); }
.site-account__theme-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.site-switch { position: relative; flex: 0 0 auto; width: 38px; height: 22px; border-radius: 999px; background: #cfd8dc; transition: background 0.18s ease; }
.site-switch__knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.18s ease; }
html[data-theme="dark"] .site-switch { background: var(--bas-orange,#ff4532); }
html[data-theme="dark"] .site-switch__knob { transform: translateX(16px); }
html[data-theme="dark"] .site-account__theme { color: var(--ink-strong); }
html[data-theme="dark"] .site-account__theme:hover { background: rgba(255,255,255,0.06); }
/* Nav drawer backdrop is a mobile-only affordance. */
.site-nav-backdrop { display: none; }
body.site-nav-lock { overflow: hidden; }

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  background: #d9d2c4 url("/assets/img/home-banner.png") center / cover no-repeat;
  padding-block: 6.5rem;
  display: flex;
  align-items: center;
  min-height: 34rem;
}
.hero__card {
  background: rgba(255, 253, 244, 0.94);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(19, 32, 37, 0.22);
  padding: 2.75rem;
  max-width: 648px;
  text-align: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3.4rem;
  line-height: 1.08;
  color: var(--ink-black);
  margin: 0 0 1rem;
  text-wrap: balance;
}
.hero__lead { font-size: 1.12rem; color: var(--ink-strong); margin: 0 0 1.75rem; }
.hero .btn-row { justify-content: center; }

/* ---- Trust bar ------------------------------------------------------------ */
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust__item { text-align: center; color: var(--bas-cream,#fffdf4); }
.trust__icon { display: block; color: var(--bas-cream,#fffdf4); margin: 0 auto 0.6rem; width: 30px; height: 30px; }
.trust__icon svg { display: block; width: 30px; height: 30px; }
.trust__label { font-size: 1rem; font-weight: 600; margin: 0; }

/* ---- What we handle ------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
}
.card__spot { width: 112px; height: 88px; margin: 0 auto 0.9rem; }
.card__spot img { width: 100%; height: 100%; object-fit: contain; }
.card__title { font-size: 1.35rem; font-weight: 600; color: var(--ink-black); margin: 0 0 0.5rem; }
.card__body { margin: 0; }

/* ---- How it works --------------------------------------------------------- */
.steps__list { max-width: 940px; margin: 0 auto; }
.step-card {
  background: var(--white);
  border: 1px solid var(--orange);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 1.6rem 2rem;
  margin-bottom: 1.5rem;
}
.step-card:last-child { margin-bottom: 0; }
.step {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.step--reverse { flex-direction: row-reverse; }
.step__illus { flex: 0 0 42%; }
.step__illus img { width: 100%; max-width: 380px; height: 215px; object-fit: contain; margin-inline: auto; }
.step__body { flex: 1 1 auto; }
.step__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange-text);
  margin: 0 0 0.4rem;
}
.step__title { font-size: 1.6rem; font-weight: 600; color: var(--ink-black); margin: 0 0 0.5rem; }
.step__body p { font-size: 1.08rem; margin: 0; }

.extras {
  max-width: 920px;
  margin: 2.75rem auto 0;
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.1rem 2.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.extras__icon { color: var(--orange); width: 30px; height: 30px; margin-bottom: 0.5rem; }
.extras__icon svg { width: 30px; height: 30px; }
.extras__title { font-size: 1.2rem; font-weight: 600; color: var(--ink-black); margin: 1.4rem 0 0.4rem; }
.extras__text { font-size: 1rem; margin: 0; }

/* ---- Comparison ----------------------------------------------------------- */
.compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.compare-card {
  background: var(--cream-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 1.9rem;
}
.compare-card--us { border: 2px solid var(--orange); background: var(--white); }
.compare-card__title { text-align: center; font-size: 1.35rem; font-weight: 600; color: var(--ink-black); margin: 0 0 1.25rem; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { font-size: 1rem; line-height: 1.5; margin-bottom: 0.7rem; padding-left: 1.6rem; position: relative; }
.checklist li:last-child { margin-bottom: 0; }
.checklist li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.checklist--us li { color: var(--ink-strong); }
.checklist--us li::before { content: "\2713"; color: var(--green); }
.checklist--them li { color: var(--muted); }
.checklist--them li::before { content: "\2717"; color: var(--muted); }

/* ---- CTA band ------------------------------------------------------------- */
.cta { text-align: center; }
.cta .btn-row { justify-content: center; }

/* ---- Footer --------------------------------------------------------------- */
/* Full-width animated SF cityscape sitting directly on top of the footer; the
   CTA->footer gap now lives above it. */
.footer-cityscape { display: block; width: 100%; margin-top: 4rem; line-height: 0; overflow: hidden; }
.footer-cityscape img { display: block; width: 100%; height: auto; }
.site-footer { background: var(--pacific); border-top: 2px solid var(--orange); padding: 3.5rem 0 2rem; margin-top: 0; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer__brand-name { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--bas-cream,#fffdf4); margin: 0 0 0.6rem; }
.site-footer__blurb { font-size: 0.95rem; color: var(--bas-cream,#fffdf4); margin: 0 0 0.75rem; }
.site-footer__area { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; color: var(--orange-ondark); margin: 0; }
.footer-col__head { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange-ondark); margin: 0 0 0.75rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.35rem; }
/* The footer sits on the always-dark pacific band, so its links must stay light in
   BOTH themes. --bas-cream (near-white) does not flip on marketing; the short --cream
   flips to navy in dark mode, which made these invisible. */
.footer-col a { color: var(--bas-cream,#fffdf4); text-decoration: none; font-size: 0.95rem; line-height: 2.1; }
.footer-col a:hover { color: #ffffff; text-decoration: underline; }
.site-footer__bar { margin-top: 2.5rem; text-align: center; }
.site-footer__bar::before { content: ""; display: block; width: 100px; height: 1px; background: var(--bas-divider-dark,#1c5266); margin: 0 auto 1.5rem; }
.site-footer__copy { font-size: 0.82rem; color: var(--bas-cream,#fffdf4); margin: 0; }

/* =============================================================================
   Inner marketing pages (How It Works · Pricing · Contact)
   ========================================================================== */

/* Visually hidden, still read by assistive tech. */
.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;
}

/* ---- Page hero (inner pages) ---------------------------------------------- */
.page-hero { background: var(--cream); text-align: center; padding: 5rem 0 3.5rem; }
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3rem;
  line-height: 1.1;
  color: var(--ink-black);
  margin: 0 0 1rem;
  text-wrap: balance;
}
.page-hero__lead { max-width: 640px; margin-inline: auto; }

/* ---- Numbered flow (How it works) ----------------------------------------- */
.flow { max-width: 760px; margin: 0 auto; list-style: none; padding: 0; }
.flow__row { display: flex; gap: 1.4rem; align-items: flex-start; margin-bottom: 1.6rem; }
.flow__row:last-child { margin-bottom: 0; }
.flow__num {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 400; line-height: 1;
  color: var(--orange); flex: 0 0 2.4rem;
}
.flow__title { font-size: 1.3rem; font-weight: 600; color: var(--ink-black); margin: 0.15rem 0 0.35rem; }
.flow__body { margin: 0; }

.callout {
  max-width: 760px; margin: 2.5rem auto 0;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.75rem 1.9rem; text-align: center;
}
.callout__eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--orange-text); margin: 0 0 0.4rem;
}
.callout__text { margin: 0; }

/* ---- Feature cards (agent, translation) ----------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 2.5rem; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 1.9rem 1.6rem; }
.feature-card__title { font-size: 1.2rem; font-weight: 600; color: var(--ink-black); margin: 0 0 0.5rem; }
.feature-card__body { margin: 0; }

.pill {
  text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--orange-text); margin: 1.75rem 0 0;
}

/* ---- Pricing cards (live from catalog) ------------------------------------ */
.pricing { display: flex; flex-wrap: wrap; gap: 1.75rem; justify-content: center; align-items: stretch; }
.plan-card {
  flex: 1 1 240px; max-width: 320px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 2.25rem 1.75rem;
  display: flex; flex-direction: column; text-align: center;
  box-shadow: var(--shadow-card);
}
.plan-card__name { font-size: 1.4rem; font-weight: 600; color: var(--ink-black); margin: 0 0 0.5rem; }
.plan-card__price { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--ink-black); margin: 0; }
.plan-card__per { font-size: 0.9rem; color: var(--muted); margin: 0.25rem 0 0; }
.plan-card__resp { color: var(--ink); line-height: 1.6; margin: 1rem 0 0; min-height: 3.2em; }
.plan-card__list { text-align: left; list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; }
.plan-card__list li { color: var(--ink); line-height: 1.5; margin-bottom: 0.5rem; padding-left: 1.5rem; position: relative; }
.plan-card__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.plan-card__cta { margin-top: auto; padding-top: 0.5rem; }
.pricing__empty { text-align: center; color: var(--ink); }

/* ---- Every plan includes -------------------------------------------------- */
.includes { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; margin-top: 2.5rem; }
.include { flex: 1 1 220px; max-width: 264px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem 1.4rem 1.5rem; text-align: center; box-shadow: var(--shadow-card); }
.include__ico { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 auto 0.95rem; border-radius: 50%; background: rgba(14, 61, 79, 0.07); color: var(--pacific-ink); }
.include__ico svg { width: 24px; height: 24px; }
.include__title { font-size: 1.05rem; font-weight: 600; color: var(--ink-black); margin: 0 0 0.3rem; }
.include__sub { font-size: 0.92rem; line-height: 1.5; color: var(--ink); margin: 0; }

/* ---- Media + text showcase (alternating large illustration / info) -------- */
.showcase { display: flex; align-items: center; gap: 3.5rem; max-width: 1000px; margin-inline: auto; }
.showcase--reverse { flex-direction: row-reverse; }
.showcase__media { flex: 0 0 42%; }
.showcase__media img { width: 100%; height: auto; max-width: 440px; margin-inline: auto; display: block; }
.showcase__body { flex: 1 1 auto; }
.showcase__body .h2 { margin-top: 0.4rem; }
.showcase__list { list-style: none; margin: 1.35rem 0 0; padding: 0; }
.showcase__list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.65rem; color: var(--ink); line-height: 1.5; }
.showcase__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
@media (max-width: 820px) {
  .showcase, .showcase--reverse { flex-direction: column; text-align: center; gap: 1.9rem; }
  .showcase__media { flex-basis: auto; }
  .showcase__list { display: inline-block; text-align: left; }
}

/* ---- Contact -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 3rem; align-items: start; }
.contact__heading { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--ink-black); margin: 0 0 0.75rem; }
.contact__intro { margin: 0 0 2rem; }
.contact-row { margin-bottom: 1.5rem; }
.contact-row__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange-text); margin: 0 0 0.15rem; }
.contact-row__value { font-size: 1.1rem; color: var(--ink-black); margin: 0; }
.promo-card { background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 2rem 1.75rem; }
.promo-card__eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange-text); margin: 0 0 0.5rem; }
.promo-card__title { font-size: 1.4rem; font-weight: 600; color: var(--ink-black); margin: 0 0 0.5rem; }
.promo-card__text { margin: 0 0 1.5rem; }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 820px) {
  .page-hero { padding: 3.25rem 0 2.5rem; }
  .page-hero__title { font-size: 2.2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .flow__num { font-size: 2rem; flex-basis: 2rem; }
  .section { padding-block: 3.25rem; }
  .h2 { font-size: 2rem; }
  .hero { min-height: auto; padding-block: 3.5rem; }
  .hero__card { padding: 1.9rem; max-width: 100%; }
  .hero__title { font-size: 2.4rem; }

  /* Public (logged-out) nav: original top dropdown panel. */
  .site-nav:not(.site-nav--authed) { display: none; }
  .site-nav:not(.site-nav--authed).is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--pacific); border-bottom: 1px solid var(--bas-divider-dark,#1c5266); z-index: 50; }
  .site-nav:not(.site-nav--authed).is-open ul { flex-direction: column; align-items: flex-start; gap: 0.25rem; padding: 1rem 1.5rem; }

  /* Logged-in nav: swipes in from the right ~75% (mirrors the portal drawer).
     White drawer, so its links/text use the dark palette. */
  .site-nav--authed { display: flex; position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: 75%; max-width: 320px; background: #ffffff; box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18); transform: translateX(100%); transition: transform 0.28s ease; border-bottom: 0; z-index: 100001; overflow-y: auto; }
  .site-nav--authed.is-open { transform: translateX(0); }
  .site-nav--authed ul { flex-direction: column; align-items: stretch; gap: 0.25rem; padding: 1.5rem 1.4rem; width: 100%; }
  .site-nav--authed a { color: var(--ink-strong); padding: 0.6rem 0.75rem; border-radius: 8px; }
  .site-nav--authed a:hover, .site-nav--authed a:active { background: #f3f4f6; color: var(--ink-strong); }
  .site-nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; z-index: 100000; }
  .site-nav-backdrop.is-open { opacity: 1; visibility: visible; }

  /* Account section flattens inside the drawer, divided from the public links
     above it, with its own divider between Welcome/Profile-ID and the links. */
  .site-account { width: 100%; display: block; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid #ececec; }
  .site-account__btn { display: none; }
  .site-account__menu { position: static; transform: none; display: flex; flex-direction: column; width: auto; max-width: none; min-width: 0; background: transparent; border: 0; box-shadow: none; padding: 0; gap: 0.25rem; overflow: visible; }
  .site-account__welcome { padding: 0 0 0.5rem; margin-bottom: 0.4rem; color: var(--ink-black); border-bottom: 1px solid #ececec; white-space: normal; font-size: 0.85rem; font-weight: 600; }
  .site-account__code { color: var(--muted); }
  .site-account__links { padding: 0; gap: 0.25rem; }
  .site-account__menu a { color: var(--ink-strong); padding: 0.6rem 0.75rem; border-radius: 8px; font-weight: 400; }
  .site-account__menu a:hover, .site-account__menu a:active { background: #f3f4f6; color: var(--ink-strong); }
  .site-account__signout { color: var(--danger-text) !important; }
  .site-account__menu .site-account__signout:hover, .site-account__menu .site-account__signout:active { background: #fef2f2; }
  /* Dark mode: the slide-in authed drawer takes the raised navy bg; the account
     menu flattens inside it, so keep it transparent (no nested navy box). */
  html[data-theme="dark"] .site-nav--authed { background: var(--white); border-color: var(--border); }
  html[data-theme="dark"] .site-account { border-top-color: var(--border); }
  html[data-theme="dark"] .site-account__welcome { border-bottom-color: var(--border); }
  html[data-theme="dark"] .site-account__menu { background: transparent; border: 0; }
  .site-header__inner { position: relative; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: transparent; border: 1px solid var(--bas-divider-dark,#1c5266);
    border-radius: 9px; color: #d6d8dd; cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }

  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .card-grid { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 1rem; text-align: center; }
  .step--reverse { flex-direction: column; }
  .step__illus { flex-basis: auto; }
  .step__illus img { height: 190px; }
  .extras { grid-template-columns: 1fr; gap: 1.5rem; }
  .compare__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.1rem; }
}

/* =============================================================================
   Motion — scroll reveal (reduced-motion aware)
   ========================================================================== */

/* Scroll reveal: elements hide only when JS + motion are OK (html.bas-reveal is
   set synchronously in <head>, so there's no flash of hidden-then-shown). */
html.bas-reveal :is(.section__head, .card, .step-card, .compare-card, .plan-card, .feature-card, .flow__row, .extras, .callout, .hero__card, .include, .faq__item, .showcase, .trust__item, .bas-stat, .problem, .fix-card, .price-card) {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.is-visible { opacity: 1 !important; transform: none !important; }
.card-grid > :nth-child(2), .feature-grid > :nth-child(2) { transition-delay: 0.08s; }
.card-grid > :nth-child(3), .feature-grid > :nth-child(3) { transition-delay: 0.16s; }
/* stagger the newly-revealed rows (stats, trust bar, "every plan includes") */
.bas-stats > :nth-child(2), .trust__grid > :nth-child(2), .includes > :nth-child(2) { transition-delay: 0.08s; }
.bas-stats > :nth-child(3), .trust__grid > :nth-child(3), .includes > :nth-child(3) { transition-delay: 0.16s; }
.trust__grid > :nth-child(4), .includes > :nth-child(4) { transition-delay: 0.24s; }
/* stagger the problem + "what we fix" grids */
.problem-grid > :nth-child(2), .fix-grid > :nth-child(2) { transition-delay: 0.06s; }
.problem-grid > :nth-child(3), .fix-grid > :nth-child(3) { transition-delay: 0.12s; }
.problem-grid > :nth-child(4), .fix-grid > :nth-child(4) { transition-delay: 0.18s; }
.problem-grid > :nth-child(5), .fix-grid > :nth-child(5) { transition-delay: 0.24s; }
.problem-grid > :nth-child(6), .fix-grid > :nth-child(6) { transition-delay: 0.30s; }

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

/* =============================================================================
   Homepage integrations — hero badges, problem grid, "what we fix" cards,
   pricing teaser. All token-based; no off-palette values.
   ========================================================================== */

/* Hero trust badges (below the hero buttons) */
.hero-badges { list-style: none; margin: 1.9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem 1.6rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.95rem; font-weight: 600; color: var(--ink-strong); }
.hero-badges li::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* "Start with the problem" grid */
.problem-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.problem { position: relative; background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--orange); border-radius: var(--radius); padding: 1.3rem 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink-black); box-shadow: var(--shadow-card, 0 4px 16px rgba(17,24,39,.10)); }
.problem-cta { margin: 2rem 0 0; text-align: center; font-weight: 700; color: var(--pacific-ink); }
.problem-cta a { color: var(--orange-text); text-decoration: none; }
.problem-cta a:hover { text-decoration: underline; }

/* "What we fix" + "Built for small teams" cards */
.fix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.fix-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-card, 0 4px 16px rgba(17,24,39,.10)); }
.fix-card__ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 69, 50, 0.10); color: var(--orange); margin-bottom: 1rem; }
.fix-card__ico svg { width: 22px; height: 22px; }
.fix-card h3 { margin: 0 0 0.45rem; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-black); }
.fix-card p { margin: 0; color: var(--ink); font-size: 0.98rem; line-height: 1.55; }

/* Homepage pricing teaser */
.price-teaser { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.4rem; align-items: center; }
.price-teaser__copy .btn-row { justify-content: flex-start; margin-top: 1.4rem; }
.price-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card, 0 4px 16px rgba(17,24,39,.10)); padding: 2rem 2.1rem; }
.price-card__label { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--orange-text); }
.price-card__big { margin: 0.2rem 0 1.1rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 1; color: var(--pacific-ink); }
.price-card__per { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--ink); }
.price-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.price-card__list li { display: flex; align-items: center; gap: 0.55rem; color: var(--ink-strong); }
.price-card__list li::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

@media (max-width: 760px) {
  .problem-grid, .fix-grid { grid-template-columns: 1fr; }
  .price-teaser { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .fix-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================================
   Dark mode
   The stable brand palette lives in tokens.css (--bas-*). The theme-aware
   semantic tokens below (short names) flip when html[data-theme="dark"] is set
   (init in head.php, toggled from the header, handler in site-footer.php).
   ========================================================================== */
html[data-theme="dark"] {
  color-scheme: dark;
  --cream: #0e3d4f;        /* page + "cream" sections = navy */
  --cream-2: #0c3644;      /* alternating band */
  --white: #123f52;        /* raised cards / "white" sections */
  --ink-black: #f2f7f8;    /* headings + darkest text */
  --ink-strong: #cfdade;   /* strong body text */
  --ink: #a7bac1;          /* body text */
  --muted: #9aacb5;        /* muted / captions — WCAG AA on navy (was #7f97a0, 3.8:1 failed) */
  --border: #1e5164;       /* hairline */
  --pacific: #081f29;      /* dark bands (header/footer/CTA) go deepest */
  --pacific-ink: var(--bas-teal,#6bbfdb);   /* navy-as-text becomes teal on dark surfaces */
  --green: #34d399;        /* checkmark icon stays legible on navy */
  --orange-text: #ff8a7a;  /* orange text on navy (5.1:1) */
  --danger-text: #ef8b8b;  /* signout text on navy (4.8:1) */
  --shadow-card: 0 10px 26px rgba(0,0,0,0.38);
}
html[data-theme="dark"] body { background: var(--cream); }

/* Surfaces / tints that were hardcoded light need a dark value */
html[data-theme="dark"] .compare-card { background: #0b3242; }
html[data-theme="dark"] .include__ico { background: rgba(107,191,219,0.12); }
html[data-theme="dark"] .fix-card__ico { background: rgba(255,69,50,0.16); }

/* Logged-in chrome on marketing pages (account dropdown + mobile drawer).
   Only the dropdown panel gets a raised bg here — the desktop authed nav is
   inline in the header, so a bg would paint a discolored block over it. The
   mobile drawer's dark bg is set inside the mobile media query. */
html[data-theme="dark"] .site-account__menu { background: var(--white); border-color: var(--border); }
html[data-theme="dark"] .site-account__welcome { color: var(--ink-black); border-bottom-color: var(--border); }
html[data-theme="dark"] .site-account__signout:hover { background: rgba(179,45,46,0.16); }
html[data-theme="dark"] .site-account__menu a,
html[data-theme="dark"] .site-nav--authed a { color: var(--ink-strong); }
html[data-theme="dark"] .site-account__menu a:hover,
html[data-theme="dark"] .site-nav--authed a:hover { background: rgba(255,255,255,0.06); color: var(--ink-black); }

/* ---- Theme toggle button (header) ---------------------------------------- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 40px; padding: 0; flex: 0 0 auto;
  background: #ffffff; border: none;
  border-radius: 9px; color: var(--ink-black); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.theme-toggle:hover { background: var(--cream-2); }
.theme-toggle__icon { width: 20px; height: 20px; display: block; }
.theme-toggle__sun { display: none; }
html[data-theme="dark"] .theme-toggle__moon { display: none; }
html[data-theme="dark"] .theme-toggle__sun { display: block; }
html[data-theme="dark"] .theme-toggle { background: var(--white); color: var(--ink-black); }
html[data-theme="dark"] .theme-toggle:hover { background: #16495e; }

/* ---- Language selector (header, right of the theme toggle) ---------------- */
.lang-select { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; }
.lang-select__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  height: 40px; padding: 0 0.7rem; flex: 0 0 auto;
  background: #ffffff; border: none;
  border-radius: 9px; color: var(--ink-black); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.lang-select__btn:hover { background: var(--cream-2); }
html[data-theme="dark"] .lang-select__btn { background: var(--white); color: var(--ink-black); }
html[data-theme="dark"] .lang-select__btn:hover { background: #16495e; }
.lang-select__globe { width: 20px; height: 20px; display: block; }
.lang-select__code { font-size: 0.85rem; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.lang-select__menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px;
  max-height: 340px; overflow-y: auto; display: none; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 11px;
  box-shadow: 0 12px 32px rgba(19, 32, 37, 0.14); padding: 0.4rem; z-index: 60;
}
.lang-select.is-open .lang-select__menu { display: flex; }
.lang-select__opt {
  text-align: left; padding: 0.55rem 0.85rem; border: 0; background: transparent;
  border-radius: 8px; color: var(--ink-strong); font-size: 0.98rem; font-weight: 500;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.lang-select__opt:hover { background: var(--cream-2); }
.lang-select__opt.is-current { color: var(--orange-text); font-weight: 700; }
html[data-theme="dark"] .lang-select__menu { background: var(--white); border-color: var(--border); }
html[data-theme="dark"] .lang-select__opt { color: var(--ink-strong); }
html[data-theme="dark"] .lang-select__opt:hover { background: rgba(255,255,255,0.06); color: var(--ink-black); }
