/* ============================================================
   PXL North — shared landing styles
   Static, framework-free. Linked by index.html and preview.html.
   Design tokens live in :root; everything else builds on them.
   ============================================================ */

/* ---- Design tokens -------------------------------------------------- */
:root {
  /* Brand */
  --brand: #6366f1;          /* indigo */
  --brand-2: #4338ca;        /* deep indigo (gradient end) */
  --accent: #4f46e5;         /* solid accent */
  --ink: #0f172a;            /* near-black text on light */
  --ink-soft: #334155;       /* secondary text */
  --ink-muted: #64748b;      /* tertiary / captions */

  /* Surfaces */
  --bg: #ffffff;
  --bg-tint: #f6f7fb;        /* very light indigo-grey */
  --bg-ink: #0b1020;         /* dark band */
  --line: #e6e8f0;           /* hairline borders */
  --line-strong: #d3d7e6;

  /* Brand gradient (used sparingly) */
  --grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);

  /* Radius */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06),
    0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -24px rgba(67, 56, 202, 0.35);

  /* Layout */
  --maxw: 1140px;
  --maxw-narrow: 720px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px; /* keep the sticky header from covering anchored sections */
}

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

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

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

p {
  margin: 0 0 var(--space-4);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---- Accessibility helpers ---------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: var(--space-4);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Small utilities ---------------------------------------------- */
.u-center {
  margin-inline: auto;
  text-align: center;
}

.u-mx-auto {
  margin-inline: auto;
}

.section__eyebrow.is-center {
  justify-content: center;
}

.section__eyebrow.on-dark {
  color: rgba(255, 255, 255, 0.85);
}

.addons-title {
  margin-top: var(--space-8);
  font-size: 1.4rem;
}

/* ---- Layout primitives -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section {
  /* Top padding cut ~50% vs bottom (operator request 2026-06-21). */
  padding-top: clamp(1.4rem, 3vw, 2.15rem);
  padding-bottom: clamp(2.75rem, 6vw, 4.25rem);
}

.section--tint {
  background: var(--bg-tint);
}

/* Section order: keep the contact form above the FAQ (operator 2026-06-21). */
#main { display: flex; flex-direction: column; }
#main > .contact { order: 1; }
#main > #faq { order: 2; }

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.section__eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.section__head {
  max-width: 44ch;
  margin-bottom: var(--space-7);
}

.section__head h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
}

.section__head p {
  color: var(--ink-soft);
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* ---- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(67, 56, 202, 0.55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(67, 56, 202, 0.6);
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--light {
  background: #fff;
  color: var(--brand-2);
}

.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.4);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--lg {
  padding: 1.05rem 1.8rem;
  font-size: 1.0625rem;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
}

/* ---- Site header --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 50px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  flex: none;
}

.brand__word {
  font-family: "Space Grotesk", var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.brand__word .pxl {
  color: var(--ink);
}

.brand__word .north {
  color: var(--brand-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: width 0.2s ease;
}

.nav__links a:hover::after {
  width: 100%;
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }
}

/* ---- Hero (index) -------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  /* Top padding trimmed ~40% vs bottom (operator request) so the hero starts higher. */
  padding-top: clamp(1.2rem, 2.4vw, 2.1rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  background:
    radial-gradient(
      60% 80% at 88% 8%,
      rgba(99, 102, 241, 0.12),
      transparent 60%
    ),
    radial-gradient(
      40% 60% at 0% 100%,
      rgba(79, 70, 229, 0.08),
      transparent 60%
    );
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: start; /* top-align the before/after mock with the headline */
}

@media (max-width: 880px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
  .hero__visual { margin-top: 0; } /* flush when stacked */
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-2);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

.hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: var(--space-5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.hero__note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin: 0;
}

.hero__note svg {
  flex: none;
  color: var(--accent);
}

/* Hero visual: CSS/SVG "before/after" device mock */
.hero__visual {
  position: relative;
  /* Drop the mock by ~the badge height so its top aligns with the headline (not the
     badge) on desktop; reset to flush when the hero stacks on mobile. */
  margin-top: 2.9rem;
}

.mock {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
}

.mock__dots {
  display: flex;
  gap: 6px;
}

.mock__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-strong);
}
.mock__dots span:nth-child(1) { background: #ff5f57; }
.mock__dots span:nth-child(2) { background: #febc2e; }
.mock__dots span:nth-child(3) { background: #28c840; }

.mock__url {
  font-size: 0.8rem;
  color: var(--ink-muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
}

.mock__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.mock__pane {
  padding: var(--space-5);
}

.mock__pane--before {
  background: #f1f0ec;
  border-right: 1px solid var(--line);
}

.mock__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.mock__tag--before {
  background: #ded9cf;
  color: #6b6354;
}

.mock__tag--after {
  background: rgba(99, 102, 241, 0.12);
  color: var(--brand-2);
}

/* skeleton "before" — dated, cramped */
.sk {
  border-radius: 4px;
  background: #d8d2c6;
}
.sk--title {
  height: 12px;
  width: 70%;
  margin-bottom: 8px;
}
.sk--line {
  height: 7px;
  width: 100%;
  margin-bottom: 6px;
}
.sk--line.short {
  width: 55%;
}
.sk--box {
  height: 44px;
  width: 100%;
  margin-top: 12px;
  background: #cfc8b9;
}

/* "after" — clean, branded */
.af__title {
  height: 14px;
  width: 60%;
  border-radius: 4px;
  background: var(--ink);
  margin-bottom: 10px;
}
.af__line {
  height: 7px;
  width: 100%;
  border-radius: 4px;
  background: var(--line-strong);
  margin-bottom: 7px;
}
.af__line.short {
  width: 45%;
}
.af__cta {
  height: 30px;
  width: 64%;
  border-radius: var(--radius-pill);
  background: var(--grad);
  margin-top: 14px;
}
.af__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.af__card {
  height: 38px;
  border-radius: 8px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
}

.mock__score {
  position: absolute;
  right: -14px;
  bottom: -14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mock__score .grade {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mock__score .label {
  font-size: 0.72rem;
  color: var(--ink-muted);
  line-height: 1.3;
}

@media (max-width: 460px) {
  .mock__body {
    grid-template-columns: 1fr;
  }
  .mock__pane--before {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .mock__score {
    position: static;
    margin: var(--space-4);
  }
}

/* ---- Trust strip --------------------------------------------------- */
.trust {
  border-block: 1px solid var(--line);
  background: #fff;
}

.trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-5);
}

.trust__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.trust__item svg {
  flex: none;
  color: var(--accent);
}

/* ---- Program: dark 3-step "process" band ------------------------- */
.process {
  position: relative;
  overflow: hidden;
  padding-top: clamp(1.5rem, 3vw, 2.4rem);
  padding-bottom: clamp(3rem, 6vw, 4.75rem);
  background: #0d1124;
  color: #e7e9f3;
}
/* faint grid texture, fading out */
.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(85% 70% at 18% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(85% 70% at 18% 0%, #000 35%, transparent 78%);
  pointer-events: none;
}
.process > .container {
  position: relative;
}

.process__head {
  max-width: 60ch;
  margin-bottom: var(--space-7);
}
.process__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: var(--space-3);
}
.process__head h2 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: var(--space-4);
}
.process__head p {
  color: #aab0c6;
  font-size: 1.08rem;
  margin: 0;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.pcard {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.pcard:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, 0.5);
  background: rgba(255, 255, 255, 0.05);
}
/* connector dash between cards (desktop only) */
.pcard:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--space-5) * -1);
  width: var(--space-5);
  height: 2px;
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.7), transparent);
}
.pcard__top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.pcard__num {
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #818cf8, #4338ca);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pcard__icon {
  color: #818cf8;
}
.pcard__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}
.pcard__kind {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(129, 140, 248, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.7rem;
  margin-bottom: var(--space-3);
}
.pcard h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: var(--space-2);
}
.pcard p {
  color: #aab0c6;
  margin: 0;
}

@media (max-width: 880px) {
  .process__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .pcard:not(:last-child)::after {
    display: none;
  }
}

/* ---- Pricing ------------------------------------------------------- */
.build-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-6);
  align-items: center;
  background: var(--bg-ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: var(--space-7);
  position: relative;
  overflow: hidden;
}

.build-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    50% 120% at 100% 0%,
    rgba(99, 102, 241, 0.4),
    transparent 60%
  );
  pointer-events: none;
}

.build-band > * {
  position: relative;
}

.build-band .btn {
  margin-top: var(--space-5);
}

.build-band h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: var(--space-3);
}

.build-band p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.build-band__price {
  text-align: right;
}

.build-band__price .from {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.build-band__price .amount {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.build-band__price .terms {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-2);
}

@media (max-width: 720px) {
  .build-band {
    grid-template-columns: 1fr;
  }
  .build-band__price {
    text-align: left;
  }
}

.plans-head {
  margin: var(--space-7) 0 var(--space-5);
}
.plans-head h3 {
  font-size: 1.5rem;
  margin: var(--space-2) 0 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: stretch;
}

@media (max-width: 920px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.plan--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Free-text input revealed when "Other" is picked in a select. */
.field__other { margin-top: var(--space-2); }

/* Highlight the plan the visitor picked via "Choose <plan>". */
.plan.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg);
}

.plan__flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.plan__name {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.plan__tagline {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-bottom: var(--space-5);
  min-height: 2.4em;
}

.plan__price {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}

.plan__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.plan__price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan__price .per {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Yearly price + savings note are hidden until the Yearly toggle is active. */
.plan__price-row--yearly { display: none; }
.plan__price-note { display: none; }
.plans.is-yearly .plan__price-row--monthly { display: none; }
.plans.is-yearly .plan__price-row--yearly { display: flex; }
.plans.is-yearly .plan__price-note { display: block; }
.plan__price-note {
  font-size: 0.84rem;
  color: var(--ink-muted);
}
.plan__price-note .save {
  color: var(--accent);
  font-weight: 700;
}

/* ---- Monthly / Yearly billing toggle ------------------------------- */
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  margin-top: var(--space-4);
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.billing-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.billing-toggle__btn.is-active {
  background: var(--grad);
  color: #fff;
}
.billing-toggle__save {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
}
.billing-toggle__btn.is-active .billing-toggle__save {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.plan__features {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex: 1;
}

.plan__features li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.plan__features svg {
  margin-top: 3px;
  flex: none;
  color: var(--accent);
}

/* ---- Add-ons ------------------------------------------------------- */
.addons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-6);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

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

.addon {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
}

/* Featured full-width add-on (custom development). */
.addon--wide {
  grid-column: 1 / -1;
  margin-top: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-tint);
}

.addon__name {
  font-weight: 600;
  color: var(--ink);
}

.addon__name span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.addon__price {
  flex: none;
  font-weight: 700;
  color: var(--brand-2);
  white-space: nowrap;
}

.pricing-note {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-top: var(--space-6);
  margin-bottom: 0;
}

/* ---- How it works (funnel) ---------------------------------------- */
.funnel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  counter-reset: step;
}

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

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

.funnel__step {
  position: relative;
  padding-top: var(--space-5);
}

.funnel__step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand);
  display: block;
  margin-bottom: var(--space-3);
}

.funnel__step::after {
  content: "";
  position: absolute;
  top: var(--space-3);
  left: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover extends the accent line across the full step (slow, smooth). */
.funnel__step:hover::after {
  width: 100%;
}

/* Free-preview funnel folded into the dark "How it works" band. */
.process__subhead {
  margin: var(--space-8) 0 var(--space-5);
  font-size: 1.25rem;
  color: #fff;
}
.process .funnel__step h3 { color: #fff; }
.process .funnel__step p { color: #aab0c6; }
.process .funnel__step::before { color: #a5b4fc; }

.funnel__step h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}

.funnel__step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* split: why us */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-top: var(--space-8);
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.why-list {
  display: grid;
  gap: var(--space-5);
}

.why-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
}

.why-list .ico,
.why-row .ico {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--brand-2);
}

/* Condensed "why us": prominent quote on top, then 3 compact points. */
.quote-lead {
  max-width: 760px;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.quote-lead blockquote {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.quote-lead figcaption {
  margin-top: var(--space-4);
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.why-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.why-row li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
}
.why-row h3 { font-size: 1.05rem; margin-bottom: var(--space-1); }
.why-row p { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }
@media (max-width: 760px) {
  .why-row { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: var(--space-5); }
}

.why-list h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-1);
}

.why-list p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.figure-card {
  background: var(--grad);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.figure-card blockquote {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.figure-card .figure-card__meta {
  margin-top: var(--space-5);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.figure-card .placeholder-flag {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
}

/* ---- FAQ ----------------------------------------------------------- */
.faq {
  max-width: 760px;
  margin-inline: auto;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  background: #fff;
  overflow: hidden;
}

.faq__item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary .chev {
  flex: none;
  transition: transform 0.2s ease;
  color: var(--accent);
}

.faq__item[open] summary .chev {
  transform: rotate(180deg);
}

.faq__item .faq__answer {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--ink-soft);
}

.faq__item .faq__answer p {
  margin-bottom: 0;
}

/* ---- Final CTA band ------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--bg-ink);
  color: #fff;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 100% at 15% 0%, rgba(99, 102, 241, 0.45), transparent 60%),
    radial-gradient(45% 120% at 100% 100%, rgba(79, 70, 229, 0.35), transparent 55%);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  text-align: center;
  padding-block: var(--space-9);
  max-width: 640px;
  margin-inline: auto;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  margin-bottom: var(--space-4);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  margin-bottom: var(--space-6);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ---- Footer -------------------------------------------------------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding-block: var(--space-7) var(--space-6);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

@media (max-width: 720px) {
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

.site-footer__about p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 38ch;
  margin-top: var(--space-3);
  margin-bottom: 0;
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: grid;
  gap: var(--space-3);
}

.footer-col a,
.footer-col address {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-style: normal;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.site-footer__bottom p {
  margin: 0;
}

/* ---- Preview page lead form --------------------------------------- */
.lead {
  background: var(--bg-tint);
}

.lead__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (max-width: 880px) {
  .lead__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.lead__copy h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.lead__copy p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.reassure {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.reassure li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.reassure svg {
  flex: none;
  color: var(--accent);
}

.lead-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
}

.lead-form h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-2);
}

.lead-form > p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-6);
}

.field {
  margin-bottom: var(--space-5);
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: var(--space-2);
  color: var(--ink);
}

.field .req {
  color: var(--accent);
}

.field input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field input::placeholder {
  color: #9aa3b5;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.field__hint {
  margin: var(--space-2) 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* "No website yet" checkbox row */
.check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}
.check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
  cursor: pointer;
  flex: none;
}

.lead-form__legal {
  margin: var(--space-5) 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
}

.lead-form__error {
  margin: var(--space-4) 0 0;
  font-size: 0.9rem;
  color: #dc2626;
  text-align: center;
}

/* ---- Preview hero / steps ----------------------------------------- */
.preview-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5rem) var(--space-8);
  background:
    radial-gradient(55% 80% at 90% 0%, rgba(99, 102, 241, 0.12), transparent 60%);
  text-align: center;
}

.preview-hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 800;
  max-width: 16ch;
  margin-inline: auto;
}

.preview-hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.preview-hero p {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: var(--space-5) auto var(--space-6);
}

.preview-hero .hero__actions {
  justify-content: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}

.step {
  text-align: center;
  padding: var(--space-6);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.step__ico {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(67, 56, 202, 0.6);
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-2);
}

.step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* slim footer for preview */
.site-footer--slim {
  padding-block: var(--space-6);
}

.site-footer--slim .site-footer__bottom {
  border-top: 0;
  padding-top: 0;
}

/* ---- Staggered load reveal (respects reduced motion) -------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .reveal-1 { animation-delay: 0.05s; }
  .reveal-2 { animation-delay: 0.15s; }
  .reveal-3 { animation-delay: 0.25s; }
  .reveal-4 { animation-delay: 0.35s; }

  @keyframes rise {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ---- Customer portal ----------------------------------------------- */
.portal {
  max-width: 860px;
}

.portal__login {
  max-width: 560px;
  margin-inline: auto;
}

.portal__status {
  text-align: center;
  color: var(--ink-soft);
  padding: var(--space-7) 0;
}

.portal__greeting {
  margin-bottom: var(--space-6);
}

.portal__greeting h2 {
  margin: 0 0 var(--space-2);
}

.portal__muted {
  color: var(--ink-muted);
}

.portal__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.portal__card h3 {
  margin: 0 0 var(--space-4);
}

.portal__plan-name {
  font-weight: 700;
  text-transform: capitalize;
  margin: 0 0 var(--space-2);
}

.portal__table-wrap {
  overflow-x: auto;
}

.portal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.portal__table th,
.portal__table td {
  text-align: left;
  padding: var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.portal__table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.portal__table tr:last-child td {
  border-bottom: 0;
}

.portal__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--bg-tint);
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
}

.portal__badge--paid {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.portal__badge--sent {
  background: #eef2ff;
  color: var(--brand-2);
  border-color: #c7d2fe;
}

.portal__badge--void {
  background: #f1f5f9;
  color: var(--ink-muted);
  border-color: var(--line-strong);
}

/* ============================================================
   v2 enhancements — mobile nav, multi-step contact form, reveals,
   scroll-reveal, micro-polish. Appended 2026-06-21.
   ============================================================ */

/* ---- Mobile navigation -------------------------------------------- */
.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { display: block; }
.nav-toggle .nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 50px 0 auto 0;
  z-index: 49;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: var(--space-4) var(--space-5) var(--space-6);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu ul {
  display: grid;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}
.mobile-menu a {
  display: block;
  padding: var(--space-3) var(--space-2);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
}
.mobile-menu a:hover { background: var(--bg-tint); color: var(--ink); text-decoration: none; }
.mobile-menu .btn { width: 100%; }
body.nav-open { overflow: hidden; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav .btn--primary { display: none; } /* CTA lives in the mobile menu instead */
  .mobile-menu { display: block; }
}

/* ---- Contact section + multi-step lead form ----------------------- */
.contact {
  position: relative;
  overflow: hidden;
  background: var(--bg-ink);
  color: #fff;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 100% at 12% 0%, rgba(99, 102, 241, 0.42), transparent 60%),
    radial-gradient(45% 120% at 100% 100%, rgba(79, 70, 229, 0.32), transparent 55%);
  pointer-events: none;
}
.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: var(--space-6); }
}
.contact__copy h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  margin-bottom: var(--space-4);
}
.contact__copy p { color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; }
.contact__points { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.contact__points li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}
.contact__points svg { flex: none; color: #a5b4fc; }
.contact__alt {
  margin-top: var(--space-6);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}
.contact__alt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* The form card (reused look from .lead-form but standalone) */
.lead-form--card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.lead-form--card h3 { font-size: 1.3rem; margin-bottom: var(--space-2); }

/* progress */
.fprogress { margin-bottom: var(--space-5); }
.fprogress__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: var(--space-2);
}
.fprogress__track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-tint);
  overflow: hidden;
}
.fprogress__bar {
  height: 100%;
  width: 33%;
  border-radius: var(--radius-pill);
  background: var(--grad);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* steps: without JS, all show stacked; with JS, only the active one */
.fstep { display: grid; gap: var(--space-4); border: 0; margin: 0; padding: 0; min-width: 0; }
.fstep + .fstep { margin-top: var(--space-5); }
.html.js .fstep { margin-top: 0; }
.js .fstep + .fstep { margin-top: 0; }
.fstep__title { font-size: 1.05rem; margin: 0; }
.fstep[hidden] { display: none; }

.field--inline { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 460px) { .field--inline { grid-template-columns: 1fr; } }

.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
/* custom select chevron (so it doesn't rely on the OS default) */
.field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.6rem;
}
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.field input:user-invalid,
.field textarea:user-invalid,
.field select:user-invalid {
  border-color: #dc2626;
}

.fnav { display: flex; gap: var(--space-3); align-items: center; }
.fnav .btn { flex: 1; }
.fnav__spacer { flex: 1; }

.lead-form__success {
  text-align: center;
  padding: var(--space-6) var(--space-2);
}
.lead-form__success .tick {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
}
.lead-form__success h3 { font-size: 1.4rem; margin-bottom: var(--space-2); }
.lead-form__success p { color: var(--ink-soft); margin-bottom: 0; }

/* ---- Scroll reveal ------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---- Back-to-top ---------------------------------------------------- */
.to-top {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.to-top:hover { color: var(--accent); text-decoration: none; }

/* ---- Legal pages (Terms, Privacy) --------------------------------- */
.legal {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: var(--space-2); }
.legal__updated { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: var(--space-6); }
.legal h2 { font-size: 1.25rem; margin-top: var(--space-7); margin-bottom: var(--space-3); }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.legal__note {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  font-size: 0.9rem;
  margin-bottom: var(--space-6);
}

/* ---- Smaller header CTA (operator request 2026-06-21) ------------- */
.site-header .nav .btn--primary {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ---- Real before/after case study (Café O) ------------------------ */
.case {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.case__shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.case__shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-tint);
}
.case__shot + .case__shot { border-left: 1px solid var(--line); }
.case__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.case__tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}
.case__tag--before { background: rgba(15, 23, 42, 0.78); color: #fff; }
.case__tag--after { background: var(--grad); color: #fff; }
.case__body { padding: var(--space-5) var(--space-5) var(--space-5); }
.case__body blockquote {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.case__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.case__avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  font-size: 0.95rem;
}
.case__meta strong { color: var(--ink); font-weight: 700; display: block; }

/* ---- Hero mock: auto-sliding redesign tour ------------------------ */
/* One browser frame; a 5-wide track tours the redesign: before → home →
   checkout → menu → services → back. Each frame fills the window (cover). */
.mock__viewport {
  position: relative;
  overflow: hidden;
  height: 380px;
}
.mock__track {
  display: flex;
  width: 500%;
  height: 100%;
  animation: tour 22s ease-in-out infinite;
}
.mock__frame {
  width: 20%;
  height: 100%;
  flex: none;
  overflow: hidden;
}
.mock__frame img {
  width: 100%;          /* full page width — never side-cropped */
  height: auto;         /* all frames share one aspect, so no white either */
  display: block;
}
@keyframes tour {
  0%, 14%   { transform: translateX(0); }
  18%, 31%  { transform: translateX(-20%); }
  35%, 48%  { transform: translateX(-40%); }
  52%, 65%  { transform: translateX(-60%); }
  69%, 92%  { transform: translateX(-80%); }
  100%      { transform: translateX(0); }
}
/* Before/After pill — lives in the browser bar, top-right. */
.mock__phaseslot {
  position: relative;
  margin-left: auto;
  flex: none;
  width: 56px;
  height: 18px;
}
.mock__phase {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-pill);
}
.mock__phase--before { background: rgba(15, 23, 42, 0.82); color: #fff; animation: phaseBefore 22s ease-in-out infinite; }
.mock__phase--after  { background: var(--grad); color: #fff; animation: phaseAfter 22s ease-in-out infinite; }
@keyframes phaseBefore { 0%, 14% { opacity: 1; } 18%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes phaseAfter  { 0%, 16% { opacity: 0; } 18%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }
@media (max-width: 460px) {
  .mock__viewport { height: 300px; }
}
/* Reduced motion: hold on the redesigned home, no sliding. */
@media (prefers-reduced-motion: reduce) {
  .mock__track { animation: none; transform: translateX(-20%); }
  .mock__phase--before { display: none; }
  .mock__phase--after { animation: none; opacity: 1; }
}

/* ---- Micro-polish: press feedback + input hover -------------------- */
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.field input:hover:not(:focus),
.field textarea:hover:not(:focus),
.field select:hover:not(:focus) { border-color: #b9c0d4; }
/* Slightly tighter measure for long body copy on wide screens */
.contact__copy p { max-width: 46ch; }
