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

:root {
  --ink: #131316;
  --body: #3f3f46;
  --muted: #6b6f76;
  --faint: #9a9aa2;
  --paper: #fff;
  --bg: #f7f7f8;
  --line: #e9e9ee;
  --green: #3077b5;
  --green-dark: #225581;
  --green-ink: #fff;
  --green-tint: #eaf0f7;
  --radius: 20px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  /* clip, not hidden: kills sideways panning without creating a scroll
     container - keeps the oversized ticker from shifting the page when
     the contact panel locks/unlocks body scroll */
  overflow-x: clip;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
  line-height: 1.6;
}

::selection {
  background: rgba(48, 119, 181, 0.3);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
}

/* ─── LAYOUT SYSTEM ─── */
.wrap {
  width: min(1360px, 100% - clamp(40px, 8vw, 120px));
  margin-inline: auto;
}

section {
  padding-block: clamp(90px, 9vw, 150px);
}

.sec-h2 {
  font-size: clamp(40px, 5.8vw, 84px);
  letter-spacing: -0.035em;
  margin-bottom: clamp(48px, 5vw, 84px);
  max-width: 20ch;
}

.sec-h2 .dim {
  color: #c0c0c8;
}

/* word-split reveal */
.sec-h2 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.sec-h2 .wi {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 0.055s);
}

.sec-h2.in .wi {
  transform: none;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
}

.btn-green {
  background: var(--green);
  color: var(--green-ink);
}

.btn-green:hover {
  background: var(--green-dark);
  color: #fff;
}

#hero.flooded .btn-green {
  background: #fff;
  color: var(--green);
}

#hero.flooded .btn-green:hover {
  background: var(--ink);
  color: #fff;
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: #38383c;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid #d4d4da;
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-white {
  background: #fff;
  color: var(--ink);
}

.btn-white:hover {
  background: #f0f0f0;
}

/* ─── NAV ─── */
#topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 14px;
  background: transparent;
  transition: box-shadow 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
}

#topnav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-left: 4px;
}

.nav-links {
  display: none;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: none;
}

/* ─── HAMBURGER ─── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.hamburger:hover {
  background: rgba(0, 0, 0, 0.05);
}

.hamburger span {
  display: block;
  width: 19px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── MOBILE MENU ─── */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.35s;
}

#mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.mmenu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 36px;
}

.mmenu-links a {
  font-family: var(--font-display);
  font-size: clamp(32px, 6.5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.15s ease;
}

#mobile-menu.open .mmenu-links a {
  opacity: 1;
  transform: none;
}

#mobile-menu.open .mmenu-links a:nth-child(1) {
  transition-delay: 0.08s;
}

#mobile-menu.open .mmenu-links a:nth-child(2) {
  transition-delay: 0.13s;
}

#mobile-menu.open .mmenu-links a:nth-child(3) {
  transition-delay: 0.18s;
}

#mobile-menu.open .mmenu-links a:nth-child(4) {
  transition-delay: 0.23s;
}

#mobile-menu.open .mmenu-links a:nth-child(5) {
  transition-delay: 0.28s;
}

.mmenu-links a:hover {
  color: var(--green-dark);
}

.mmenu-cta {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease 0.32s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.32s;
}

#mobile-menu.open .mmenu-cta {
  opacity: 1;
  transform: none;
}

body.menu-open {
  overflow: hidden;
}

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 140px 110px;
  overflow: hidden;
  background: var(--bg);
}

.hero-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, #dcdce2 1.2px, transparent 1.2px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 62% 60% at center, black 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at center, black 30%, transparent 72%);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#hero.flooded .hero-dots {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 1.2px, transparent 1.2px);
}

.hero-flood {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: var(--green);
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

#hero.flooded .hero-flood {
  transform: scale(var(--flood-scale, 60));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-h1 {
  font-size: clamp(64px, 13vw, 190px);
  letter-spacing: -0.05em;
  line-height: 0.94;
  transition: color 0.5s ease 0.12s;
}

#hero.flooded .hero-h1 {
  color: #fff;
}

/* strike-through reveal */
.strike-wrap {
  position: relative;
  display: inline-block;
}

.strike {
  position: absolute;
  left: -2%;
  top: 52%;
  width: 0;
  height: 0.085em;
  border-radius: 100px;
  background: var(--green);
  transform: rotate(-2deg);
  transition: width 0.55s cubic-bezier(0.7, 0, 0.3, 1) 0.7s, background 0.5s ease;
  pointer-events: none;
}

#hero.flooded .strike {
  background: var(--ink);
}

#hero.struck .strike {
  width: 104%;
}

.gone-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.25em);
  transition: opacity 0.5s ease 1.15s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.15s;
}

#hero.struck .gone-line {
  opacity: 1;
  transform: none;
}

.gone-dot {
  color: var(--green);
  font-style: normal;
  cursor: pointer;
  transition: color 0.5s ease;
}

#hero.flooded .gone-dot {
  color: var(--ink);
}

.hero-sub {
  max-width: 660px;
  margin-top: 34px;
  font-size: clamp(16.5px, 1.4vw, 19px);
  color: var(--muted);
  transition: color 0.5s ease 0.28s;
}

#hero.flooded .hero-sub {
  color: rgba(255, 255, 255, 0.78);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-alt {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.hero-alt:hover {
  color: var(--ink);
}

#hero.flooded .hero-alt {
  color: rgba(255, 255, 255, 0.7);
}

#hero.flooded .hero-alt:hover {
  color: #fff;
}

/* ─── TICKER ─── */
#ticker {
  background: var(--green);
  transform: rotate(-1.1deg) scale(1.05);
  padding: 18px 0;
  overflow: hidden;
  margin: -32px 0 0;
  position: relative;
  z-index: 2;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  animation: ticker-scroll 26s linear infinite;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  color: var(--green-ink);
  white-space: nowrap;
}

.ticker-track i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% / 3));
  }
}

/* ─── HOW IT WORKS (editorial rows) ─── */
#how {
  padding-bottom: clamp(70px, 7vw, 110px);
}

.how-rows {
  border-top: 1px solid #dcdce2;
}

.hrow {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: clamp(20px, 4vw, 70px);
  align-items: start;
  padding: clamp(34px, 4vw, 56px) 0;
  border-bottom: 1px solid #dcdce2;
  transition: background 0.25s ease;
}

.hnum {
  font-family: var(--font-display);
  font-size: clamp(56px, 6.5vw, 104px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px #c6c6ce;
  transition: -webkit-text-stroke-color 0.3s ease, color 0.3s ease;
}

.hrow:hover .hnum {
  -webkit-text-stroke-color: var(--green-dark);
}

.hrow h3 {
  font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: -0.02em;
  padding-top: 6px;
}

.hrow p {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 56ch;
  padding-top: 10px;
}

/* ─── BENTO ─── */
#build {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bcard {
  grid-column: span 4;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 3vw, 44px);
}

.bicon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--green-tint);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.bicon svg {
  width: 22px;
  height: 22px;
}

.bcard h3 {
  font-size: clamp(23px, 2vw, 28px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.bcard p {
  font-size: 16px;
  color: var(--muted);
  max-width: 52ch;
}

.bcard-wide {
  grid-column: span 8;
  display: flex;
  align-items: stretch;
  gap: clamp(24px, 3vw, 50px);
}

.bcard-wide-text {
  flex: 1;
  min-width: 0;
}

.mini-chart {
  flex: 0 0 clamp(180px, 22%, 260px);
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 8px 4px 2px;
}

.mini-chart .bar {
  flex: 1;
  height: var(--h, 40%);
  background: #e2e2e8;
  border-radius: 8px 8px 4px 4px;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.mini-chart .bar-green {
  background: var(--green);
}

.bcard.in .mini-chart .bar {
  transform: scaleY(1);
}

.bcard.in .mini-chart .bar:nth-child(2) {
  transition-delay: 0.08s;
}

.bcard.in .mini-chart .bar:nth-child(3) {
  transition-delay: 0.16s;
}

.bcard.in .mini-chart .bar:nth-child(4) {
  transition-delay: 0.24s;
}

.bcard.in .mini-chart .bar:nth-child(5) {
  transition-delay: 0.32s;
}

.bcard-green {
  grid-column: span 4;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bcard-green h3 {
  color: #fff;
}

.bcard-green h3::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 10px;
  margin-bottom: 2px;
}

.bcard-green p {
  color: rgba(255, 255, 255, 0.6);
}

.green-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.green-link:hover {
  border-color: var(--green);
}

/* ─── SOUND FAMILIAR ─── */
#familiar {
  background: var(--green-tint);
}

.stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto auto auto;
  gap: 20px;
}

.story {
  grid-row: span 5;
  display: grid;
  grid-template-rows: subgrid;
  align-items: start;
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(30px, 3vw, 44px);
}

.story-tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}

.story-tag-after {
  color: var(--green-dark);
}

.story-before {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.story-arrow {
  font-size: 22px;
  color: var(--green-dark);
  margin: 18px 0 14px;
}

.story-after {
  font-size: 16.5px;
  color: var(--body);
  line-height: 1.65;
}

.familiar-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid rgba(34, 85, 129, 0.2);
}

.familiar-cta p {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 30ch;
  line-height: 1.3;
}

/* ─── PRICING ─── */
.disc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 44px) clamp(28px, 3.2vw, 48px);
  margin-bottom: 20px;
}

.disc-row h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.disc-row p {
  font-size: 16px;
  color: var(--muted);
  max-width: 62ch;
}

.disc-row .btn {
  flex-shrink: 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 3vw, 42px);
  display: flex;
  flex-direction: column;
}

.plan h3 {
  font-size: 23px;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: clamp(42px, 3.6vw, 54px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 18px;
}

.plan-price sup {
  font-size: 0.42em;
  letter-spacing: 0;
  vertical-align: top;
  margin-top: 0.28em;
  display: inline-block;
}

.plan-price span {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.plan-setup {
  font-size: 13.5px;
  color: var(--muted);
  margin: -10px 0 18px;
}

.plan-desc {
  font-size: 15.5px;
  color: var(--muted);
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px dashed #dcdce2;
}

.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan li {
  font-size: 15.5px;
  color: var(--body);
  padding-left: 27px;
  position: relative;
}

.plan li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-tint);
}

.plan li::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 10px;
  width: 7px;
  height: 4px;
  border-left: 1.6px solid var(--green-dark);
  border-bottom: 1.6px solid var(--green-dark);
  transform: rotate(-45deg);
}

.plan-btn {
  width: 100%;
}

.plans-note {
  margin-top: 24px;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}

/* ─── FAQ ─── */
#faq {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}

.faq-left {
  position: sticky;
  top: 120px;
}

.faq-left .sec-h2 {
  margin-bottom: 26px;
}

.faq-left-note {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 10px;
}

.faq-left-email {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.faq-left-email:hover {
  color: var(--green-dark);
}

.fq {
  border-bottom: 1px solid var(--line);
}

.fq:first-child {
  border-top: 1px solid var(--line);
}

.fq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 500;
  color: var(--ink);
  padding: 26px 0;
  transition: color 0.15s;
}

.fq-q:hover {
  color: var(--green-dark);
}

.fq-mark {
  font-size: 24px;
  font-weight: 400;
  color: #b0b0b8;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.35s ease, color 0.2s;
}

.fq.open .fq-mark {
  transform: rotate(45deg);
  color: var(--green-dark);
}

.fq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.fq-a p {
  font-size: 16px;
  color: var(--muted);
  padding-bottom: 26px;
  max-width: 62ch;
}

/* ─── BIG CTA ─── */
#cta {
  padding-bottom: clamp(40px, 5vw, 80px);
}

.cta-block {
  background: var(--ink);
  border-radius: 32px;
  padding: clamp(64px, 9vw, 130px) clamp(28px, 6vw, 90px);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-block h2 {
  font-size: clamp(50px, 9vw, 132px);
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.cta-block p {
  margin-top: 24px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: rgba(255, 255, 255, 0.6);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.cta-email {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.cta-email:hover {
  border-color: var(--green);
}

/* ─── FOOTER ─── */
footer {
  padding: 26px 0 36px;
  font-size: 13.5px;
  color: var(--faint);
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

@media (max-width: 760px) {
  .foot-inner {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .foot-links {
    justify-content: center;
    gap: 10px 20px;
  }
}

.foot-links a {
  color: var(--faint);
  text-decoration: none;
  transition: color 0.15s;
}

.foot-links a:hover {
  color: var(--ink);
}

/* ─── LEGAL PAGES ─── */
#legal {
  padding-block: clamp(130px, 15vw, 200px) clamp(90px, 9vw, 150px);
}

#legal .sec-h2 {
  margin-bottom: 16px;
}

.legal-updated {
  color: var(--faint);
  font-size: 14px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.legal-body {
  max-width: 68ch;
}

.legal-body h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 38px 0 10px;
}

.legal-body h3:first-child {
  margin-top: 0;
}

.legal-body p {
  font-size: 16px;
  color: var(--body);
  margin-bottom: 12px;
}

.legal-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #c9c9d2;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.legal-body a:hover {
  text-decoration-color: var(--green);
}

/* ─── REVEALS ─── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1080px) {
  .bcard {
    grid-column: span 6;
  }

  .bcard-wide {
    grid-column: span 12;
  }

  .bcard-green {
    grid-column: span 6;
  }

  /* let the full-width dashboards card slot in before AI bots so the
     2-across rows pack without a gap: 2 + full + 2 */
  .bento .bcard:nth-child(3),
  .bcard-green {
    order: 1;
  }

  .stories,
  .plans {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-left {
    position: static;
  }
}

@media (max-width: 760px) {
  .hrow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hrow h3 {
    padding-top: 0;
  }

  .hrow p {
    padding-top: 0;
  }

  .bcard,
  .bcard-green {
    grid-column: span 12;
  }

  /* stacked single column - restore natural card order */
  .bento .bcard:nth-child(3),
  .bcard-green {
    order: 0;
  }

  .bcard-wide {
    flex-direction: column;
  }

  .mini-chart {
    flex: 0 0 140px;
    width: 100%;
  }

  .disc-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .familiar-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-block {
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .mini-chart .bar,
  .sec-h2 .wi {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ticker-track {
    animation: none;
  }

  .strike {
    transition: none;
  }

  .gone-line {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ─── CONTACT TRIGGER ─── */
#contact-trigger {
  position: fixed;
  /* --ct-lift rises as the footer scrolls into view so the button
     never sits on top of the footer content */
  bottom: calc(24px + var(--ct-lift, 0px));
  right: 28px;
  z-index: 1000;
  background: var(--ink);
  border: none;
  border-radius: 26px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
  transition: width 0.28s cubic-bezier(0.34, 1.1, 0.64, 1), background 0.2s ease, opacity 0.2s ease, transform 0.3s ease;
}

#contact-trigger:hover {
  width: 160px;
  gap: 9px;
  background: #000;
}

#contact-trigger.hidden,
body.menu-open #contact-trigger {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

.ct-icon {
  flex-shrink: 0;
}

.ct-label {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.25s ease, opacity 0.15s ease;
}

#contact-trigger:hover .ct-label {
  max-width: 110px;
  opacity: 1;
}

/* ─── CONTACT OVERLAY ─── */
#contact-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(19, 19, 22, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 940;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#contact-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ─── CONTACT PANEL ─── */
#contact-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 20px));
  width: min(560px, 96vw);
  min-height: 56vh;
  max-height: 90vh;
  background: var(--paper);
  background-image: radial-gradient(circle, #eaeaee 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  z-index: 950;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.16);
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

#contact-panel.open {
  transform: translateX(-50%) translateY(0);
}

.cp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.cp-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

#cp-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: var(--faint);
  padding: 4px;
  transition: color 0.15s;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

#cp-close:hover {
  color: var(--ink);
}

.cp-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 28px 24px;
  display: flex;
  flex-direction: column;
}

#cp-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 15px;
  line-height: 1.6;
}

.cp-question,
.cp-note {
  color: var(--muted);
  font-weight: 400;
}

.cp-answer {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 22px;
}

.cp-answer-editable {
  cursor: pointer;
  transition: opacity 0.15s;
  position: relative;
}

.cp-answer-editable::after {
  content: 'edit';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  opacity: 0;
  transition: opacity 0.15s;
}

.cp-answer-editable:hover {
  opacity: 0.7;
}

.cp-answer-editable:hover::after {
  opacity: 1;
}

.cp-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.cp-arrow {
  color: var(--green-dark);
  font-size: 19px;
  flex-shrink: 0;
  font-weight: 400;
}

#cp-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  caret-color: var(--green-dark);
}

#cp-input::placeholder {
  color: #c4c4cb;
}

.cp-alt {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--faint);
  text-align: center;
}

.cp-alt a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}

.cp-alt a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.cp-success {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.7;
  margin-top: 8px;
}

.cp-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-left: 2px;
}

.cp-chip {
  background: var(--bg);
  color: var(--body);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.cp-chip:hover {
  background: var(--green-tint);
  color: var(--green-dark);
  border-color: var(--green);
}

.cp-send {
  background: var(--green);
  color: var(--green-ink);
  border: none;
  border-radius: 100px;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  margin-top: 26px;
  align-self: flex-end;
}

.cp-send:hover {
  background: var(--green-dark);
  color: #fff;
}

@media (max-width: 700px) {

  /* Lock the page while the panel is open so the keyboard can't scroll
     the document underneath and drag the fixed panel out of place */
  body.contact-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
  }

  body.contact-open #topnav {
    display: none;
  }

  #contact-trigger {
    width: 152px;
    gap: 9px;
    right: 16px;
    bottom: calc(20px + var(--ct-lift, 0px));
  }

  #contact-trigger:hover {
    width: 152px;
  }

  #contact-trigger .ct-label {
    max-width: 110px;
    opacity: 1;
    transition: none;
  }

  #contact-panel {
    display: none;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    border-radius: 0;
    transform: translateY(100%);
  }

  #contact-panel.open {
    transform: translateY(0);
  }

  /* Prevent iOS auto-zoom on input focus */
  #cp-input {
    font-size: 16px;
  }
}
