/* ==========================================================================
   EasyClean — design tokens
   ========================================================================== */

:root {
  --ink:        #0E1F3C;
  --ink-2:      #1B3A63;
  --teal:       #2BAF95;
  --teal-deep:  #1C7A8C;
  --blue-deep:  #1B4E8C;
  --bg:         #F6F8F9;
  --panel:      #FFFFFF;
  --panel-mint: #EFF8F5;
  --line:       #E1E7E8;
  --line-soft:  #EAEEEF;
  --ash:        #4C5A6E;
  --ash-soft:   #7B8899;
  --danger:     #C1443C;
  --danger-bg:  #FBEBEA;

  --brand-grad: linear-gradient(120deg, var(--blue-deep) 0%, var(--teal-deep) 55%, var(--teal) 100%);

  --f-display: "Space Grotesk", "Segoe UI", sans-serif;
  --f-body:    "Inter", "Segoe UI", sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 10px;

  --shadow-soft: 0 20px 40px -24px rgba(14, 31, 60, 0.25);
  --shadow-card: 0 12px 28px -18px rgba(14, 31, 60, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ash);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
li { overflow-wrap: break-word; word-break: break-word; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

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

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--teal-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, background 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); background: var(--ink-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 249, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(14,31,60,0.35);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 20px;
}
.brand-mark { display: flex; align-items: center; }
.brand-mark img { height: 26px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.member-login-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ash);
  padding: 6px 2px;
  transition: color 0.25s ease;
}
.member-login-link:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 16px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 108px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px; right: -180px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(43,175,149,0.16), rgba(43,175,149,0) 70%);
  pointer-events: none;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 18px 0 20px;
}
.hero-copy h1 em {
  font-style: normal;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p.lead {
  font-size: 17.5px;
  color: var(--ash);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-proof {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-proof div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-proof strong { font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); }
.hero-proof span { font-size: 12.5px; color: var(--ash-soft); }

/* ---- Signature element: live Feed Guard demo ---- */
.feed-guard {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  min-width: 0;
}
.feed-guard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--ink);
  color: #fff;
}
.feed-guard-head .dots { display: flex; gap: 6px; }
.feed-guard-head .dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.feed-guard-head .label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
}
.feed-guard-head .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(43,175,149,0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(43,175,149,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(43,175,149,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,175,149,0); }
}

.feed-guard-body {
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 340px;
}

.feed-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.5s ease forwards;
}
.feed-item .avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #c9d3de, #eef1f4);
}
.feed-item .body { flex: 1; min-width: 0; }
.feed-item .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.feed-item .text {
  font-size: 13.5px;
  color: var(--ash);
  margin-top: 2px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.feed-item.is-spam .text { color: var(--danger); }
.feed-item .tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  align-self: flex-start;
  flex-shrink: 0;
}
.feed-item.is-clean .tag { background: var(--panel-mint); color: var(--teal-deep); }
.feed-item.is-spam .tag  { background: var(--danger-bg); color: var(--danger); }

.feed-item.is-wiped {
  animation: rise 0.5s ease forwards, wipe 0.7s ease forwards 1.4s;
}
.wipe-sheen {
  position: absolute;
  inset: 0;
  background: var(--brand-grad);
  transform: translateX(-101%);
  opacity: 0;
}
.feed-item.is-wiped .wipe-sheen {
  animation: sheen 0.7s ease forwards 1.4s;
}
@keyframes sheen {
  0%   { transform: translateX(-101%); opacity: 1; }
  60%  { transform: translateX(0%); opacity: 1; }
  100% { transform: translateX(0%); opacity: 0; }
}
@keyframes wipe {
  0%   { max-height: 60px; margin-top: 0; padding-top: 12px; padding-bottom: 12px; opacity: 1; }
  55%  { opacity: 1; }
  100% { max-height: 0; margin-top: -10px; padding-top: 0; padding-bottom: 0; opacity: 0; }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.feed-guard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ash-soft);
}
.feed-guard-foot strong { color: var(--teal-deep); }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  margin: 14px 0 0;
  letter-spacing: -0.01em;
}
.section-head p { margin-top: 14px; font-size: 16px; color: var(--ash); max-width: 56ch; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Problem section
   ========================================================================== */

.problem { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  min-width: 0;
}
.problem-grid > * { min-width: 0; }
.problem-card {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  min-width: 0;
}
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }
.problem-card .glyph {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--danger-bg);
  color: var(--danger);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.problem-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.problem-card p { font-size: 14.5px; color: var(--ash); }

/* ==========================================================================
   How it works
   ========================================================================== */

.steps { position: relative; }
.steps-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  min-width: 0;
}
.steps-track > * { min-width: 0; }
.steps-track::before {
  content: "";
  position: absolute;
  top: 27px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  padding: 0 18px;
  text-align: left;
  min-width: 0;
}
.step .num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}
.step.is-active .num { background: var(--brand-grad); color: #fff; border-color: transparent; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ash); max-width: 30ch; }

/* ==========================================================================
   Features (why brands choose)
   ========================================================================== */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.feature-row:first-of-type { border-top: none; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
.feature-copy { min-width: 0; }
.feature-copy .glyph {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--panel-mint);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-copy h3 { font-size: 1.5rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.feature-copy p { font-size: 15.5px; }

.feature-visual {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
  box-shadow: var(--shadow-card);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}
.compare-row > * { min-width: 0; }
.compare-col { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13px; overflow-wrap: break-word; word-break: break-word; }
.compare-col.bad { background: var(--danger-bg); color: var(--danger); }
.compare-col.good { background: var(--panel-mint); color: var(--teal-deep); }
.compare-col .k { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; display:block; margin-bottom: 6px;}

.latency-meter { display: flex; align-items: baseline; gap: 10px; }
.latency-meter .big { font-family: var(--f-display); font-size: 2.6rem; color: var(--ink); }
.latency-meter .unit { color: var(--ash-soft); font-size: 14px; }
.meter-bar { height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin-top: 10px; }
.meter-bar span { display:block; height: 100%; width: 6%; background: var(--brand-grad); border-radius: 999px; }

.discretion-visual { display: flex; flex-direction: column; gap: 10px; }
.discretion-visual .ghost-line { height: 10px; border-radius: 6px; background: var(--line-soft); }
.discretion-visual .ghost-line.w60 { width: 60%; }
.discretion-visual .ghost-line.w80 { width: 80%; }
.discretion-visual .ghost-line.w40 { width: 40%; }
.discretion-visual .quiet-tag {
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--teal-deep);
  background: var(--panel-mint);
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 4px;
}

.focus-visual { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; min-width: 0; }
.focus-visual > * { min-width: 0; }
.focus-visual .tile {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-deep);
}

/* ==========================================================================
   Gallery strip (placeholder imagery area)
   ========================================================================== */

.gallery { background: var(--ink); color: #fff; }
.gallery .section-head h2 { color: #fff; }
.gallery .section-head p { color: rgba(255,255,255,0.68); }
.gallery .eyebrow { color: var(--teal); }
.gallery .eyebrow::before { background: var(--teal); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: repeat(2, 180px);
  gap: 14px;
  min-width: 0;
}
.gallery-grid > * { min-width: 0; }
.gallery-tile {
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-tile.tall { grid-row: span 2; }
.gallery-tile span {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  overflow-wrap: break-word;
  word-break: break-word;
}
.gallery-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(43,175,149,0.25), transparent 55%);
}

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; min-width: 0; }
.trust-item svg { flex-shrink: 0; color: var(--teal-deep); }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta-final {
  position: relative;
  border-radius: 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) clamp(28px, 6vw, 72px);
  background: var(--brand-grad);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.cta-final::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(255,255,255,0.18), transparent 55%);
}
.cta-final h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); position: relative; }
.cta-final p { color: rgba(255,255,255,0.88); max-width: 50ch; margin: 16px auto 30px; position: relative; font-size: 16px;}
.cta-final .btn-primary { background: #fff; color: var(--ink); position: relative; }
.cta-final .btn-primary:hover { background: #fff; box-shadow: 0 18px 34px -14px rgba(0,0,0,0.35); }
.cta-final .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; position: relative; }
.cta-final .btn-ghost:hover { border-color: #fff; }
.cta-final .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 30px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}
.footer-brand { min-width: 0; }
.footer-brand img { height: 90px; width: auto; }
.footer-brand p { margin-top: 14px; font-size: 13.5px; color: var(--ash-soft); max-width: 34ch; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; min-width: 0; }
.footer-col { min-width: 0; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ash-soft); margin-bottom: 14px; font-family: var(--f-mono); font-weight: 500;}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-2); }
.footer-col a:hover { color: var(--teal-deep); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ash-soft);
}

/* ==========================================================================
   Privacy page
   ========================================================================== */

.legal-hero { padding: clamp(48px, 7vw, 80px) 0 20px; }
.legal-hero .eyebrow { margin-bottom: 14px; }
.legal-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal-hero .updated { margin-top: 12px; font-size: 13.5px; color: var(--ash-soft); font-family: var(--f-mono); }

.legal-body {
  max-width: 760px;
  padding-bottom: 90px;
}
.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 44px;
  margin-bottom: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.legal-body section:first-of-type h2 { border-top: none; padding-top: 0; margin-top: 30px; }
.legal-body p { margin-bottom: 14px; font-size: 15.5px; color: var(--ash); }
.legal-body ul { margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.legal-body li { font-size: 15.5px; color: var(--ash); padding-left: 22px; position: relative; }
.legal-body li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
}
.legal-body strong { color: var(--ink-2); }
.legal-body a.inline-link { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-callout {
  margin-top: 40px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--panel-mint);
  border: 1px solid rgba(43,175,149,0.25);
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ==========================================================================
   Auth (portal login) page
   ========================================================================== */

.auth-body { min-height: 100vh; }

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 48px var(--pad);
  background:
    radial-gradient(circle at 15% 10%, rgba(43,175,149,0.10), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(27,78,140,0.08), transparent 45%);
}

.auth-logo img { height: 28px; width: auto; }

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 36px 32px;
}

.auth-card h1 { font-size: 1.7rem; margin: 12px 0 6px; }
.auth-sub { font-size: 14.5px; color: var(--ash); margin-bottom: 24px; }

.auth-error {
  font-size: 13.5px;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 20px;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.auth-field input {
  font-family: var(--f-body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 3px rgba(28,122,140,0.15);
}
.auth-submit { justify-content: center; width: 100%; margin-top: 6px; }
.auth-footnote { margin-top: 22px; font-size: 13px; color: var(--ash-soft); text-align: center; }

/* ==========================================================================
   Dashboard shell
   ========================================================================== */

.dash-topbar { border-bottom: 1px solid var(--line); background: var(--panel); }
.dash-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.dash-topbar .brand-mark img { height: 24px; width: auto; }

.dash-shell { padding: clamp(56px, 8vw, 96px) 0; }
.dash-shell h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 14px 0 12px; }
.dash-sub { font-size: 16px; color: var(--ash); max-width: 52ch; }

/* ==========================================================================
   Mobile nav drawer
   (sits at body level in the HTML, NOT nested inside .site-header — a
   backdrop-filter on an ancestor creates a new containing block for
   position:fixed children, which was breaking this before)
   ========================================================================== */

.mobile-nav {
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
  z-index: 95;
  padding: 24px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 0 24px 48px -24px rgba(14,31,60,0.35);
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a {
  font-family: var(--f-display);
  font-size: 1.2rem;
  color: var(--ink);
  padding: 15px 2px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a.btn-primary {
  font-family: var(--f-body);
  font-size: 15px;
  margin-top: 18px;
  justify-content: center;
  border-bottom: none;
  padding: 14px 26px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .feed-guard { order: 2; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy, .feature-row.reverse .feature-visual { order: unset; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 160px); }
  .gallery-tile.tall { grid-row: span 1; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .member-login-link { display: none; }
  .header-actions { gap: 10px; }
  .header-actions .btn-primary { padding: 10px 16px; font-size: 13.5px; }

  section { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: clamp(1.5rem, 6vw, 1.9rem); }

  .hero { padding: 36px 0 32px; }
  .hero-copy h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); margin: 14px 0 14px; }
  .hero-copy p.lead { font-size: 15.5px; margin-bottom: 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 26px; }
  .hero-actions .btn { white-space: normal; text-align: center; }
  .hero-proof { gap: 16px; padding-top: 18px; }
  .hero-proof div { flex: 1 1 auto; min-width: 42%; }

  .problem-grid { grid-template-columns: 1fr; gap: 14px; }
  .problem-card { padding: 22px 20px; }

  .steps-track { grid-template-columns: 1fr; gap: 28px; }
  .steps-track::before { display: none; }

  .feature-row { padding: 28px 0; gap: 22px; }
  .feature-copy h3 { font-size: 1.25rem; }
  .compare-row { grid-template-columns: 1fr; gap: 8px; }

  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 150px); gap: 10px; }

  .trust {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px var(--pad);
    gap: 14px;
  }
  .trust .btn { width: 100%; justify-content: center; }

  .cta-final { padding: 40px 22px; border-radius: 20px; }
  .cta-final h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .cta-final .cta-actions { width: 100%; }
  .cta-final .btn { width: 100%; justify-content: center; white-space: normal; }

  .footer-top { flex-direction: column; gap: 28px; }
  .footer-cols { flex-direction: column; gap: 24px; width: 100%; }

  .legal-hero { padding: 32px 0 12px; }
  .legal-hero h1 { font-size: clamp(1.7rem, 8vw, 2.1rem); }
  .legal-body { padding-bottom: 60px; }
  .legal-body h2 { font-size: 1.15rem; margin-top: 32px; }

  .auth-card { padding: 28px 22px; }
  .auth-shell { padding: 32px var(--pad); gap: 28px; }

  .dash-topbar-inner { height: 64px; }
}

@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-copy h1 { font-size: 1.9rem; }
  .hero-proof { flex-direction: column; }
  .hero-proof div { min-width: 0; }
  .feed-guard-body { min-height: 260px; }
  .gallery-grid { grid-template-rows: repeat(5, 140px); }
  .footer-brand img { height: 70px; }
}
