/* PetHealth Pro — marketing site
   One stylesheet, no framework, no build step. Custom properties carry the
   whole theme so the dark variant is a single block of overrides rather than
   a parallel set of rules. */

:root {
  --green-900: #0A2540;
  --green-800: #0F3A63;
  --green-700: #14508A;
  --green-600: #1B6AB5;   /* brand; matches the app's theme-color */
  --green-500: #2E8BD8;
  --green-300: #8FC4EE;
  --green-100: #DCEBF9;
  --green-50:  #EFF6FD;

  --amber-600: #C2610F;
  --amber-500: #F08A24;
  --amber-100: #FDEBD8;

  --rose-500:  #C7365B;
  --rose-100:  #FBE1E9;

  --ink-900: #0e1620;
  --ink-700: #2A3644;
  --ink-500: #55636f;
  --ink-400: #7C8A97;
  --ink-200: #D8DFE7;
  --ink-100: #EAEFF4;

  --paper:     #FBFCFE;
  --surface:   #FFFFFF;
  --surface-2: #F3F6FA;

  --text:        var(--ink-900);
  --text-muted:  var(--ink-500);
  --text-faint:  var(--ink-400);
  --line:        var(--ink-200);
  --line-soft:   var(--ink-100);
  --brand:       var(--green-600);
  --brand-text:  var(--green-700);
  --brand-wash:  var(--green-50);

  --shadow-sm: 0 1px 2px rgba(7, 44, 33, .06), 0 1px 3px rgba(7, 44, 33, .05);
  --shadow-md: 0 4px 12px rgba(7, 44, 33, .07), 0 2px 4px rgba(7, 44, 33, .04);
  --shadow-lg: 0 18px 40px rgba(7, 44, 33, .12), 0 4px 12px rgba(7, 44, 33, .06);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --measure: 1160px;
  --gutter: clamp(20px, 5vw, 48px);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text:       #E9EFF6;
    --text-muted: #A2B3C4;
    --text-faint: #7F90A0;
    --line:       #24323F;
    --line-soft:  #1A2530;
    --paper:      #0B1119;
    --surface:    #121B24;
    --surface-2:  #17222D;
    --brand:      #3D96DE;
    --brand-text: #8FC4EE;
    --brand-wash: #10202F;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .38);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, .5);
  }
}

:root[data-theme="dark"] {
  --text:       #E9EFF6;
  --text-muted: #A2B3C4;
  --text-faint: #7F90A0;
  --line:       #24323F;
  --line-soft:  #1A2530;
  --paper:      #0B1119;
  --surface:    #121B24;
  --surface-2:  #17222D;
  --brand:      #3D96DE;
  --brand-text: #8FC4EE;
  --brand-wash: #10202F;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .38);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, .5);
}

/* ---------- reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

::selection { background: var(--green-300); color: var(--green-900); }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 760px; }

section { padding-block: clamp(64px, 8vw, 118px); }
section.tight { padding-block: clamp(48px, 5vw, 72px); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
  font-weight: 600;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand svg { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; }
.brand .brand-pro {
  font-family: var(--font);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--brand-text);
  background: var(--brand-wash);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  padding: 2px 6px;
  border-radius: 5px;
  align-self: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--brand-text); font-weight: 600; }

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

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { background: var(--surface-2); color: var(--text); border-color: var(--text-faint); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon,
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-panel {
    position: fixed;
    inset: 72px 0 auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 26px;
    display: none;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .nav-panel.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-panel .nav-actions { margin: 10px 0 0; flex-direction: row-reverse; justify-content: flex-end; }
  .nav-panel .btn { flex: 1; justify-content: center; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .16s ease, background .16s ease,
              border-color .16s ease, color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 1px 2px rgba(7,44,33,.2), 0 6px 16px -6px rgba(20,107,82,.5);
}
.btn-primary:hover { background: var(--green-700); color: #fff; box-shadow: 0 2px 4px rgba(7,44,33,.2), 0 10px 24px -8px rgba(20,107,82,.6); }
:root[data-theme="dark"] .btn-primary { background: var(--green-500); }
:root[data-theme="dark"] .btn-primary:hover { background: var(--green-300); color: var(--green-900); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { background: var(--green-500); }
  :root:not([data-theme="light"]) .btn-primary:hover { background: var(--green-300); color: var(--green-900); }
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-faint); color: var(--text); }

.btn-quiet { background: transparent; color: var(--text-muted); padding-inline: 12px; }
.btn-quiet:hover { color: var(--text); background: var(--surface-2); }

.btn-lg { padding: 15px 28px; font-size: 1.03rem; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }

/* ---------- generic bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: .6;
}

.lede {
  font-size: clamp(1.08rem, 1rem + .45vw, 1.28rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 62ch;
}

.section-head { max-width: 700px; margin-bottom: clamp(36px, 4vw, 58px); }
.section-head.centred { margin-inline: auto; text-align: center; }
.section-head.centred .eyebrow { justify-content: center; }
.section-head.centred .lede { margin-inline: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-500) 20%, transparent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.band { background: var(--surface-2); }
.band-brand {
  background:
    radial-gradient(900px 420px at 12% 0%, color-mix(in srgb, var(--green-500) 26%, transparent), transparent 70%),
    radial-gradient(700px 400px at 88% 100%, color-mix(in srgb, var(--amber-500) 16%, transparent), transparent 65%),
    var(--green-800);
  color: #EAF2FB;
}
.band-brand h2, .band-brand h3 { color: #fff; }
.band-brand .lede, .band-brand p { color: #C3D8EC; }
.band-brand .eyebrow { color: var(--green-300); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(48px, 6vw, 86px) clamp(56px, 7vw, 100px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background:
    radial-gradient(620px 380px at 22% 30%, color-mix(in srgb, var(--green-500) 15%, transparent), transparent 68%),
    radial-gradient(520px 360px at 82% 12%, color-mix(in srgb, var(--amber-500) 13%, transparent), transparent 66%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; margin-inline: auto; }
}

.hero h1 { margin-bottom: .32em; }
.hero h1 em {
  font-style: normal;
  color: var(--brand-text);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .16em;
  background: color-mix(in srgb, var(--amber-500) 45%, transparent);
  border-radius: 2px;
  z-index: -1;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  margin-top: 18px;
  font-size: .88rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-note svg { width: 15px; height: 15px; color: var(--green-500); }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(7,44,33,.18)); }

/* ---------- trust strip ---------- */

.trust {
  border-block: 1px solid var(--line-soft);
  padding-block: 26px;
  background: var(--surface);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 34px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-item svg { width: 19px; height: 19px; color: var(--brand); flex-shrink: 0; }

/* ---------- feature cards ---------- */

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-wash);
  color: var(--brand-text);
  margin-bottom: 18px;
}
.feature-icon svg { width: 23px; height: 23px; }
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--text-muted); font-size: .96rem; margin: 0; }

/* alternating detail rows */
.detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.detail + .detail { margin-top: clamp(56px, 7vw, 104px); }
.detail:nth-child(even) .detail-art { order: -1; }
@media (max-width: 700px) {
  .detail:nth-child(even) .detail-art { order: 0; }
}
.detail-art svg { width: 100%; border-radius: var(--radius-lg); }

.tick-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.tick-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .97rem;
  color: var(--text-muted);
}
.tick-list li::before {
  content: "";
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--brand-wash);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23146B52' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}
.tick-list li b { color: var(--text); font-weight: 600; }

/* ---------- steps ---------- */

.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step {
  position: relative;
  padding: 30px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -17px; left: 26px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 10px -2px rgba(20,107,82,.5);
}
.step h3 { font-size: 1.12rem; margin-bottom: .35em; }
.step p { color: var(--text-muted); font-size: .94rem; margin: 0; }

/* ---------- stats ---------- */

.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
}
.stat dt { font-size: .84rem; color: #A9C6E4; margin-bottom: 6px; }
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1.1;
}

/* ---------- pricing ---------- */

.billing-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin: 0 auto 44px;
}
.billing-switch button {
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.billing-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.billing-switch .save {
  margin-left: 6px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--amber-600);
  background: var(--amber-100);
  padding: 2px 7px;
  border-radius: 5px;
}
:root[data-theme="dark"] .billing-switch .save { background: #3A2812; color: #F5A85A; }

.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: start; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.plan.featured {
  border-color: var(--brand);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
  padding-block: 36px 34px;
}
.plan-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--green-600);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin: 0 0 4px; }
.plan-tag { font-size: .9rem; color: var(--text-muted); margin: 0 0 22px; min-height: 2.9em; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 4px; }
.plan-price .amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
}
.plan-price .per { font-size: .93rem; color: var(--text-muted); }
.plan-sub { font-size: .84rem; color: var(--text-faint); min-height: 1.5em; margin: 0 0 24px; }
.plan .btn { margin-bottom: 24px; }
.plan-features { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 11px; }
.plan-features li {
  display: grid;
  grid-template-columns: 19px 1fr;
  gap: 11px;
  align-items: start;
  font-size: .93rem;
  color: var(--text-muted);
}
.plan-features li svg { width: 17px; height: 17px; margin-top: 4px; color: var(--brand); }
.plan-features li.off { color: var(--text-faint); }
.plan-features li.off svg { color: var(--text-faint); opacity: .7; }
.plan-features b { color: var(--text); font-weight: 600; }

/* comparison table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .94rem; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.compare thead th {
  position: sticky; top: 0;
  background: var(--surface-2);
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}
table.compare tbody th { font-weight: 500; color: var(--text); width: 38%; }
table.compare td { color: var(--text-muted); text-align: center; }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: 0; }
table.compare .yes { color: var(--brand); font-weight: 700; }
table.compare .no { color: var(--text-faint); }
table.compare tbody tr:hover { background: var(--surface-2); }
table.compare caption { caption-side: top; padding: 16px 18px; text-align: left; font-size: .86rem; color: var(--text-faint); }

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } }

.faq-side { position: sticky; top: 96px; }
@media (max-width: 860px) { .faq-side { position: static; } }
.faq-side h2 { font-size: 1.3rem; }
.faq-nav { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 2px; }
.faq-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: .93rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.faq-nav a:hover { background: var(--surface-2); color: var(--text); }

.faq-search {
  position: relative;
  margin-bottom: 30px;
}
.faq-search input {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  padding: 14px 16px 14px 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.faq-search input::placeholder { color: var(--text-faint); }
.faq-search svg {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-faint);
  pointer-events: none;
}

.faq-group + .faq-group { margin-top: 42px; }
.faq-group > h3 {
  font-size: 1.06rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-family: var(--font);
  font-weight: 700;
  color: var(--text-faint);
  margin-bottom: 16px;
}

details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
details.faq[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow-sm); }
details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 52px 17px 20px;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  color: var(--text);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:hover { background: var(--surface-2); }
details.faq summary::after {
  content: "";
  position: absolute;
  right: 20px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  background: currentColor;
  color: var(--text-faint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s ease;
}
details.faq[open] summary::after { transform: rotate(180deg); color: var(--brand); }
.faq-body { padding: 0 20px 20px; color: var(--text-muted); font-size: .96rem; }
.faq-body > :first-child { margin-top: 0; }
.faq-body ul { margin: 0 0 1em; padding-left: 1.2em; }
.faq-body li { margin-bottom: .35em; }
.faq-body code {
  font-family: var(--font-mono);
  font-size: .87em;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  padding: 1px 5px;
  border-radius: 5px;
  color: var(--text);
}

.faq-empty {
  display: none;
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.faq-empty.show { display: block; }
mark { background: color-mix(in srgb, var(--amber-500) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- support channels ---------- */

.channel {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.channel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  color: inherit;
}
.channel-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-wash);
  color: var(--brand-text);
}
.channel-icon svg { width: 21px; height: 21px; }
.channel h3 { font-size: 1.08rem; margin-bottom: .25em; }
.channel p { font-size: .92rem; color: var(--text-muted); margin: 0 0 6px; }
.channel .meta { font-size: .84rem; color: var(--brand-text); font-weight: 600; }

.notice {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--rose-100);
  border: 1px solid color-mix(in srgb, var(--rose-500) 30%, transparent);
  color: #71203A;
  font-size: .95rem;
}
.notice svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--rose-500); margin-top: 2px; }
.notice strong { display: block; margin-bottom: 3px; }
:root[data-theme="dark"] .notice { background: #2B1220; color: #F5BCCC; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .notice { background: #2B1220; color: #F5BCCC; }
}

/* ---------- prose (legal pages) ---------- */

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.55rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }

/* ---------- CTA ---------- */

.cta-box {
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 60px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(700px 340px at 20% 0%, color-mix(in srgb, var(--green-500) 30%, transparent), transparent 70%),
    radial-gradient(600px 320px at 85% 110%, color-mix(in srgb, var(--amber-500) 20%, transparent), transparent 68%),
    var(--green-800);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-box h2 { color: #fff; }
.cta-box p { color: #C3D8EC; margin-inline: auto; }
.cta-box .hero-cta { justify-content: center; }
.cta-box .btn-primary { background: #fff; color: var(--green-800); }
.cta-box .btn-primary:hover { background: var(--green-100); color: var(--green-900); }
.cta-box .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-box .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: #fff; }
.cta-paws {
  position: absolute;
  inset: 0;
  opacity: .07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff'%3E%3Cellipse cx='60' cy='68' rx='15' ry='12'/%3E%3Cellipse cx='42' cy='52' rx='7' ry='9'/%3E%3Cellipse cx='53' cy='42' rx='6.5' ry='8.5'/%3E%3Cellipse cx='67' cy='42' rx='6.5' ry='8.5'/%3E%3Cellipse cx='78' cy='52' rx='7' ry='9'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: clamp(44px, 5vw, 70px) 30px;
}
.footer-grid {
  display: grid;
  /* The `min()` matters: a bare 220px minimum is wider than the column itself on
     a 375px phone, and grid tracks do not shrink below their minimum — the page
     then scrolls sideways. */
  grid-template-columns: minmax(min(220px, 100%), 1.3fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 36px 28px;
  margin-bottom: 44px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
.footer-about p { font-size: .92rem; color: var(--text-muted); margin: 16px 0 0; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { font-size: .93rem; color: var(--text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--brand-text); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  font-size: .87rem;
  color: var(--text-faint);
}
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-langs span {
  font-size: .76rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
}

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.22,.8,.3,1); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 404 ---------- */

.notfound { text-align: center; padding-block: clamp(70px, 12vw, 150px); }
.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 10rem);
  line-height: 1;
  color: var(--brand);
  opacity: .18;
  letter-spacing: -.05em;
  margin-bottom: -.15em;
}
.notfound svg { width: 130px; margin: 0 auto 24px; }
