/* =========================================================
   Leaf marketing site
   Palette & type follow the Leaf HRIS product.
   ========================================================= */

:root {
  --ink: #08170f;
  --forest-950: #0a1c14;
  --forest-900: #0f2a1f;
  --forest-800: #133126;
  --forest-700: #1b4332;
  --forest-600: #2d6a4f;
  --forest-500: #40916c;
  --mint-400: #52b788;
  --mint-300: #74c69d;
  --mint-200: #b7e4c7;
  --mint-100: #e4f3ea;
  --amber-100: #fdf3dc;
  --amber-300: #f3d28a;
  --amber-700: #8c5a00;
  --clay-100: #fbeae6;
  --clay-700: #a83c2a;

  --canvas: #f4f6f0;
  --surface: #ffffff;
  --subtle: #edf2ea;
  --line: #dce4d8;
  --line-strong: #c5d4c2;
  --text: #182921;
  --muted: #56685e;
  --soft: #7b8c82;

  --on-dark: #eef6f0;
  --on-dark-muted: #a9c2b4;
  --line-dark: rgba(255, 255, 255, 0.12);

  /* Colours with a role, used on the light parts of the page. css/theme-dark.css redefines
     these and the neutrals above for the dark theme; the always-dark sections (hero, bespoke,
     price card, footer) use the palette directly and look the same in both themes. */
  color-scheme: light;
  --accent: var(--forest-600);         /* eyebrows, links, highlighted words, small icons */
  --accent-strong: var(--forest-800);  /* figures in the calculator and the phone mockup */
  --accent-deep: var(--forest-900);
  --tint: var(--mint-100);             /* soft green tiles, tags and badges… */
  --tint-text: var(--forest-700);      /* …and the text on them */
  --primary: var(--forest-700);        /* primary buttons, selected tabs and chips */
  --primary-hover: var(--forest-800);
  --field: #fff;                       /* form inputs and chips */
  --field-line-hover: #aebfab;
  --range-fill: var(--forest-600);
  --range-thumb: var(--forest-700);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 10px rgba(15, 42, 31, 0.06);
  --shadow-md: 0 14px 34px rgba(15, 42, 31, 0.1);
  --shadow-lg: 0 30px 70px rgba(15, 42, 31, 0.18);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;

  --header-h: 72px;
  --gutter: 16px;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

main { overflow-x: clip; }

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 em, h2 em { font-style: italic; font-weight: 500; }

.container {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 12px; top: -64px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--mint-300);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--mint-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.8em 1.35em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 0.95rem/1.2 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 10px 24px rgba(27, 67, 50, 0.25); }

.btn-accent { background: var(--mint-300); color: var(--ink); }
.btn-accent:hover { background: var(--mint-200); box-shadow: 0 10px 30px rgba(116, 198, 157, 0.35); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--on-dark);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.55); }

.btn-sm { padding: 0.6em 1.05em; font-size: 0.875rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1rem; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.text-link .icon { width: 1.05em; height: 1.05em; transition: transform 0.18s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--on-dark);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header:not(.is-overlay),
.site-header.is-solid,
.site-header.menu-open {
  background: rgba(10, 28, 20, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}

.header-inner { display: flex; align-items: center; gap: 20px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark {
  display: block;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  /* The faint ring keeps the dark logo tile distinct on the dark header and footer. */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 6px 16px rgba(0, 0, 0, 0.25);
}

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 2px; }
.primary-nav li a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--on-dark-muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.primary-nav li a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.primary-nav .nav-cta-mobile { display: none; }

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

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .menu-close { display: none; }
.menu-toggle[aria-expanded='true'] .menu-open { display: none; }
.menu-toggle[aria-expanded='true'] .menu-close { display: block; }

@media (max-width: 1079px) {
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 24px;
    background: var(--forest-950);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav li a { padding: 13px 14px; font-size: 1.02rem; border-radius: 12px; }
  .primary-nav .nav-cta-mobile { display: flex; margin-top: 14px; }
}

@media (max-width: 380px) {
  .brand-name { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow .icon { width: 16px; height: 16px; }

.display { font-size: clamp(2rem, 4.2vw, 3.15rem); }
.display em { color: var(--accent); }

.lede {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.3vw, 1.125rem);
}

.dark { background: var(--forest-950); color: var(--on-dark); }
.on-dark .eyebrow { color: var(--mint-300); }
.on-dark .lede { color: var(--on-dark-muted); }
.on-dark .display em { color: var(--mint-300); }

.icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--tint-text);
}
.icon-tile .icon { width: 22px; height: 22px; }
.icon-tile-dark { background: rgba(116, 198, 157, 0.14); color: var(--mint-300); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.tag .icon { width: 12px; height: 12px; stroke-width: 2.4; }
.tag-core { background: var(--tint); color: var(--tint-text); }
.tag-custom { background: var(--amber-100); color: var(--amber-700); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(100svh, 960px);
  padding: calc(var(--header-h) + 48px) 0 112px;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
}

/* Footage starts below the fixed header so the app's own toolbar doesn't collide with the site nav. */
.hero-media { position: absolute; inset: var(--header-h) 0 0 0; z-index: -2; }
.hero-media picture { display: contents; }
.hero-media canvas { position: absolute; inset: 0; }
.hero-media img,
.hero-media canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 23, 15, 0.6) 0%, rgba(8, 23, 15, 0.45) 12%, rgba(8, 23, 15, 0) 26%, rgba(8, 23, 15, 0) 66%, rgba(8, 23, 15, 0.94) 100%),
    linear-gradient(90deg, rgba(8, 23, 15, 0.97) 0%, rgba(8, 23, 15, 0.94) 36%, rgba(8, 23, 15, 0.7) 54%, rgba(8, 23, 15, 0.24) 76%, rgba(8, 23, 15, 0.1) 100%);
}

.hero-copy { max-width: 650px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  font-size: 0.875rem;
}
.hero-badge strong { color: var(--mint-300); }

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-300);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(116, 198, 157, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(116, 198, 157, 0); }
  100% { box-shadow: 0 0 0 0 rgba(116, 198, 157, 0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
}
.hero h1 em { color: var(--mint-300); }

.hero-lede {
  margin-top: 24px;
  max-width: 56ch;
  color: #cfe0d6;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  color: #cfe0d6;
  font-size: 0.92rem;
}
.hero-includes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-includes .icon { width: 18px; height: 18px; color: var(--mint-300); stroke-width: 2.4; }

.hero-footage {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.live-tag,
.footage-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 23, 15, 0.6);
  backdrop-filter: blur(8px);
  color: #cfe0d6;
  font-size: 0.8rem;
}
.footage-toggle { cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.footage-toggle:hover { background: rgba(8, 23, 15, 0.85); color: #fff; }
.footage-toggle .icon { width: 14px; height: 14px; }
.footage-toggle span { display: inline-flex; align-items: center; gap: 6px; }
.footage-toggle .when-paused { display: none; }
.footage-toggle[aria-pressed='true'] .when-paused { display: inline-flex; }
.footage-toggle[aria-pressed='true'] .when-playing { display: none; }

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff7a66;
  animation: blink 1.6s ease-in-out infinite;
}
.hero.is-paused .rec-dot { animation: none; opacity: 0.4; }
@keyframes blink { 50% { opacity: 0.25; } }

@media (max-width: 899px) {
  .hero { min-height: auto; padding-bottom: 104px; }
  .hero-media img, .hero-media canvas { object-position: 70% 20%; }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(8, 23, 15, 0.86) 0%, rgba(8, 23, 15, 0.9) 55%, rgba(8, 23, 15, 0.97) 100%);
  }
  .hero-footage { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .footage-toggle, .rec-dot { display: none; }
}

/* ---------- AI ---------- */
.ai-grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 960px) { .ai-grid { grid-template-columns: 1.08fr 0.92fr; gap: 80px; } }

.ai-points { display: grid; gap: 24px; margin-top: 38px; }
.ai-point { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.ai-point h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.ai-point p { margin-top: 4px; color: var(--muted); font-size: 0.97rem; }

.ai-visual { position: relative; width: 100%; max-width: 420px; justify-self: center; }
.ai-visual::before {
  content: '';
  position: absolute;
  inset: -14% -18%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(116, 198, 157, 0.5), rgba(116, 198, 157, 0) 72%);
}
.ai-visual img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-lg); }

.ai-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.ai-float .icon { width: 17px; height: 17px; color: var(--accent); }
/* Positioned over empty areas of the Kara screenshot. */
.ai-float-q { top: 12.5%; left: -9%; }
.ai-float-ok { top: 62.5%; right: -10%; animation-delay: -3s; }
.ai-float-ok .icon { stroke-width: 2.6; }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (max-width: 559px) {
  .ai-float-q { left: -2%; top: 12%; }
  .ai-float-ok { right: -2%; top: 62.5%; }
  .ai-float { font-size: 0.8rem; padding: 8px 12px; }
}

/* ---------- Tour ---------- */
.tour { background: var(--surface); }

.tabs {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 44px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--subtle);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: none;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }

.tab-panel { display: grid; gap: 32px; align-items: center; animation: fade-up 0.45s ease both; }
.tab-panel[hidden] { display: none; }
@media (min-width: 960px) { .tab-panel { grid-template-columns: 330px 1fr; gap: 56px; } }
.tab-copy h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.tab-copy p { margin-top: 14px; color: var(--muted); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--subtle);
}
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #d3dccf; }
.browser-url {
  flex: 1;
  max-width: 320px;
  margin-left: 10px;
  padding: 4px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--soft);
  font-size: 0.76rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser img { width: 100%; aspect-ratio: 1280 / 800; object-fit: cover; }

/* ---------- Modules ---------- */
.modules-layout { display: grid; gap: 28px; }
@media (min-width: 1024px) { .modules-layout { grid-template-columns: 1fr 340px; align-items: start; } }

.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 12px; }

.module {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background-color 0.2s;
}
.module:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.module[aria-pressed='true'] {
  border-color: var(--forest-500);
  background: linear-gradient(180deg, #ffffff, #f2f9f4);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.12);
}
.module.is-custom[aria-pressed='true'] {
  border-color: #d9a944;
  background: linear-gradient(180deg, #ffffff, #fffaf0);
  box-shadow: 0 0 0 3px rgba(217, 169, 68, 0.14);
}
.module.is-core { cursor: default; }
.module.is-core:hover { transform: none; }

.module-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.module-name { font-weight: 700; }
.module-desc { color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
.module .tag { margin-top: 6px; }

.switch {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #cfd8cc;
  transition: background-color 0.2s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s cubic-bezier(0.3, 0.7, 0.4, 1.3);
}
.module[aria-pressed='true'] .switch { background: var(--forest-600); }
.module.is-custom[aria-pressed='true'] .switch { background: #c98f1c; }
.module[aria-pressed='true'] .switch::after { transform: translateX(16px); }

.module-summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 28px;
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 70% at 100% 0%, rgba(116, 198, 157, 0.2), transparent 60%), var(--forest-900);
  box-shadow: var(--shadow-lg);
  color: var(--on-dark);
}
.summary-label {
  color: var(--mint-300);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.summary-count {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1;
}
.summary-count-unit { font-family: var(--font-sans); font-size: 1rem; font-weight: 500; color: var(--on-dark-muted); }
.summary-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; min-height: 30px; }
.summary-chips li {
  padding: 4px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  animation: pop 0.25s ease both;
}
.summary-chips li.is-custom { border-color: rgba(243, 210, 138, 0.45); color: var(--amber-300); }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }

.summary-price { margin-bottom: 22px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.summary-price p:first-child { font-size: 1.05rem; }
.summary-price strong { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; color: #fff; }
.summary-note { margin-top: 6px; color: var(--on-dark-muted); font-size: 0.88rem; }

/* ---------- Bespoke & integrations ---------- */
.bespoke {
  background:
    radial-gradient(60% 50% at 90% 0%, rgba(64, 145, 108, 0.25), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(64, 145, 108, 0.16), transparent 70%),
    var(--forest-950);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
  margin-bottom: clamp(56px, 8vw, 96px);
  counter-reset: none;
}
.step {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  transition: background-color 0.2s, border-color 0.2s;
}
.step:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(116, 198, 157, 0.35); }
.step-num { color: var(--mint-300); font-family: var(--font-serif); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; }
.step h3 { margin-top: 14px; font-size: 1.45rem; }
.step p { margin-top: 8px; color: var(--on-dark-muted); font-size: 0.95rem; }

.integrations { display: grid; gap: 40px; }
@media (min-width: 1024px) { .integrations { grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; } }

.sub-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}
.sub-title .icon { width: 26px; height: 26px; color: var(--mint-300); }
.sub-lede { margin: 12px 0 24px; max-width: 58ch; color: var(--on-dark-muted); }

.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.int {
  padding: 16px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.int b { display: block; color: #fff; font-size: 0.95rem; }
.int span { display: block; margin-top: 4px; color: var(--on-dark-muted); font-size: 0.85rem; }

.api-card {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: #06120c;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.api-head { padding: 26px 26px 0; }
.api-head h3 { margin-top: 16px; font-size: 1.5rem; }
.api-head p { margin-top: 8px; color: var(--on-dark-muted); font-size: 0.95rem; }

.code {
  margin: 22px 0 0;
  padding: 20px 26px 26px;
  overflow-x: auto;
  border-top: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.02);
  color: #cfe0d6;
  font: 500 0.8rem/1.75 var(--font-mono);
  tab-size: 2;
}
.code .k { color: var(--mint-300); font-weight: 700; }
.code .s { color: var(--amber-300); }
.code .c { color: #6f8b7d; }

/* ---------- Apps ---------- */
.apps-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .apps-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }

.platform-list { display: grid; gap: 10px; margin-top: 34px; }
.platform {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.platform:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.platform h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.platform p { margin-top: 2px; color: var(--muted); font-size: 0.93rem; }

.devices { position: relative; padding: 0 0 56px; }
.devices .browser { margin-right: 12%; }

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20em;
  font-size: 10px;
  padding: 0.8em;
  border-radius: 3.2em;
  background: #0b1510;
  box-shadow: 0 40px 80px rgba(15, 42, 31, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 1em;
  aspect-ratio: 9 / 19.5;
  padding: 0.9em 1.1em 1.4em;
  overflow: hidden;
  border-radius: 2.5em;
  background: var(--canvas);
}
.ph-status { display: flex; justify-content: space-between; align-items: center; color: var(--text); font-size: 0.95em; font-weight: 700; }
.ph-notch { width: 6.5em; height: 1.7em; border-radius: 1em; background: #0b1510; }
.ph-status span:last-child { letter-spacing: -0.1em; font-size: 0.7em; }
.ph-top { display: flex; justify-content: space-between; align-items: center; margin-top: 0.4em; }
.ph-brand { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-serif); font-size: 1.5em; font-weight: 600; color: var(--accent-strong); }
.ph-mark { display: block; flex: none; width: 1.4em; height: 1.4em; border-radius: 0.4em; }
.ph-av {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: var(--forest-600);
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
}
.ph-av-me { background: var(--forest-800); }
.ph-greet { font-family: var(--font-serif); font-size: 1.6em; font-weight: 600; line-height: 1.1; color: var(--accent-deep); }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7em; }
.ph-tiles div { padding: 0.9em 1em; border: 1px solid var(--line); border-radius: 1.1em; background: var(--surface); }
.ph-tiles b { display: block; font-family: var(--font-serif); font-size: 2em; line-height: 1; color: var(--accent-strong); }
.ph-tiles small { font-size: 0.5em; }
.ph-tiles span { display: block; margin-top: 0.35em; color: var(--muted); font-size: 0.95em; }
.ph-card { padding: 1em; border: 1px solid var(--line); border-radius: 1.1em; background: var(--surface); }
.ph-card-title { margin-bottom: 0.7em; font-size: 1.05em; font-weight: 700; }
.ph-row { display: flex; align-items: center; gap: 0.8em; padding: 0.55em 0; border-top: 1px solid var(--subtle); font-size: 1em; font-weight: 600; }
.ph-row small { display: block; color: var(--muted); font-size: 0.85em; font-weight: 500; }
.ph-row .ph-av { width: 2.4em; height: 2.4em; font-size: 0.8em; }
.ph-kara {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin-top: auto;
  padding: 1em;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--forest-700), var(--forest-600));
  box-shadow: 0 0.8em 1.6em rgba(27, 67, 50, 0.3);
  color: #fff;
  font-size: 1.05em;
  font-weight: 700;
}
.ph-kara .icon { width: 1.2em; height: 1.2em; }

.device-tags {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 60%;
}
.device-tags span {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--tint-text);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 639px) {
  .phone { font-size: 7px; right: -4px; }
  .devices { padding-bottom: 92px; }
  .devices .browser { margin-right: 0; }
}

/* ---------- Security ---------- */
.security { background: var(--surface); }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.sec-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface), var(--canvas));
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.sec-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.sec-card h3 { margin-top: 18px; font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; letter-spacing: 0; }
.sec-card p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .pricing-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }

.calc {
  display: grid;
  gap: 16px;
  margin-top: 34px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.calc > label { font-weight: 700; }
.calc-row { display: flex; align-items: center; gap: 16px; }
.calc-row .calc-number { width: 104px; flex: none; text-align: center; font-weight: 700; }

input[type='range'] {
  --fill: 5%;
  flex: 1;
  min-width: 0;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--range-fill) var(--fill), var(--subtle) var(--fill));
}
input[type='range']::-moz-range-track { height: 8px; border-radius: 999px; background: var(--subtle); }
input[type='range']::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--range-fill); }
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--range-thumb);
  box-shadow: 0 2px 8px rgba(15, 42, 31, 0.3);
}
input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--range-thumb);
  box-shadow: 0 2px 8px rgba(15, 42, 31, 0.3);
}

.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-out div { padding: 14px 16px; border-radius: 14px; background: var(--subtle); }
.calc-out b { display: block; font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 600; line-height: 1.15; color: var(--accent-strong); }
.calc-out span { color: var(--muted); font-size: 0.82rem; }
.calc-save { margin-top: -4px; color: var(--accent); font-size: 0.9rem; font-weight: 600; }
.calc-save b { color: var(--accent-strong); }

/* Contract term toggle: radios styled as a segmented control (same look as the tour tabs).
   It needs JS to update the prices; without JS the price card note lists the discounts instead. */
.term-toggle { min-width: 0; margin: 0; padding: 0; border: 0; }
html:not(.js) .term-toggle { display: none; }
.term-toggle legend { margin-bottom: 10px; padding: 0; font-weight: 700; }
.term-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--subtle);
}
.term-option { position: relative; display: flex; }
.term-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.term-pill {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 8px;
  padding: 9px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.term-pill:hover { color: var(--text); }
.term-option input:checked + .term-pill { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.term-option input:focus-visible + .term-pill { outline: 3px solid var(--mint-400); outline-offset: 2px; }
.term-save {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--tint-text);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.term-option input:checked + .term-pill .term-save { background: var(--mint-300); color: var(--forest-900); }

.price-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background:
    radial-gradient(110% 70% at 100% 0%, rgba(116, 198, 157, 0.26), transparent 60%),
    var(--forest-900);
  box-shadow: var(--shadow-lg);
  color: var(--on-dark);
}
.price-plan { color: var(--mint-300); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.price { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-top: 14px; }
.price-amount { font-family: var(--font-serif); font-size: clamp(4.2rem, 10vw, 6.4rem); font-weight: 600; line-height: 0.85; letter-spacing: -0.035em; color: #fff; }
.price-unit { padding-bottom: 6px; color: var(--on-dark-muted); font-size: 1.02rem; line-height: 1.3; }
.price-term { margin-top: 16px; color: var(--on-dark-muted); font-size: 0.95rem; }
.price-term s { color: var(--on-dark); }

.check-list { display: grid; gap: 13px; margin: 30px 0 34px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.check-list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--mint-300); stroke-width: 2.4; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 840px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: box-shadow 0.2s; }
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1.04rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { margin-top: 4px; transform: rotate(225deg); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-wrap { padding-top: 0; }
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(44px, 7vw, 88px) clamp(24px, 6vw, 80px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(116, 198, 157, 0.28), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(64, 145, 108, 0.3), transparent 60%),
    var(--forest-900);
  color: var(--on-dark);
  text-align: center;
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 56ch; margin: 18px auto 0; color: var(--on-dark-muted); font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.cta-leaf {
  position: absolute;
  right: -40px;
  bottom: -60px;
  z-index: -1;
  color: rgba(116, 198, 157, 0.1);
}
.cta-leaf .icon { width: 320px; height: 320px; stroke-width: 1; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 32px; background: var(--ink); color: var(--on-dark-muted); font-size: 0.92rem; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand p { max-width: 42ch; margin: 16px 0 20px; }
.footer-heading { margin-bottom: 14px; color: #fff; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer nav a { text-decoration: none; transition: color 0.15s; }
.site-footer nav a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
}

/* Theme switch: System / Light / Dark (see server/theme.js). The footer is dark in both themes. */
.theme-switch { display: flex; align-items: center; gap: 10px; margin: 0; }
.theme-options {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.theme-options button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.theme-options button:hover { color: #fff; }
.theme-options button[aria-pressed='true'] { background: rgba(255, 255, 255, 0.12); color: #fff; }
.theme-options button[aria-pressed='true'] .icon { color: var(--mint-300); }
.theme-options .icon { width: 15px; height: 15px; }

/* Added for a moment while the theme changes, so every colour switches at once
   instead of the elements with colour transitions fading behind the rest. */
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }

/* ---------- Contact page ---------- */
.page-hero {
  padding: calc(var(--header-h) + 64px) 0 136px;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(64, 145, 108, 0.3), transparent 65%),
    var(--forest-950);
  color: var(--on-dark);
}
.page-hero .eyebrow { color: var(--mint-300); }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.025em; }
.page-hero .lede { color: var(--on-dark-muted); }
.page-hero-full { display: flex; align-items: center; min-height: 72vh; padding-bottom: 96px; }

.contact-layout { display: grid; gap: 24px; margin-top: -84px; padding-bottom: clamp(72px, 9vw, 112px); }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 0.78fr 1.22fr; gap: 32px; align-items: start; } }

.contact-aside {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
@media (max-width: 959px) { .contact-aside { order: 2; } }
.aside-title { font-size: 1.5rem; }
.next-steps { display: grid; gap: 18px; margin-top: 20px; }
.next-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.next-steps li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--tint-text);
  font-weight: 700;
  font-size: 0.9rem;
}
.next-steps b { display: block; }
.next-steps p { margin-top: 2px; color: var(--muted); font-size: 0.93rem; }

.aside-price { margin-top: 26px; padding: 20px; border-radius: 16px; background: var(--forest-900); color: var(--on-dark); }
.aside-price-amount { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600; line-height: 1; color: #fff; }
.aside-price-amount span { font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500; color: var(--on-dark-muted); }
.mini-checks { display: grid; gap: 8px; margin-top: 16px; font-size: 0.9rem; }
.mini-checks li { display: flex; align-items: center; gap: 10px; }
.mini-checks .icon { width: 17px; height: 17px; color: var(--mint-300); stroke-width: 2.5; }

.form-card {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.form-card [hidden] { display: none !important; }
.form-title { margin-bottom: 22px; font-size: 1.6rem; }

.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}

.field { min-width: 0; }
.field label,
.field legend { display: block; margin-bottom: 7px; padding: 0; font-size: 0.9rem; font-weight: 600; }
.opt { color: var(--soft); font-weight: 400; }
fieldset.field { margin: 0; border: 0; padding: 0; }

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:hover { border-color: var(--field-line-hover); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.16); }
.input::placeholder { color: #98a89e; }
textarea.input { min-height: 140px; resize: vertical; }
select.input {
  padding-right: 42px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232d6a4f' stroke-width='2.5' 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 14px center;
  cursor: pointer;
}

.field-hint { margin-top: 8px; color: var(--muted); font-size: 0.86rem; }
.field-error { display: none; margin-top: 6px; color: #b23a26; font-size: 0.85rem; font-weight: 500; }
.field.has-error .field-error { display: block; }
.field.has-error .input { border-color: #c0503b; }
.field.has-error .input:focus { box-shadow: 0 0 0 4px rgba(192, 80, 59, 0.15); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--field);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.chip span:hover { border-color: var(--forest-500); }
.chip input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--mint-400); outline-offset: 2px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  display: none;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--clay-100);
  color: var(--clay-700);
  font-size: 0.92rem;
  font-weight: 500;
}
.form-alert.is-visible { display: block; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.form-note { color: var(--soft); font-size: 0.84rem; }
@media (max-width: 559px) { .form-actions .btn { width: 100%; } }

.success { padding: 28px 8px; text-align: center; }
.success:focus { outline: none; }
.success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--tint-text);
  animation: pop 0.4s ease both;
}
.success-icon .icon { width: 32px; height: 32px; stroke-width: 2.4; }
.success h2 { font-size: 1.85rem; }
.success p { max-width: 44ch; margin: 12px auto 24px; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
