/* YeetnGreet marketing: light (default) / dark */

:root {
  --bg: #f3f4f7;
  --bg-mid: #e8eaef;
  --panel: #ffffff;
  --ink: #12141a;
  --ink-secondary: #4a5163;
  --ink-tertiary: #5c6478; /* 5.4:1 on --bg (WCAG AA) */
  --line: rgba(18, 20, 26, 0.1);
  --accent: #3b6ae8;
  --link: #2b57c9; /* text links: 5.8:1 on --bg, 6.4:1 on --panel */
  --accent-soft: rgba(59, 106, 232, 0.1);
  --cta: #1a1d27;
  --cta-ink: #ffffff;
  --control: #e4e6ec;
  --brand-mark: #3a3f4b;
  --savings: #3f7d2e;
  --warn: #b7791f;
  --danger: #c2410c;
  --report-glow: rgba(59, 106, 232, 0.12);
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  /* Sora: expressive display with full ascenders/descenders (Syne reads as clipped) */
  --display: "Sora", "IBM Plex Sans", sans-serif;
  --radius: 10px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #12141a;
  --bg-mid: #181b24;
  --panel: #1c2030;
  --ink: #eef0f6;
  --ink-secondary: #9aa3c0;
  --ink-tertiary: #8f98b5; /* 6.4:1 on dark --bg */
  --line: rgba(154, 163, 192, 0.14);
  --accent: #7aa2f7;
  --link: #7aa2f7;
  --accent-soft: rgba(122, 162, 247, 0.14);
  --cta: #7aa2f7;
  --cta-ink: #0b1020;
  --control: #252a3b;
  --brand-mark: #ffffff;
  --savings: #9ece6a;
  --warn: #e0af68;
  --danger: #f7768e;
  --report-glow: rgba(122, 162, 247, 0.2);
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 10% -8%, rgba(59, 106, 232, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 45% at 92% 6%, rgba(63, 125, 46, 0.07), transparent 50%),
    linear-gradient(180deg, #f7f8fb 0%, var(--bg) 40%, var(--bg) 100%);
  opacity: 1;
}

:root[data-theme="dark"] .atmosphere {
  background:
    radial-gradient(ellipse 90% 55% at 12% -10%, rgba(122, 162, 247, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 88% 8%, rgba(158, 206, 106, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg) 42%, var(--bg) 100%);
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* In-text links are underlined so they don't rely on color alone (WCAG 1.4.1). */
.shell p a:not(.btn),
.shell li a:not(.btn),
.shell td a:not(.btn) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 2rem));
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 3.5rem;
  overflow: visible;
}

@media (min-width: 1600px) {
  .shell {
    width: min(1440px, calc(100% - 3rem));
    max-width: 1440px;
  }
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  min-height: 64px;
  padding: 0.85rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand:hover { text-decoration: none; color: var(--ink); }

.brand-mark {
  display: block;
  flex-shrink: 0;
  background-color: var(--brand-mark);
  -webkit-mask: url("logo.png") center / contain no-repeat;
  mask: url("logo.png") center / contain no-repeat;
}

.brand .brand-mark {
  width: 28px;
  height: 28px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-link:hover { text-decoration: none; color: var(--ink); }

.brand-link .brand-mark {
  width: 28px;
  height: 28px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
}

@media (min-width: 480px) {
  .site-nav {
    width: auto;
    justify-content: flex-end;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  font-family: inherit;
  flex: 0 0 auto;
}

.nav-toggle:hover {
  color: var(--ink);
  background: var(--accent-soft);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  content: "";
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.nav-toggle-bars::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.topbar a,
.theme-toggle {
  color: var(--ink-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.topbar a:hover,
.theme-toggle:hover {
  color: var(--ink);
  background: var(--accent-soft);
  text-decoration: none;
}

.topbar a:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Quiet secondary nav (Founding beta): discoverable, not a hero CTA */
.topbar a.nav-quiet {
  color: var(--ink-tertiary, var(--ink-secondary));
  font-weight: 400;
  font-size: 0.82rem;
}
.topbar a.nav-quiet:hover {
  color: var(--ink-secondary);
}

.founding-quiet {
  padding-top: 0.5rem;
  border-top: 1px solid var(--line, rgba(127, 127, 127, 0.25));
}
.founding-quiet .cta {
  margin-top: 0.75rem;
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 0.25rem 0 2.5rem;
  align-items: start;
  overflow: visible;
}

.hero-copy {
  max-width: 36rem;
  min-width: 0;
  overflow: visible;
}

@media (min-width: 1080px) {
  .hero {
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.28fr);
    gap: 1.5rem 2rem;
    padding: 0.35rem 0 2.75rem;
    align-items: start;
  }

  .hero-copy {
    max-width: none;
  }
}

.hero h1 {
  margin: 0 0 0.9rem;
  padding: 0.28em 0.04em;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  /* normal uses the font's own metrics — safer for Syne at large sizes */
  line-height: normal;
  color: var(--ink);
  max-width: 16ch;
  overflow: visible;
  overflow-wrap: break-word;
}

.lede {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 34rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1.15rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: var(--cta);
  color: var(--cta-ink);
}
.btn.primary:hover {
  filter: brightness(1.06);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.ghost {
  background: var(--control);
  border-color: var(--line);
  color: var(--ink);
}
.btn.ghost:hover {
  border-color: var(--ink-tertiary);
  text-decoration: none;
  transform: translateY(-1px);
}

/* License report product visual: contained in the hero composition */
.report-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  perspective: 1400px;
}

.report-panel {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, var(--accent)) 0%, var(--panel) 28%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1rem 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

@media (min-width: 1080px) {
  .report-stage {
    max-height: calc(100vh - 6.5rem);
  }

  .report-panel {
    padding: 1rem 1.1rem 1.05rem;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.report-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--savings));
  opacity: 0.95;
}

.report-body {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.report-table-wrap {
  margin-bottom: 0.75rem;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.report-table-hint {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--ink-tertiary);
  line-height: 1.4;
  max-width: 46rem;
}

.report-total-row td {
  border-bottom: none;
  font-weight: 650;
  color: var(--ink);
  padding-top: 0.65rem;
}

.report-total-row td:first-child {
  font-weight: 650;
}

.user-name {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.user-upn {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-tertiary);
  margin-top: 0.12rem;
}

.issue {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  font-weight: 650;
  white-space: nowrap;
}

.issue.danger {
  color: var(--danger);
  background: rgba(194, 65, 12, 0.1);
}

.issue.warn {
  color: var(--warn);
  background: rgba(183, 121, 31, 0.1);
}

:root[data-theme="dark"] .issue.danger {
  color: var(--danger);
  background: rgba(247, 118, 142, 0.14);
}

:root[data-theme="dark"] .issue.warn {
  color: var(--warn);
  background: rgba(224, 175, 104, 0.14);
}

.report-users .report-table td:nth-child(n+4),
.report-users .report-table th:nth-child(n+4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.report-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.report-title {
  margin: 0;
  padding: 0.1em 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  overflow: visible;
}

.report-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-tertiary);
  align-self: flex-end;
  max-width: 18rem;
  text-align: left;
}

@media (min-width: 640px) {
  .report-meta { text-align: right; }
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

@media (min-width: 720px) {
  .report-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1080px) and (max-width: 1279px) {
  .report-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-value { font-size: 1.15rem; }
  .report-table { font-size: 0.74rem; }
}

.kpi {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--control) 80%, transparent);
  border: 1px solid var(--line);
  min-width: 0;
}

.kpi.highlight {
  border-color: color-mix(in srgb, var(--savings) 45%, var(--line));
  background: color-mix(in srgb, var(--savings) 10%, var(--panel));
}

.kpi-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 0.3rem;
}

.kpi-value {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.kpi-value.warn { color: var(--warn); }
.kpi-value.savings,
.savings-cell { color: var(--savings); font-weight: 650; }

.report-table-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.report-table th,
.report-table td {
  text-align: left;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.report-table th {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

/* Short header labels and phone-only hints: shown only in the phone media query */
.th-short,
.app-shot-tap-hint {
  display: none;
}

/* Header abbr tags carry titles only; no dotted underline (matches plain th text) */
.report-cost-table th abbr {
  text-decoration: none;
  border-bottom: 0;
  cursor: inherit;
}

.report-table td { color: var(--ink-secondary); }
.report-table td:first-child { color: var(--ink); font-weight: 500; }

.report-table th:not(:first-child),
.report-table td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-footnote {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-tertiary);
  line-height: 1.4;
}

/* Pitch + benefits */
.pitch {
  padding: 0.5rem 0 2.5rem;
  max-width: 40rem;
  overflow: visible;
}

.section-heading {
  margin: 0 0 0.65rem;
  padding: 0.28em 0.04em;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: normal;
  overflow: visible;
}

.section-lede {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1.05rem;
  line-height: 1.55;
}

.benefit {
  display: grid;
  gap: 1.25rem 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

@media (min-width: 800px) {
  .benefit {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    padding: 2.5rem 0;
  }
  .benefit.reverse .benefit-copy { order: 2; }
  .benefit.reverse .benefit-points { order: 1; }
}

.benefit-label {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
}

.benefit-copy h2 {
  margin: 0 0 0.65rem;
  padding: 0.22em 0.04em;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: normal;
  max-width: 22ch;
  overflow: visible;
}

.benefit-copy p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 36rem;
}

.benefit-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.benefit-points li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
}

.benefit-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--accent);
}

.audience {
  margin: 1rem 0 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audience-inner {
  max-width: 40rem;
}

.audience h2 {
  margin: 0 0 0.65rem;
  padding: 0.22em 0.04em;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: normal;
  overflow: visible;
}

.audience p:last-child {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1.02rem;
  line-height: 1.55;
}

.pricing-section { padding-top: 0.5rem; }

.section-label {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.section-note {
  margin: 0 0 1.15rem;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  max-width: 40rem;
}

.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 900px) {
  .pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .pricing.pricing-bands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
  min-width: 0;
}

.plan.featured {
  border-color: var(--accent);
}

.plan h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.plan .price {
  margin: 0.65rem 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan .price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-tertiary);
}

.plan .price-annual {
  margin: 0 0 0.55rem;
  color: var(--ink-tertiary);
  font-size: 0.85rem;
}

.plan .plan-band {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.plan p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
}

.plan-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.plan-cta .btn {
  min-height: 38px;
  padding: 0 0.85rem;
  font-size: 0.86rem;
}

.pricing-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1rem;
  color: var(--ink-secondary);
  font-size: 0.95rem;
}

.pricing-teaser strong {
  color: var(--ink);
  font-weight: 650;
}

footer {
  margin-top: 3.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-tertiary);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0 0 0.6rem;
}

.footer-links a {
  color: var(--link);
  font-weight: 500;
}

/* Privacy / secondary pages */
.page h1 {
  margin: 0 0 0.85rem;
  padding: 0.22em 0.04em;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: normal;
  overflow: visible;
}

.page h2 {
  margin: 1.85rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page .lede {
  margin: 0 0 0.65rem;
  max-width: 52rem;
  font-size: 1.1rem;
}

.page p {
  margin: 0 0 0.95rem;
  color: var(--ink-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 52rem;
}

.page ul {
  margin: 0 0 0.95rem;
  padding-left: 1.25rem;
  max-width: 52rem;
  color: var(--ink-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.page li { margin: 0 0 0.6rem; }

.page .privacy-updated {
  color: var(--ink-tertiary);
  font-size: 0.95rem;
}

.privacy-back {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 52rem;
}

/* Lean marketing: never hide section content behind scroll observers.
   Hiding .reveal until IntersectionObserver added is-visible left How it
   works / proof / pricing as a blank gap on first paint and full-page shots. */
.reveal,
.reveal.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .kpi.highlight .kpi-value.savings {
    animation: savings-pulse 2.8s ease-in-out infinite;
  }
}

@keyframes savings-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

/* Real app screenshots (light-mode captures, synthetic tenant data) */
.app-shots {
  display: grid;
  gap: 1.5rem;
  padding: 0.5rem 0 2.5rem;
  min-width: 0;
}

.app-shot {
  margin: 0;
  min-width: 0;
}

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 48px -24px var(--report-glow), 0 2px 6px rgba(18, 20, 26, 0.06);
}

.app-shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-tertiary);
}

:root[data-theme="dark"] .app-shot img {
  border-color: rgba(154, 163, 192, 0.22);
  box-shadow: 0 18px 48px -24px rgba(0, 0, 0, 0.6);
}

@media (min-width: 900px) {
  .app-shots {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
 * Mobile layout (max-width 640 / 479) — keep desktop (>=1080) identical.
 * Scoped here to ease rebase against PR #23 (styles.css rewrite).
 * -------------------------------------------------------------------------- */

.app-shot-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.app-shot-link:hover {
  text-decoration: none;
}

.app-shot-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 1rem);
    max-width: none;
    padding-bottom: 2.5rem;
  }

  .topbar {
    flex-wrap: nowrap;
    gap: 0.5rem;
    min-height: 56px;
    max-height: 64px;
    height: 56px;
    padding: 0.35rem 0;
    margin-bottom: 1rem;
    position: relative;
  }

  .topbar .brand {
    min-width: 0;
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.65rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px -16px rgba(18, 20, 26, 0.35);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .theme-toggle {
    width: 100%;
    text-align: left;
    padding: 0.7rem 0.75rem;
    white-space: normal;
  }

  .report-panel {
    padding: 0.75rem 0.55rem 0.85rem;
  }

  .report-table-wrap {
    margin-left: -0.1rem;
    margin-right: -0.1rem;
    padding-bottom: 0.15rem;
    position: relative;
  }

  .report-table-wrap::after {
    content: "";
    position: absolute;
    top: 1.6rem;
    right: 0;
    bottom: 0;
    width: 1.5rem;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--panel));
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .report-table-wrap.is-scrollable::after {
    opacity: 1;
  }

  .th-long {
    display: none;
  }

  .th-short {
    display: inline;
  }

  .app-shot-tap-hint {
    display: inline;
  }

  .report-table {
    font-size: 0.74rem;
    min-width: 100%;
  }

  .report-table th,
  .report-table td {
    padding: 0.4rem 0.28rem;
  }

  .report-table th:last-child,
  .report-table td:last-child {
    padding-right: 0.45rem;
    white-space: nowrap;
  }

  /* Cost-savings: keep Savings / mo readable at 360px */
  .report-body > .report-table-wrap:first-child .report-table {
    table-layout: fixed;
    width: 100%;
  }

  .report-cost-table th {
    font-size: 0.6rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .report-cost-table th:nth-child(1),
  .report-cost-table td:nth-child(1) {
    width: 33%;
    word-break: break-word;
  }

  .report-cost-table th:nth-child(2),
  .report-cost-table td:nth-child(2) {
    width: 15%;
  }

  .report-cost-table th:nth-child(3),
  .report-cost-table td:nth-child(3) {
    width: 17%;
  }

  .report-cost-table th:nth-child(4),
  .report-cost-table td:nth-child(4) {
    width: 14%;
  }

  .report-cost-table th:nth-child(5),
  .report-cost-table td:nth-child(5) {
    width: 21%;
  }

  /* Users table: stacked cards on phones */
  .report-users .report-table {
    min-width: 0;
  }

  .report-users .report-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .report-users .report-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.5rem;
    padding: 0.75rem 0.15rem;
    border-bottom: 1px solid var(--line);
  }

  .report-users .report-table tbody tr:last-child {
    border-bottom: none;
  }

  .report-users .report-table td {
    border: none;
    padding: 0;
    text-align: left !important;
  }

  .report-users .report-table td:nth-child(1) {
    flex: 1 1 100%;
  }

  .report-users .report-table td:nth-child(2) {
    flex: 0 0 auto;
  }

  .report-users .report-table td:nth-child(3) {
    flex: 1 1 100%;
    font-size: 0.8rem;
  }

  .report-users .report-table td:nth-child(4),
  .report-users .report-table td:nth-child(5),
  .report-users .report-table td:nth-child(6) {
    flex: 0 0 auto;
    font-size: 0.78rem;
    color: var(--ink-tertiary);
    font-variant-numeric: tabular-nums;
  }

  .report-users .report-table td:nth-child(4)::before {
    content: "Sent ";
    font-weight: 600;
    color: var(--ink-secondary);
  }

  .report-users .report-table td:nth-child(5)::before {
    content: "Recv ";
    font-weight: 600;
    color: var(--ink-secondary);
  }

  .report-users .report-table td:nth-child(6)::before {
    content: "Read ";
    font-weight: 600;
    color: var(--ink-secondary);
  }

  .report-users.report-table-wrap::after,
  .report-users .report-table-wrap::after,
  .report-users.report-table-wrap::after {
    opacity: 0;
  }

  .report-table-wrap.report-users::after {
    opacity: 0;
  }

  .kpi-value {
    font-size: 1.05rem;
  }

  .pricing + .section-note {
    margin-top: 1.35rem;
  }

  .app-shot img {
    border-radius: 8px;
  }

  .app-shot-img {
    aspect-ratio: 9 / 7;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center 10%;
  }
}

@media (max-width: 479px) {
  .shell {
    width: calc(100% - 0.75rem);
  }

  .report-panel {
    padding: 0.65rem 0.4rem 0.75rem;
    border-radius: 10px;
  }

  .report-body > .report-table-wrap:first-child .report-table {
    font-size: 0.7rem;
  }

  .report-cost-table th {
    font-size: 0.56rem;
  }

  .report-cost-table th,
  .report-cost-table td {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }

  .topbar {
    height: 56px;
    max-height: 64px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  .hero,
  .report-stage,
  .report-panel,
  .app-shots {
    max-width: 100%;
    min-width: 0;
  }
}

/* --------------------------------------------------------------------------
 * Homepage lifecycle narrative (2026-10-18): pains -> Admin control -> reports.
 * One frame treatment for every product visual: 16:10, same column width per
 * row, rows on one grid so every screenshot lines up on desktop.
 * -------------------------------------------------------------------------- */

.hero.hero-lifecycle {
  display: block;
  padding: 2.5rem 0 3rem;
}

.hero-lifecycle .hero-copy {
  max-width: 46rem;
}

.hero-lifecycle h1 {
  max-width: 20ch;
  font-size: clamp(1.95rem, 4.6vw, 3.25rem);
}

.hero-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
}

.hero-lifecycle .lede {
  max-width: 40rem;
  font-size: 1.12rem;
}

.lifecycle-card {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0.5rem 1.25rem;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 48px -24px var(--report-glow), 0 2px 6px rgba(18, 20, 26, 0.06);
}

.lifecycle-card li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.lifecycle-card li:last-child { border-bottom: 0; }

.lc-stage {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--link);
}

.lc-what {
  color: var(--ink-secondary);
  font-size: 0.97rem;
  line-height: 1.45;
}

@media (min-width: 1080px) {
  .hero.hero-lifecycle {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3rem;
    align-items: center;
  }

  .lifecycle-card { margin-top: 0; }
}

@media (max-width: 479px) {
  .lifecycle-card { padding: 0.25rem 0.9rem; }
  .lifecycle-card li { grid-template-columns: 1fr; padding: 0.8rem 0; }
}

.hero-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-tertiary);
}

.pains {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.pains .section-lede {
  max-width: 40rem;
}

.pain-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 800px) {
  .pain-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.pain {
  min-width: 0;
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pain-num {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--danger);
}

.pain h3,
.flow-copy h3 {
  margin: 0 0 0.55rem;
  padding: 0.1em 0.02em;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.pain h3 { font-size: 1.12rem; }

.pain p:last-child {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.97rem;
  line-height: 1.55;
}

.flow {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--line);
}

.flow-head {
  max-width: 44rem;
  margin-bottom: 0.5rem;
}

.flow-row {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 0;
  min-width: 0;
}

.flow-copy {
  min-width: 0;
}

.flow-copy h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}

.flow-copy > p:not(.benefit-label) {
  margin: 0 0 1rem;
  color: var(--ink-secondary);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* The single frame used for every product visual */
.shot-frame {
  position: relative;
  margin: 0;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 48px -24px var(--report-glow), 0 2px 6px rgba(18, 20, 26, 0.06);
}

.shot-frame .app-shot-link {
  display: block;
  width: 100%;
  height: 100%;
}

.shot-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

:root[data-theme="dark"] .shot-frame {
  border-color: rgba(154, 163, 192, 0.22);
  box-shadow: 0 18px 48px -24px rgba(0, 0, 0, 0.6);
}

/* Sample report inside the same frame: scrolls within it */
.shot-frame.report-stage {
  max-height: none;
  perspective: none;
}

.shot-frame-report .report-panel {
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: none;
}

@media (min-width: 900px) {
  .flow-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3rem;
    align-items: center;
    padding: 2.75rem 0;
  }

  .flow-row > .shot-frame {
    grid-column: 2;
    grid-row: 1;
  }

  .flow-row > .flow-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .flow-row.reverse {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .flow-row.reverse > .shot-frame { grid-column: 1; }
  .flow-row.reverse > .flow-copy { grid-column: 2; }
}

/* Inside the narrower report frame use the compact report layout */
@media (min-width: 900px) {
  .shot-frame-report .report-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shot-frame-report .kpi-value { font-size: 1.15rem; }
  .shot-frame-report .report-table { font-size: 0.74rem; }
}

@media (max-width: 899px) {
  /* Stacked: the report flows at full height instead of scrolling in a frame */
  .shot-frame-report {
    aspect-ratio: auto;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .shot-frame-report .report-panel {
    height: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
  }

  .flow-row > .flow-copy { order: 1; }
  .flow-row > .shot-frame { order: 2; }
}

@media (max-width: 640px) {
  .hero.hero-lifecycle { padding: 1rem 0 2rem; }
  .pains, .flow { padding-top: 2rem; }
  .flow-row { padding: 1.5rem 0; gap: 1rem; }
  .shot-frame { border-radius: 8px; }
  .shot-frame-report .report-panel { border-radius: 10px; }
  .flow, .pains, .flow-row, .shot-frame { max-width: 100%; min-width: 0; }
}

/* Mobile polish for the lifecycle homepage (2026-10-18e) */
@media (max-width: 640px) {
  .hero-lifecycle .btn,
  .pricing-teaser .btn {
    min-height: 44px;
  }

  /* Screenshots are small on phones: say they open full size */
  .flow-row:not(:has(.shot-frame-report))::after {
    content: "Tap the screenshot to open it full size.";
    order: 3;
    margin-top: -0.35rem;
    font-size: 0.8rem;
    color: var(--ink-tertiary);
  }
}

@media (max-width: 479px) {
  .report-cost-table th {
    font-size: 0.6rem;
  }
}

/* --------------------------------------------------------------------------
 * Mobile touch-scroll fix (2026-10-18f).
 * The in-frame report panel kept `overscroll-behavior: contain` when the
 * layout stacks. With `overflow: hidden` it is still a scroll container, so
 * a swipe that started on the report latched onto it and never chained to
 * the page: vertical scrolling stopped at the report on phones.
 * Stacked layout: no nested scroll container, scroll always chains to the page.
 * -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .shot-frame-report .report-panel {
    overflow: clip;
    overscroll-behavior: auto;
  }
}

/* Touch devices at desktop widths (tablets): let the framed report hand the
   swipe back to the page at its ends. Mouse/trackpad desktop is unchanged. */
@media (pointer: coarse) {
  .shot-frame-report .report-panel {
    overscroll-behavior: auto;
  }
}

/* Horizontal table scroll (if a table is ever wider than the phone) must
   never swallow vertical swipes */
.report-table-wrap {
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}

/* --------------------------------------------------------------------------
 * Lean marketing home + product (2026-10-27).
 * Layout only — tokens stay the live :root / [data-theme="dark"] set.
 * -------------------------------------------------------------------------- */

.hero.hero-lean {
  display: block;
  padding: 2.25rem 0 3rem;
}

.hero-lean .hero-copy {
  max-width: 60rem;
}

.hero-lean h1 {
  max-width: none;
  font-size: clamp(2rem, 5vw, 3.15rem);
}

.hero-lean .lede {
  max-width: 38rem;
}

@media (min-width: 800px) {
  .hero-lean {
    text-align: center;
    padding: 3.25rem 0 3.75rem;
  }

  .hero-lean .hero-copy {
    margin: 0 auto;
  }

  .hero-lean h1,
  .hero-lean .lede,
  .hero-lean .hero-eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-lean .cta {
    justify-content: center;
  }
}

.steps,
.proof {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.step-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 800px) {
  .step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.step {
  min-width: 0;
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--link);
}

.step h3,
.flow-copy h2 {
  margin: 0 0 0.55rem;
  padding: 0.1em 0.02em;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.step p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.97rem;
  line-height: 1.55;
}

.section-more {
  margin: 1.35rem 0 0;
}

.report-compact {
  margin: 1.75rem 0 0;
  perspective: none;
}

.report-compact .report-panel {
  transform: none;
}

.report-compact .report-title {
  font-size: 1.15rem;
}

.audience-card {
  width: 100%;
  max-width: none;
  padding: 2rem 1.5rem;
  background: var(--bg-mid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (min-width: 800px) {
  .audience-card {
    text-align: center;
    padding: 2.5rem 2rem;
  }

  .audience-card .benefit-label,
  .audience-card h2,
  .audience-card p {
    margin-left: auto;
    margin-right: auto;
  }
}

.pricing-teaser-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
  padding: 1.5rem 1.5rem 1.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pricing-teaser-card .section-heading {
  margin-bottom: 0.4rem;
}

.pricing-teaser-card .section-note {
  margin: 0;
}

@media (max-width: 640px) {
  .hero.hero-lean { padding: 1.15rem 0 2rem; }
  .steps, .proof { padding-top: 2rem; }
  .audience-card { padding: 1.5rem 1.15rem; }
  .pricing-teaser-card .btn { min-height: 44px; }
}

/* Privacy-first analytics consent banner (injected by analytics.js) */
.yg-consent-banner {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem 1.1rem;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 28px rgba(18, 20, 26, 0.08);
}

:root[data-theme="dark"] .yg-consent-banner {
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
}

.yg-consent-inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 0.55rem 1rem;
  align-items: center;
}

@media (min-width: 720px) {
  .yg-consent-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .yg-consent-title { grid-column: 1; grid-row: 1; }
  .yg-consent-desc { grid-column: 1; grid-row: 2; }
  .yg-consent-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

.yg-consent-title {
  margin: 0;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.yg-consent-desc {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.88rem;
  line-height: 1.45;
}

.yg-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.yg-consent-actions .btn {
  min-height: 40px;
}

.yg-marketing-optin {
  margin: 1.25rem 0 1.5rem;
  max-width: 32rem;
}
.yg-marketing-optin label.yg-marketing-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 500;
  cursor: pointer;
}
.yg-marketing-optin input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  accent-color: var(--brand, #3a3f4b);
}
.yg-marketing-email {
  margin: 0.85rem 0 0 1.75rem;
}
.yg-marketing-email[hidden] {
  display: none;
}
.yg-marketing-email label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.yg-marketing-email input[type="email"] {
  width: 100%;
  max-width: 24rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border, #cfd3da);
  border-radius: 8px;
  font: inherit;
  background: var(--surface, #fff);
  color: inherit;
}
.yg-marketing-note {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  opacity: 0.85;
}
.yg-marketing-error {
  margin: 0.65rem 0 0;
  color: #9b1c1c;
  font-size: 0.92rem;
}
.yg-marketing-error:empty {
  display: none;
}

/* Honeypot field on marketing opt-in forms — keep visually hidden. */
.yg-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
