/* ===========================================================
   Guild USA — Site styles
   Sections: tokens · base · layout · components · sections · responsive
   =========================================================== */

/* -------------------- Design tokens -------------------- */
/* Palette: crimson #B00020 (accent), white #fff, cool gray #AAB3BF,
   midnight navy #001529, slate navy #163654 — applied conservatively */
:root {
  --color-bg: #ffffff;
  --color-surface: #f4f6f8;
  --color-surface-2: #e9edf2;
  --color-text: #001529;
  --color-muted: #4d5d6e;
  --color-border: #d4dce4;

  --color-ink: #001529;
  --color-ink-2: #163654;

  --color-cool-gray: #aab3bf;

  --color-primary: #b00020;
  --color-primary-600: #8c0019;
  --color-primary-100: #fce8ec;

  --shadow-sm: 0 1px 2px rgb(0 21 41 / 0.06);
  --shadow-md: 0 6px 18px rgb(0 21 41 / 0.08);
  --shadow-lg: 0 18px 40px rgb(0 21 41 / 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --container: 1180px;
  --header-h: 72px;

  --transition: 200ms cubic-bezier(0.2, 0.6, 0.2, 1);

  /* ---------- Liquid Glass material (light contexts) ---------- */
  --glass-blur: 18px;
  --glass-saturate: 165%;
  --glass-fill: linear-gradient(
    180deg,
    rgb(255 255 255 / 0.62) 0%,
    rgb(255 255 255 / 0.22) 100%
  );
  --glass-border: rgb(255 255 255 / 0.7);
  --glass-rim-light: rgb(255 255 255 / 0.85);
  --glass-rim-shadow: rgb(0 21 41 / 0.12);
  --glass-elevation:
    0 14px 38px rgb(0 21 41 / 0.14),
    0 2px 6px rgb(0 21 41 / 0.06);
  --glass-specular: linear-gradient(
    155deg,
    rgb(255 255 255 / 0.6) 0%,
    rgb(255 255 255 / 0) 38%,
    rgb(255 255 255 / 0) 62%,
    rgb(255 255 255 / 0.22) 100%
  );
}

/* Dark-context overrides — hero, CTA section, footer */
.hero,
.section-cta,
.site-footer {
  --glass-blur: 22px;
  --glass-saturate: 180%;
  --glass-fill: linear-gradient(
    180deg,
    rgb(255 255 255 / 0.18) 0%,
    rgb(255 255 255 / 0.04) 100%
  );
  --glass-border: rgb(255 255 255 / 0.3);
  --glass-rim-light: rgb(255 255 255 / 0.55);
  --glass-rim-shadow: rgb(0 0 0 / 0.35);
  --glass-elevation: 0 18px 40px rgb(0 0 0 / 0.4);
  --glass-specular: linear-gradient(
    155deg,
    rgb(255 255 255 / 0.45) 0%,
    rgb(255 255 255 / 0) 38%,
    rgb(255 255 255 / 0) 62%,
    rgb(255 255 255 / 0.18) 100%
  );
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Deep links (#pricing, #features, etc.) land below sticky header */
.section[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

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

button {
  font: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* -------------------- Layout -------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.section-sub {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-ink-2);
  margin: 0 0 0.6rem;
}

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

.center {
  text-align: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

/* -------------------- Buttons (Liquid Glass) -------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), background var(--transition),
    color var(--transition), border-color var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
  isolation: isolate;
}

.btn:hover {
  transform: translateY(-1px);
}

/* ---- Primary: red-tinted glass with rim light + specular ---- */
.btn-primary {
  color: #fff;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.22) 0%, rgb(255 255 255 / 0) 55%),
    linear-gradient(180deg, #c4002a 0%, #8c0019 100%);
  border: 1px solid rgb(255 255 255 / 0.34);
  /* Neutral ink-tinted elevation by default — keeps light backgrounds clean,
     with only a faint red kiss to reinforce the brand. */
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.55),
    inset 0 -1px 0 rgb(0 0 0 / 0.22),
    0 10px 22px rgb(0 21 41 / 0.16),
    0 2px 5px rgb(0 21 41 / 0.1),
    0 6px 14px rgb(176 0 32 / 0.1);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    rgb(255 255 255 / 0.5) 0%,
    rgb(255 255 255 / 0) 38%,
    rgb(255 255 255 / 0) 62%,
    rgb(255 255 255 / 0.22) 100%
  );
  background-size: 220% 220%;
  background-position: 0% 0%;
  mix-blend-mode: overlay;
  opacity: 0.7;
  transition: opacity 220ms ease, background-position 700ms ease;
  z-index: 0;
}
.btn-primary > * {
  position: relative;
  z-index: 1;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.3) 0%, rgb(255 255 255 / 0) 55%),
    linear-gradient(180deg, #d11030 0%, #9b001c 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.65),
    inset 0 -1px 0 rgb(0 0 0 / 0.24),
    0 14px 30px rgb(0 21 41 / 0.2),
    0 3px 7px rgb(0 21 41 / 0.12),
    0 8px 18px rgb(176 0 32 / 0.16);
}

/* On dark sections the red glow looks great — bring it back stronger there. */
.hero .btn-primary,
.section-cta .btn-primary {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.55),
    inset 0 -1px 0 rgb(0 0 0 / 0.22),
    0 14px 32px rgb(176 0 32 / 0.36),
    0 2px 6px rgb(176 0 32 / 0.18);
}
.hero .btn-primary:hover,
.hero .btn-primary:focus-visible,
.section-cta .btn-primary:hover,
.section-cta .btn-primary:focus-visible {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.65),
    inset 0 -1px 0 rgb(0 0 0 / 0.24),
    0 18px 40px rgb(176 0 32 / 0.46),
    0 3px 8px rgb(176 0 32 / 0.22);
}
.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  opacity: 1;
  background-position: 100% 100%;
}

/* ---- Ghost: adaptive translucent glass that picks up the backdrop ---- */
.btn-ghost {
  color: inherit;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-rim-light),
    inset 0 -1px 0 var(--glass-rim-shadow),
    var(--glass-elevation);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}
.hero .btn-ghost {
  color: #fff;
}
.section .btn-ghost {
  color: var(--color-text);
}
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--glass-specular);
  background-size: 220% 220%;
  background-position: 0% 0%;
  mix-blend-mode: overlay;
  opacity: 0.6;
  transition: opacity 220ms ease, background-position 700ms ease;
  z-index: 0;
}
.btn-ghost > * {
  position: relative;
  z-index: 1;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--glass-fill);
  border-color: var(--glass-rim-light);
  box-shadow:
    inset 0 1px 0 var(--glass-rim-light),
    inset 0 -1px 0 var(--glass-rim-shadow),
    var(--glass-elevation),
    0 0 0 1px rgb(255 255 255 / 0.18);
}
.btn-ghost:hover::before,
.btn-ghost:focus-visible::before {
  opacity: 1;
  background-position: 100% 100%;
}

/* ---- Text link variant — keep flat, no glass ---- */
.btn-link {
  padding: 0;
  background: transparent;
  color: var(--color-primary);
  border-radius: 0;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: auto;
}
.btn-link::before {
  display: none;
}
.btn-link:hover {
  color: var(--color-primary-600);
  transform: none;
  text-decoration: underline;
  background: transparent;
  box-shadow: none;
}

.btn-early-access.btn-link {
  color: var(--color-primary);
}

/* ---- Tel CTA + A2P SMS consent subtext ---- */
.tel-cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.hero-actions .tel-cta-block {
  align-items: center;
}

.fineprint.tel-consent-note {
  margin-top: 0.2rem;
  margin-bottom: 0;
  font-size: 0.6875rem;
  line-height: 1.35;
  font-weight: 400;
  color: var(--color-muted);
  opacity: 0.68;
  max-width: 32rem;
}

.fineprint.tel-consent-note.hero-consent-note {
  margin: 0.25rem auto 0;
  max-width: 36rem;
  text-align: center;
}

.fineprint.tel-consent-note--on-dark {
  color: rgb(255 255 255 / 0.32);
  opacity: 1;
}

.tel-consent-note a {
  color: inherit;
  text-decoration: none;
  opacity: inherit;
}

.tel-consent-note a:hover {
  text-decoration: underline;
  text-underline-offset: 1px;
  color: inherit;
  opacity: 0.85;
}

.tel-consent-note--on-dark a:hover {
  color: rgb(255 255 255 / 0.45);
  opacity: 1;
}

.social-tel-item {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin-top: 0.1rem;
}

.social-tel-item > a {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.08);
  font-size: 0.85rem;
  color: rgb(255 255 255 / 0.7);
}

.social-tel-item > a:hover {
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}

.btn-early-access.btn-link:hover {
  color: var(--color-primary-600);
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
}

/* ---- Reduced-motion: keep static glass, no specular sweep ---- */
@media (prefers-reduced-motion: reduce) {
  .btn-primary::before,
  .btn-ghost::before {
    transition: opacity 220ms ease;
  }
  .btn-primary:hover::before,
  .btn-primary:focus-visible::before,
  .btn-ghost:hover::before,
  .btn-ghost:focus-visible::before {
    background-position: 0% 0%;
  }
}

/* ---- Fallback for browsers without backdrop-filter ---- */
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .btn-ghost {
    background: rgb(255 255 255 / 0.85);
    border-color: var(--color-border);
  }
  .hero .btn-ghost,
  .section-cta .btn-ghost,
  .site-footer .btn-ghost {
    background: rgb(255 255 255 / 0.14);
    border-color: rgb(255 255 255 / 0.32);
  }
}

/* ---- Print: solid fills, no blur, no chrome ---- */
@media print {
  .btn,
  .btn-primary,
  .btn-ghost,
  .pricing-card,
  .pricing-tier {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border-color: #000 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .btn-primary::before,
  .btn-ghost::before,
  .pricing-card::before,
  .pricing-tier::before {
    display: none !important;
  }
}

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  background: rgb(255 255 255 / 0.96);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text span {
  color: var(--color-primary);
}

.brand-light {
  color: #fff;
}
.brand-light .brand-text span {
  color: var(--color-cool-gray);
}

.primary-nav ul {
  display: flex;
  gap: 1.5rem;
}

.primary-nav a {
  color: var(--color-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.primary-nav a:hover {
  color: var(--color-text);
}

.nav-cta {
  display: inline-flex;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  /* Tighter vertical rhythm so headline + stats fit common viewports without scroll */
  padding: clamp(1rem, 2.5vw, 1.75rem) 0 clamp(1.5rem, 3.5vw, 2.75rem);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 85% 0%, rgb(176 0 32 / 0.12), transparent 58%),
    radial-gradient(45% 55% at 0% 100%, rgb(22 54 84 / 0.5), transparent 58%),
    linear-gradient(180deg, var(--color-ink), var(--color-ink-2));
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 70%);
}

.hero-inner {
  text-align: center;
  max-width: 880px;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin: 0 auto clamp(0.4rem, 1.2vw, 0.75rem);
}
.hero-logo img {
  width: clamp(3.25rem, 8vw, 4.75rem);
  max-width: min(100%, 5.5rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 20px rgb(0 0 0 / 0.4))
    drop-shadow(0 1px 6px rgb(0 0 0 / 0.22));
}

.hero .eyebrow {
  color: var(--color-cool-gray);
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.35em;
}
.hero .accent {
  color: #fff;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.04em;
}

.hero .lead {
  color: rgb(255 255 255 / 0.78);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 0.5em;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  margin-top: clamp(1rem, 2.5vw, 1.35rem);
}
.hero-actions .btn-lg {
  width: 100%;
  min-width: 0;
  padding: 1rem 1.25rem;
  font-size: clamp(0.9rem, 1.4vw, 1.02rem);
  line-height: 1.2;
  text-align: center;
}
.hero-actions button.btn {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-family: inherit;
  cursor: pointer;
}
@media (max-width: 520px) {
  .hero-actions {
    grid-template-columns: 1fr;
    max-width: 18rem;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  max-width: 640px;
  padding-top: clamp(1rem, 2.5vw, 1.5rem);
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
}
.hero-stats span {
  color: rgb(255 255 255 / 0.6);
  font-size: 0.85rem;
}

/* -------------------- Cards / generic -------------------- */
.card-stack {
  display: grid;
  gap: 1rem;
}
.mini-card {
  padding: 1.25rem 1.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.mini-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}
.mini-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* -------------------- Intro section (title + video alignment) -------------------- */
.section-intro {
  /* Reused below to align video top with the second title line. */
  --intro-title-size: clamp(1.7rem, 3vw, 2.4rem);
  --intro-title-line-height: 1.15;
  --intro-eyebrow-block: calc(0.78rem * 1.6 + 0.6rem);
  --intro-title-first-line: calc(
    var(--intro-title-size) * var(--intro-title-line-height)
  );
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.intro-layout-text {
  grid-column: 1;
  min-width: 0;
}

.intro-layout-title {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-size: var(--intro-title-size);
  font-weight: 700;
  line-height: var(--intro-title-line-height);
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.intro-title-line {
  display: block;
}

.intro-layout-copy p:last-child {
  margin-bottom: 0;
}

.intro-video-wrap {
  grid-column: 2;
  align-self: start;
  width: 100%;
  min-width: 0;
  margin-top: calc(
    var(--intro-eyebrow-block) + var(--intro-title-first-line)
  );
}

/* -------------------- Intro video -------------------- */
.intro-video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
}

/* Click-to-load video overlay (grid stacks video + button in one cell) */
.intro-video-frame.video-lazy {
  display: grid;
}

.intro-video-frame.video-lazy > video,
.intro-video-frame.video-lazy > .video-lazy-play,
.intro-video-frame.video-lazy > .video-lazy-status {
  grid-area: 1 / 1;
}

.intro-video-frame.video-lazy > video {
  pointer-events: none;
}

.intro-video-frame.video-lazy.is-ready > video,
.intro-video-frame.video-lazy.is-playing > video {
  pointer-events: auto;
}

.video-lazy-play {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(11, 20, 32, 0.42);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
}

.video-lazy-play-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.video-lazy-play:hover,
.video-lazy-play:focus-visible {
  background: rgba(11, 20, 32, 0.48);
}

.video-lazy-play:focus-visible {
  outline: 2px solid var(--color-accent, #3b82f6);
  outline-offset: 2px;
}

.video-lazy-play-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  position: relative;
}

.video-lazy-play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.65rem 0 0.65rem 1.1rem;
  border-color: transparent transparent transparent #0b52c7;
}

.video-lazy-status {
  position: relative;
  align-self: end;
  z-index: 3;
  width: 100%;
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: rgba(11, 20, 32, 0.82);
}

.video-lazy.is-loading .video-lazy-play {
  pointer-events: none;
}

.video-lazy.is-loading .video-lazy-play-icon {
  opacity: 0.45;
}

@media (prefers-reduced-motion: no-preference) {
  .video-lazy.is-loading .video-lazy-play-icon {
    animation: video-lazy-pulse 1.2s ease-in-out infinite;
  }
}

@keyframes video-lazy-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.75;
  }
}

.video-lazy.is-ready .video-lazy-play,
.video-lazy.is-playing .video-lazy-play {
  display: none;
}

.video-lazy.is-error .video-lazy-play-icon {
  opacity: 0.35;
}

.video-noscript-fallback {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.video-noscript-fallback ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.video-noscript-fallback a {
  color: var(--color-accent, #0b52c7);
  text-decoration: underline;
}

.intro-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0b1420;
}

.intro-video-frame--portrait {
  aspect-ratio: 9 / 16;
  max-width: min(100%, 20rem);
  margin-inline: auto;
}

.intro-video-frame--portrait video {
  object-fit: cover;
}

.intro-video-cta {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  justify-content: center;
}

.intro-video-cta .tel-cta-block {
  align-items: center;
}

.intro-video-cta .fineprint.tel-consent-note {
  text-align: center;
  max-width: 28rem;
}

.speak-live-cta-block {
  width: 100%;
}
.btn-engage {
  min-width: 12rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* -------------------- Workflow (infographic) -------------------- */
.section-workflow {
  position: relative;
  background:
    radial-gradient(58% 50% at 14% 12%, rgb(22 54 84 / 0.08), transparent 60%),
    radial-gradient(52% 48% at 88% 92%, rgb(176 0 32 / 0.07), transparent 62%),
    var(--color-bg);
}

/* -------------------- Workflow interactive loop (hybrid) -------------------- */
.workflow-loop {
  margin: 0 auto;
  max-width: min(1000px, 100%);
}

/* ---- Desktop / tablet: full graphic + invisible hotspots ---- */
.workflow-desktop {
  position: relative;
  width: 100%;
  aspect-ratio: 1671 / 816;
  background-image: url("../images/automation-loop-desktop.png?v=1");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.workflow-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 15%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.workflow-hotspot {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.workflow-hotspot:hover,
.workflow-hotspot:focus-visible {
  outline: none;
  background: radial-gradient(circle, rgb(11 82 199 / 0.1) 58%, transparent 72%);
  box-shadow: 0 0 0 3px rgb(11 82 199 / 0.5);
}

/* ---- Pop-up detail bubbles (desktop) ---- */
.workflow-bubble {
  position: absolute;
  z-index: 10;
  width: max-content;
  max-width: min(300px, 60vw);
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  pointer-events: none;
}

.workflow-bubble--below {
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 6px);
}
.workflow-bubble--above {
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -6px);
}
.workflow-bubble--left {
  right: calc(100% + 8px);
  top: 50%;
  transform: translate(-6px, -50%);
}
.workflow-bubble--right {
  left: calc(100% + 8px);
  top: 50%;
  transform: translate(6px, -50%);
}

.workflow-node:hover .workflow-bubble,
.workflow-node:focus-within .workflow-bubble,
.workflow-node.is-open .workflow-bubble {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.workflow-node:hover .workflow-bubble--below,
.workflow-node:focus-within .workflow-bubble--below,
.workflow-node.is-open .workflow-bubble--below {
  transform: translate(-50%, 0);
}
.workflow-node:hover .workflow-bubble--above,
.workflow-node:focus-within .workflow-bubble--above,
.workflow-node.is-open .workflow-bubble--above {
  transform: translate(-50%, 0);
}
.workflow-node:hover .workflow-bubble--left,
.workflow-node:focus-within .workflow-bubble--left,
.workflow-node.is-open .workflow-bubble--left {
  transform: translate(0, -50%);
}
.workflow-node:hover .workflow-bubble--right,
.workflow-node:focus-within .workflow-bubble--right,
.workflow-node.is-open .workflow-bubble--right {
  transform: translate(0, -50%);
}

.workflow-node:hover,
.workflow-node:focus-within,
.workflow-node.is-open {
  z-index: 12;
}

.workflow-bubble h4 {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}
.workflow-bubble-step {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}
.workflow-bubble p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-muted);
}
.workflow-bubble p + p {
  margin-top: 0.55rem;
}

/* ---- Mobile stacked list (hidden on desktop) ---- */
.workflow-mobile-head,
.workflow-mobile {
  display: none;
}

.workflow-closing {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text);
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  max-width: 40rem;
}
.workflow-closing strong {
  color: var(--color-primary);
  font-weight: 700;
}

.workflow-cta {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.workflow-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.workflow-cta .tel-consent-note.fineprint {
  text-align: center;
  max-width: 34rem;
}

@media (max-width: 768px) {
  /* Swap the graphic for the stacked list; the desktop background image
     is never downloaded because the element is display:none. */
  .workflow-desktop {
    display: none;
  }

  .workflow-mobile-head {
    display: block;
    text-align: center;
    margin: 0 0 1.25rem;
  }
  .workflow-mobile-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 7vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text);
    margin: 0 0 0.35rem;
  }
  .workflow-mobile-sub {
    font-size: 0.98rem;
    color: var(--color-muted);
    margin: 0;
  }

  .workflow-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
  }

  /* Reset the absolute positioning inherited from the desktop node rule */
  .workflow-mobile .workflow-node {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    aspect-ratio: auto;
    transform: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .workflow-mobile .workflow-node.is-open {
    box-shadow: var(--shadow-md);
    border-color: rgb(11 82 199 / 0.35);
  }

  .workflow-mobile .workflow-hotspot {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    height: auto;
    padding: 0.8rem 1rem;
    border-radius: 0;
    text-align: left;
  }
  .workflow-mobile .workflow-hotspot:hover,
  .workflow-mobile .workflow-hotspot:focus-visible {
    background: rgb(11 82 199 / 0.04);
    box-shadow: none;
  }

  .wf-mobile-icon {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-repeat: no-repeat;
  }
  /* Paths are resolved relative to this stylesheet (css/), so step up a level */
  .workflow-mobile .workflow-node:nth-child(1) .wf-mobile-icon {
    background-image: url("../images/workflow-icon-01.png?v=2");
  }
  .workflow-mobile .workflow-node:nth-child(2) .wf-mobile-icon {
    background-image: url("../images/workflow-icon-02.png?v=2");
  }
  .workflow-mobile .workflow-node:nth-child(3) .wf-mobile-icon {
    background-image: url("../images/workflow-icon-03.png?v=2");
  }
  .workflow-mobile .workflow-node:nth-child(4) .wf-mobile-icon {
    background-image: url("../images/workflow-icon-04.png?v=2");
  }
  .workflow-mobile .workflow-node:nth-child(5) .wf-mobile-icon {
    background-image: url("../images/workflow-icon-05.png?v=2");
  }
  .workflow-mobile .workflow-node:nth-child(6) .wf-mobile-icon {
    background-image: url("../images/workflow-icon-06.png?v=2");
  }
  .workflow-mobile .workflow-node:nth-child(7) .wf-mobile-icon {
    background-image: url("../images/workflow-icon-07.png?v=2");
  }
  .workflow-mobile .workflow-node:nth-child(8) .wf-mobile-icon {
    background-image: url("../images/workflow-icon-08.png?v=2");
  }

  .wf-mobile-label {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
  }

  .wf-mobile-chevron {
    flex-shrink: 0;
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid var(--color-muted);
    border-bottom: 2px solid var(--color-muted);
    transform: rotate(45deg);
    transition: transform var(--transition);
  }
  .workflow-mobile .workflow-node.is-open .wf-mobile-chevron {
    transform: rotate(-135deg);
  }

  /* Mobile detail panel: collapse/expand instead of floating bubble */
  .workflow-mobile .workflow-bubble {
    position: static;
    opacity: 1;
    visibility: visible;
    width: auto;
    max-width: 100%;
    transform: none;
    pointer-events: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    transition: max-height 260ms ease, padding 260ms ease;
  }
  .workflow-mobile .workflow-node.is-open .workflow-bubble {
    max-height: 420px;
    padding: 0 1rem 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-bubble {
    transition: opacity 120ms ease, visibility 120ms ease;
  }
  .workflow-hotspot:hover,
  .workflow-hotspot:focus-visible {
    transform: none;
  }
}

/* -------------------- Features -------------------- */
.section-features {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px dashed var(--color-border);
}
.feature:last-child {
  border-bottom: none;
}
.feature-alt {
  grid-template-columns: 1fr 1.1fr;
}
.feature-alt .feature-media {
  order: 0;
}

.feature-copy h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  font-family: var(--font-display);
}

.checklist {
  margin: 0.5rem 0 1rem;
  display: grid;
  gap: 0.45rem;
}
.checklist li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--color-muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: var(--color-primary-100);
  box-shadow: inset 0 0 0 2px var(--color-primary);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.7em;
  width: 0.42rem;
  height: 0.22rem;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}

.feature-media {
  position: relative;
}
.feature-media-graphic {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0a0d12;
}
.feature-media-graphic img {
  display: block;
  width: 100%;
  height: auto;
}

/* -------------------- Speak Live animated banner (Liquid Glass big button) -------------------- */
.speak-live {
  display: block;
  position: relative;
  isolation: isolate;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: inherit;

  border-radius: var(--radius-lg);
  box-shadow:
    0 18px 44px rgb(0 21 41 / 0.16),
    0 4px 10px rgb(0 21 41 / 0.08);
  transition:
    transform 220ms cubic-bezier(0.2, 0.6, 0.2, 1),
    box-shadow 320ms ease;
}

.speak-live::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  /* Very subtle surface sheen — keeps the "glass" feel without painting a rim. */
  background: linear-gradient(
    155deg,
    rgb(255 255 255 / 0.18) 0%,
    rgb(255 255 255 / 0) 38%,
    rgb(255 255 255 / 0) 62%,
    rgb(255 255 255 / 0.08) 100%
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
  z-index: 1;
}

.speak-live:hover,
.speak-live:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 26px 56px rgb(0 21 41 / 0.2),
    0 6px 14px rgb(0 21 41 / 0.1);
}

.speak-live:focus-visible {
  outline: 2px solid rgb(59 130 246 / 0.55);
  outline-offset: 3px;
}

/* Inner "screen" — dark glass surface that holds the artwork and animations */
.speak-live-screen {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  isolation: isolate;
  background:
    radial-gradient(
      120% 80% at 50% 50%,
      rgb(14 28 51 / 0.95) 0%,
      rgb(5 11 22 / 0.98) 100%
    );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    inset 0 0 0 1px rgb(255 255 255 / 0.06);
  z-index: 0;
}

.speak-live-base {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.speak-live-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: filter 260ms ease;
}

/* Print */
@media print {
  .speak-live {
    background: #fff !important;
    border-color: #000 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .speak-live::before {
    display: none !important;
  }
}

/* Crest soft halo */
.sl-crest-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: sl-breathe 4s ease-in-out infinite;
  will-change: opacity, transform;
}

/* Voice-ready pulse rings emitted by the crest */
.sl-pulse {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: sl-pulse 3.2s ease-out infinite;
  will-change: transform, opacity;
}
.sl-pulse-2 { animation-delay: 0.8s; }
.sl-pulse-3 { animation-delay: 1.6s; }
.sl-pulse-4 { animation-delay: 2.4s; }
@keyframes sl-pulse {
  0%   { transform: scale(0.5);  opacity: 0; }
  12%  { opacity: 0.85; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Outer dashed ring slowly rotates around the crest */
.sl-outer-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: sl-rotate 32s linear infinite;
  transition: transform 280ms ease, animation-duration 280ms ease;
}
@keyframes sl-rotate {
  to { transform: rotate(360deg); }
}

/* Live voice "lanes" — dotted lines flowing crest → button across the banner */
.sl-wave-lane {
  stroke-dasharray: 2 10;
  stroke-linecap: round;
  opacity: 0.55;
  animation: sl-flow 4s linear infinite;
  will-change: stroke-dashoffset;
}
.sl-wave-lane-2 {
  stroke-dasharray: 2 14;
  animation-duration: 5s;
  animation-direction: reverse;
  opacity: 0.45;
}
.sl-wave-lane-3 {
  stroke-dasharray: 2 12;
  animation-duration: 3.4s;
  opacity: 0.5;
}
@keyframes sl-flow {
  to { stroke-dashoffset: -160; }
}

/* Pill breathing glow */
.sl-pill-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: sl-breathe 3.6s ease-in-out infinite;
  will-change: opacity, transform;
}
@keyframes sl-breathe {
  0%, 100% { opacity: 0.45; transform: scale(0.98); }
  50%      { opacity: 0.9;  transform: scale(1.03); }
}

/* Arrow halo: idle = faint, hover/active = bright */
.sl-arrow-halo {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.18;
  transform: scale(0.85);
  transition: opacity 240ms ease, transform 240ms ease;
}

/* Hover / focus — "wake up" */
.speak-live:hover .sl-arrow-halo,
.speak-live:focus-visible .sl-arrow-halo {
  opacity: 0.95;
  transform: scale(1);
}
.speak-live:hover .sl-outer-ring,
.speak-live:focus-visible .sl-outer-ring {
  transform: scale(0.92);
  animation-duration: 12s;
}
.speak-live:hover .sl-wave-lane,
.speak-live:focus-visible .sl-wave-lane {
  opacity: 0.85;
  animation-duration: 2s;
}
.speak-live:hover .speak-live-overlay,
.speak-live:focus-visible .speak-live-overlay {
  filter: drop-shadow(0 0 18px rgb(168 85 247 / 0.35));
}

/* Active listening — energetic state (persists for entire voice session) */
.speak-live:active .sl-pulse,
.speak-live.is-listening .sl-pulse,
.speak-live.is-connecting .sl-pulse {
  animation-duration: 1.4s;
}
.speak-live:active .sl-outer-ring,
.speak-live.is-listening .sl-outer-ring,
.speak-live.is-connecting .sl-outer-ring {
  animation-duration: 5s;
}
.speak-live:active .sl-wave-lane,
.speak-live.is-listening .sl-wave-lane,
.speak-live.is-connecting .sl-wave-lane {
  opacity: 1;
  animation-duration: 1.1s;
  stroke-width: 2;
}
.speak-live:active .sl-pill-glow,
.speak-live.is-listening .sl-pill-glow,
.speak-live.is-connecting .sl-pill-glow {
  animation-duration: 1.6s;
}
.speak-live:active .sl-arrow-halo,
.speak-live.is-listening .sl-arrow-halo,
.speak-live.is-connecting .sl-arrow-halo {
  opacity: 1;
  transform: scale(1.12);
}

/* Connecting — softer pulse before session is live */
.speak-live.is-connecting .sl-pulse {
  animation-duration: 2.2s;
  opacity: 0.65;
}
.speak-live.is-connecting .sl-wave-lane {
  opacity: 0.55;
  animation-duration: 1.8s;
}

/* Engage button active voice state */
.btn-engage.is-listening,
.btn-engage.is-connecting {
  box-shadow:
    0 0 0 3px rgb(176 0 32 / 0.35),
    0 6px 20px rgb(176 0 32 / 0.25);
}
.btn-engage.is-connecting {
  opacity: 0.85;
}

/* -------------------- Speak Live phase-change (in-call) -------------------- */
.speak-live.is-listening .speak-live-base,
.speak-live.is-connecting .speak-live-base {
  opacity: 0.4;
  filter: saturate(0.7);
  transition: opacity 400ms ease, filter 400ms ease;
}

/* -------------------- Speak Live call overlay -------------------- */
.sl-call-bar {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: inherit;
  background: rgb(5 11 22 / 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: opacity 300ms ease;
}
.sl-call-bar[hidden] {
  display: none;
}

.sl-call-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sl-call-status {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  color: rgb(255 255 255 / 0.9);
  letter-spacing: 0.02em;
}
.sl-call-status.is-live {
  color: #4ade80;
}
.sl-call-status.is-live::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 0.45em;
  vertical-align: middle;
  animation: sl-live-dot 1.4s ease-in-out infinite;
}
@keyframes sl-live-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.sl-call-timer {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: rgb(255 255 255 / 0.6);
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
}

.sl-end-call {
  background: none;
  border: none;
  padding: 0.25rem 0;
  color: rgb(255 255 255 / 0.7);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.78rem, 1.3vw, 0.88rem);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(255 255 255 / 0.35);
  cursor: pointer;
  pointer-events: auto;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
.sl-end-call:hover {
  color: #fff;
  text-decoration-color: rgb(255 255 255 / 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .sl-pulse,
  .sl-outer-ring,
  .sl-pill-glow,
  .sl-crest-glow,
  .sl-wave-lane {
    animation: none;
  }
  .sl-wave-lane { opacity: 0.4; }
}
.media-placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 60% at 30% 20%, rgb(170 179 191 / 0.35), transparent 60%),
    linear-gradient(160deg, #fff, var(--color-surface-2));
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.media-placeholder::before,
.media-placeholder::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
}
.media-placeholder::before {
  width: 220px;
  height: 220px;
  background: rgb(22 54 84 / 0.18);
  top: -50px;
  left: -40px;
}
.media-placeholder::after {
  width: 180px;
  height: 180px;
  background: rgb(176 0 32 / 0.08);
  bottom: -60px;
  right: -30px;
}
.media-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  background: rgb(255 255 255 / 0.7);
  border: 1px solid var(--color-border);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  font-size: 0.9rem;
}

/* -------------------- About Us / Callout -------------------- */
.section-aboutus {
  background: #fff;
}
.callout {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-ink), var(--color-ink-2));
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.06);
  box-shadow: var(--shadow-lg);
}
.callout h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.callout p {
  color: rgb(255 255 255 / 0.78);
}
.callout .btn-ghost {
  color: #fff;
  border-color: rgb(255 255 255 / 0.3);
}
.callout .btn-ghost:hover {
  background: rgb(255 255 255 / 0.08);
}

/* -------------------- Pricing -------------------- */
.section-pricing {
  position: relative;
  background:
    radial-gradient(60% 55% at 12% 18%, rgb(22 54 84 / 0.12), transparent 60%),
    radial-gradient(55% 50% at 88% 90%, rgb(176 0 32 / 0.12), transparent 62%),
    var(--color-surface);
  border-block: 1px solid var(--color-border);
}
.pricing-card {
  position: relative;
  isolation: isolate;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  text-align: center;

  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.55) 0%, rgb(255 255 255 / 0.22) 100%);
  border: 1px solid rgb(255 255 255 / 0.7);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.85),
    inset 0 -1px 0 rgb(0 21 41 / 0.12),
    0 24px 60px rgb(0 21 41 / 0.18),
    0 4px 10px rgb(0 21 41 / 0.08);
}
.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgb(255 255 255 / 0.55) 0%,
    rgb(255 255 255 / 0) 32%,
    rgb(255 255 255 / 0) 68%,
    rgb(255 255 255 / 0.28) 100%
  );
  mix-blend-mode: overlay;
  opacity: 0.7;
  z-index: 0;
}
.pricing-card > * {
  position: relative;
  z-index: 1;
}

/* Browsers without backdrop-filter — solid fallback */
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .pricing-card {
    background: #fff;
    border-color: var(--color-border);
  }
}
.pricing-head .tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--color-primary-100);
  color: var(--color-primary-600);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 1rem 0 0.25rem;
}
.price .amount {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
}
.price .period {
  color: var(--color-muted);
  font-weight: 500;
}
.features-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.5rem 0;
  text-align: left;
}
.features-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--color-text);
}
.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.fineprint {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
}

.pricing-includes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  padding: 0.85rem 1.25rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.pricing-includes-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.pricing-includes-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--color-text);
}
.pricing-includes-list li {
  position: relative;
  padding-left: 1.15rem;
}
.pricing-includes-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}

.pricing-tier {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-lg);
  text-align: left;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.55) 0%, rgb(255 255 255 / 0.22) 100%);
  border: 1px solid rgb(255 255 255 / 0.7);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.85),
    inset 0 -1px 0 rgb(0 21 41 / 0.12),
    0 18px 44px rgb(0 21 41 / 0.14),
    0 4px 10px rgb(0 21 41 / 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-tier::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    160deg,
    rgb(255 255 255 / 0.55) 0%,
    rgb(255 255 255 / 0) 32%,
    rgb(255 255 255 / 0) 68%,
    rgb(255 255 255 / 0.28) 100%
  );
  mix-blend-mode: overlay;
  opacity: 0.7;
  z-index: 0;
}
.pricing-tier > * {
  position: relative;
  z-index: 1;
}
.pricing-tier:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.85),
    inset 0 -1px 0 rgb(0 21 41 / 0.12),
    0 24px 52px rgb(0 21 41 / 0.18),
    0 6px 14px rgb(0 21 41 / 0.08);
}

.pricing-tier--featured {
  border-color: rgb(22 54 84 / 0.22);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.85),
    inset 0 -1px 0 rgb(0 21 41 / 0.12),
    0 22px 50px rgb(22 54 84 / 0.16),
    0 6px 14px rgb(0 21 41 / 0.08);
  transform: translateY(-4px);
}
.pricing-tier--featured:hover {
  transform: translateY(-7px);
}

.pricing-tier--founding {
  border-color: rgb(176 0 32 / 0.28);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.85),
    inset 0 -1px 0 rgb(0 21 41 / 0.12),
    0 22px 50px rgb(176 0 32 / 0.1),
    0 6px 14px rgb(0 21 41 / 0.08);
}

.pricing-tier--featured.pricing-tier--founding {
  transform: translateY(-4px);
}
.pricing-tier--featured.pricing-tier--founding:hover {
  transform: translateY(-7px);
}

.pricing-ribbon {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-ink-2);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgb(0 21 41 / 0.2);
}

.pricing-tier-head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.pricing-tier-head .price {
  margin: 0.35rem 0 0.5rem;
}
.pricing-tier-desc {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.pricing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.pricing-badge {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}
.pricing-badge--accent {
  color: var(--color-primary-600);
  background: var(--color-primary-100);
  border-color: rgb(176 0 32 / 0.18);
}

.pricing-callout {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  min-height: 5.75rem;
  margin: 0.85rem 0 0.25rem;
  padding: 0.75rem 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
}
.pricing-callout-icon {
  flex-shrink: 0;
  align-self: stretch;
  width: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  color: var(--color-ink-2);
  font-size: 1.05rem;
}
.pricing-callout-icon--accent {
  background: rgb(176 0 32 / 0.12);
  color: var(--color-primary);
}
.pricing-callout-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.pricing-callout p {
  margin: 0;
}
.pricing-callout p + p {
  margin-top: 0.25rem;
}
.pricing-callout--accent {
  background: var(--color-primary-100);
  border-color: rgb(176 0 32 / 0.15);
}

.pricing-tier .features-list {
  flex: 1;
  margin: 1rem 0 0.85rem;
  font-size: 0.9rem;
}
.pricing-tier-footnote {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-muted);
}
.pricing-tier-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.pricing-tier-cta.pricing-tier-cta--white {
  color: var(--color-text);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.96) 0%, rgb(255 255 255 / 0.72) 52%, rgb(233 238 245 / 0.92) 100%);
  border-color: rgb(176 188 203 / 0.7);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 1),
    inset 0 -2px 0 rgb(0 21 41 / 0.14),
    inset 0 -10px 18px rgb(0 21 41 / 0.06),
    0 12px 26px rgb(0 21 41 / 0.14),
    0 3px 7px rgb(0 21 41 / 0.1);
}
.pricing-tier-cta.pricing-tier-cta--white:hover,
.pricing-tier-cta.pricing-tier-cta--white:focus-visible {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 1) 0%, rgb(255 255 255 / 0.78) 52%, rgb(226 234 244 / 0.96) 100%);
  border-color: rgb(148 163 184 / 0.9);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 1),
    inset 0 -2px 0 rgb(0 21 41 / 0.18),
    inset 0 -12px 20px rgb(0 21 41 / 0.08),
    0 16px 34px rgb(0 21 41 / 0.18),
    0 4px 9px rgb(0 21 41 / 0.12);
}

/* Pro Automation CTA — same glass/gradient/hover treatment as .btn-primary, blue instead of red */
.pricing-tier-cta.pricing-tier-cta--blue {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.22) 0%, rgb(255 255 255 / 0) 55%),
    linear-gradient(180deg, #1665e0 0%, #0b52c7 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.55),
    inset 0 -1px 0 rgb(0 0 0 / 0.22),
    0 10px 22px rgb(0 21 41 / 0.16),
    0 2px 5px rgb(0 21 41 / 0.1),
    0 6px 14px rgb(11 82 199 / 0.18);
}
.pricing-tier-cta.pricing-tier-cta--blue:hover,
.pricing-tier-cta.pricing-tier-cta--blue:focus-visible {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.3) 0%, rgb(255 255 255 / 0) 55%),
    linear-gradient(180deg, #2c76e8 0%, #0d5cd6 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.65),
    inset 0 -1px 0 rgb(0 0 0 / 0.24),
    0 14px 30px rgb(0 21 41 / 0.2),
    0 3px 7px rgb(0 21 41 / 0.12),
    0 8px 18px rgb(11 82 199 / 0.28);
}

.features-list--accent li::before {
  background: var(--color-primary);
}

.pricing-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.pricing-note {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-muted);
}
.pricing-note-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-ink-2);
  font-size: 0.95rem;
}
.pricing-note-icon--accent {
  background: var(--color-primary-100);
  border-color: rgb(176 0 32 / 0.15);
  color: var(--color-primary);
}
.pricing-note-body {
  flex: 1;
  min-width: 0;
}
.pricing-note p {
  margin: 0;
}
.pricing-note strong {
  color: var(--color-text);
}

@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .pricing-tier {
    background: #fff;
    border-color: var(--color-border);
  }
}

/* -------------------- Booking qualifier note -------------------- */
.booking-qualifier {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 28rem;
}
.booking-qualifier strong {
  display: block;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
}
.booking-qualifier--on-dark {
  color: rgb(255 255 255 / 0.72);
}
.booking-qualifier--on-dark strong {
  color: #fff;
}

/* -------------------- Compare -------------------- */
.compare-anchor {
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-muted);
  margin: -0.5rem 0 clamp(1.5rem, 3vw, 2rem);
  padding: 0.7rem 1.2rem;
  background: var(--color-surface-2);
  border-radius: 999px;
  display: inline-block;
  width: auto;
}
.section-compare .section-head + .compare-anchor {
  display: block;
  max-width: max-content;
  margin-inline: auto;
}
.compare-anchor strong {
  color: var(--color-text);
  font-weight: 700;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.compare-card {
  position: relative;
  padding: 1.4rem 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.compare-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.compare-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.6rem;
  width: max-content;
}

.compare-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}
.compare-card ul {
  display: grid;
  gap: 0.4rem;
  margin: 0.65rem 0 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.compare-card .total {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-muted);
}
.compare-card .total strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
}

/* Highlighted GuildUSA card — elevated and prominent */
.compare-card.highlight {
  background: linear-gradient(160deg, var(--color-ink), var(--color-ink-2));
  color: #fff;
  border-color: transparent;
  box-shadow:
    0 18px 44px rgb(0 21 41 / 0.22),
    0 4px 12px rgb(0 21 41 / 0.1);
  transform: translateY(-6px);
  z-index: 1;
}
.compare-card.highlight:hover {
  transform: translateY(-9px);
  box-shadow:
    0 24px 52px rgb(0 21 41 / 0.28),
    0 6px 14px rgb(0 21 41 / 0.12);
}
.compare-card.highlight h3 {
  font-size: 1.2rem;
  color: #fff;
}
.compare-card.highlight .total {
  border-color: rgb(255 255 255 / 0.15);
}
.compare-card.highlight .total strong {
  color: #fff;
  font-size: 1.6rem;
}
.compare-card.highlight ul,
.compare-card.highlight .muted,
.compare-card.highlight .total {
  color: rgb(255 255 255 / 0.75);
}

.compare-ribbon {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-primary);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.6rem;
  width: max-content;
  box-shadow: 0 2px 8px rgb(176 0 32 / 0.25);
}

.compare-savings {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.01em;
}

.compare-footnote {
  padding: 0.85rem 1.25rem;
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}
.compare-footnote .fineprint {
  margin: 0;
}

/* -------------------- Testimonials -------------------- */
.section-testimonials {
  background: #fff;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.testimonial {
  margin: 0;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.testimonial blockquote {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  color: var(--color-text);
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.testimonial figcaption strong {
  color: var(--color-text);
}

/* -------------------- CTA -------------------- */
.section-cta {
  background:
    radial-gradient(50% 55% at 100% 0%, rgb(176 0 32 / 0.14), transparent 58%),
    radial-gradient(50% 55% at 0% 100%, rgb(22 54 84 / 0.35), transparent 58%),
    linear-gradient(160deg, var(--color-ink), var(--color-ink-2));
  color: #fff;
  text-align: center;
}
.section-cta h2 {
  color: #fff;
}
.section-cta p {
  color: rgb(255 255 255 / 0.78);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}
.cta-booking {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.cta-booking-btn {
  min-width: 16rem;
  font-size: 1.05rem;
}
.cta-booking .tel-consent-note.fineprint {
  text-align: center;
  max-width: 34rem;
  margin: 0;
}
/* ActiveCampaign form integration — styled for dark CTA section */
.ac-form-wrap {
  max-width: 460px;
  margin: 0 auto;
}
#_form_1_ {
  font-size: 14px;
  line-height: 1.6;
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none;
  color: #fff;
  max-width: 100%;
}
#_form_1_ ._form-content { display: flex; flex-wrap: wrap; gap: 0.6rem; }
#_form_1_ ._form_element { flex: 1 1 100%; margin: 0; }
#_form_1_ ._form-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: rgb(255 255 255 / 0.85);
}
#_form_1_ .field-required { color: #ff6b7a; }
#_form_1_ input[type="text"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition), background var(--transition);
}
#_form_1_ input[type="text"]::placeholder { color: rgb(255 255 255 / 0.45); }
#_form_1_ input[type="text"]:focus {
  border-color: var(--color-primary);
  background: rgb(255 255 255 / 0.12);
}
#_form_1_ ._button-wrapper { flex: 1 1 100%; margin-top: 0.3rem; }
#_form_1_ ._submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.34);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.22) 0%, rgb(255 255 255 / 0) 55%),
    linear-gradient(180deg, #c4002a 0%, #8c0019 100%) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.55),
    0 10px 22px rgb(0 21 41 / 0.16),
    0 6px 14px rgb(176 0 32 / 0.18);
}
#_form_1_ ._submit:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.3) 0%, rgb(255 255 255 / 0) 55%),
    linear-gradient(180deg, #d11030 0%, #9b001c 100%) !important;
}
#_form_1_ ._submit:disabled { cursor: not-allowed; opacity: 0.5; }
#_form_1_ ._submit.processing { position: relative; }
#_form_1_ ._submit.processing::before {
  content: "";
  width: 1em; height: 1em;
  position: absolute; z-index: 1;
  top: 50%; left: 50%;
  border: double 3px transparent;
  border-radius: 50%;
  background-image: linear-gradient(#8c0019, #8c0019), conic-gradient(#8c0019, #ffffff);
  background-origin: border-box;
  background-clip: content-box, border-box;
  animation: _ac_spin 1200ms ease 0s infinite normal none running;
}
#_form_1_ ._submit.processing::after {
  content: ""; position: absolute; inset: 0;
}
@keyframes _ac_spin {
  0% { transform: translate(-50%, -50%) rotate(90deg); }
  100% { transform: translate(-50%, -50%) rotate(450deg); }
}
#_form_1_ ._form-thank-you {
  text-align: center;
  font-size: 1.05rem;
  color: #b8d4c9;
  padding: 1rem 0;
}
#_form_1_ ._form-branding { display: none; }
#_form_1_ ._error {
  display: block;
  position: absolute;
  font-size: 13px;
  z-index: 10;
}
#_form_1_ ._error._above { padding-bottom: 4px; bottom: 39px; right: 0; }
#_form_1_ ._error._below { padding-top: 8px; top: 100%; right: 0; }
#_form_1_ ._error-arrow { position: absolute; width: 0; height: 0; }
#_form_1_ ._error._above ._error-arrow { bottom: -4px; right: 15px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid #FFDDDD; }
#_form_1_ ._error._below ._error-arrow { top: 0; right: 15px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid #FFDDDD; }
#_form_1_ ._error-inner {
  padding: 10px 12px 10px 34px;
  background: #FFDDDD;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
}
#_form_1_ ._show_be_error { min-width: 100%; }
#_form_1_ ._error-inner._form_error { margin-bottom: 5px; text-align: left; }
#_form_1_ input[type="text"]._has_error { border-color: #ff6b7a; }
#_form_1_ ._clear-element { clear: left; }

/* Success modal */
.ac-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 21 41 / 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 1;
  transition: opacity 280ms ease;
}
.ac-modal-overlay[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}
.ac-modal {
  position: relative;
  max-width: 420px;
  width: calc(100% - 2rem);
  padding: 2.5rem 2rem 2rem;
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgb(0 21 41 / 0.28);
  transform: scale(1);
  transition: transform 280ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.ac-modal-overlay[aria-hidden="true"] .ac-modal {
  transform: scale(0.92);
}
.ac-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  color: var(--color-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: background var(--transition);
}
.ac-modal-close:hover { background: var(--color-surface); }
.ac-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgb(74 222 128 / 0.35);
}
.ac-modal h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}
.ac-modal p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--color-ink);
  color: rgb(255 255 255 / 0.78);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.site-footer ul {
  display: grid;
  gap: 0.4rem;
}
.site-footer a {
  color: rgb(255 255 255 / 0.7);
  font-size: 0.95rem;
}
.site-footer a:hover {
  color: #fff;
}
.social {
  display: flex !important;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.social a {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.08);
  font-size: 0.85rem;
}
.social a:hover {
  background: rgb(255 255 255 / 0.12);
}
.footer-bottom {
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgb(255 255 255 / 0.5);
}

/* -------------------- Reveal animation -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .mini-card:hover,
  .compare-card:hover {
    transform: none;
  }
}

/* Short viewports: keep full hero (logo → stats) on one screen when possible */
@media (max-height: 780px) {
  .hero {
    padding: 0.65rem 0 clamp(1rem, 2.5vh, 1.6rem);
  }
  .hero-logo {
    margin-bottom: 0.35rem;
  }
  .hero-logo img {
    width: clamp(3rem, 7vw, 4.25rem);
    max-width: 4.25rem;
  }
  .hero-stats {
    margin-top: 1rem;
    padding-top: 0.85rem;
    gap: 0.65rem;
  }
}

/* -------------------- Responsive -------------------- */
@media (max-width: 960px) {
  .intro-layout {
    grid-template-columns: 1fr;
    row-gap: clamp(1rem, 2vw, 1.5rem);
  }

  .intro-layout-text,
  .intro-video-wrap {
    grid-column: 1;
  }

  .intro-video-wrap {
    margin-top: 0;
    order: -1;
  }
  .intro-layout-text {
    order: 0;
  }

  .grid-2,
  .feature,
  .feature-alt {
    grid-template-columns: 1fr;
  }
  .feature-alt .feature-media {
    order: -1;
  }
  .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compare-card.highlight {
    grid-column: 1 / -1;
    order: -1;
    max-width: 480px;
    margin-inline: auto;
    width: 100%;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .pricing-tier--featured {
    transform: none;
  }
  .pricing-tier--featured:hover {
    transform: translateY(-3px);
  }
  .pricing-notes {
    grid-template-columns: 1fr;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .primary-nav,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-header.is-open .primary-nav,
  .site-header.is-open .nav-cta {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .site-header.is-open .primary-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
  .site-header.is-open .nav-cta .btn {
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .compare-card.highlight {
    max-width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Grace — placeholder chat widget (Liquid Glass)
   ========================================================= */
.grace {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 100;
  font-family: var(--font-sans);
}

/* ---- Floating bubble ---- */
.grace-bubble {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.34);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.25) 0%, rgb(255 255 255 / 0) 55%),
    linear-gradient(180deg, #c4002a 0%, #8c0019 100%);
  cursor: pointer;
  display: grid;
  place-items: center;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.55),
    inset 0 -1px 0 rgb(0 0 0 / 0.22),
    0 12px 26px rgb(0 21 41 / 0.18),
    0 4px 10px rgb(0 21 41 / 0.08),
    0 6px 18px rgb(176 0 32 / 0.18);
  transition:
    transform 220ms cubic-bezier(0.2, 0.6, 0.2, 1),
    box-shadow 320ms ease,
    opacity 220ms ease;
}
.grace-bubble:hover,
.grace-bubble:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.65),
    inset 0 -1px 0 rgb(0 0 0 / 0.24),
    0 16px 32px rgb(0 21 41 / 0.22),
    0 5px 12px rgb(0 21 41 / 0.1),
    0 8px 22px rgb(176 0 32 / 0.26);
  outline: none;
}
.grace-bubble:active {
  transform: translateY(0) scale(0.98);
}

.grace-bubble-crest {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  filter:
    drop-shadow(0 1px 0 rgb(0 0 0 / 0.35))
    drop-shadow(0 0 6px rgb(255 255 255 / 0.45));
}
.grace-bubble-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Unread dot — appears on load, dismisses on first open */
.grace-bubble-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ff5b6c;
  border: 2px solid #fff;
  z-index: 3;
  box-shadow: 0 0 0 0 rgb(239 68 68 / 0.6);
  animation: grace-dot-pulse 2.2s ease-out infinite;
}
.grace[data-state="opened"] .grace-bubble-dot,
.grace[data-state="dismissed-dot"] .grace-bubble-dot {
  display: none;
}
@keyframes grace-dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgb(239 68 68 / 0.55); }
  70%  { box-shadow: 0 0 0 8px rgb(239 68 68 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(239 68 68 / 0); }
}

/* Breathing pulse rings behind the bubble */
.grace-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgb(176 0 32 / 0.55);
  opacity: 0;
  pointer-events: none;
  animation: grace-pulse 3.2s ease-out infinite;
  z-index: 0;
}
.grace-pulse-2 {
  animation-delay: 1.6s;
  border-color: rgb(59 130 246 / 0.45);
}
@keyframes grace-pulse {
  0%   { transform: scale(0.85); opacity: 0; }
  20%  { opacity: 0.6; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* ---- Teaser pill (slides out from the bubble's side) ---- */
.grace-teaser {
  position: absolute;
  right: 76px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--color-text);
  background: var(--glass-fill);
  border: 1px solid rgb(255 255 255 / 0.7);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.85),
    inset 0 -1px 0 rgb(0 21 41 / 0.12),
    0 12px 28px rgb(0 21 41 / 0.18);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms ease;
}
.grace[data-teaser="open"] .grace-teaser {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* ---- Expanded panel ---- */
.grace-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 120px);
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto auto;

  background: var(--glass-fill);
  border: 1px solid rgb(255 255 255 / 0.7);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.85),
    inset 0 -1px 0 rgb(0 21 41 / 0.12),
    0 24px 60px rgb(0 21 41 / 0.22),
    0 4px 10px rgb(0 21 41 / 0.08);

  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.grace[data-state="opened"] .grace-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.grace-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    rgb(255 255 255 / 0.55) 0%,
    rgb(255 255 255 / 0) 36%,
    rgb(255 255 255 / 0) 64%,
    rgb(255 255 255 / 0.28) 100%
  );
  mix-blend-mode: overlay;
  opacity: 0.6;
  z-index: 0;
}

.grace-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0.9rem 0.9rem 1rem;
  background: linear-gradient(180deg, #001e3a 0%, #001529 100%);
  color: #fff;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.grace-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.18);
  flex: 0 0 38px;
}
.grace-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.grace-id {
  flex: 1;
  min-width: 0;
}
.grace-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.15;
}
.grace-status {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: rgb(255 255 255 / 0.7);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.grace-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 6px rgb(74 222 128 / 0.7);
}
.grace-book-btn {
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.25);
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.grace-book-btn:hover,
.grace-book-btn:focus-visible {
  background: #d11030;
  border-color: rgb(255 255 255 / 0.4);
  transform: translateY(-1px);
  outline: none;
}
.grace-panel--booking .grace-book-btn {
  display: none;
}

.grace-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.06);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition), border-color var(--transition);
}
.grace-close:hover,
.grace-close:focus-visible {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.3);
  outline: none;
}

.grace-panel-body {
  position: relative;
  z-index: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  scrollbar-width: thin;
}

/* Chat messages */
.grace-msg {
  font-size: 0.93rem;
  line-height: 1.45;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  max-width: 88%;
  word-wrap: break-word;
}
.grace-msg-bot {
  align-self: flex-start;
  color: var(--color-text);
  background: rgb(255 255 255 / 0.72);
  border: 1px solid rgb(255 255 255 / 0.85);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    0 2px 6px rgb(0 21 41 / 0.06);
  border-top-left-radius: 4px;
}
.grace-msg-user {
  align-self: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.18) 0%, rgb(255 255 255 / 0) 55%),
    linear-gradient(180deg, #c4002a 0%, #8c0019 100%);
  border: 1px solid rgb(255 255 255 / 0.2);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    0 2px 6px rgb(176 0 32 / 0.12);
  border-top-right-radius: 4px;
}

/* Typing indicator */
.grace-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.85rem 1rem;
  align-self: flex-start;
}
.grace-typing span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-primary);
  opacity: 0.3;
  animation: grace-typing 1.2s ease-in-out infinite;
}
.grace-typing span:nth-child(2) { animation-delay: 0.15s; }
.grace-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes grace-typing {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(-3px); }
}

/* Quick-action buttons inside chat body */
.grace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
}
.grace-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}
.grace-action-primary {
  color: #fff;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.22) 0%, rgb(255 255 255 / 0) 55%),
    linear-gradient(180deg, #c4002a 0%, #8c0019 100%);
  border: 1px solid rgb(255 255 255 / 0.34);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.55),
    0 4px 10px rgb(0 21 41 / 0.1),
    0 3px 8px rgb(176 0 32 / 0.1);
}
.grace-action-primary:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.3) 0%, rgb(255 255 255 / 0) 55%),
    linear-gradient(180deg, #d11030 0%, #9b001c 100%);
}
.grace-action-ghost {
  color: var(--color-text);
  background: rgb(255 255 255 / 0.6);
  border: 1px solid rgb(255 255 255 / 0.85);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.85),
    0 2px 6px rgb(0 21 41 / 0.04);
}
.grace-action-ghost:hover {
  transform: translateY(-1px);
  background: rgb(255 255 255 / 0.75);
}

/* Input bar at the bottom of the panel */
.grace-input-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.45);
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 0.08) 0%,
    rgb(255 255 255 / 0.2) 100%
  );
}
.grace-input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 0.65);
  background: rgb(255 255 255 / 0.55);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.grace-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgb(176 0 32 / 0.18);
}
.grace-input::placeholder {
  color: var(--color-muted);
}
.grace-send {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.22) 0%, rgb(255 255 255 / 0) 55%),
    linear-gradient(180deg, #c4002a 0%, #8c0019 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    0 2px 6px rgb(176 0 32 / 0.12);
  transition: transform var(--transition), background var(--transition);
}
.grace-send:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.3) 0%, rgb(255 255 255 / 0) 55%),
    linear-gradient(180deg, #d11030 0%, #9b001c 100%);
}

/* Booking mode — Calendly takes over the panel */
.grace-panel--booking {
  height: min(700px, calc(100vh - 120px));
}
.grace-panel--booking .grace-panel-body,
.grace-panel--booking .grace-input-wrap {
  display: none;
}

.grace-booking-view {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.grace-booking-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  background: rgb(255 255 255 / 0.45);
  border: none;
  border-bottom: 1px solid rgb(255 255 255 / 0.35);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
}
.grace-booking-back:hover {
  background: rgb(255 255 255 / 0.65);
}

.grace-calendly-host {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.grace-calendly-host .calendly-inline-widget,
.grace-calendly-host iframe {
  width: 100% !important;
  height: 100% !important;
  min-width: unset !important;
}

.grace-panel-foot {
  position: relative;
  z-index: 1;
  padding: 0.6rem 1rem 0.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.5);
  text-align: center;
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 0) 0%,
    rgb(255 255 255 / 0.25) 100%
  );
}
.grace-panel-foot p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
}

/* Mobile — near-full-width panel */
@media (max-width: 480px) {
  .grace-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 120px);
    right: -8px;
  }
  .grace-panel--booking {
    height: calc(100vh - 120px);
  }
  .grace-teaser {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grace-pulse,
  .grace-bubble-dot,
  .grace-typing span {
    animation: none;
  }
  .grace-panel,
  .grace-bubble,
  .grace-teaser,
  .grace-action {
    transition-duration: 0ms;
  }
}

@media print {
  .grace { display: none; }
}
