/* =====================================================================
   BESSt Service - design system
   Extracted from the Claude Design prototype (Bricolage Grotesque,
   navy #182A45 / teal #0E9BB8 on #F2F4F5) and built out for a full site.
   ===================================================================== */

/* ---------- Self-hosted font (Bricolage Grotesque, variable) ----------
   Self-hosted instead of Google Fonts so the site renders in regions where
   fonts.googleapis.com / fonts.gstatic.com are blocked (e.g. mainland China)
   and to avoid a render-blocking third-party request everywhere else. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand palette */
  --bg:            #F2F4F5;
  --surface:       #FFFFFF;
  --ink:           #182A45;   /* navy - headings, dark sections */
  --ink-2:         #5E6B7A;   /* muted body */
  --ink-3:         #8C99A8;   /* light muted / labels */
  --teal:          #0E9BB8;   /* primary accent */
  --teal-bright:   #1FB6D4;   /* highlight accent */
  --teal-soft:     rgba(14, 155, 184, 0.4);

  /* On dark (navy) surfaces */
  --on-dark:       #F2F4F5;
  --on-dark-2:     #AEB9C6;
  --on-dark-3:     #8C99A8;

  /* Lines */
  --border:         rgba(24, 42, 69, 0.14);
  --border-strong:  rgba(24, 42, 69, 0.24);
  --border-teal:    rgba(14, 155, 184, 0.4);
  --border-on-dark: rgba(242, 244, 245, 0.10);

  /* Radii */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(24, 42, 69, 0.12);
  --shadow-card: 0 18px 40px -24px rgba(24, 42, 69, 0.4);
  --shadow-lift: 0 12px 26px rgba(24, 42, 69, 0.20);
  --shadow-teal: 0 18px 50px -30px rgba(14, 155, 184, 0.5);

  /* Layout */
  --maxw: 1140px;
  --gutter: 24px;

  /* Type */
  --font: 'Bricolage Grotesque', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: rgba(14, 155, 184, 0.22); }

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 12px; }

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

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--surface { background: var(--surface); }
.section--bordered { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--border-top { border-top: 1px solid var(--border); }

.stack > * + * { margin-top: var(--stack, 18px); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2-fixed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid--2-fixed { grid-template-columns: 1fr; } }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---------- Typography ---------- */
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

h1, h2, h3, h4 { letter-spacing: -0.04em; line-height: 1.05; font-weight: 800; overflow-wrap: break-word; }

.h-display { font-size: clamp(44px, 7vw, 80px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.97; }
.h-1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.02; }
.h-2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.05; }
.h-3 { font-size: 23px; font-weight: 700; letter-spacing: -0.035em; }
.h-4 { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }

.lede {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-2);
}

p { color: var(--ink-2); }
.measure { max-width: 32em; }
.measure-wide { max-width: 44em; }

.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.teal { color: var(--teal); }
.on-dark-muted { color: var(--on-dark-2); }

.section-head { max-width: 36em; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head .kicker { display: block; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 17px; }

/* Legal pages (privacy, etc.): readable long-form prose + tidy bullet lists. */
.legal-prose { max-width: 44em; }
.legal-prose a { color: var(--teal); }
.legal-list { list-style: none; padding: 0; margin: 0; }
.legal-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.6;
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.legal-list li:last-child { margin-bottom: 0; }

/* ---------- Wordmark ---------- */
.wordmark {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}
.wordmark .t { color: var(--teal); }
.wordmark--lg { font-size: 24px; }
.wordmark--xl { font-size: 30px; }
.section--dark .wordmark, .footer .wordmark { color: var(--on-dark); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--r-md);
  padding: 14px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.btn--teal { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--teal:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(14,155,184,0.3); }
.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--teal); }
.section--dark .btn--ghost { border-color: var(--border-on-dark); color: var(--on-dark); }
.section--dark .btn--ghost:hover { border-color: var(--teal); }

/* Underline-on-hover text link */
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(var(--teal), var(--teal)) no-repeat;
  background-size: 0% 1.5px;
  background-position: 0 100%;
  transition: background-size 220ms var(--ease), color 220ms var(--ease);
}
.link-underline:hover { background-size: 100% 1.5px; }
.link-underline .arrow { color: var(--teal); }
.section--dark .link-underline,
.footer .link-underline { color: var(--on-dark); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(242, 244, 245, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  background: linear-gradient(var(--teal), var(--teal)) no-repeat;
  background-size: 0% 1.5px;
  background-position: 0 100%;
  transition: background-size 220ms var(--ease), color 220ms var(--ease);
}
.nav__link:hover { background-size: 100% 1.5px; color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); background-size: 100% 1.5px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 220ms var(--ease), opacity 180ms var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 73px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 20px;
    max-height: calc(100vh - 73px);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 200ms var(--ease), opacity 200ms var(--ease);
    box-shadow: 0 20px 40px -28px rgba(24,42,69,0.5);
  }
  .nav__links[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link {
    padding: 14px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--border);
    background-size: 0 0;
  }
  .nav__link:last-child { border-bottom: none; }
  .nav__cta { margin-top: 14px; justify-content: center; }
}

/* Scroll progress rail */
.scroll-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(24, 42, 69, 0.06);
  z-index: 100;
}
.scroll-rail__fill {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--teal);
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(56px, 9vw, 104px) var(--gutter) clamp(48px, 7vw, 80px);
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 36px; max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* Scroll cue: an animated "mouse" that invites the visitor to scroll down
   from the hero. Clickable (jumps to the first content section) and, under
   prefers-reduced-motion, sits still with the wheel visible. */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: max-content;
  margin: clamp(32px, 5vw, 60px) auto 0;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 200ms var(--ease), transform 200ms var(--ease);
}
.scroll-cue:hover { color: var(--teal); transform: translateY(2px); }
.scroll-cue__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-cue__mouse {
  width: 25px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-cue__wheel {
  width: 3.5px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  animation: besstScrollWheel 1.7s var(--ease) infinite;
}
@keyframes besstScrollWheel {
  0%   { opacity: 0; transform: translateY(-5px); }
  30%  { opacity: 1; }
  70%  { opacity: 0; transform: translateY(9px); }
  100% { opacity: 0; transform: translateY(9px); }
}

.page-hero { padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(36px, 5vw, 56px); }
.page-hero .h-display { margin-bottom: 22px; }
.page-hero .lede { max-width: 36em; }

/* ---------- Energy-flow signature ---------- */
.flowfield {
  position: relative;
  width: clamp(300px, 36vw, 500px);
  aspect-ratio: 1;
  /* Large but fully contained on the right. */
  margin-inline: auto;
  overflow: visible;
}
.flowfield__canvas,
.flowfield__static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* The canvas paints on top once the live field boots; the SVG is the
   no-JS / reduced-motion fallback beneath it. */
.flowfield__canvas { opacity: 0; transition: opacity 600ms var(--ease); }
.flowfield--live .flowfield__canvas { opacity: 1; }
.flowfield--live .flowfield__static { opacity: 0; }
.flowfield__static { transition: opacity 600ms var(--ease); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 34px);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.card--wide { padding: clamp(26px, 3.4vw, 40px); }
.card--teal { border-color: var(--border-teal); }
.card h3 { color: var(--ink); margin-bottom: 12px; }
.card p { font-size: 16px; line-height: 1.55; }
.card--dark { background: var(--ink); color: var(--on-dark); border: none; }
.card--dark h3 { color: var(--on-dark); }
.card--dark p { color: var(--on-dark-2); }

.card--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px 48px;
  align-items: start;
}
.card--split.is-centered { align-items: center; }

/* ---------- Feature / check lists ---------- */
.checklist { display: flex; flex-direction: column; gap: 13px; }
.checklist li {
  display: flex;
  gap: 11px;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink);
}
.checklist li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Tiers ---------- */
.tier {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3.4vw, 38px);
  background: var(--bg);
}
.tier--featured {
  border: 1.5px solid var(--teal);
  background: var(--surface);
  box-shadow: var(--shadow-teal);
}
.tier__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 6px;
}
.tier__head h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; }
.tier__note { font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.tier__desc { margin-bottom: 24px; font-size: 15px; }

.badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--teal);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* ---------- Comparison table ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}
.compare th, .compare td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare thead th {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.compare thead th:not(:first-child) { text-align: center; }
.compare td:not(:first-child) { text-align: center; }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare .yes { color: var(--teal); font-weight: 700; }
.compare .no { color: var(--ink-3); }
.compare__wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }

/* ---------- Audiences (ruled grid) ---------- */
.ruled {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--border);
}
.ruled__cell {
  padding: 28px 24px;
  border-bottom: 1px solid var(--border);
}
.ruled__cell h3 { margin-bottom: 10px; }
.ruled__cell p { font-size: 15.5px; }

/* ---------- Stats ---------- */
.stat__num {
  font-size: clamp(46px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--on-dark);
}
.stat__num .unit { color: var(--teal); }
.stat__label { margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--on-dark-2); }
.section--light .stat__num { color: var(--ink); }
.section--light .stat__label { color: var(--ink-2); }

/* ---------- Process steps ---------- */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding: 28px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.steps .step:last-child { border-bottom: 1px solid var(--border); }
.step__num {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.step__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 40px;
}
.step__body h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.035em; }
.step__body p { font-size: 16px; line-height: 1.55; }

/* ---------- Media / image slots ---------- */
.media {
  display: block;
  width: 100%;
  height: clamp(280px, 32vw, 380px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(31,182,212,0.16), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(24,42,69,0.10), transparent 50%),
    var(--bg);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 24px;
}
.media__placeholder svg { opacity: 0.6; }
figure { margin: 0; }
figcaption {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
figcaption .name { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
figcaption .meta { font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* ---------- Photo rollerdeck (horizontal scroll) ---------- */
.gallery-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  scroll-padding-left: 4px;
  /* A slim, rounded teal scrollbar that reads as a progress indicator. */
  scrollbar-width: thin;
  scrollbar-color: var(--teal) rgba(24, 42, 69, 0.08);
}
.gallery-scroll::-webkit-scrollbar { height: 8px; }
.gallery-scroll::-webkit-scrollbar-track {
  background: rgba(24, 42, 69, 0.08);
  border-radius: var(--r-pill);
}
.gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: var(--r-pill);
  transition: background 200ms var(--ease);
}
.gallery-scroll::-webkit-scrollbar-thumb:hover { background: var(--teal-bright); }
.gallery-scroll > figure {
  flex: 0 0 clamp(280px, 78vw, 560px);
  scroll-snap-align: start;
}
.gallery-scroll > figure .media { height: clamp(260px, 32vw, 380px); }
.gallery-scroll:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

/* ---------- Trust strip ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
}
.trust p { margin: 0; font-size: 15px; font-weight: 500; max-width: 34em; }
.trust__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.trust__logo {
  height: 34px;
  padding-inline: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ---------- Definition / info rows ---------- */
.info-row .label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.info-row .value { font-size: 16px; font-weight: 500; color: var(--ink); }
.info-list { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--border); padding-top: 28px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235E6B7A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,155,184,0.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.field--error input, .field--error select, .field--error textarea { border-color: #C0392B; }
.field__error { font-size: 13px; color: #C0392B; font-weight: 500; min-height: 0; }

.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.4vw, 38px);
}
.section--dark .form-card { background: rgba(255,255,255,0.04); border-color: var(--border-on-dark); }
.section--dark .field input, .section--dark .field select, .section--dark .field textarea { background: rgba(255,255,255,0.06); color: #fff; border-color: var(--border-on-dark); }
.section--dark .field > span { color: var(--on-dark); }

.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 0; }
.form-success__icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 700;
}
[hidden] { display: none !important; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 24px 0;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.accordion__icon { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; background: var(--teal); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.accordion__icon::before { width: 16px; height: 2px; }
.accordion__icon::after { width: 2px; height: 16px; transition: transform 240ms var(--ease); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.accordion__panel { overflow: hidden; height: 0; transition: height 280ms var(--ease); }
.accordion__panel-inner { padding-bottom: 26px; }
.accordion__panel p { font-size: 16px; line-height: 1.6; max-width: 60em; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { font-size: clamp(16px, 2vw, 18px); margin-inline: auto; margin-bottom: 32px; max-width: 34em; }
.section--dark.cta-band p { color: var(--on-dark-2); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px 20px; justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-2); }
.footer__top {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(48px, 6vw, 72px) var(--gutter) clamp(32px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px 48px;
  align-items: start;
}
@media (max-width: 720px) { .footer__top { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.footer p { font-size: 14.5px; line-height: 1.5; max-width: 26em; color: var(--on-dark-2); }
.footer__brand .wordmark { margin-bottom: 14px; display: inline-block; }
.footer__col-title {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  margin-bottom: 14px;
}
.footer__list { display: flex; flex-direction: column; gap: 9px; font-size: 15px; color: var(--on-dark); }
.footer__list a { text-decoration: none; }
.footer__bottom { border-top: 1px solid var(--border-on-dark); }
.footer__bottom-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 20px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--on-dark-3);
}
.footer__bottom-inner a { text-decoration: none; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 480ms var(--ease), transform 480ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Keyframes (from prototype) ---------- */
@keyframes besstWave { from { transform: translateX(0); } to { transform: translateX(-100px); } }
@keyframes besstFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes besstPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.82); } }

/* ---------- Small phones ---------- */
@media (max-width: 520px) {
  :root { --gutter: 18px; }

  /* Make primary actions easy thumb targets: full-width and stacked. */
  .cta-band__actions { flex-direction: column; align-items: stretch; }
  .cta-band__actions .btn { width: 100%; justify-content: center; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
