@charset "utf-8";

/* =============================================================================
   HomeGrab landing page — 2026-10-17 redesign
   -----------------------------------------------------------------------------
   Ported from the Claude Design export "HomeGrab Landing" (inline styles there,
   classes here). Colour semantics, learn them once:

     blue  #2F60F3  = the SS.ge side, and primary actions
     green #00B972  = the MyHome.ge side, and success / confirmation

   Light is defined on bare :root; dark overrides via prefers-color-scheme and
   [data-theme], so the manual toggle wins in both directions.
   privacy.html and terms.html share this file — see "Legal pages" at the end.
   ========================================================================== */

/* --- Tokens ---------------------------------------------------------------- */
:root {
  --blue-050: #eaefff;
  --blue-300: #8aa6ff;
  --blue-500: #2f60f3;
  --blue-600: #1f4bd8;
  --green-050: #e6f8f1;
  --green-300: #34d39c;
  --green-500: #00b972;
  --green-700: #00794c;

  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 2.5rem;   --sp-8: 3rem;

  --font: "Outfit", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --fs-h2: clamp(28px, 3.4vw, 40px);
  --fs-h3: clamp(1.125rem, 1.03rem + 0.42vw, 1.35rem);
  --fs-sm: 0.9rem;
  --fs-xs: 0.8125rem;
  --measure: 62ch;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-sunken: #f6f7f9;
  --surface-inset: #eceef2;
  --text: #0f1420;
  --text-muted: #55607a;
  --border: rgb(15 20 32 / 0.12);
  --border-strong: rgb(15 20 32 / 0.22);
  --accent: var(--blue-500);
  --accent-ink: var(--blue-600);
  --accent-wash: var(--blue-050);
  --accent2: var(--green-500);
  --accent2-ink: var(--green-700);
  --accent2-wash: var(--green-050);
  --shadow: 0 1px 2px rgb(15 20 32 / 0.05), 0 12px 32px -12px rgb(15 20 32 / 0.18);
  --glow: 0 4px 12px rgb(47 96 243 / 0.28);
  --ring: var(--blue-500);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #07090e;
    --surface-raised: #0e1320;
    --surface-sunken: #0b0f18;
    --surface-inset: #151b2d;
    --text: #f3f4f6;
    --text-muted: #9ca3af;
    --border: rgb(255 255 255 / 0.09);
    --border-strong: rgb(255 255 255 / 0.18);
    --accent-ink: var(--blue-300);
    --accent-wash: rgb(47 96 243 / 0.14);
    --accent2-ink: var(--green-300);
    --accent2-wash: rgb(0 185 114 / 0.14);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 16px 40px -16px rgb(0 0 0 / 0.7);
    --glow: 0 4px 14px rgb(47 96 243 / 0.4);
    --ring: var(--blue-300);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --surface: #07090e;
  --surface-raised: #0e1320;
  --surface-sunken: #0b0f18;
  --surface-inset: #151b2d;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --border: rgb(255 255 255 / 0.09);
  --border-strong: rgb(255 255 255 / 0.18);
  --accent-ink: var(--blue-300);
  --accent-wash: rgb(47 96 243 / 0.14);
  --accent2-ink: var(--green-300);
  --accent2-wash: rgb(0 185 114 / 0.14);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 16px 40px -16px rgb(0 0 0 / 0.7);
  --glow: 0 4px 14px rgb(47 96 243 / 0.4);
  --ring: var(--blue-300);
  color-scheme: dark;
}

/* Light/dark variants of the same picture or icon. */
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}

/* --- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button { font: inherit; }
svg { flex: none; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 100;
  background: var(--accent); color: #fff;
  padding: var(--sp-2) var(--sp-4); border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: var(--sp-4); color: #fff; }

.wrap { max-width: 1160px; margin: 0 auto; }

/* Reveal on scroll. The head script sets .anim only when JS runs and motion is
   allowed, so without it every element is simply visible. */
.anim [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--step, 50ms));
}
.anim [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 14px 24px; font-size: 16px; font-weight: 600; line-height: 1.3;
  cursor: pointer; text-align: center;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { color: #fff; box-shadow: var(--glow); transform: translateY(-1px); }
.btn-ghost { background: var(--surface-raised); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

.pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.pill-blue { background: var(--accent-wash); color: var(--accent-ink); }
.pill-green { background: var(--accent2-wash); color: var(--accent2-ink); }

.h2 {
  margin: 0; font-size: var(--fs-h2); line-height: 1.15;
  letter-spacing: -0.02em; font-weight: 700; text-wrap: balance;
}
.lede { margin: 0; color: var(--text-muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }

.sec { padding: clamp(64px, 9vw, 96px) 20px; }
.sec-sunken { background: var(--surface-sunken); border-block: 1px solid var(--border); }
.sec-head {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; margin: 0 auto;
}
.sec-head .lede { max-width: 560px; }

/* --- Header ---------------------------------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.hdr-bar {
  max-width: 1160px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--text);
}
.logo:hover { color: var(--text); }
.logo svg { width: 30px; height: 30px; }
.logo-home { color: var(--accent); }
.logo-grab { color: var(--accent2); }
.hdr-gap { flex: 1; }
.hdr-links { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.hdr-links a, .mnav a:not(.btn) { color: var(--text-muted); }
.hdr-links a:hover, .mnav a:not(.btn):hover { color: var(--text); }

.lang {
  display: flex; padding: 3px; border-radius: 999px;
  background: var(--surface-sunken); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
}
.lang button {
  border: 0; cursor: pointer; padding: 5px 11px; border-radius: 999px;
  background: transparent; color: var(--text-muted);
}
.lang button[aria-pressed="true"] { background: var(--surface-raised); color: var(--text); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 999px; flex: none;
  border: 1px solid var(--border); background: var(--surface-sunken); color: var(--text);
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
.hdr-cta {
  background: var(--accent); color: #fff; padding: 9px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.hdr-cta:hover { color: #fff; box-shadow: var(--glow); }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

.mnav {
  display: none; flex-direction: column; gap: 4px;
  max-width: 1160px; margin: 0 auto; padding: 4px 20px 20px;
  font-size: 16px; font-weight: 500;
}
.mnav a:not(.btn) { padding: 10px 0; }
.mnav .btn { margin-top: 8px; }
.mnav.open { display: flex; }

/* The language and theme controls need JS; without it they are not shown. */
.lang, .theme-btn, .menu-btn { visibility: hidden; }
.js .lang, .js .theme-btn, .js .menu-btn { visibility: visible; }
html:not(.js) .replay { display: none; }

/* Four section links + language + theme + the Chrome button need ~1040px. */
@media (max-width: 1080px) {
  .hdr-links { display: none; }
  .menu-btn { display: grid; }
}
@media (min-width: 1081px) { .mnav.open { display: none; } }
/* Back link on every subpage (support, legal pages, 404, the server's /terms). */
.back-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); text-decoration: none; margin-bottom: 20px;
}
.back-link:hover { color: var(--text); }
.section a.back-link { text-decoration: none; }
/* The logo sprite: a class, not a style attribute, so the server's
   subscription terms page (CSP without inline styles) can use it too. */
.sprite { position: absolute; }
/* Legal pages carry both languages; the ქარ / EN switch shows one. */
html[lang="en"] .lang-ka, html:not([lang="en"]) .lang-en { display: none; }
/* Pages without a hero (legal pages, the server's subscription terms): the
   same spot as on the hero pages, 20px under the header, by the logo. */
.back-bar { max-width: 1160px; margin: 0 auto; padding: 20px 20px 0; }
.back-bar + .section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.hero .back-bar {
  position: absolute; top: 20px; left: 0; right: 0; z-index: 1;
  max-width: 1160px; margin: 0 auto; padding: 0 20px;
}
@media (max-width: 640px) {
  .hdr-bar { gap: 10px; padding-inline: 16px; }
  .hdr-cta { display: none; }
}

/* --- Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding: 88px 20px 72px; }
.hero-glow {
  position: absolute; left: 50%; top: -180px; width: 900px; height: 520px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
}
.hero-in {
  position: relative; max-width: 820px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.hero-sites { display: flex; gap: 8px; align-items: center; }
.hero-sites .swap { color: var(--text-muted); font-size: 13px; }
.hero h1 {
  margin: 0; font-size: clamp(34px, 5.4vw, 62px); line-height: 1.08;
  letter-spacing: -0.025em; font-weight: 700; text-wrap: balance;
}
.hero-sub {
  margin: 0; max-width: 620px; font-size: 18px; line-height: 1.6;
  color: var(--text-muted); text-wrap: pretty;
}
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.note { font-size: 14px; color: var(--text-muted); }

/* --- How it works ---------------------------------------------------------- */
.how .h2 { text-align: center; margin-bottom: 48px; }
.steps {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.step { display: flex; flex-direction: column; gap: 16px; }
.step-shot {
  aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-sunken);
}
.step-shot img { width: 100%; height: 100%; object-fit: cover; }
.step-shot .pos-open { object-position: 0% 70%; }
.step-shot .pos-press { object-position: 50% 100%; }
.step-shot .pos-check { object-position: 50% 40%; }
.step-text { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--accent-wash); color: var(--accent-ink);
}
.step-num.green { background: var(--accent2-wash); color: var(--accent2-ink); }
.step h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.step p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.55; }

/* --- Both at once (the fill card) ------------------------------------------ */
.both { padding-block: clamp(56px, 7vw, 72px); }
.both-in {
  max-width: 1000px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
}
.both-copy { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.both-copy .lede { max-width: 400px; }
.replay {
  align-self: flex-start; margin-top: 6px;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 14px; font-weight: 600; padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface-raised); color: var(--text);
}
.replay:hover { border-color: var(--accent); }

/* Markup holds the finished state (rows .on, card .done); app.js rewinds it
   and plays it when the card scrolls into view. */
.fill {
  --pct: 100%;
  flex: 1 1 400px; max-width: 480px; min-width: 0;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.fill-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fill-bar { display: flex; flex-direction: column; gap: 7px; }
.fill-bar-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.fill-bar-top .ss { color: var(--accent-ink); }
.fill-bar-top .mh { color: var(--accent2-ink); }
.fill-bar-top .pct { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.fill-track { height: 6px; border-radius: 9px; background: var(--surface-inset); overflow: hidden; }
.fill-track i {
  display: block; height: 100%; width: var(--pct); border-radius: 9px;
  background: var(--accent); transition: width 0.5s ease;
}
.fill-bar.mh .fill-track i { background: var(--accent2); }

.fill-rows {
  display: flex; flex-direction: column; font-size: 14px;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.fill-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.fill-row:last-child { border-bottom: 0; }
.fill-k { width: 86px; flex: none; color: var(--text-muted); }
.fill-v {
  flex: 1; min-width: 0; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  opacity: 0.12; transform: translateX(-6px); transition: all 0.4s ease;
}
.fill-v.num { font-variant-numeric: tabular-nums; }
.fill-tick {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 11px; color: #fff;
  background: var(--surface-inset); transition: background-color 0.3s;
}
.fill-row.on .fill-v { opacity: 1; transform: none; }
.fill-row.on .fill-tick { background: var(--accent2); }
.fill-photos { display: flex; align-items: center; gap: 4px; }
.fill-photos i { width: 22px; height: 16px; border-radius: 3px; background: var(--accent-wash); }
.fill-photos i:nth-child(even) { background: var(--accent2-wash); }
.fill-photos span { font-size: 13px; color: var(--text-muted); margin-left: 4px; font-weight: 500; }
.fill-done {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: 12px; font-weight: 600; font-size: 15px;
  background: var(--accent2-wash); color: var(--accent2-ink);
  opacity: 0; transform: translateY(6px); transition: all 0.5s ease;
}
.fill.done .fill-done { opacity: 1; transform: none; }

/* --- Google Sheet ---------------------------------------------------------- */
/* A Google Sheets look in both themes, like the real thing. */
.sheet-sec .wrap { display: flex; flex-direction: column; gap: 36px; }
.gs {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  background: #fff; color: #202124;
}
.gs-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e3e5e8; }
.gs-icon {
  width: 26px; height: 26px; border-radius: 5px; background: #0f9d58;
  display: grid; place-items: center;
}
.gs-icon::before {
  content: ""; width: 12px; height: 14px; border: 2px solid #fff; border-radius: 2px;
}
.gs-title { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.gs-title b { font-size: 15px; font-weight: 500; }
.gs-title small { font-size: 12px; color: #5f6368; }
.gs-scroll { overflow-x: auto; font-size: 12px; }
/* All 12 columns fit the desktop card, like the real sheet at 100 % (the day's
   date in K included); below 1136px the card scrolls sideways. */
.gs-grid { min-width: 1136px; }
.gs-r {
  --step: 40ms;
  display: grid;
  grid-template-columns: 40px minmax(0, 100fr) minmax(0, 76fr) minmax(0, 86fr) minmax(0, 104fr) minmax(0, 150fr)
    minmax(0, 96fr) minmax(0, 76fr) minmax(0, 70fr) minmax(0, 92fr) minmax(0, 70fr) minmax(0, 90fr) minmax(0, 86fr);
}
.gs-r > span {
  padding: 0 8px; height: 30px; display: flex; align-items: center;
  border-right: 1px solid #e3e5e8; border-bottom: 1px solid #e3e5e8;
  white-space: nowrap; overflow: hidden; min-width: 0;
}
.gs-r > span:first-child,
.gs-letters > span {
  justify-content: center; background: #f8f9fa; color: #5f6368; font-size: 11px;
}
.gs-letters > span { height: 24px; }
.gs-head > span:first-child { height: 34px; }
.gs-head > span:not(:first-child) {
  height: 34px; background: #0f1420; color: #fff; font-weight: 600; border-right-color: #2a3040;
}
.gs-mark > span:not(:first-child) {
  background: #e6f4ea; color: #137333; font-family: var(--font-mono); font-weight: 700;
}
.gs-row > span:nth-child(2) { font-weight: 700; text-decoration: underline; }
.gs-row > span:nth-child(3) { color: #1f4bd8; text-decoration: underline; }
.gs-row > span:nth-child(4) { color: #00794c; text-decoration: underline; }
.gs-row > span:nth-child(9),
.gs-row > span:nth-child(10) { justify-content: flex-end; }
.gs-blur {
  display: block; width: var(--w, 100px); height: 10px; border-radius: 5px;
  background: #d5d8dc; filter: blur(2.5px);
}
.gs-r > span.gs-sel { box-shadow: inset 0 0 0 2px #1a73e8; background: #e8f0fe; }
.gs-tabs {
  display: flex; align-items: center; gap: 16px; padding: 0 12px; height: 36px;
  background: #f8f9fa; border-top: 1px solid #e3e5e8; font-size: 13px;
}
.gs-tabs .plus { color: #5f6368; font-size: 18px; }
.gs-tabs .tab {
  padding: 6px 14px; background: #e8f0fe; color: #1a73e8; font-weight: 600;
  border-radius: 6px 6px 0 0; align-self: flex-end;
}

/* --- Security -------------------------------------------------------------- */
.safe { border-top: 1px solid var(--border); }
.safe .wrap { display: flex; flex-direction: column; gap: 36px; }
.safe-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.safe-card {
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.safe-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent-ink); margin-bottom: 4px;
}
.safe-icon.green { background: var(--accent2-wash); color: var(--accent2-ink); }
.safe-card h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.safe-card p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.safe-note { margin: 0; text-align: center; font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* --- Support page ------------------------------------------------------------ */
.support-hero { padding-bottom: 8px; }
.wrap.narrow { max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.sup-contact { padding-top: 32px; }
.contact-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.safe-card .contact-value { color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.safe-card .btn { align-self: flex-start; margin-top: 6px; padding: 11px 18px; font-size: 15px; }
.send-list { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.send-list p { margin: 0 0 6px; color: var(--text); font-weight: 600; }
.send-list ul { margin: 0; padding-inline-start: 1.2em; }
.sup-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.sec .wrap > .sup-grid { margin-top: 36px; }
.sup-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); max-width: 920px; margin-inline: auto; }
.sec .wrap > .sup-grid + .safe-note { margin-top: 28px; }
.sec .wrap > .safe-note + .sup-note2 { margin-top: 6px; }

/* --- Pricing --------------------------------------------------------------- */
.pricing { padding-bottom: clamp(80px, 11vw, 120px); border-bottom: 0; }
.pricing .wrap { max-width: 1080px; display: flex; flex-direction: column; gap: 40px; }
.pricing .sec-head { gap: 10px; }
.pricing .sec-head .lede { max-width: 520px; line-height: 1.5; }
.plans {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.plan {
  position: relative; background: var(--surface-raised);
  border: 1px solid var(--border); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.25s, border-color 0.25s;
}
.plan:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.plan-name { font-weight: 600; font-size: 16px; }
.plan-price { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; margin-top: 14px; line-height: 1.2; }
/* The 3-month card's price without the discount, struck through beside it. */
.plan-was { margin-left: 10px; font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--text-muted); vertical-align: 0.35em; white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.plan.rec { border: 2px solid var(--accent); padding: 23px; box-shadow: var(--shadow); }
.plan.rec:hover { border-color: var(--accent); }
.plan-badge {
  position: absolute; top: -12px; left: 20px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.pricing-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pricing-cta .btn { padding-inline: 28px; }
.pricing-cta .trial { font-size: 15px; }
.pricing-cta .fine { font-size: 13px; color: var(--text-muted); }

.agency {
  position: relative; border-radius: 20px; padding: 1.5px;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
}
.agency-in {
  position: relative; overflow: hidden; border-radius: 19px;
  background: var(--surface-raised); padding: 32px;
  display: grid; gap: 28px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.agency-glow {
  position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
}
.agency-copy, .agency-side { position: relative; display: flex; flex-direction: column; }
.agency-copy { gap: 12px; }
.agency-side { gap: 16px; }
.agency-tags { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seats { display: flex; padding-left: 7px; }
.seats i {
  width: 22px; height: 22px; border-radius: 50%; margin-left: -7px;
  border: 2px solid var(--surface-raised); background: var(--accent);
}
.seats i:nth-child(2) { background: var(--accent2); }
.seats i:nth-child(3) { background: var(--blue-300); }
.seats i:nth-child(4) { background: var(--green-300); }
.agency-tags .pill { padding: 4px 10px; }
.agency h3 { margin: 0; font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1.25; }
.agency-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pill-soon { background: var(--surface-inset); color: var(--text); border: 1px solid var(--border-strong); padding: 4px 10px; }
/* The agency plan is not sold yet: a button-shaped label, not a link. */
.btn-soon {
  background: var(--surface-inset); color: var(--text-muted); border-color: var(--border);
  cursor: default;
}
.agency-copy p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.55; max-width: 420px; }
.agency-copy .agency-trial {
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--accent2-ink); font-size: 14px; font-weight: 600;
}
.agency-trial svg { margin-top: 3px; }
.seat-prices {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.seat-prices > div { padding: 18px; display: flex; flex-direction: column; gap: 4px; background: var(--surface-sunken); }
.seat-prices span { font-size: 13px; color: var(--text-muted); }
.seat-prices b { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.agency-side .btn { width: 100%; padding: 14px 22px; }
.agency-mail { margin: -4px 0 0; text-align: center; font-size: 14px; color: var(--text-muted); }

/* --- Footer ---------------------------------------------------------------- */
.ftr { padding: 48px 20px 28px; }
.ftr .wrap { display: flex; flex-direction: column; gap: 28px; }
.band {
  position: relative; overflow: hidden; border-radius: 24px;
  background: #0b1020; color: #f3f4f6; padding: 56px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.band::before, .band::after { content: ""; position: absolute; pointer-events: none; }
.band::before {
  right: -120px; top: -160px; width: 460px; height: 460px;
  background: radial-gradient(closest-side, rgb(47 96 243 / 0.35), transparent);
}
.band::after {
  left: -140px; bottom: -200px; width: 420px; height: 420px;
  background: radial-gradient(closest-side, rgb(0 185 114 / 0.22), transparent);
}
.band-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; flex: 1 1 380px; }
.band h2 {
  margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.15;
  letter-spacing: -0.02em; font-weight: 700; text-wrap: balance;
}
.band-note { font-size: 15px; color: #9ca3af; }
.band .btn { position: relative; z-index: 1; background: #2f60f3; padding: 15px 26px; white-space: nowrap; }
.band .btn:hover { box-shadow: 0 6px 20px rgb(47 96 243 / 0.5); }
.ftr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 0 4px; }
.ftr-row .logo { font-size: 16px; }
.ftr-row .logo svg { width: 24px; height: 24px; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.ftr-links a { color: var(--text-muted); }
.ftr-links a:hover { color: var(--text); }
.ftr-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding: 20px 4px 0; border-top: 1px solid var(--border);
  font-size: 12px; line-height: 1.6; color: var(--text-muted);
}
.ftr-legal p { margin: 0; max-width: 720px; }
.ftr-legal span { white-space: nowrap; }

@media (max-width: 640px) {
  .band { padding: 40px 24px; }
  .agency-in { padding: 20px; }
  .agency-side .btn { font-size: 15px; padding-inline: 14px; }
}

/* --- Legal pages (privacy.html, terms.html, the server's /terms) ------------ */
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: max(16px, 4vw); }
.container.narrow { max-width: 48rem; }
.section { padding-block: clamp(3rem, 6vw, 5rem); line-height: 1.7; }
.section h1, .section h2, .section h3 {
  margin: 0 0 var(--sp-3); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance;
}
.section h1 { font-size: clamp(2rem, 1.15rem + 3.7vw, 3rem); font-weight: 700; letter-spacing: -0.025em; }
.section h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-top: var(--sp-7); }
.section h3 { font-size: var(--fs-h3); }
.section p { margin: 0 0 var(--sp-4); max-width: var(--measure); }
.section ul { padding-inline-start: 1.15em; }
.section a { text-decoration: underline; }
.section code {
  font-family: var(--font-mono); font-size: 0.8125rem;
  background: var(--surface-inset); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 5px;
}
.scroll-x { overflow-x: auto; overscroll-behavior-x: contain; min-width: 0; max-width: 100%; }
.data-table { border-collapse: collapse; width: max-content; min-width: 100%; font-size: var(--fs-sm); }
.data-table th, .data-table td {
  text-align: start; padding: var(--sp-3); border-bottom: 1px solid var(--border); vertical-align: top;
}
.data-table th { font-weight: 600; white-space: nowrap; }
.data-table thead th {
  background: var(--surface-sunken); font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted);
}
.data-table td { color: var(--text-muted); }
.data-table.wrap { width: 100%; }
.data-table.wrap td:first-child { width: 62%; }
.data-table code { white-space: nowrap; color: var(--text); }
.callout {
  border: 1px solid var(--border); border-inline-start: 3px solid var(--accent2);
  background: var(--surface-raised); border-radius: 12px; padding: var(--sp-5);
  margin-block-end: var(--sp-6);
}
.callout h2 { margin-top: 0; }
/* The subscription terms page (rendered by the server from Markdown). */
.section table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); margin: 0 0 var(--sp-5); }
.section th, .section td { text-align: start; padding: var(--sp-3); border-bottom: 1px solid var(--border); }
.section thead th { background: var(--surface-sunken); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.section blockquote {
  margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); border-inline-start: 3px solid var(--accent);
  background: var(--surface-raised); border-radius: 8px; color: var(--text-muted);
}
.callout p:last-child { margin-bottom: 0; }
.host-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.host-list li {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  background: var(--surface-inset); border: 1px solid var(--border);
  border-radius: 999px; padding: var(--sp-1) var(--sp-3); color: var(--text-muted);
}
