/* ==========================================================================
   Marketing site — drscribe.co
   ========================================================================== */

body.site {
  background: var(--canvas);
}

/* ── Floating navigation ────────────────────────────────────────────────── */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 0 0;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 62px;
  padding: 7px 8px 7px 16px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, #fff 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-800) 9%, transparent);
  box-shadow: 0 1px 2px rgba(10, 43, 41, 0.04), 0 14px 34px -22px rgba(10, 43, 41, 0.4);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  transition: box-shadow var(--dur-3) var(--ease-out),
    background-color var(--dur-3) var(--ease-out);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  font-size: 0.935rem;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}

.nav-links a:hover {
  color: var(--brand-800);
  background: var(--brand-50);
}

/* Selected section: solid brand, white text. */
.nav-links a.is-active {
  background: var(--brand-800);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(10, 43, 41, 0.7);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 0.935rem;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
}

.nav-login:hover {
  color: var(--brand-800);
  background: var(--brand-50);
}

/* Hamburger morphs into a cross, it does not disappear. */
.nav-burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  cursor: pointer;
}

.nav-burger span {
  position: absolute;
  left: 50%;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  translate: -50% 0;
  transition: transform var(--dur-3) var(--ease-spring), opacity var(--dur-1) var(--ease-out);
}

.nav-burger span:nth-child(1) {
  top: 18px;
}
.nav-burger span:nth-child(2) {
  top: 22.5px;
}
.nav-burger span:nth-child(3) {
  top: 27px;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ── Mobile navigation overlay ──────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  align-content: start;
  gap: var(--sp-5);
  padding: calc(var(--nav-h) + 26px) var(--gutter) 40px;
  background: color-mix(in srgb, var(--canvas) 96%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out),
    visibility var(--dur-3);
  overflow-y: auto;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav nav {
  display: grid;
}

.mobile-nav nav a {
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
}

.mobile-nav.is-open nav a {
  animation: menu-item var(--dur-3) var(--ease-out) forwards;
}

.mobile-nav nav a:nth-child(1) {
  animation-delay: 60ms;
}
.mobile-nav nav a:nth-child(2) {
  animation-delay: 100ms;
}
.mobile-nav nav a:nth-child(3) {
  animation-delay: 140ms;
}
.mobile-nav nav a:nth-child(4) {
  animation-delay: 180ms;
}
.mobile-nav nav a:nth-child(5) {
  animation-delay: 220ms;
}
.mobile-nav nav a:nth-child(6) {
  animation-delay: 260ms;
}

@keyframes menu-item {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html.nav-open {
  overflow: hidden;
}

html.nav-open .nav-shell {
  z-index: 70;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(38px, 5.5vw, 78px) 0 clamp(56px, 7vw, 104px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -18% -10% auto -10%;
  height: 780px;
  background:
    radial-gradient(48% 42% at 74% 26%, rgba(78, 155, 140, 0.2), transparent 70%),
    radial-gradient(38% 34% at 12% 6%, rgba(179, 216, 209, 0.4), transparent 72%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(16, 56, 56, 0.13) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(62% 58% at 62% 26%, #000 0%, transparent 72%);
  mask-image: radial-gradient(62% 58% at 62% 26%, #000 0%, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.hero-copy {
  max-width: min(100%, 33.5rem);
}

.hero-title {
  margin-top: 22px;
  text-wrap: balance;
}

.hero-title-2 {
  display: inline-block;
  font-size: 0.76em;
  letter-spacing: -0.034em;
  color: var(--brand-600);
}

.hero-lede {
  margin-top: 24px;
  max-width: 46ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Magnetic buttons lean very slightly toward the pointer. */
[data-magnetic] {
  translate: var(--mx, 0) var(--my, 0);
  transition: transform var(--dur-2) var(--ease-spring), box-shadow var(--dur-2) var(--ease-out),
    background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out), translate var(--dur-3) var(--ease-out);
}

.hero-assure {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  font-weight: 500;
}

.hero-assure li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-assure svg {
  width: 14px;
  height: 14px;
  color: var(--brand-500);
}

/* ── Hero device ────────────────────────────────────────────────────────── */
.hero-stage {
  position: relative;
  max-width: 540px;
  margin-left: auto;
  width: 100%;
}

.hero-device {
  animation: float-y 9s var(--ease-soft) infinite;
}

.hero-device-core {
  padding: 18px;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(78, 155, 140, 0.07), transparent 62%),
    #fff;
}

.device-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}

.device-live {
  font-size: 0.72rem;
  padding: 4px 10px 4px 8px;
  border-color: transparent;
  background: #effaf3;
  color: #14784a;
  box-shadow: none;
}

.device-langs {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.device-langs span {
  opacity: 0.45;
  margin: 0 3px;
}

.wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  height: 56px;
  margin: 16px 0 6px;
  padding-inline: 2px;
}

.wave i {
  flex: 1 1 auto;
  height: calc(56px * var(--h));
  max-width: 5px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--brand-400), var(--brand-600));
  transform-origin: center;
  animation: wave-pulse 1.55s var(--ease-soft) infinite alternate;
  animation-delay: var(--t);
  opacity: 0.9;
}

@keyframes wave-pulse {
  from {
    transform: scaleY(0.34);
  }
  to {
    transform: scaleY(1);
  }
}

.transcript {
  display: grid;
  gap: 11px;
  margin-top: 10px;
  min-height: 176px;
}

.turn {
  display: grid;
  gap: 4px;
}

.who {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.who-doctor {
  color: var(--brand-600);
}

.who-patient {
  color: #a1651a;
}

/* Two lines are reserved per turn so the card never jumps while typing. */
.turn p {
  min-height: 2.84em;
  font-size: 0.945rem;
  line-height: 1.42;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.turn p::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--brand-500);
  opacity: 0;
}

.turn.is-typing p::after {
  opacity: 1;
  animation: caret 1s steps(2, start) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.device-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line-2);
  font-size: 0.8rem;
  color: var(--ink-3);
  font-weight: 500;
}

.device-mic {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
}

.device-mic svg {
  width: 14px;
  height: 14px;
}

.device-level {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-left: auto;
  height: 14px;
}

.device-level b {
  width: 3px;
  border-radius: 2px;
  background: var(--brand-400);
  animation: level 1.1s var(--ease-soft) infinite alternate;
}

.device-level b:nth-child(1) {
  height: 40%;
}
.device-level b:nth-child(2) {
  height: 90%;
  animation-delay: 0.15s;
}
.device-level b:nth-child(3) {
  height: 60%;
  animation-delay: 0.3s;
}
.device-level b:nth-child(4) {
  height: 80%;
  animation-delay: 0.45s;
}

@keyframes level {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1);
  }
}

.float-card {
  position: absolute;
  bottom: -26px;
  right: -10px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px 11px 12px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-4);
  animation: float-y 7s var(--ease-soft) infinite;
  animation-delay: -2.4s;
}

.float-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
}

.float-ico svg {
  width: 17px;
  height: 17px;
}

.float-card strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.float-card span {
  font-size: 0.76rem;
  color: var(--ink-3);
}

.hero-caption {
  margin-top: 38px;
  font-size: 0.72rem;
  color: var(--ink-3);
  opacity: 0.85;
  max-width: 26ch;
}

/* ── Facts strip ────────────────────────────────────────────────────────── */
.facts {
  padding-block: 8px 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 30px 26px 28px;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 6px;
  align-content: start;
}

.fact:first-child {
  border-left: 0;
  padding-left: 0;
}

.fact strong {
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--brand-800);
  font-variant-numeric: tabular-nums;
}

.fact span {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: 1.42;
  max-width: 24ch;
}

/* ── Split section ──────────────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split-copy h2 {
  margin-top: 18px;
  max-width: 26ch;
}

.split-copy .lede {
  margin-top: 20px;
}

.split-copy .link-arrow {
  margin-top: 26px;
}

.ledger {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  padding: 26px;
}

.ledger-sep {
  background: linear-gradient(180deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}

.ledger-col {
  padding: 0 20px;
}

.ledger-col:first-child {
  padding-left: 0;
}

.ledger-col:last-child {
  padding-right: 0;
}

.ledger-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.ledger-col-brand .ledger-title {
  color: var(--brand-600);
}

.ledger-col ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.ledger-col li {
  position: relative;
  padding-left: 16px;
  font-size: 0.915rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.dot {
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-doctor {
  background: var(--line-strong);
}

.dot-brand {
  background: var(--brand-400);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-400) 16%, transparent);
}

/* ── Section heads ──────────────────────────────────────────────────────── */
.section-head {
  max-width: 62ch;
}

.section-head h2 {
  margin-top: 16px;
}

.section-head .lede {
  margin-top: 18px;
}

.section-head-left {
  max-width: 40ch;
}

/* ── Bento ──────────────────────────────────────────────────────────────── */
.bento {
  margin-top: clamp(38px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.bento-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1), var(--sh-inset);
  overflow: hidden;
}

.bento-card:nth-child(1),
.bento-card.bento-wide {
  grid-column: span 8;
}

.bento-card:nth-child(5),
.bento-card:nth-child(6) {
  grid-column: span 6;
}

.bento-card:nth-child(1) {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(78, 155, 140, 0.08), transparent 58%),
    var(--surface);
}

.bento-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.bento-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--brand-50);
  border: 1px solid color-mix(in srgb, var(--brand-400) 16%, transparent);
  color: var(--brand-700);
}

.bento-ico svg {
  width: 19px;
  height: 19px;
}

.bento-card h3 {
  font-size: 1.08rem;
}

.bento-card p {
  font-size: 0.945rem;
  line-height: 1.58;
  color: var(--ink-2);
}

/* Small demos inside the cards */
.bento-demo {
  margin-top: auto;
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  font-size: 0.86rem;
  color: var(--ink-2);
}

.demo-line {
  display: block;
  line-height: 1.45;
}

.demo-line-2 {
  padding-left: 14px;
  color: var(--ink-3);
}

.demo-line-3 {
  padding-left: 14px;
  color: var(--ink);
}

.chips {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips span {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 0.78rem;
  font-weight: 600;
}

.qr-demo {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.qr-demo span {
  font-size: 0.76rem;
  color: var(--ink-3);
}

.report-demo {
  margin-top: auto;
  display: grid;
  gap: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
}

.report-row {
  display: flex;
  gap: 10px;
  padding: 9px 14px;
  font-size: 0.85rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}

.report-row:last-child {
  border-bottom: 0;
}

.report-row b {
  flex: 0 0 74px;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-600);
  padding-top: 2px;
}

.meter-demo {
  margin-top: auto;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
}

.meter-demo span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400));
}

.meter-note {
  margin-top: 8px;
}

/* ── Steps ──────────────────────────────────────────────────────────────── */
.steps-section {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--canvas) 62%);
}

.steps {
  margin-top: clamp(38px, 5vw, 60px);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1), var(--sh-inset);
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-400), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out);
}

.step:hover::before {
  opacity: 1;
}

.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: var(--brand-800);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 22px -12px rgba(10, 43, 41, 0.7);
}

.step h3 {
  font-size: 1.09rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.945rem;
  line-height: 1.58;
  color: var(--ink-2);
}

.steps-cta {
  margin-top: clamp(30px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* ── Language band ──────────────────────────────────────────────────────── */
.lang-band {
  position: relative;
  padding-block: clamp(42px, 5vw, 64px);
  border-block: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
}

.lang-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  white-space: nowrap;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--brand-400);
  opacity: 0.62;
  animation: marquee 42s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.lang-track .sep {
  color: var(--brand-400);
  opacity: 0.5;
  font-size: 0.6em;
}

@keyframes marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.lang-copy {
  margin-top: 28px;
}

.lang-copy p {
  max-width: 54ch;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.lang-copy strong {
  color: var(--ink);
  font-weight: 650;
}

/* ── Privacy band ───────────────────────────────────────────────────────── */
.privacy-band {
  position: relative;
  padding-block: clamp(64px, 8.5vw, 118px);
  background:
    radial-gradient(70% 50% at 82% 0%, rgba(78, 155, 140, 0.28), transparent 62%),
    radial-gradient(50% 40% at 6% 96%, rgba(33, 93, 87, 0.5), transparent 64%),
    var(--brand-950);
  color: var(--ink-on-dark);
  overflow: hidden;
}

.privacy-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.privacy-band .wrap {
  position: relative;
}

.privacy-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.privacy-head img {
  border-radius: 12px;
}

.privacy-head .eyebrow {
  color: var(--brand-300);
}

.privacy-head h2 {
  margin-top: 10px;
  color: #fff;
}

.privacy-lede {
  margin-top: 26px;
  max-width: 66ch;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.62;
  color: var(--ink-on-dark-2);
}

.privacy-grid {
  margin-top: clamp(34px, 4.5vw, 52px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.privacy-card {
  padding: 24px 22px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: background-color var(--dur-3) var(--ease-out),
    border-color var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}

.privacy-card:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.privacy-card h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
}

.privacy-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-on-dark-2);
}

.privacy-link {
  margin-top: 32px;
}

.privacy-link .link-arrow {
  color: #fff;
}

.privacy-link .link-arrow:hover {
  color: var(--brand-200);
}

/* ── Plans ──────────────────────────────────────────────────────────────── */
.plans {
  margin-top: clamp(38px, 5vw, 58px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1), var(--sh-inset);
}

.plan-featured {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.plan-featured > .bezel {
  height: 100%;
  box-shadow: 0 2px 4px rgba(10, 43, 41, 0.05), 0 32px 64px -32px rgba(10, 43, 41, 0.45);
}

.plan-core {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 27px;
  border-color: color-mix(in srgb, var(--brand-500) 26%, transparent);
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--brand-800);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(10, 43, 41, 0.7);
}

.plan-top {
  display: grid;
  gap: 8px;
}

.plan h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.plan-price small {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-3);
}

.plan-note {
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.45;
}

.plan-list {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.plan-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.45;
}

.plan-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7469' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}

.plan .btn {
  margin-top: auto;
}

.plans-note {
  margin-top: 24px;
  max-width: 78ch;
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-section {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 2px;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  list-style: none;
  transition: color var(--dur-2) var(--ease-out);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--brand-700);
}

.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) center / 9px 1.6px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) center / 1.6px 9px no-repeat,
    #fff;
  transition: transform var(--dur-3) var(--ease-spring), background-size var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out);
}

.faq[open] summary::after {
  transform: rotate(135deg);
  border-color: var(--brand-400);
}

.faq p {
  padding: 0 40px 22px 2px;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 68ch;
}

.faq[open] p {
  animation: faq-in var(--dur-3) var(--ease-out) both;
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ── Final call ─────────────────────────────────────────────────────────── */
.final {
  padding-block: clamp(56px, 7vw, 96px);
  background: var(--canvas);
}

.final-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
  padding: clamp(32px, 4.5vw, 60px);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(80% 120% at 88% 8%, rgba(78, 155, 140, 0.34), transparent 58%),
    linear-gradient(150deg, var(--brand-800), var(--brand-950));
  background-color: var(--brand-950);
  color: #fff;
  box-shadow: 0 2px 6px rgba(10, 43, 41, 0.16), 0 44px 80px -40px rgba(10, 43, 41, 0.6);
  overflow: hidden;
}

.final-card h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  letter-spacing: -0.035em;
}

.final-copy p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot {
  background: var(--brand-950);
  color: var(--ink-on-dark-2);
  padding-block: clamp(44px, 5vw, 68px) 28px;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-brand {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.foot-brand img {
  border-radius: 11px;
}

.foot-name {
  font-weight: 700;
  font-size: 1.08rem;
  color: #fff;
  letter-spacing: -0.025em;
}

.foot-tag {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--ink-on-dark-2);
  max-width: 30ch;
  line-height: 1.45;
}

.foot-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.foot-head {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 12px;
}

.foot-links a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  color: var(--ink-on-dark-2);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease-out);
}

.foot-links a:hover {
  color: #fff;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Legal pages ────────────────────────────────────────────────────────── */
.legal {
  padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 100px);
}

.legal-head {
  max-width: 60ch;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-head h1 {
  margin-top: 14px;
}

.legal-body {
  max-width: 74ch;
  margin-top: 34px;
}

.legal-body h2 {
  font-size: 1.24rem;
  margin-top: 44px;
  letter-spacing: -0.02em;
}

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

.legal-body p,
.legal-body li {
  margin-top: 13px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.65;
}

.legal-body ul {
  padding-left: 20px;
}

.legal-body li::marker {
  color: var(--brand-400);
}

.legal-body a {
  font-weight: 500;
}

.legal-toc {
  margin-top: 26px;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.legal-toc p {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.legal-toc a {
  text-decoration: none;
  color: var(--brand-700);
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-toc ol {
  padding-left: 18px;
  display: grid;
  gap: 5px;
}

@media (min-width: 720px) {
  .legal-toc ol {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
}

.legal-toc li {
  margin: 0;
  font-size: 0.92rem;
}

.legal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.dl-card.is-current {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-400) 16%, transparent), var(--sh-2),
    var(--sh-inset);
}

.dl-card.is-current::after {
  content: "Votre système";
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.dl-card {
  position: relative;
}

/* ── Download page ──────────────────────────────────────────────────────── */
.dl-hero {
  padding-block: clamp(40px, 5vw, 64px) clamp(28px, 3vw, 40px);
}

.dl-hero h1 {
  margin-top: 14px;
  max-width: 22ch;
}

.dl-hero .lede {
  margin-top: 18px;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.dl-card {
  display: grid;
  gap: 10px;
  padding: 28px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1), var(--sh-inset);
}

.dl-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
}

.dl-card svg {
  width: 20px;
  height: 20px;
  color: var(--brand-700);
}

.dl-card .dl-meta {
  font-size: 0.88rem;
  color: var(--ink-3);
}

.dl-soon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 0.78rem;
  font-weight: 600;
  justify-self: start;
  margin-top: 4px;
}

.dl-soon .pill-dot {
  background: currentColor;
  box-shadow: none;
}

.dl-next {
  margin-top: 40px;
  max-width: 66ch;
}

.dl-next h2 {
  font-size: 1.3rem;
}

.dl-next p {
  margin-top: 12px;
  color: var(--ink-2);
}

.dl-next .btn {
  margin-top: 22px;
}

/* ── 404 ────────────────────────────────────────────────────────────────── */
.nf {
  padding-block: clamp(56px, 8vw, 108px) clamp(40px, 5vw, 72px);
  max-width: var(--wrap-narrow);
}

.nf-title {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}

.nf .lede {
  margin-top: 18px;
}

.nf-links {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.nf-card {
  display: grid;
  gap: 3px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1), var(--sh-inset);
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out),
    box-shadow var(--dur-3) var(--ease-out);
}

.nf-card:hover {
  border-color: var(--brand-300);
  transform: translateY(-2px);
  box-shadow: var(--sh-2), var(--sh-inset);
  color: var(--ink);
}

.nf-card strong {
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}

.nf-card span {
  font-size: 0.86rem;
  color: var(--ink-3);
}

@media (max-width: 620px) {
  .nf-links {
    grid-template-columns: 1fr;
  }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    max-width: 46ch;
  }

  .hero-stage {
    margin-inline: 0;
    max-width: 520px;
  }

  .float-card {
    bottom: -22px;
    right: 0;
  }

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

  .bento-card,
  .bento-card:nth-child(1),
  .bento-card.bento-wide,
  .bento-card:nth-child(5),
  .bento-card:nth-child(6) {
    grid-column: span 6;
  }

  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .faq-list {
    margin-top: 8px;
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-login {
    display: none;
  }

  .nav-burger {
    display: block;
  }

  .nav {
    padding-right: 6px;
  }

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .fact:nth-child(1),
  .fact:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

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

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

  .foot-top {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  :root {
    --nav-h: 70px;
  }

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

  .bento-card,
  .bento-card:nth-child(1),
  .bento-card.bento-wide,
  .bento-card:nth-child(5),
  .bento-card:nth-child(6) {
    grid-column: span 1;
  }

  .privacy-grid,
  .foot-links,
  .dl-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .steps-cta .btn,
  .final-actions .btn {
    width: 100%;
  }

  .final-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .ledger {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .ledger-sep {
    height: 1px;
    background: var(--line);
  }

  .ledger-col {
    padding: 0;
  }

  .hero-caption {
    text-align: left;
  }
}
