/* ==========================================================================
   Landing page template · shared by B1 / B2 / B3
   - One stylesheet, four accent themes (html class: theme-teal | theme-violet | theme-blue | theme-indigo)
   - Targets WCAG 2.2 AA on every page (contrast, 16px+ body, visible focus, 44px targets)
   - Font: Inter (SIL OFL 1.1), self-hosted. Do NOT load fonts from Google's CDN (GDPR).
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* neutrals (all text pairs ≥ 7:1 on white) */
  --ink: #0f172a;          /* 17.9:1 on white */
  --ink-2: #475569;        /* 7.6:1 on white, 7.1:1 on --bg-soft */
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --line: #e2e8f0;         /* decorative dividers only */
  --line-strong: #64748b;  /* form borders: 4.8:1, meets 3:1 non-text */
  --danger: #b91c1c;       /* 6.5:1 */
  --success: #15803d;      /* 5.0:1 */
  --warn: #b45309;         /* 5.0:1 */

  /* accent (default = teal, overridden per theme) */
  --accent: #0f766e;       /* white on accent 5.5:1 */
  --accent-strong: #115e59;/* hover / text on tint 6.7:1 */
  --accent-tint: #e6f4f2;

  --focus: var(--ink);

  /* type scale (fluid, min 16px body) */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-body: 1.0625rem;                                  /* 17px */
  --fs-small: 0.9375rem;                                 /* 15px, used sparingly */
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-h1: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);
  --fs-h2: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem);
  --fs-h3: 1.1875rem;

  /* space & shape */
  --gutter: clamp(1rem, 4vw, 2rem);
  --maxw: 72rem;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 8px 24px -6px rgb(15 23 42 / 0.12);
  --shadow-lg: 0 2px 4px rgb(15 23 42 / 0.05), 0 24px 48px -12px rgb(15 23 42 / 0.22);
}

.theme-teal   { --accent: #0f766e; --accent-strong: #115e59; --accent-tint: #e6f4f2; }
.theme-violet { --accent: #6d28d9; --accent-strong: #5b21b6; --accent-tint: #f1ebfd; }
.theme-blue   { --accent: #1d4ed8; --accent-strong: #1e40af; --accent-tint: #e8effd; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--accent-strong); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* Focus: always visible, 3px, offset so it works on accent buttons too */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute !important; 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: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-2); font-size: var(--fs-lead); margin: 0; }
.kicker {
  display: inline-block; font-size: var(--fs-small); font-weight: 650; letter-spacing: 0.02em;
  color: var(--accent-strong); margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.375rem;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd);
  border-radius: 10px; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { --btn-bg: var(--accent-strong); --btn-bd: var(--accent-strong); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--bg-soft); --btn-bd: var(--ink); }
.btn--sm { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn svg { width: 1.125em; height: 1.125em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.88);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand__mark {
  width: 2rem; height: 2rem; border-radius: 9px; background: var(--accent); color: #fff;
  display: grid; place-items: center; flex: none;
}
.brand__mark svg { width: 1.125rem; height: 1.125rem; }
.nav { display: flex; align-items: center; gap: 0.5rem; }
.nav__link {
  display: none; color: var(--ink-2); text-decoration: none; font-weight: 550;
  padding: 0.625rem 0.75rem; border-radius: var(--radius-sm); min-height: 44px; align-items: center;
}
.nav__link:hover { color: var(--ink); background: var(--bg-soft); }
@media (min-width: 720px) { .nav__link { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 6rem); overflow: hidden; position: relative; }
.hero::before { /* soft accent glow, purely decorative */
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 60rem; height: 40rem;
  background: radial-gradient(closest-side, var(--accent-tint), transparent 70%);
  z-index: -1; pointer-events: none;
}
.hero .container { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero .container > * { min-width: 0; }
@media (min-width: 960px) { .hero .container { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); } }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.75rem 0.375rem 0.5rem; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-strong);
  font-size: var(--fs-small); font-weight: 600; margin-bottom: 1.25rem;
}
.badge__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); flex: none; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 36rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; color: var(--ink-2); font-size: var(--fs-small); }
.ticks li { display: inline-flex; align-items: center; gap: 0.4rem; }
.ticks svg { width: 1.1rem; height: 1.1rem; color: var(--accent); flex: none; }

/* ---------- Product mockup (pure HTML/CSS illustration) ---------- */
.mock {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden; font-size: 0.875rem; line-height: 1.45;
}
.mock__bar {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.875rem;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: #d5dbe3; }
.mock__url {
  flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 0.25rem 0.625rem; color: var(--ink-2); font-size: 0.8125rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock__body { padding: 1.125rem; display: grid; gap: 0.875rem; }
.mock__row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.mock__title { font-weight: 650; font-size: 0.9375rem; }
.mock__muted { color: var(--ink-2); }
.mock__field { border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.75rem; display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.mock__field small { color: var(--ink-2); font-size: 0.75rem; }
.mock__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0.625rem; }
.mock__card { border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.875rem; }
.mock__big { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.mock__btn {
  display: inline-flex; align-items: center; gap: 0.4rem; background: var(--accent); color: #fff;
  border-radius: 7px; padding: 0.4rem 0.75rem; font-weight: 600; font-size: 0.8125rem;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.3rem; border-radius: 999px;
  padding: 0.125rem 0.5rem; font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.chip--ok { background: #e7f6ec; color: var(--success); }
.chip--warn { background: #fdf1e3; color: var(--warn); }
.chip--err { background: #fde8e8; color: var(--danger); }
.chip--accent { background: var(--accent-tint); color: var(--accent-strong); }
.chip svg { width: 0.85rem; height: 0.85rem; }
.mock__list { list-style: none; margin: 0; padding: 0; display: grid; }
.mock__list li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
.mock__list li:first-child { border-top: 0; }
.mock__code { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); }
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.spark i { flex: 1; background: var(--accent); opacity: .85; border-radius: 3px 3px 0 0; min-height: 4px; }
.spark i.is-err { background: var(--danger); }

/* floating callout on top of the mockup */
.mock-wrap { position: relative; padding: 0; }
@media (min-width: 960px) {
  .mock-wrap { padding: 1rem 0 2rem 1.5rem; }
  .mock-wrap .callout { position: absolute; left: 0; bottom: 0; margin: 0; }
}
.mock-wrap .mock__body { padding-bottom: 2.5rem; } /* room for the callout */
.callout {
  position: relative; margin: -1.75rem 0 0 0.75rem; width: fit-content; display: flex; align-items: center; gap: 0.625rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 0.625rem 0.875rem; font-size: 0.875rem; font-weight: 600; max-width: 20rem;
}
.callout__icon { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: #e7f6ec; color: var(--success); flex: none; }
.callout__icon svg { width: 1.1rem; height: 1.1rem; }
.callout small { display: block; font-weight: 500; color: var(--ink-2); }

/* ---------- Benefits ---------- */
.features { display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.feature__icon {
  width: 2.75rem; height: 2.75rem; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent-strong); margin-bottom: 1.125rem;
}
.feature__icon svg { width: 1.375rem; height: 1.375rem; }
.feature p { color: var(--ink-2); margin: 0; }

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 0; align-items: stretch; }
@media (min-width: 720px) {
  .pricing { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
  .pricing--narrow { max-width: 48rem; }
  .pricing--single { max-width: 28rem; }
}
.plan {
  position: relative; display: flex; flex-direction: column; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem;
}
.plan--featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan__flag {
  position: absolute; top: -0.8rem; left: 1.5rem; background: var(--accent); color: #fff;
  font-size: 0.8125rem; font-weight: 650; padding: 0.2rem 0.65rem; border-radius: 999px;
}
.plan__name { font-size: 1rem; font-weight: 650; margin: 0; }
.plan__price { display: flex; align-items: baseline; gap: 0.375rem; flex-wrap: wrap; margin: 0; }
.plan__amount { font-size: 2.5rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.plan__unit { color: var(--ink-2); }
.plan__desc { color: var(--ink-2); margin: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.plan li { display: flex; gap: 0.5rem; align-items: flex-start; }
.plan li svg { width: 1.15rem; height: 1.15rem; margin-top: 0.22rem; color: var(--accent); flex: none; }
/* single plan: heading left, card right on wide screens */
@media (min-width: 960px) {
  .pricing-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,26rem); gap: 4rem; align-items: start; }
  .pricing-split .section-head { margin-bottom: 0; }
}
.section-head .price-note { font-size: var(--fs-small); margin-top: 1.25rem; }
.price-note {
  margin-top: 1.5rem; display: flex; gap: 0.625rem; align-items: flex-start;
  color: var(--ink-2); font-size: var(--fs-small); max-width: 44rem;
}
.price-note svg { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex: none; }
.label-est {
  display: inline-block; font-size: 0.8125rem; font-weight: 650; color: var(--ink-2);
  border: 1px dashed var(--line-strong); border-radius: 6px; padding: 0.05rem 0.45rem; margin-left: 0.5rem;
  vertical-align: middle; letter-spacing: 0;
}

/* ---------- Waitlist form ---------- */
.waitlist { display: grid; gap: 2rem; align-items: start; }
.waitlist > * { min-width: 0; }
@media (min-width: 960px) { .waitlist { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 4rem; } }
.waitlist__copy p { color: var(--ink-2); font-size: var(--fs-lead); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); }
.field { display: grid; gap: 0.4rem; margin-bottom: 1.5rem; }
.field__label, .choices legend { font-weight: 650; font-size: 1rem; }
.field__hint { color: var(--ink-2); font-size: var(--fs-small); margin: 0; }
.input {
  width: 100%; min-height: 48px; padding: 0.75rem 0.875rem; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #64748b; }
.input:hover { border-color: var(--ink); }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { display: none; align-items: center; gap: 0.375rem; color: var(--danger); font-size: var(--fs-small); font-weight: 600; margin: 0; }
.field__error svg { width: 1rem; height: 1rem; flex: none; }
.input[aria-invalid="true"] ~ .field__error { display: flex; }

.choices { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 0.75rem; }
.choice-list { display: grid; gap: 0.5rem; }
.choice {
  position: relative; display: flex; align-items: center; gap: 0.75rem; min-height: 48px;
  padding: 0.625rem 0.875rem; border: 1.5px solid var(--line-strong); border-radius: 10px;
  cursor: pointer; background: #fff; transition: border-color .15s ease, background-color .15s ease;
}
.choice:hover { border-color: var(--ink); }
.choice input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 1.25rem; height: 1.25rem; border: 2px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; background: #fff; cursor: pointer;
}
.choice input::after { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .12s ease; }
.choice input:checked { border-color: var(--accent); }
.choice input:checked::after { transform: scale(1); }
.choice input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.choice span { line-height: 1.35; }
.choice--other { flex-wrap: wrap; }

.consent { color: var(--ink-2); font-size: var(--fs-small); margin: 1rem 0 0; }
.form-success { text-align: left; }
.form-success__icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: #e7f6ec; color: var(--success); margin-bottom: 1rem; }
.form-success__icon svg { width: 1.5rem; height: 1.5rem; }
.form-success p { color: var(--ink-2); }
[hidden] { display: none !important; }

/* ---------- Disclaimer / note ---------- */
.note {
  display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.125rem;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); color: var(--ink); max-width: 48rem;
}
.note svg { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; color: var(--accent-strong); flex: none; }
.note p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding-block: 2.5rem; font-size: var(--fs-small); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer a { color: #fff; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer :focus-visible { outline-color: #fff; }

/* ---------- Motion (opt-in, respects reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .reveal-2 { animation-delay: .08s; }
  .reveal-3 { animation-delay: .16s; }
  .reveal-4 { animation-delay: .24s; }
  .mock-wrap .mock { animation: rise .9s .15s cubic-bezier(.2,.7,.2,1) both; }
  .mock-wrap .callout { animation: pop .5s 1.1s cubic-bezier(.3,1.4,.5,1) both; }
  .bar > i { animation: fill 1.2s .6s cubic-bezier(.2,.7,.2,1) both; transform-origin: left; }
  .spark i { animation: grow .8s cubic-bezier(.2,.7,.2,1) both; transform-origin: bottom; }
  .spark i:nth-child(2n) { animation-delay: .05s; } .spark i:nth-child(3n) { animation-delay: .1s; }
  .form-success:not([hidden]) { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes pop  { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
  @keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* ---------- Windows high contrast / forced colors ---------- */
@media (forced-colors: active) {
  .btn, .choice, .input, .plan, .feature, .form-card { border: 1px solid CanvasText; }
  .choice input:checked::after { background: CanvasText; }
}

/* ==========================================================================
   B4 additions (Xero template page). Additive only: nothing above changes.
   ========================================================================== */

/* Theme: indigo. Deliberately away from Xero's cyan so the page never reads as theirs. */
.theme-indigo { --accent: #4f46e5; --accent-strong: #4338ca; --accent-tint: #eef2ff; } /* white on accent 6.3:1, strong on tint 7.1:1 */

/* Hero, stacked variant: copy on top, a wide illustration below (before/after needs the width) */
.hero--stacked .container { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .hero--stacked .container { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 720px) {
  .hero--stacked .hero__copy { max-width: 48rem; margin-inline: auto; text-align: center; }
  .hero--stacked h1 { max-width: 20ch; margin-inline: auto; }
  .hero--stacked .lead { margin-inline: auto; }
  .hero--stacked .hero__actions, .hero--stacked .ticks { justify-content: center; }
}

/* Before / after comparison */
.compare {
  position: relative; display: grid; gap: 1rem; align-items: center;
  max-width: 62rem; margin-inline: auto; width: 100%;
}
@media (min-width: 820px) {
  .compare { grid-template-columns: minmax(0, 0.82fr) auto minmax(0, 1fr); gap: 1.5rem; }
}
.compare__side { min-width: 0; display: grid; gap: 0.625rem; }
.compare__label {
  margin: 0; justify-self: start; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8125rem; font-weight: 650; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: #f1f5f9; color: var(--ink-2);
}
.compare__label--after { background: var(--accent-tint); color: var(--accent-strong); }
.compare__arrow {
  justify-self: center; display: grid; justify-items: center; gap: 0.25rem;
  color: var(--accent-strong); font-size: 0.8125rem; font-weight: 650; text-align: center;
}
.compare__arrow i {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; box-shadow: var(--shadow);
}
.compare__arrow svg { width: 1.25rem; height: 1.25rem; transform: rotate(90deg); }
@media (min-width: 820px) { .compare__arrow svg { transform: none; } }

/* Paper documents inside the comparison (fake data only, no third-party branding) */
.doc {
  --doc-ink: var(--ink); --doc-muted: var(--ink-2); --doc-line: var(--line);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(1rem, 2.5vw, 1.5rem); font-size: 0.8125rem; line-height: 1.45; color: var(--doc-ink);
  box-shadow: var(--shadow);
}
.doc table { width: 100%; border-collapse: collapse; }
.doc th, .doc td { text-align: left; padding: 0.4rem 0; vertical-align: top; }
.doc th { font-weight: 600; color: var(--doc-muted); }
.doc td + td, .doc th + th { padding-left: 0.5rem; }
.doc .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc tbody td { border-top: 1px solid var(--doc-line); }
.doc__row { display: flex; justify-content: space-between; gap: 1rem; }
.doc__muted { color: var(--doc-muted); }
.doc__head { margin-bottom: 0.75rem; }
.doc__right { text-align: right; }
.doc__fineprint { margin-top: 0.9rem !important; }
.doc__row--center { align-items: center; }
.doc__small { font-size: 0.75rem; }
.doc p { margin: 0; }

/* "Before": a generic plain default. Grey, flat, nothing missing technically, just anonymous. */
.doc--plain { --doc-ink: #334155; --doc-muted: #475569; background: #f8fafc; box-shadow: none; }
.doc--plain .doc__title { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.doc--plain .doc__total { border-top: 1px solid #94a3b8; margin-top: 0.4rem; padding-top: 0.4rem; font-weight: 600; }
@media (min-width: 820px) { .compare__side--before .doc { transform: rotate(-1.5deg); } }
/* phone: show only the top of the plain invoice, faded, so the "after" stays near the fold */
@media (max-width: 819px) {
  .compare__side--before .doc {
    max-height: 13.5rem; overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
  }
}

/* "After": the customer's own brand. --brand is THEIR colour (fake: Harbour & Pine), not ours. */
.doc--brand { --brand: #9a3412; --brand-tint: #fdf2ec; padding: 0; overflow: hidden; box-shadow: var(--shadow-lg); }
.doc--brand .doc__band { height: 6px; background: var(--brand); }
.doc--brand .doc__inner { padding: clamp(1rem, 2.5vw, 1.5rem); display: grid; gap: 1rem; }
.doc__brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 0.9375rem; letter-spacing: -0.01em; }
.doc__logo { width: 2.25rem; height: 2.25rem; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.doc__logo svg { width: 1.25rem; height: 1.25rem; }
.doc--brand .doc__title { font-size: 1.375rem; font-weight: 750; letter-spacing: -0.02em; color: var(--brand); line-height: 1; text-align: right; }
.doc__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.doc__meta div { background: var(--brand-tint); border-radius: 6px; padding: 0.4rem 0.55rem; min-width: 0; }
.doc__meta small, .doc__to small { display: block; font-size: 0.6875rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand); }
.doc--brand thead th { color: var(--brand); border-bottom: 2px solid var(--brand); font-size: 0.75rem; }
.doc--brand tbody td { border-top-color: #f3e3da; }
.doc__total-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--brand); color: #fff; border-radius: 8px; padding: 0.6rem 0.8rem; font-weight: 700;
}
.doc__total-bar span:last-child { font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.doc__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: end; border-top: 1px dashed #e7cfc2; padding-top: 0.75rem; }
.doc__sign { font-style: italic; color: var(--brand); font-weight: 600; }

/* callout tucked under the "after" document */
.compare .callout { position: relative; margin: -1.5rem auto 0; z-index: 1; }

/* "Works with" line under the hero: text only, never a third-party logo */
.works-with { margin: 1.25rem 0 0; color: var(--ink-2); font-size: var(--fs-small); text-align: center; }

/* trademark notice in the footer */
.site-footer .tm-note { flex-basis: 100%; margin: 0; color: #cbd5e1; font-size: 0.8125rem; }

@media (prefers-reduced-motion: no-preference) {
  .compare__side--before { animation: rise .7s .15s cubic-bezier(.2,.7,.2,1) both; }
  .compare__arrow { animation: pop .5s .55s cubic-bezier(.3,1.4,.5,1) both; }
  .compare__side--after { animation: rise .8s .7s cubic-bezier(.2,.7,.2,1) both; }
  .compare .callout { animation: pop .5s 1.4s cubic-bezier(.3,1.4,.5,1) both; }
}

/* ==========================================================================
   B4 v2 additions (InvoiceTailor). Additive only. The v1 ".compare" / ".doc"
   styles above can be deleted once sites/xero switches to the editor mock.
   ========================================================================== */

/* hero extras */
.hero__small { margin: 0.25rem 0 0; color: var(--ink-2); font-size: var(--fs-small); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 48px; padding: 0 0.75rem;
  font-weight: 650; color: var(--accent-strong); text-decoration: none; border-radius: 10px;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.link-arrow svg { width: 1.1em; height: 1.1em; transform: rotate(90deg); }
/* long or short H1: width is capped in characters, size steps down for long titles */
.hero--stacked h1 { max-width: 22ch; text-wrap: balance; }
.hero--stacked h1.is-long { font-size: clamp(1.875rem, 1.4rem + 2vw, 2.875rem); max-width: 28ch; }
.hero--stacked .lead { text-wrap: pretty; }

/* ---------- Editor illustration: invoice preview + layout controls ---------- */
@property --m { syntax: "<length>"; inherits: true; initial-value: 1.75rem; }
@property --v { syntax: "<percentage>"; inherits: true; initial-value: 55%; }

.editor { max-width: 64rem; margin-inline: auto; width: 100%; }
.editor .mock__body { padding: 0; gap: 0; }
@media (min-width: 820px) { .editor .mock__body { grid-template-columns: minmax(0, 16.5rem) minmax(0, 1fr); } }

/* controls panel: under the preview on phones, on the left from 820 px */
.editor__panel {
  padding: 1.125rem; display: grid; gap: 1rem; align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); background: #fff;
}
@media (min-width: 820px) { .editor__panel { order: -1; grid-template-columns: minmax(0, 1fr); border-top: 0; border-right: 1px solid var(--line); } }
.editor__panel-title { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-weight: 650; }
.ctl { display: grid; gap: 0.45rem; min-width: 0; }
.ctl--wide, .editor__download { grid-column: 1 / -1; }
.ctl__head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.8125rem; }
.ctl__val { font-family: var(--mono); font-size: 0.75rem; color: var(--accent-strong); background: var(--accent-tint); padding: 0 0.4rem; border-radius: 4px; white-space: nowrap; }
.slider { --v: 55%; position: relative; height: 6px; margin-block: 5px; background: var(--line); border-radius: 99px; }
.slider > b { position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--accent); border-radius: inherit; }
.slider > i { position: absolute; top: 50%; left: var(--v); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 3px rgb(15 23 42 / .2); }
.stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; padding: 0.25rem; font-size: 0.8125rem; }
.stepper > span:first-child, .stepper > span:last-child { width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 6px; background: var(--bg-soft); font-weight: 700; color: var(--ink-2); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; font-size: 0.75rem; text-align: center; }
.seg > span { padding: 0.3rem 0.15rem; border-radius: 6px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg > .is-on { background: var(--accent); color: #fff; font-weight: 600; }
.editor__download { display: grid; gap: 0.35rem; padding-top: 0.25rem; }
.editor__download .mock__btn { justify-content: center; padding: 0.55rem 0.75rem; font-size: 0.875rem; }
.editor__download small { color: var(--ink-2); font-size: 0.75rem; text-align: center; }

/* preview stage + paper */
.editor__stage { background: #eef1f5; padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem) 0; display: grid; justify-items: center; min-width: 0; }
.paper {
  --brand: #9a3412; --brand-tint: #fdf2ec; --m: 1.75rem; --logo: 2.25rem;
  position: relative; width: 100%; max-width: 31rem; background: #fff; color: var(--ink);
  padding: var(--m) var(--m) 0; font-size: 0.75rem; line-height: 1.45;
  border-radius: 3px 3px 0 0; box-shadow: 0 1px 2px rgb(15 23 42 / .08), 0 12px 32px -10px rgb(15 23 42 / .25);
  height: 25rem; overflow: hidden;                     /* the page continues below: shown as cut off */
}
.paper::after { content: ""; position: absolute; inset: auto 0 0; height: 4rem; background: linear-gradient(rgb(255 255 255 / 0), #fff); }
.paper p { margin: 0; }
.paper__guide { position: absolute; inset: calc(var(--m) - 8px) calc(var(--m) - 8px) -1px; border: 1.5px dashed var(--accent); border-bottom: 0; border-radius: 3px 3px 0 0; pointer-events: none; }
.paper__tag {
  position: absolute; z-index: 1; font-size: 0.625rem; font-weight: 650; line-height: 1.5; white-space: nowrap;
  color: #fff; background: var(--accent); padding: 0 0.35rem; border-radius: 3px;
}
.paper__guide > .paper__tag { top: -0.55rem; right: 0.75rem; }
.paper__head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.paper__brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.8125rem; line-height: 1.2; }
.paper__logo { width: var(--logo); height: var(--logo); border-radius: 7px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.paper__logo svg { width: 55%; height: 55%; }
.paper__title { color: var(--brand); font-size: 1.25rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1; }
.paper__addr-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin-top: 1.25rem; }
.paper__window { position: relative; border: 1.5px dashed var(--accent); border-radius: 6px; padding: 0.7rem 0.7rem 0.6rem; background: rgb(238 242 255 / .45); }
.paper__window > .paper__tag { top: -0.55rem; left: 0.5rem; }
.paper__meta { display: grid; gap: 0.2rem; }
.paper__meta div { display: flex; justify-content: space-between; gap: 0.5rem; }
.paper__label { font-size: 0.625rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.paper__items { position: relative; margin-top: 1.25rem; }
.paper__items > .paper__tag { top: -0.55rem; right: 0; }
.paper table { width: 100%; border-collapse: collapse; font-size: var(--fs-doc, 0.75rem); }
.paper th, .paper td { text-align: left; padding: 0.35rem 0; }
.paper td + td, .paper th + th { padding-left: 0.5rem; }
.paper th { color: var(--brand); border-bottom: 2px solid var(--brand); font-size: 0.6875rem; }
.paper tbody td { border-top: 1px solid #f3e3da; }
.paper .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.paper__total { display: flex; justify-content: space-between; margin-top: 0.6rem; background: var(--brand); color: #fff; border-radius: 6px; padding: 0.45rem 0.65rem; font-weight: 700; }

/* the "adjusting" moment: margin slider moves and the page margin follows (once, on load) */
@media (prefers-reduced-motion: no-preference) {
  .editor .slider--margin { animation: it-slide 1.6s 1s cubic-bezier(.4,0,.2,1) both; }
  .editor .paper { animation: it-margin 1.6s 1s cubic-bezier(.4,0,.2,1) both; }
  @keyframes it-slide  { from { --v: 25%; } to { --v: 55%; } }
  @keyframes it-margin { from { --m: 1rem; }  to { --m: 1.75rem; } }
}

/* ---------- How it works: numbered steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step__num { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 1rem; }
.step p { color: var(--ink-2); margin: 0; }

/* ---------- Pricing: one "Notify me" button per plan, plans styled equally (no favourite, it's the test) ---------- */
.plan__cta { margin-top: auto; padding-top: 0.5rem; }

/* ---------- FAQ: native <details>, works without JS ---------- */
.faq { max-width: 48rem; display: grid; gap: 0.75rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 56px; padding: 0.875rem 1.25rem; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.55rem; height: 0.55rem; margin-top: -0.3rem;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 0.25rem; }
.faq summary:hover h3 { color: var(--accent-strong); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq h3 { margin: 0; font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.005em; }
.faq__a { padding: 0 1.25rem 1.25rem; color: var(--ink-2); }
.faq__a p:last-child { margin-bottom: 0; }

/* footer: disclaimer under the links */
.site-footer .tm-note { max-width: 46rem; }
.editor.mock-wrap { padding: 0; }
