/* ==========================================================================
   FlovoAI site styles (homepage, Flow Score, privacy)
   "Canvas" design: a calm, Apple-style page on a dotted design-tool canvas.
   Selection frames, a named cursor and app windows carry the theme.
   Principles applied:
   - Typography: system display face on Apple devices, Inter elsewhere,
     tight tracking at large sizes, rem units so text-size settings scale it
   - Materials: translucent navigation that content scrolls beneath
   - Response: buttons react on press, instantly
   - Motion: smooth, critically damped (no overshoot), transform + opacity only
   - Accessibility: reduced motion, reduced transparency, increased contrast
   ========================================================================== */

:root {
  /* Brand */
  --navy: #0F2A5F;
  --blue: #3B6EE0;
  --blue-deep: #2A57C4;
  --blue-soft: #EBF1FD;
  --sky: #8FB1F7;
  /* Flow Score accent: deep enough for white text to pass contrast (AA) */
  --green: #15803D;
  --green-deep: #116632;
  --green-soft: #E7F6EC;
  --red: #E5484D;
  --red-soft: #FDECEC;

  /* Neutrals */
  --bg: #FBFBFD;
  --tint: #F4F6FA;
  --ink: #111827;
  --text: #1E2B44;
  --text-soft: #5B6780;
  --faint: #98A2B3;
  --line: #E6EAF2;
  --line-strong: #C9D3E6;
  --dot: #D7DCE6;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, 'Segoe UI', sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, 'Segoe UI', sans-serif;

  /* Shape and depth */
  --r-lg: 1.5rem;
  --r-md: 1.125rem;
  --r-sm: 0.75rem;
  --shadow-md: 0 0 0 1px rgba(16, 24, 40, .04), 0 2px 6px rgba(16, 24, 40, .04), 0 24px 48px -18px rgba(16, 24, 40, .16);
  --shadow-lg: 0 0 0 1px rgba(16, 24, 40, .06), 0 40px 80px -24px rgba(15, 42, 95, .28);

  /* Motion: approximates a critically damped spring (smooth settle, no bounce) */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 1.75rem); }

/* The design-tool canvas */
.dots { background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px; }
.tinted { background-color: var(--tint); }
.white { background-color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.625rem, 6.4vw, 4.875rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(2.125rem, 4.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: .5rem; }
h4 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.015em; margin-bottom: .5rem; }
h1 em, h2 em { font-style: normal; color: var(--blue); }
.h1-soft { color: #8A93A6; display: inline-block; text-wrap: balance; }
p { text-wrap: pretty; }
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 600; color: var(--blue); margin-bottom: 1.125rem; letter-spacing: 0;
}
.eyebrow::before, .kicker::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }

/* ---------- Canvas pieces ---------- */
/* A word wrapped in a selection box, as if picked in a design tool */
.sel { position: relative; display: inline-block; padding: 0 .1em; color: var(--blue); background: rgba(59, 110, 224, .07); }
.sel::before { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--blue); pointer-events: none; }
.sel > b { position: absolute; width: 10px; height: 10px; background: #fff; border: 1.5px solid var(--blue); }
.sel > b:nth-of-type(1) { left: -5px; top: -5px; } .sel > b:nth-of-type(2) { right: -5px; top: -5px; }
.sel > b:nth-of-type(3) { left: -5px; bottom: -5px; } .sel > b:nth-of-type(4) { right: -5px; bottom: -5px; }

/* A teammate's cursor, drifting gently */
.cursor { position: absolute; right: -4.25rem; bottom: calc(100% - 1.25rem); flex-direction: row; display: flex; gap: 2px; pointer-events: none; animation: drift 6s ease-in-out infinite; }
.cursor span { font: 600 .8125rem/1 var(--font); letter-spacing: 0; background: var(--navy); color: #fff; padding: .375rem .625rem; border-radius: 99px 99px 99px 4px; margin-top: 1rem; white-space: nowrap; }
@keyframes drift { 50% { transform: translate(-10px, -6px); } }

/* A selected frame around a whole card */
.selected { position: relative; }
.selected::before { content: ""; position: absolute; inset: -10px; border: 1.5px solid var(--blue); pointer-events: none; border-radius: 2px; }
.handle { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--blue); z-index: 3; }
.handle.tl { left: -14.5px; top: -14.5px; } .handle.tr { right: -14.5px; top: -14.5px; }
.handle.bl { left: -14.5px; bottom: -14.5px; } .handle.br { right: -14.5px; bottom: -14.5px; }

/* Highlighter */
mark { background: linear-gradient(transparent 10%, rgba(59, 110, 224, .17) 10%, rgba(59, 110, 224, .17) 92%, transparent 92%); color: inherit; padding: 0 2px; }

/* ---------- Navigation: a translucent material that content scrolls beneath ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out);
}
.nav.scrolled { border-bottom-color: rgba(0, 0, 0, .06); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.logo {
  display: block; width: 6.5rem; height: 2rem; background: var(--logo, var(--navy));
  -webkit-mask: url(logo.png) center / contain no-repeat; mask: url(logo.png) center / contain no-repeat;
}
.nav-links { display: flex; align-items: center; gap: .25rem; font-size: .875rem; }
.nav-link {
  color: var(--text-soft); padding: .5rem .875rem; border-radius: 99px;
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
/* Wayfinding: the section you're reading is highlighted */
.nav-link.active { color: var(--ink); background: rgba(15, 42, 95, .06); }
.nav-cta {
  margin-left: .75rem; padding: .5rem 1rem; border-radius: 99px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: .875rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 16px -8px rgba(59, 110, 224, .7);
  transition: background-color .2s var(--ease-out), transform .1s var(--ease-out);
}
.nav-cta:hover { background: var(--blue-deep); }
.nav-cta:active { transform: scale(.96); transition-duration: 0s; }

/* Flow Score: a soft green pill so it stands out, secondary to Book a call */
.nav-score {
  display: inline-flex; align-items: center; gap: .4375rem; margin-left: .5rem;
  padding: .4375rem .875rem .4375rem .625rem; border-radius: 99px;
  background: var(--green-soft); color: var(--green); font-weight: 600; font-size: .875rem;
  box-shadow: inset 0 0 0 1px rgba(21, 128, 61, .22);
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .1s var(--ease-out);
}
.nav-score:hover { background: #D9F0E1; box-shadow: inset 0 0 0 1px rgba(21, 128, 61, .38); }
.nav-score:active { transform: scale(.96); transition-duration: 0s; }
.nav-score[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--green); }
.nav-score-icon { width: 1rem; height: 1rem; transform: rotate(-90deg); }
.nav-score-icon circle { fill: none; stroke-width: 2.4; }
.nav-score-icon .t { stroke: rgba(21, 128, 61, .25); }
.nav-score-icon .f { stroke: currentColor; stroke-linecap: round; stroke-dasharray: 37.7; stroke-dashoffset: 10.5; transition: stroke-dashoffset .5s var(--ease); }
.nav-score:hover .nav-score-icon .f { stroke-dashoffset: 3; }
.nav-score + .nav-cta { margin-left: .5rem; }
@media (max-width: 720px) {
  .nav-links { gap: .375rem; }
  .nav-score { margin-left: 0; padding: .4375rem .75rem .4375rem .5625rem; font-size: .8125rem; }
  .nav-score + .nav-cta { margin-left: 0; padding: .5rem .875rem; font-size: .8125rem; }
}
@media (max-width: 360px) { .nav-score span { display: none; } .nav-score { padding: .5rem; } .logo { width: 5.75rem; } }

/* ---------- Buttons: feedback on press, not on release ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .625rem;
  padding: .8125rem 1.375rem; border-radius: 99px; border: 0;
  font: inherit; font-size: .9375rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .12s var(--ease-out);
}
.btn:active { transform: scale(.97); transition-duration: 0s; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 18px -8px rgba(59, 110, 224, .7); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-green { background: var(--green); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 18px -8px rgba(21, 128, 61, .6); }
.btn-green:hover { background: var(--green-deep); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--line-strong); }
/* The return-key badge, as if the button is waiting for Enter */
.btn-arrow, .kbd { display: inline-grid; place-items: center; width: 1.375rem; height: 1.375rem; border-radius: .375rem; background: rgba(255, 255, 255, .2); font-size: .75rem; transition: transform .3s var(--ease); }
.btn-ghost .btn-arrow { background: var(--tint); }
.btn:hover .btn-arrow { transform: translateX(2px); }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: 2.25rem; }

/* ---------- Sections ---------- */
.sec { position: relative; padding: clamp(5rem, 11vw, 8rem) 0; }
.sec-head { max-width: 46rem; margin: 0 auto; text-align: center; }
.sec-sub { font-size: 1.1875rem; line-height: 1.55; color: var(--text-soft); margin-top: 1.125rem; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero { padding: clamp(4.5rem, 10vw, 7rem) 0 clamp(5rem, 10vw, 7.5rem); text-align: center; overflow: hidden; }
.hero-copy { max-width: 62rem; }
.hero-sub { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--text-soft); max-width: 40rem; margin: 1.75rem auto 0; text-wrap: balance; letter-spacing: -0.01em; }
.hero-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.625rem; margin-top: 1.625rem; font-size: .875rem; color: var(--text-soft); }
.hero-trust li { display: flex; align-items: center; gap: .4375rem; }
.hero-trust li::before {
  content: ""; width: 1rem; height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%2315803D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Result panel */
.hero-card {
  margin: clamp(3.5rem, 7vw, 4.5rem) auto 0; max-width: 54rem;
  background: #fff; border-radius: 1.25rem; box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: minmax(13rem, 1fr) auto; align-items: center; gap: 1.75rem;
  padding: 1.625rem 1.875rem; text-align: left;
}
.hero-card-label { font-size: .75rem; font-weight: 600; color: var(--blue); margin-bottom: .375rem; }
.hero-card-intro p { color: var(--text-soft); font-size: .9375rem; line-height: 1.5; }
.hero-card-figs { display: grid; grid-template-columns: auto auto auto; }
.fig { padding: .125rem 1.75rem; border-left: 1px solid var(--line); }
.fig:last-child { padding-right: 0; }
.fig strong { display: block; font-family: var(--display); color: var(--ink); font-size: 1.625rem; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; white-space: nowrap; }
.fig-main strong { color: var(--blue); }
.fig > span { display: block; font-size: .8125rem; color: var(--text-soft); margin-top: .25rem; }
.n, .stat b { font-variant-numeric: tabular-nums; }

/* ---------- Before and after: a segmented switch ---------- */
.sec-compare { text-align: center; }
.seg { display: inline-flex; background: #E9ECF2; border-radius: .75rem; padding: 3px; margin-top: 2.25rem; position: relative; }
.seg button {
  position: relative; z-index: 2; border: 0; background: none; font: 500 .9375rem var(--font);
  padding: .5625rem 1.5rem; border-radius: .5625rem; cursor: pointer; color: var(--text-soft); transition: color .3s var(--ease-out);
}
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg-thumb { position: absolute; z-index: 1; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); background: #fff; border-radius: .5625rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); transition: transform .5s var(--ease); }
.seg[data-view="after"] .seg-thumb { transform: translateX(100%); }
.panes { margin: 3rem auto 0; max-width: 56rem; display: grid; text-align: left; }
.pane { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s var(--ease); }
.pane[hidden] { display: grid; opacity: 0; transform: scale(.98); filter: blur(4px); pointer-events: none; visibility: hidden; transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s var(--ease), visibility 0s .5s; }
.chat { background: #fff; border-radius: 1.625rem; padding: 1.5rem; box-shadow: var(--shadow-md); }
.chat-head { font-size: .8125rem; color: var(--faint); text-align: center; margin-bottom: 1rem; }
.bub { max-width: 84%; width: fit-content; padding: .5625rem .875rem; border-radius: 1.125rem; font-size: .9375rem; margin: .375rem 0; line-height: 1.35; }
.bub-them { background: #ECEDF1; border-bottom-left-radius: .375rem; }
.bub-me { background: var(--blue); color: #fff; margin-left: auto; border-bottom-right-radius: .375rem; }
.bub-typing { display: flex; gap: 4px; padding: .75rem .875rem; }
.bub-typing i { width: 7px; height: 7px; border-radius: 50%; background: #A3A9B6; animation: typing 1.2s infinite; }
.bub-typing i:nth-child(2) { animation-delay: .15s; } .bub-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-3px); opacity: .5; } }
.checklist { background: #fff; border-radius: 1.625rem; padding: 1.75rem; box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.checklist h3 { font-size: 1.3125rem; margin-bottom: .625rem; }
.checklist ul { flex: 1; }
.checklist li { display: flex; gap: .75rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line); font-size: .96875rem; }
.checklist li:first-child { border-top: 0; }
.tick { width: 1.375rem; height: 1.375rem; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; }
.tick svg { width: .75rem; height: .75rem; }
.tick-bad { background: var(--red); } .tick-good { background: #22A55B; }
.verdict { margin-top: .75rem; font-size: .8125rem; font-weight: 600; padding: .5rem .75rem; border-radius: .625rem; text-align: center; }
.verdict-bad { background: var(--red-soft); color: #B4232A; } .verdict-good { background: var(--green-soft); color: var(--green); }

/* ---------- App window ---------- */
.window { background: #fff; border-radius: .875rem; box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.titlebar { height: 2.5rem; display: flex; align-items: center; gap: .5rem; padding: 0 1rem; background: #F6F7F9; border-bottom: 1px solid var(--line); }
.titlebar i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.titlebar i + i { background: #FEBC2E; } .titlebar i + i + i { background: #28C840; }
.titlebar em { flex: 1; text-align: center; font-size: .8125rem; font-weight: 500; color: var(--faint); font-style: normal; margin-right: 3.25rem; }
.app { display: grid; grid-template-columns: 11.5rem 1fr 19rem; min-height: 26rem; }
.app-side { background: #FAFAFB; border-right: 1px solid var(--line); padding: 1.125rem .75rem; font-size: .875rem; }
.app-side p { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 0 .625rem; margin: .875rem 0 .375rem; }
.app-side p:first-child { margin-top: 0; }
.app-side span { display: flex; justify-content: space-between; padding: .4375rem .625rem; border-radius: .5rem; }
.app-side span.on { background: var(--blue-soft); color: var(--blue-deep); font-weight: 600; }
.app-side small { color: var(--faint); }
.app-main { padding: 1.625rem 1.75rem; min-width: 0; }
.quote-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.quote-head h3 { font-size: 1.125rem; letter-spacing: -0.015em; margin: 0; }
.pill { font-size: .75rem; font-weight: 600; padding: .25rem .625rem; border-radius: 99px; background: var(--blue-soft); color: var(--blue-deep); white-space: nowrap; }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-grey { background: #F2F4F7; color: var(--text-soft); }
.quote-meta { display: flex; gap: 1.375rem; flex-wrap: wrap; margin: .625rem 0 1.125rem; font-size: .8125rem; color: var(--text-soft); }
.quote-meta b { color: var(--text); font-weight: 500; }
.app table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.app th { font-size: .75rem; font-weight: 600; color: var(--faint); text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.app td { padding: .6875rem 0; border-bottom: 1px solid #F1F3F7; }
.app td:not(:first-child), .app th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.quote-total { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; font-size: .875rem; color: var(--text-soft); }
.quote-total b { font-family: var(--display); font-size: 1.375rem; color: var(--ink); letter-spacing: -0.02em; margin-left: .375rem; }
.app-board { border-left: 1px solid var(--line); padding: 1.625rem 1.25rem; background: #FCFCFD; }
.app-board h4 { font-size: .875rem; display: flex; justify-content: space-between; margin-bottom: .875rem; }
.live { color: var(--green); font-size: .75rem; display: flex; align-items: center; gap: .375rem; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #28C840; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(40, 200, 64, .35); } 70%, 100% { box-shadow: 0 0 0 6px rgba(40, 200, 64, 0); } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.kpis div { background: #fff; border: 1px solid var(--line); border-radius: .625rem; padding: .625rem; }
.kpis b { display: block; font-size: 1.0625rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpis small { font-size: .6875rem; color: var(--faint); }
.job { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .8125rem; padding: .625rem 0; border-bottom: 1px solid #F1F3F7; }
.job .pill { font-size: .6875rem; padding: .1875rem .5rem; }

/* ---------- Results: case study ---------- */
.case-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3.5rem; align-items: center; margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.quote-card { background: #fff; border-radius: 1.125rem; padding: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow-md); rotate: -1deg; }
.quote-card blockquote { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.5625rem); line-height: 1.45; letter-spacing: -0.015em; color: var(--ink); font-weight: 500; }
.quote-by { display: flex; align-items: center; gap: .75rem; margin-top: 1.75rem; font-size: .875rem; color: var(--text-soft); }
.quote-by i { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 700; }
.quote-by b { display: block; color: var(--ink); font-weight: 600; }
.stats { display: grid; gap: 1rem; }
.stat { background: #fff; border-radius: 1rem; padding: 1.375rem 1.5rem; box-shadow: 0 0 0 1px var(--line); display: flex; align-items: center; gap: 1.25rem; }
.stat b { font-family: var(--display); font-size: 2.625rem; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--blue); min-width: 7.5rem; }
.stat strong { display: block; color: var(--ink); font-weight: 600; }
.stat div span { color: var(--text-soft); font-size: .875rem; }

/* ---------- Services: an expandable list, like iOS Settings ---------- */
.svc-list { max-width: 50rem; margin: clamp(3rem, 6vw, 4rem) auto 0; background: #fff; border-radius: 1.375rem; box-shadow: var(--shadow-md); overflow: hidden; }
.svc-item { border-top: 1px solid var(--line); }
.svc-item:first-child { border-top: 0; }
.svc-item summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto auto; gap: 1.125rem; align-items: center;
  padding: 1.25rem 1.5rem; -webkit-tap-highlight-color: transparent; transition: background-color .2s var(--ease-out);
}
.svc-item summary::-webkit-details-marker { display: none; }
.svc-item summary:hover { background: #FCFCFD; }
.svc-item summary:focus-visible { outline-offset: -3px; }
.svc-icon { width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: linear-gradient(145deg, var(--sky), var(--blue)); display: grid; place-items: center; color: #fff; }
.svc-icon svg { width: 1.25rem; height: 1.25rem; }
.svc-item h3 { font-size: 1.1875rem; margin: 0; }
.svc-num { display: block; color: var(--faint); font-size: .8125rem; margin-top: .125rem; }
.svc-flow { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 600; }
.svc-flow span { background: var(--blue-soft); color: var(--blue-deep); padding: .375rem .75rem; border-radius: 99px; }
.svc-flow i { color: var(--faint); font-style: normal; }
.svc-chev { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--tint); display: grid; place-items: center; color: var(--text-soft); transition: transform .4s var(--ease), background-color .2s, color .2s; }
.svc-chev svg { width: .75rem; height: .75rem; }
.svc-item[open] .svc-chev { transform: rotate(90deg); background: var(--blue-soft); color: var(--blue); }
.svc-body { padding: 0 1.5rem 1.5rem 5.125rem; color: var(--text-soft); }
.svc-item[open] .svc-body { animation: svcOpen .45s var(--ease); }
.svc-body .svc-flow { display: none; }
@keyframes svcOpen { from { opacity: 0; transform: translateY(-6px); } }

/* How we work: one bar, each step as wide as it takes */
.timeline { max-width: 50rem; margin: 2.25rem auto 0; }
.timeline-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; font-size: .875rem; color: var(--text-soft); margin-bottom: .75rem; }
.timeline-head .kicker { margin: 0; }
.timeline-bar { display: grid; grid-template-columns: 1fr 5fr 3fr; gap: 4px; height: 2.75rem; }
.timeline-bar span { border-radius: .625rem; display: flex; align-items: center; padding: 0 .875rem; font-size: .8125rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; transform-origin: left; transition: transform 1s var(--ease); }
.timeline-bar b { font-weight: 600; }
.timeline-bar i { display: none; font-style: normal; }
.timeline-bar span:nth-child(1) { background: var(--navy); }
.timeline-bar span:nth-child(2) { background: var(--blue); transition-delay: .15s; }
.timeline-bar span:nth-child(3) { background: linear-gradient(90deg, var(--sky), rgba(143, 177, 247, .15)); color: var(--navy); transition-delay: .3s; }
.timeline-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.25rem; }
.timeline-steps li { font-size: .875rem; color: var(--text-soft); }
.timeline-steps h3 { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; margin-bottom: .125rem; }
.timeline-steps h3::before { content: ""; width: .625rem; height: .625rem; border-radius: 3px; background: var(--c); flex: none; }

/* ---------- Flow Score promo ---------- */
.flow-tile { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.flow-copy h2 { text-wrap: balance; }
.flow-copy p { color: var(--text-soft); font-size: 1.1875rem; margin: 1.125rem 0 2rem; max-width: 30rem; }
.score-body { padding: 2.25rem; display: grid; grid-template-columns: auto 1fr; gap: 1.875rem; align-items: center; }
.flow-visual { position: relative; width: 10.5rem; height: 10.5rem; }
.flow-visual svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fv-track { fill: none; stroke: #EEF1F6; stroke-width: 14; }
.fv-fill { fill: none; stroke: url(#fvGrad); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 440; stroke-dashoffset: 123; }
.fv-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.fv-center strong { font-family: var(--display); font-size: 3rem; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); }
.fv-center span { font-size: .75rem; color: var(--faint); margin-top: .25rem; }
.score-bars p { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--text-soft); margin-top: .75rem; }
.score-bars p:first-of-type { margin-top: 0; }
.bar { height: 6px; border-radius: 99px; background: #EEF1F6; margin-top: .375rem; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--blue); transform-origin: left; }
.fv-chip { display: inline-block; margin-bottom: .875rem; font-size: .75rem; font-weight: 600; color: var(--green); background: var(--green-soft); padding: .25rem .625rem; border-radius: 99px; }
/* The ring draws in when the window appears */
.js .flow-window .fv-fill { stroke-dashoffset: 440; }
.js .flow-window .bar i { transform: scaleX(0); }
.flow-window.in-view .fv-fill, .flow-window.revealed .fv-fill, .no-motion .flow-window .fv-fill { stroke-dashoffset: 123; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.flow-window.in-view .bar i, .flow-window.revealed .bar i, .no-motion .flow-window .bar i { transform: none; transition: transform 1.1s var(--ease) .4s; }

/* ---------- Contact: a booking window ---------- */
.book { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: center; }
.book-copy p { color: var(--text-soft); font-size: 1.1875rem; margin: 1rem 0 2rem; max-width: 26rem; }
.book-facts { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.book-facts li { font-size: .8125rem; font-weight: 500; background: #fff; box-shadow: 0 0 0 1px var(--line); padding: .375rem .75rem; border-radius: 99px; }
.cal { padding: 1.5rem 1.75rem 1.75rem; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.125rem; }
.cal-head h3 { font-size: 1.125rem; margin: 0; }
.cal-head span { font-size: .8125rem; color: var(--text-soft); }
.cal-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.cal-day {
  border: 0; font: inherit; background: var(--tint); border-radius: .75rem; padding: .625rem 0; text-align: center; cursor: pointer; color: var(--text);
  -webkit-tap-highlight-color: transparent; transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .12s var(--ease-out);
}
.cal-day small { display: block; font-size: .6875rem; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.cal-day b { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.cal-day:hover { background: #EAEEF5; }
.cal-day[aria-pressed="true"] { background: var(--blue); color: #fff; }
.cal-day[aria-pressed="true"] small { color: rgba(255, 255, 255, .75); }
.cal-day:active { transform: scale(.96); transition-duration: 0s; }
.cal-go { width: 100%; justify-content: center; margin-top: 1rem; }
.cal-foot { margin-top: 1.125rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .8125rem; color: var(--text-soft); flex-wrap: wrap; }
.cal-foot a { color: var(--blue); font-weight: 600; }
/* Without JavaScript there are no days to pick, so the window just links to the booking page */
.cal-days:empty { display: none; }

/* ---------- Footer ---------- */
.footer { padding: 2.25rem 0 2.75rem; border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer .logo { width: 5.75rem; height: 1.75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .875rem; color: var(--text-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-meta { font-size: .8125rem; color: var(--faint); }

/* ==========================================================================
   Motion
   Elements arrive with a short upward settle. Only transform and opacity
   animate, so it stays smooth on any device.
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }

/* Hero entrance on load */
.js .hero-copy > *, .js .hero-card { opacity: 0; transform: translateY(1rem); }
.hero-in .hero-copy > *, .hero-in .hero-card { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform 1s var(--ease); }
.hero-in .hero-copy > :nth-child(2) { transition-delay: .08s; }
.hero-in .hero-copy > :nth-child(3) { transition-delay: .16s; }
.hero-in .hero-copy > :nth-child(4) { transition-delay: .24s; }
.hero-in .hero-copy > :nth-child(5) { transition-delay: .32s; }
.hero-in .hero-card { transition-delay: .4s; }

/* Timeline segments grow in once the bar appears */
.js .timeline-bar span { transform: scaleX(0); }
.js .timeline.drawn .timeline-bar span, .no-motion .timeline-bar span { transform: none; }

/* ==========================================================================
   Accessibility preferences
   ========================================================================== */
/* Reduced motion: no movement, just a short cross-fade so changes still read */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor, .live::before, .bub-typing i { animation: none; }
  .js .reveal, .js .hero-copy > *, .js .hero-card { transform: none !important; }
  .js .reveal, .hero-in .hero-copy > *, .hero-in .hero-card { transition: opacity .25s ease !important; transition-delay: 0s !important; }
  .js .timeline-bar span, .js .flow-window .bar i { transform: none !important; transition: none !important; }
  .svc-item[open] .svc-body { animation: none; }
  .js .flow-window .fv-fill { stroke-dashoffset: 123; transition: none !important; }
  .pane, .pane[hidden], .seg-thumb { transition: none; }
  .pane[hidden] { transform: none; filter: none; }
  .btn-arrow, .btn, .nav-cta, .nav-score, .nav-score-icon .f, .svc-chev, .cal-day { transition: none; }
  .btn:active, .nav-cta:active, .nav-score:active { transform: none; }
}
/* Reduced transparency: solid navigation */
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Increased contrast: defined edges and stronger secondary text */
@media (prefers-contrast: more) {
  :root { --text-soft: #39445A; --faint: #5B6780; --line: #9AA8C0; }
  .svc-list, .stat, .chat, .checklist, .hero-card, .quote-card, .window { box-shadow: 0 0 0 1px var(--navy); }
  .nav { background: #fff; border-bottom: 1px solid var(--navy); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app-side, .app-board { display: none; }
  .hero-card { grid-template-columns: 1fr; padding: 1.5rem; gap: 1.25rem; }
  .hero-card-figs { grid-template-columns: 1fr 1fr; gap: 1.125rem 0; }
  .fig { padding-left: 1.375rem; padding-right: 0; }
  .fig-main { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .fig:nth-child(2) { border-left: 0; padding-left: 0; }
  .pane, .case-grid, .flow-tile, .book { grid-template-columns: 1fr; }
  .book { gap: 2.5rem; text-align: center; }
  .book-copy p { margin-left: auto; margin-right: auto; }
  .book-facts { justify-content: center; }
  .case-grid { gap: 2rem; }
  .quote-card { rotate: none; }
  .flow-tile { gap: 2.5rem; }
  .cursor { display: none; }
  .timeline-steps { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 720px) {
  .nav-link { display: none; }
  .nav-cta { margin-left: 0; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-trust { display: none; }
  .checklist, .chat { padding: 1.5rem; }
  .app-main { padding: 1.25rem; }
  .app table { font-size: .8125rem; }
  .quote-head { flex-wrap: wrap; }
  .score-body { grid-template-columns: 1fr; justify-items: center; padding: 1.75rem; }
  .score-bars { width: 100%; }
  .flow-tile .btn, .book-copy .btn { width: 100%; justify-content: center; }
  .cal { padding: 1.25rem; }
  .cal-days { gap: .375rem; }
  .stat b { font-size: 2.125rem; min-width: 6rem; }
  .fig strong { font-size: 1.5rem; }
  .svc-item summary { grid-template-columns: auto 1fr auto; padding: 1.125rem 1.25rem; gap: .875rem; }
  .svc-item summary .svc-flow { display: none; }
  .svc-body { padding: 0 1.25rem 1.375rem; }
  .svc-body .svc-flow { display: flex; margin-top: 1rem; }
  .timeline-bar span { padding: 0 .625rem; }
  .timeline-bar span:nth-child(1) { justify-content: center; padding: 0; }
  .timeline-bar b { display: none; }
  .timeline-bar i { display: inline; }
}
