/* Tooth Logic — toothlogic.ai */

/* ---------- Fonts: Poppins, self-hosted ---------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-400-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: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-400-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;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/poppins-500-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: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/poppins-500-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;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-600-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: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-600-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;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-700-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: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-700-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 */
  --teal: #20bdc7;          /* accent: icons, highlights, borders */
  --teal-strong: #0a7a82;   /* buttons and links: white text passes 4.5:1 */
  --teal-deep: #0f4e52;
  --ink: #0f2f33;           /* headings */
  --text: #24383b;          /* body */
  --muted: #566b6e;         /* secondary text, 5.6:1 on white */
  --line: #e2ecec;
  --mint-50: #f3fafa;
  --mint-100: #e3f5f6;
  --dark: #0f2f33;

  --container: 1200px;
  --section: clamp(64px, 9vw, 112px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 47, 51, .06), 0 2px 8px rgba(15, 47, 51, .05);
  --shadow-lg: 0 40px 80px -30px rgba(15, 78, 82, .35), 0 0 0 1px rgba(15, 78, 82, .06);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--teal-strong); outline-offset: 3px; border-radius: 4px; }

.gradient-t {
  background: linear-gradient(90deg, #13a6b0 10%, var(--teal-deep) 95%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.gradient-light {
  background: linear-gradient(90deg, #5fe0e8 10%, #c7f6f8 90%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* Section scaffolding */
section { padding-block: var(--section); }
.section-tint { background: var(--mint-50); }
.section-dark {
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(32, 189, 199, .22), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(32, 189, 199, .12), transparent 70%),
    var(--dark);
  color: #d5e6e7;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { margin: 0; }
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-strong);
}
.eyebrow--light { color: #6fe3ea; }

/* Icon tile, shared by the intro and benefits */
.icon-tile {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--mint-100); color: var(--teal-strong);
}
.icon-tile img { width: 26px; height: 26px; object-fit: contain; }
.icon-tile--dark { background: rgba(111, 227, 234, .1); color: #6fe3ea; box-shadow: inset 0 0 0 1px rgba(111, 227, 234, .25); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font: 600 15px/1 "Poppins", sans-serif;
  text-decoration: none;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-primary { background: var(--teal-strong); color: #fff; box-shadow: 0 8px 20px -8px rgba(10, 122, 130, .6); }
.btn-primary:hover { background: #086870; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: #cfe0e1; }
.btn-ghost:hover { border-color: var(--teal-strong); color: var(--teal-strong); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.text-link { display: inline-flex; gap: 6px; font-weight: 600; color: var(--teal-strong); text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(15, 47, 51, .06);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(15, 47, 51, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; position: relative; }
.brand img { width: 131px; }
.site-nav { display: flex; align-items: center; gap: 40px; flex: 1; justify-content: flex-end; }
.site-nav ul { display: flex; gap: 32px; list-style: none; margin: 0 auto; padding: 0; }
.site-nav ul a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text); padding: 8px 0; }
.site-nav ul a:hover { color: var(--teal-strong); }
.header-actions { display: flex; gap: 10px; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before { position: absolute; top: -7px; }
  .nav-toggle-bar::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: -20px; right: -20px;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px 20px 24px; background: #fff; box-shadow: 0 16px 32px rgba(15, 47, 51, .1);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; margin: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .header-actions .btn { flex: 1; min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px);
  text-align: center;
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(32, 189, 199, .18), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--mint-50) 100%);
}
.hero::before {
  /* faint grid, fading out towards the edges */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(15, 78, 82, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 78, 82, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(60% 50% at 50% 20%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 24px; padding: 7px 16px 7px 12px;
  font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
  background: #fff; border: 1px solid #d3e6e7; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: border-color .2s;
}
.hero-badge:hover { border-color: var(--teal); }
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(32, 189, 199, .2); }
.hero h1 { max-width: 900px; margin: 0 auto 20px; }
.hero-lead { max-width: 640px; margin: 0 auto 32px; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- App window chrome (hero video, features stage) ---------- */
.window-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f3f6f6; border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9e1e1; }
.window-bar span { margin-left: 14px; font-size: 12px; color: #566b6e; background: #fff; border-radius: 6px; padding: 2px 12px; }

/* ---------- Hero stage: app window + floating feature chips ---------- */
.hero-stage { position: relative; max-width: 1040px; margin: 56px auto 0; }
.hero-stage::before {
  /* soft teal glow behind the window */
  content: ""; position: absolute; inset: 8% 4% -6%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(32, 189, 199, .35), transparent);
  filter: blur(40px);
}
.window {
  position: relative; z-index: 1;
  border-radius: var(--r-lg); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 255, 255, .6);
}
.window-bar { height: 38px; }
.hero-chips { list-style: none; margin: 0; padding: 0; }
.hero-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 14px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 78, 82, .08);
  box-shadow: 0 18px 40px -16px rgba(15, 78, 82, .4);
  font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap;
  transition: opacity .3s;
}
.hero-chip .icon-tile { width: 34px; height: 34px; border-radius: 10px; }
.hero-chip--1 { top: 22%; left: -64px; }
.hero-chip--2 { bottom: 16%; left: -88px; }
.hero-chip--3 { top: 14%; right: -72px; }
.hero-chip--4 { bottom: 24%; right: -56px; }
.hero-stage:has(.is-playing) .hero-chip { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-chip { animation: float 6s ease-in-out infinite; }
  .hero-chip--2 { animation-delay: -1.5s; }
  .hero-chip--3 { animation-delay: -3s; }
  .hero-chip--4 { animation-delay: -4.5s; }
  @keyframes float { 50% { transform: translateY(-8px); } }
}
@media (max-width: 1180px) { .hero-chips { display: none; } }

/* ---------- Demo video (in the hero) ---------- */
.video { position: relative; margin: 0 auto; max-width: 1040px; aspect-ratio: 929 / 560; overflow: hidden; background: #fff; }
.video img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video--hero { cursor: pointer; max-width: none; scroll-margin-top: 110px; }
.video--hero.is-playing { aspect-ratio: 16 / 9; }
.video--hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 78, 82, 0) 50%, rgba(15, 47, 51, .3)); pointer-events: none; transition: opacity .3s; }
.video--hero:hover::after { opacity: .6; }
.video--hero.is-playing::after { display: none; }
.video-play {
  position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal-strong); color: #fff;
  box-shadow: 0 0 0 12px rgba(32, 189, 199, .25), 0 20px 40px rgba(15, 78, 82, .35);
  transition: transform .2s;
}
.video-play svg { margin-left: 4px; }
.video-play:hover { transform: translate(-50%, -50%) scale(1.06); }
@media (prefers-reduced-motion: no-preference) {
  .video-play::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(32, 189, 199, .5); animation: pulse 2.2s ease-out infinite; }
  @keyframes pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
}

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; align-items: end; }
.intro-grid h2 { margin: 0; }
.intro-lead { margin: 0; font-size: 17px; color: var(--muted); }
.highlights {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.highlight {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 16px; font-weight: 600; color: var(--ink);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.highlight:hover { border-color: #bfe4e6; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(15, 78, 82, .25); }

/* ---------- Key features: scroll story ---------- */
/* Left: the steps. Right: one app screen, pinned while the steps scroll past.
   site.js marks the step in the middle of the screen .is-active and fades
   its screenshot in. */
.features .section-head { margin-bottom: 24px; }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.story-steps { list-style: none; margin: 0; padding: 6vh 0; border-left: 2px solid #d3e6e7; }
.story-step {
  min-height: 19vh; padding: 0 0 0 28px; margin-left: -2px;
  border-left: 2px solid transparent;
  display: flex; flex-direction: column; justify-content: center;
  opacity: .4; transition: opacity .35s, border-color .35s;
}
.story-step.is-active { opacity: 1; border-left-color: var(--teal-strong); }
.story-num { font-size: 13px; font-weight: 600; color: var(--teal-strong); letter-spacing: .08em; margin-bottom: 6px; }
.story-step h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); margin: 0 0 6px; }
.story-step p { font-size: 16px; color: var(--muted); max-width: 360px; margin: 0; }
.story-inline { display: none; }

.story-stage { position: sticky; top: max(96px, calc(50vh - 280px)); align-self: start; }
.story-frame { border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }

.story-screens { position: relative; aspect-ratio: 1440 / 1187; overflow: hidden; background: #f4f4f4; }
.story-screen {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top;
  opacity: 0; transition: opacity .45s ease;
}
.story-screen.is-active { opacity: 1; }
.story-progress { height: 3px; background: #d3e6e7; border-radius: 3px; margin-top: 18px; overflow: hidden; }
.story-progress span { display: block; height: 100%; width: 12.5%; background: var(--teal-strong); transition: width .4s; }

@media (max-width: 880px) {
  .story { display: block; margin-top: 32px; }
  .story-steps { border-left: 0; padding: 0; }
  .story-step { min-height: 0; padding: 0; margin: 0 0 48px; border: 0; opacity: 1; }
  .story-inline { display: block; margin-top: 18px; border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(15, 78, 82, .35); }
  .story-stage { display: none; }
}

/* ---------- Benefits (dark) ---------- */
.benefit-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit {
  padding: 28px 24px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .2s, border-color .2s, transform .2s;
}
.benefit:hover { background: rgba(255, 255, 255, .08); border-color: rgba(111, 227, 234, .4); transform: translateY(-3px); }
.benefit .icon-tile { margin-bottom: 22px; }
.benefit h3 { font-size: 18px; margin: 0 0 6px; }
.benefit p { font-size: 15px; margin: 0; color: #b9d0d2; }

/* ---------- MoU ---------- */
.mou-card {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(135deg, #fff 40%, var(--mint-50));
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.mou-image img { width: 100%; height: 100%; object-fit: cover; }
.mou-body { padding: clamp(32px, 5vw, 64px); align-self: center; }
.mou-body h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.mou-body > p { font-size: 17px; color: var(--muted); }
.mou-logos { display: flex; align-items: center; gap: 16px; margin: 28px 0; color: var(--muted); }
.mou-logos img:first-child { width: 120px; }
.mou-logos img:last-child { width: 100px; }

/* ---------- Testimonials ---------- */
.testimonial-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial {
  display: flex; flex-direction: column;
  padding: 32px 28px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.quote-mark { color: var(--teal); opacity: .5; margin-bottom: 16px; }
.testimonial blockquote { margin: 0 0 28px; font-size: 16px; line-height: 1.7; color: var(--text); flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.testimonial-author .avatar {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 15px; font-weight: 600; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, #13a6b0, var(--teal-deep));
}
img.avatar { object-fit: cover; background: var(--mint-100); box-shadow: 0 0 0 1px #cfe0e1; }
.testimonial-author strong { display: block; font-size: 15px; color: var(--ink); }
.testimonial-author span { display: block; font-size: 14px; color: var(--muted); }

/* ---------- CTA + form ---------- */
.cta {
  color: #d5e6e7;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(32, 189, 199, .35), transparent 65%),
    radial-gradient(50% 70% at 0% 100%, rgba(32, 189, 199, .18), transparent 70%),
    linear-gradient(135deg, var(--teal-deep), var(--dark));
}
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.cta-copy > p { font-size: 17px; max-width: 460px; }
.cta-contact { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-direction: column; gap: 10px; }
.cta-contact p { margin: 0 0 4px; font-weight: 600; color: #fff; }
.cta-contact a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #d5e6e7; min-height: 32px; }
.cta-contact a:hover { color: #fff; }
.cta-contact img { filter: brightness(0) invert(1); opacity: .85; }
.form-card { background: #fff; padding: 16px; border-radius: var(--r-md); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
/* GoHighLevel's resizer can measure the form before its fonts and custom CSS
   load and set the frame too short, which gives the form its own scrollbar.
   These minimums fit the styled form (ghl/demo-form.css); the frame still
   grows past them when error messages appear. */
.form-card iframe { min-height: 526px; }
@media (max-width: 520px) { .form-card iframe { min-height: 500px; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(56px, 7vw, 80px); background: linear-gradient(180deg, #fff 55%, var(--mint-100) 100%); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand p { font-size: 15px; color: var(--muted); max-width: 320px; margin: 18px 0 22px; }
.footer-col h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 6px 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--teal-strong); }
.copyright { font-size: 14px; color: var(--muted); margin: 0; padding: 24px 0 0; }
.footer-wordmark {
  text-align: center; font-weight: 700; margin: 16px 0 -0.18em;
  font-size: clamp(3.5rem, 13vw, 10rem); line-height: 1.1; letter-spacing: -.04em;
  background: linear-gradient(180deg, rgba(15, 78, 82, .16), rgba(15, 78, 82, .04));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- Sticky "Book a live demo" bar (phones and tablets) ---------- */
.mobile-cta { display: none; }
@media (max-width: 880px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px);
    border-top: 1px solid rgba(15, 47, 51, .08);
    box-shadow: 0 -10px 30px -18px rgba(15, 47, 51, .45);
    transform: translateY(110%); visibility: hidden;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility .3s;
  }
  .mobile-cta.is-visible { transform: none; visibility: visible; }
  .mobile-cta .btn { width: 100%; }
  body:has(.mobile-cta) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobile-cta.is-visible ~ .to-top { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .to-top { transition: opacity .2s, visibility .2s, bottom .3s; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; box-shadow: 0 10px 24px -8px rgba(15, 47, 51, .5);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }

/* ---------- Blog post ---------- */
.post-banner {
  background-size: cover; background-position: center right;
  min-height: 300px; display: flex; align-items: center; color: #fff;
}
.post-banner-title { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.4; max-width: 420px; margin: 0; }
.post-body { max-width: 820px; padding: 48px 0 88px; font-size: 16px; }
.post-meta { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.post-body h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.post-body h2 { color: var(--teal-strong); font-size: 1.5rem; margin-top: 1.6em; }
.post-body h3 { color: var(--teal-strong); font-size: 1.2rem; margin-top: 1.4em; }
.post-body h4 { color: var(--teal-strong); font-size: 1rem; margin-top: 1.4em; }
.post-body ul { padding-left: 1.2em; }
.post-body li { margin-bottom: .4em; }
.post-body li strong { color: var(--teal-strong); }
.post-body a { color: var(--teal-strong); text-decoration: underline; text-underline-offset: 3px; }
.post-body > p:nth-of-type(2) strong { color: var(--teal-strong); }

/* ---------- 404 ---------- */
.not-found { padding: 120px 0; }

/* ---------- Small screens ---------- */
@media (max-width: 980px) {
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .intro-grid, .cta-grid, .mou-card { grid-template-columns: 1fr; }
  .intro-grid { gap: 20px; }
  .highlights { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .mou-image { aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero h1 br, .section-head h2 br, .mou-body h2 br { display: none; }
  .section-head { margin-bottom: 36px; }
}
@media (max-width: 600px) {
  .hero-badge { font-size: 13px; gap: 8px; padding: 6px 14px 6px 10px; white-space: nowrap; }
  .hero-badge > span:last-child { display: none; }
  .highlights { grid-template-columns: 1fr 1fr; gap: 10px; }
  .highlight { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; font-size: 15px; line-height: 1.3; }
  .highlight .icon-tile { width: 40px; height: 40px; border-radius: 10px; }
  .benefit-grid { gap: 10px; }
  .benefit { padding: 18px 16px; }
  .benefit .icon-tile { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px; }
  .benefit h3 { font-size: 16px; line-height: 1.3; }
  .benefit p { font-size: 14px; line-height: 1.5; }
  .footer-grid { gap: 28px 20px; }
  /* Testimonials scroll sideways on phones */
  .testimonial-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -20px; padding: 4px 20px 12px; }
  .testimonial { flex: 0 0 86%; scroll-snap-align: center; }
  .hero-actions .btn { width: 100%; }
  .hero-stage { margin-top: 40px; }
  .window { border-radius: 14px; }
  .window-bar { height: 28px; }
  .window-bar span { display: none; }
  .video-play { width: 60px; height: 60px; }
  .form-card { padding: 8px; }
}
/* ---------- Scroll reveal ---------- */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on [data-reveal] { opacity: 1; transform: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
