/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-elev: #ffffff;
  --fg: #0b0f1a;
  --fg-muted: #4b556a;
  --fg-faint: #6a7388;
  --border: rgba(11, 15, 26, 0.08);
  --border-strong: rgba(11, 15, 26, 0.18);

  /* Primary brand register = the warm orange/red from the app's CTAs. */
  --accent: #fa8c4d;
  --accent-2: #f25864;

  /* Cool indigo kept for accents (eyebrow dot, secondary illustrations). */
  --indigo: #5c73f5;
  --indigo-2: #3850dc;

  --success: #1fb872;
  --warning: #fbb23b;
  --danger: #f25864;
  --photos: #b05cf5;
  --videos: #fa8c4d;
  --contacts: #4d99fa;
  --files: #6671d8;
  --vault: #38b88d;
  --habits: #46bdc8;
  --shadow-lg: 0 24px 64px -32px rgba(250, 140, 77, 0.32), 0 8px 24px -12px rgba(11, 15, 26, 0.12);
  --shadow-md: 0 12px 32px -16px rgba(11, 15, 26, 0.18);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --maxw: 1180px;
  --pad: clamp(20px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f1a;
    --bg-soft: #11172a;
    --bg-elev: #141a2e;
    --fg: #f4f6fb;
    --fg-muted: #c1c8d8;
    --fg-faint: #8a93a8;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.24);
    --shadow-lg: 0 24px 64px -32px rgba(250, 140, 77, 0.55), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.94em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  clip-path: inset(50%);
  width: 1px; height: 1px; overflow: hidden;
  background: var(--accent); color: #fff;
  padding: 8px 14px; border-radius: 8px; z-index: 1000;
}
.skip-link:focus, .skip-link:focus-visible {
  clip-path: none;
  width: auto; height: auto;
  top: 12px; left: 12px;
  overflow: visible;
}

/* Global focus ring. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.site-header,
.hero-grid,
.trust-grid,
.features,
.how,
.privacy,
.compare,
.faq,
.download,
.foot-grid,
.foot-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.brand-mark-img {
  border-radius: 22%;
  display: block;
}
.brand-name { font-size: 17px; }
.brand-name-suffix { color: var(--fg-faint); font-weight: 600; }

.primary-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  margin-right: 6px;
  flex-wrap: wrap;
}
.primary-nav a {
  padding: 12px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--fg-muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}
.primary-nav a:hover { color: var(--fg); background: var(--bg-soft); }
@media (max-width: 820px) {
  .primary-nav { display: none; }
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease;
}
.cta-pill:hover { transform: translateY(-1px); }
@media (max-width: 820px) {
  .cta-pill { display: none; }
}

/* ---------- Mobile disclosure menu ---------- */
.mobile-nav {
  display: none;
  margin-left: auto;
  position: relative;
}
@media (max-width: 820px) {
  .mobile-nav { display: block; }
}
.mobile-nav > summary {
  list-style: none;
  cursor: pointer;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--fg);
}
.mobile-nav > summary::-webkit-details-marker { display: none; }
.mobile-nav[open] > summary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.mobile-nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}
.mobile-nav-panel a {
  padding: 14px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
}
.mobile-nav-panel a:hover { background: var(--bg-soft); }
.mobile-nav-cta {
  margin-top: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important;
  font-weight: 600 !important;
  justify-content: center;
}
.mobile-nav-cta:hover { filter: brightness(1.05); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 14px 32px -16px rgba(250, 88, 100, 0.65);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 38px -16px rgba(250, 88, 100, 0.85); }
.btn-ghost {
  background: var(--bg-soft);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--accent); }
@media (prefers-color-scheme: dark) {
  .btn-ghost { background: rgba(255, 255, 255, 0.04); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.orb-1 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(250, 140, 77, 0.55), transparent 70%);
  top: -160px; left: -180px;
  animation: orb 22s ease-in-out infinite alternate;
}
.orb-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(242, 88, 100, 0.45), transparent 70%);
  bottom: -180px; right: -160px;
  animation: orb 28s ease-in-out infinite alternate-reverse;
}
@media (prefers-reduced-motion: reduce) {
  .orb-1, .orb-2 { animation: none; }
}
.grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(11, 15, 26, 0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.4;
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) {
  .grain {
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    mix-blend-mode: screen;
  }
}
@keyframes orb {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  padding-top: clamp(56px, 8vw, 110px);
  padding-bottom: clamp(56px, 8vw, 110px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.dot-photos { background: var(--photos); box-shadow: 0 0 0 4px color-mix(in srgb, var(--photos) 22%, transparent); }
.dot-success { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent); }
.dot-warning { background: var(--warning); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warning) 22%, transparent); }

h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 700;
  margin: 18px 0 14px;
}
.grad-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 70%, #b05cf5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.lede {
  font-size: clamp(17px, 1.6vw, 19.5px);
  color: var(--fg-muted);
  max-width: 540px;
  margin: 0;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 28px 0 22px;
}
.hero-bullets {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 14.5px; color: var(--fg-muted);
}
.hero-bullets li { display: inline-flex; align-items: center; gap: 6px; }
.hero-bullets svg { color: var(--success); }

/* ---------- Phone mockup ---------- */
.hero-visual {
  display: flex;
  justify-content: center;
  padding-bottom: 32px; /* leaves room for the rotated frame's bottom edge */
}
.phone-frame {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 320 / 660;
  border-radius: 48px;
  background: linear-gradient(180deg, #1b2236 0%, #0a0e1c 100%);
  padding: 14px;
  box-shadow:
    0 38px 80px -36px rgba(11, 15, 26, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 0 2px rgba(255, 255, 255, 0.04);
  transform: rotate(-2.5deg);
  transition: transform 0.4s ease;
}
.phone-frame:hover { transform: rotate(0deg) translateY(-4px); }
@media (hover: none) {
  /* Touch devices: don't tilt the screenshot, it just hurts readability. */
  .phone-frame { transform: rotate(0deg); }
}
.phone-frame img {
  width: 100%; height: 100%;
  border-radius: 36px;
  object-fit: cover;
  display: block;
}
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #0a0e1c;
  border-radius: 18px;
  z-index: 2;
}

/* ---------- Trust strip ---------- */
.trust-strip { padding-top: 8px; padding-bottom: 24px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.trust-item svg { grid-row: span 2; color: var(--accent); }
.trust-item strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust-item span:last-child { color: var(--fg-muted); font-size: 13.5px; line-height: 1.45; }
.trust-counter { font-variant-numeric: tabular-nums; }

/* ---------- Section heads ---------- */
.section-head { max-width: 720px; margin: 0 0 36px; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  margin: 12px 0 10px;
}
.section-head em { font-style: italic; color: var(--accent); }
.section-head p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 17px;
}

.features, .how, .privacy, .compare, .faq, .download {
  padding-top: clamp(64px, 8vw, 110px);
  padding-bottom: clamp(64px, 8vw, 110px);
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 680px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
  opacity: 0.7;
}
.feature-card[data-tone="photos"]   { --c1: #b05cf5; --c2: #5c73f5; }
.feature-card[data-tone="videos"]   { --c1: #fa8c4d; --c2: #fbb23b; }
.feature-card[data-tone="contacts"] { --c1: #4d99fa; --c2: #5c73f5; }
.feature-card[data-tone="files"]    { --c1: #6671d8; --c2: #b05cf5; }
.feature-card[data-tone="vault"]    { --c1: #38b88d; --c2: #1fb872; }
.feature-card[data-tone="habits"]   { --c1: #46bdc8; --c2: #38b88d; }
.feature-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.feature-icon {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c1, var(--accent)), var(--c2, var(--accent-2)));
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--c1, var(--accent)) 70%, transparent);
}
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { margin: 0 0 14px; color: var(--fg-muted); font-size: 15px; }
.feature-card ul {
  list-style: none; padding: 0; margin: 0;
  font-size: 13.5px; color: var(--fg-muted);
}
.feature-card li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 5px 0;
  border-top: 1px dashed var(--border);
}
.feature-card li::before {
  content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%;
  background: var(--c1, var(--accent));
  margin-top: 8px;
}

/* ---------- How ---------- */
.how { background: var(--bg-soft); }
.how-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.how-steps li {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.step-no {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.how-steps h3 { font-size: 18px; margin-bottom: 6px; }
.how-steps p { margin: 0; color: var(--fg-muted); font-size: 15px; }
.how-steps em { color: var(--fg); font-style: normal; font-weight: 600; }

/* ---------- Privacy ---------- */
.privacy-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, var(--bg-elev)), var(--bg-elev) 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 52px);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 860px) {
  .privacy-card { grid-template-columns: 1fr; }
}
.privacy-card h2 { font-size: clamp(24px, 3.2vw, 36px); margin: 12px 0 16px; }
.privacy-card p { color: var(--fg-muted); margin: 0 0 14px; }
.anti-list {
  list-style: none; padding: 0; margin: 16px 0 22px;
  display: grid; gap: 8px;
}
.anti-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
}
.anti-list li::before {
  content: "✕";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--danger) 20%, transparent);
  color: var(--danger);
  font-size: 12px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-weight: 700;
}
.link-arrow {
  display: inline-flex; gap: 6px;
  color: var(--accent);
  font-weight: 600;
}
.link-arrow:hover { text-decoration: underline; }

/* App Privacy Report — stylized iOS Settings panel as a real proof artifact. */
.apr-card {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-md);
  text-align: left;
  font-size: 14px;
}
.apr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.apr-app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--fg);
}
.apr-platform {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 600;
}
.apr-section { margin-bottom: 12px; }
.apr-section h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg);
}
.apr-section p { margin: 0; color: var(--fg-muted); font-size: 13.5px; line-height: 1.4; }
.apr-section.apr-empty p { color: var(--fg-faint); }
.apr-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--fg-faint);
  text-align: center;
}

/* ---------- Testimonial / before-vs-after ---------- */
.testimonial {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--pad);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
.testimonial-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial-card blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  font-style: italic;
}
.testimonial-card ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.testimonial-card li {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--fg-muted);
}
.testimonial-card header { display: flex; align-items: center; }
.t-label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.t-label-bad {
  background: color-mix(in srgb, var(--danger) 18%, transparent);
  color: var(--danger);
}
.t-label-good {
  background: color-mix(in srgb, var(--success) 22%, transparent);
  color: var(--success);
}
.testimonial-bad blockquote {
  color: var(--fg-faint);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--danger) 55%, transparent);
  text-decoration-thickness: 2px;
}
.testimonial-bad li svg { color: var(--danger); flex-shrink: 0; margin-top: 1px; }
.testimonial-good {
  border-color: color-mix(in srgb, var(--success) 35%, var(--border));
  background: linear-gradient(160deg, color-mix(in srgb, var(--success) 8%, var(--bg-elev)), var(--bg-elev) 65%);
}
.testimonial-good li svg { color: var(--success); flex-shrink: 0; margin-top: 1px; }

/* ---------- Compare ---------- */
.compare-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.compare-table .row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
}
.compare-table .row > * {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.compare-table .row > *:not(:last-child) { border-right: 1px solid var(--border); }
.row-head > * {
  background: var(--bg-soft);
  font-weight: 700;
  border-top: 0;
}
.compare-table .yes { color: var(--success); font-weight: 600; }
.compare-table .no  { color: var(--fg-muted); }
@media (max-width: 700px) {
  /* Stack each comparison as: feature label on top, then CleanSpace + Typical side by side. */
  .compare-table .row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "feature feature"
      "us them";
    padding-bottom: 4px;
  }
  .compare-table .row > *:nth-child(1) {
    grid-area: feature;
    background: var(--bg-soft);
    font-weight: 700;
    border-right: 0;
    padding-bottom: 8px;
  }
  .compare-table .row > *:nth-child(2) {
    grid-area: us;
    padding-top: 12px;
    font-size: 14px;
  }
  .compare-table .row > *:nth-child(3) {
    grid-area: them;
    padding-top: 12px;
    border-right: 0;
    font-size: 14px;
  }
  .compare-table .row > *:nth-child(2)::before {
    content: "✓ CleanSpace";
    display: block;
    font-size: 11px;
    color: var(--success);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2px;
  }
  .compare-table .row > *:nth-child(3)::before {
    content: "✕ Typical cleaner";
    display: block;
    font-size: 11px;
    color: var(--fg-faint);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2px;
  }
  /* Header row collapses to a single label since the per-row inline labels carry the meaning. */
  .row-head > *:nth-child(2),
  .row-head > *:nth-child(3) { display: none; }
  .row-head > *:nth-child(1) {
    grid-area: feature;
    text-align: center;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--fg-muted);
  }
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 18px;
  transition: border-color 0.2s ease;
}
.faq-list details[open] { border-color: var(--border-strong); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  min-height: 44px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 2.4px solid var(--fg-muted);
  border-bottom: 2.4px solid var(--fg-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-list details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.faq-list summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}
.faq-list details p {
  margin: 0 0 16px;
  color: var(--fg-muted);
  font-size: 15.5px;
}

/* ---------- Download ---------- */
.download-card {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.download-card::before, .download-card::after {
  content: ""; position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}
.download-card::before {
  width: 280px; height: 280px;
  background: #fff;
  top: -80px; left: -80px;
  opacity: 0.18;
}
.download-card::after {
  width: 360px; height: 360px;
  background: #b05cf5;
  bottom: -120px; right: -120px;
  opacity: 0.35;
}
.download-card .eyebrow {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  position: relative;
}
.download-card .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.25); }
.download-card h2 {
  position: relative;
  font-size: clamp(28px, 3.8vw, 46px);
  margin: 14px 0 12px;
}
.download-card p {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  color: rgba(255,255,255,0.85);
}
.download-actions {
  position: relative;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin: 28px 0 14px;
}
.download-card .btn-primary {
  background: #fff;
  color: var(--accent-2);
  box-shadow: 0 16px 32px -12px rgba(0,0,0,0.35);
}
.download-card .btn-ghost {
  border-color: rgba(255,255,255,0.36);
  color: #fff;
}
.download-card .btn-ghost:hover { background: rgba(255,255,255,0.1); }
.fine-print {
  position: relative;
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  padding-top: 56px;
  padding-bottom: 36px;
}
@media (max-width: 740px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.brand-foot { font-weight: 700; }
.foot-blurb { color: var(--fg-muted); font-size: 14px; max-width: 320px; margin: 10px 0 0; }
.foot-grid nav {
  display: flex; flex-direction: column; gap: 8px;
}
.foot-grid h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fg-faint); font-weight: 700; margin-bottom: 6px;
}
.foot-grid nav a {
  color: var(--fg-muted);
  font-size: 14.5px;
}
.foot-grid nav a:hover { color: var(--fg); }
.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 18px; padding-bottom: 30px;
  border-top: 1px solid var(--border);
  color: var(--fg-faint);
  font-size: 13px;
}

/* Language picker — the active locale gets the accent treatment. */
.foot-grid nav[aria-label="Language"] {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
}
.foot-grid nav[aria-label="Language"] a[aria-current="true"] {
  color: var(--fg);
  font-weight: 600;
}
.foot-grid nav[aria-label="Language"] a[aria-current="true"]::before {
  content: "•";
  margin-right: 6px;
  color: var(--accent);
}

/* RTL: mirror primary nav, brand alignment, mobile-nav anchor position. */
html[dir="rtl"] .primary-nav { margin-right: auto; margin-left: 6px; }
html[dir="rtl"] .mobile-nav { margin-right: auto; margin-left: 0; }
html[dir="rtl"] .mobile-nav-panel { right: auto; left: 0; }
html[dir="rtl"] .back-link { direction: ltr; }
html[dir="rtl"] .download-card,
html[dir="rtl"] .section-head h2 { text-align: right; }
html[dir="rtl"] .section-head { text-align: right; }
html[dir="rtl"] .privacy-card { text-align: right; }
html[dir="rtl"] .anti-list li { padding-left: 0; padding-right: 28px; }
html[dir="rtl"] .anti-list li::before { left: auto; right: 0; }

/* ---------- Doc pages (privacy/terms/support/press) ---------- */
.doc-page main {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--pad);
}
.doc-page h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 0 0 8px;
}
.doc-page .doc-meta { color: var(--fg-muted); font-size: 14px; margin-bottom: 28px; }
.doc-page h2 {
  font-size: 22px;
  margin: 36px 0 10px;
  padding-top: 8px;
}
.doc-page h3 { font-size: 18px; margin: 22px 0 8px; }
.doc-page p, .doc-page li { color: var(--fg-muted); font-size: 16px; line-height: 1.65; }
.doc-page p { margin: 0 0 14px; }
.doc-page ul, .doc-page ol { padding-left: 22px; }
.doc-page li { margin-bottom: 6px; }
.doc-page a { color: var(--accent); }
.doc-page a:hover { text-decoration: underline; }
.doc-page hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.doc-page .back-link {
  display: inline-flex; gap: 6px; align-items: center;
  color: var(--fg-muted); font-size: 14px; margin-bottom: 18px;
}
.doc-page .back-link:hover { color: var(--fg); }
