/* SideDigest — bright brand green (matches logo #72b01d) */

:root {
  /* Logo green */
  --green: #72b01d;
  --green-bright: #8ecf2e;
  --green-dark: #3d6b0f;
  --green-dim: #5a9216;
  --green-soft: rgba(114, 176, 29, 0.14);
  --green-mist: #e8f5d6;
  --green-pale: #f4fae8;
  /* Bright surfaces */
  --ink: #1a2e0f;
  --ink-mid: #2d4518;
  --ink-soft: #4a6330;
  --paper: #fcfef8;
  --paper-deep: #f0f7e6;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.75);
  --text: #ffffff;
  --text-muted: #5a6b48;
  --text-on-green: #ffffff;
  --text-dark: #1a2e0f;
  --text-dark-muted: #4a5c3a;
  /* Legacy aliases → green */
  --gold: var(--green);
  --gold-dim: var(--green-dim);
  --gold-soft: var(--green-soft);
  --teal: var(--green-dark);
  --teal-hover: var(--green-dim);
  --teal-soft: var(--green-soft);
  --border: rgba(114, 176, 29, 0.2);
  --border-dark: rgba(61, 107, 15, 0.12);
  --shadow: 0 20px 50px rgba(114, 176, 29, 0.18);
  --shadow-soft: 0 8px 28px rgba(61, 107, 15, 0.08);
  --radius: 10px;
  --radius-lg: 18px;
  --font-display: "Newsreader", "Iowan Old Style", "Palatino", serif;
  --font-body: "Sora", system-ui, -apple-system, sans-serif;
  --max: 1140px;
  --banner-h: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--paper);
}

body.page-dark {
  color: var(--text-dark);
  background: var(--paper);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green);
}

.page-dark a {
  color: var(--green-bright);
}

.page-dark a:hover {
  color: #b8e85a;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.store-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-dark);
  background: linear-gradient(90deg, var(--green-pale) 0%, #ffffff 50%, var(--green-pale) 100%);
  border-bottom: 1px solid var(--border-dark);
}

.store-banner strong {
  color: var(--green);
}

.site-header {
  position: sticky;
  top: var(--banner-h);
  z-index: 900;
  background: rgba(252, 254, 248, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-dark);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: none;
  box-shadow: 0 2px 8px rgba(114, 176, 29, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.site-nav a {
  color: var(--text-dark-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-dark);
  background: var(--surface);
  color: var(--text-dark);
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-dark);
    padding: 1rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-soft);
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */
.hero-briefing {
  position: relative;
  padding: 4rem 0 5rem;
  background: linear-gradient(165deg, #ffffff 0%, var(--green-pale) 45%, var(--green-mist) 100%);
  color: var(--text-dark);
  overflow: hidden;
}

.hero-briefing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(114, 176, 29, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 45% at 5% 90%, rgba(142, 207, 46, 0.15), transparent 50%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.9), transparent 40%);
  pointer-events: none;
}

.hero-briefing::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2372b01d' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-briefing h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-dark-muted);
  max-width: 42ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-bright) 0%, var(--green) 100%);
  color: var(--text-on-green);
  box-shadow: 0 4px 20px rgba(114, 176, 29, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  color: var(--text-on-green);
}

.btn-ghost {
  background: var(--surface);
  color: var(--green-dark);
  border: 1px solid var(--border-dark);
}

.btn-ghost:hover {
  background: var(--green-pale);
  color: var(--green-dark);
  border-color: var(--green);
}

.btn-soon {
  background: var(--green-mist);
  color: var(--text-dark-muted);
  border: 1px solid var(--border-dark);
  cursor: not-allowed;
  opacity: 0.9;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--text-dark-muted);
  max-width: 40ch;
}

.hero-note a {
  color: var(--green-dark);
  font-weight: 600;
}

/* Panel mock */
.panel-mock {
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: panel-float 6s ease-in-out infinite;
}

@keyframes panel-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.panel-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-dark);
  background: linear-gradient(90deg, var(--green) 0%, var(--green-bright) 100%);
}

.panel-mock-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-on-green);
}

.panel-mock-tag {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.panel-mock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-dark);
  background: var(--green-pale);
}

.mock-chip {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--green-soft);
  border: 1px solid rgba(114, 176, 29, 0.25);
}

.mock-chip.active {
  background: rgba(114, 176, 29, 0.35);
  box-shadow: 0 0 0 2px var(--green);
}

.panel-mock-feed {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mock-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  padding: 0.65rem;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--border-dark);
}

.mock-thumb {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--green-mist), #c5e6a0);
}

.mock-meta {
  font-size: 0.625rem;
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.2rem;
}

.mock-headline {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.25rem;
  color: var(--text-dark);
}

.mock-summary {
  font-size: 0.6875rem;
  color: var(--text-dark-muted);
  margin: 0;
  line-height: 1.4;
}

/* Stats */
.stats-band {
  background: #ffffff;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 2rem 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 0.8125rem;
  color: var(--text-dark-muted);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-dark {
  background: linear-gradient(180deg, var(--green-pale) 0%, var(--paper) 100%);
  color: var(--text-dark);
}

.section-header {
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--text-dark-muted);
}

.section-dark .section-header p {
  color: var(--text-dark-muted);
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento-card {
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.bento-span-8 {
  grid-column: span 8;
}

.bento-span-6 {
  grid-column: span 6;
}

@media (max-width: 900px) {
  .bento-card,
  .bento-span-8,
  .bento-span-6 {
    grid-column: span 12;
  }
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.bento-card p {
  font-size: 0.9375rem;
  color: var(--text-dark-muted);
  margin: 0 0 1rem;
}

.bento-card img,
.content-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid var(--border-dark);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
  .page-hero-grid .page-hero-photo {
    order: -1;
    max-height: 280px;
    aspect-ratio: 16 / 9;
  }
}

.page-hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-dark);
}

.prose .content-photo {
  margin: 1.5rem 0 2rem;
  aspect-ratio: 21 / 9;
}

.hero-photo-wrap {
  position: relative;
}

.hero-photo-wrap .hero-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-dark);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-photo-wrap .panel-mock {
  position: absolute;
  bottom: -1.25rem;
  right: -0.75rem;
  width: min(92%, 320px);
  animation: none;
}

@media (max-width: 900px) {
  .hero-photo-wrap .panel-mock {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }
}

.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.section-dark .bento-card {
  background: var(--surface);
  border-color: var(--border-dark);
  color: var(--text-dark);
  box-shadow: var(--shadow-soft);
}

.section-dark .bento-card p {
  color: var(--text-dark-muted);
}

/* Topic pills */
.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.topic-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid rgba(114, 176, 29, 0.28);
}

/* Page hero (inner) */
.page-hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(165deg, #ffffff 0%, var(--green-pale) 100%);
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-dark);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.page-hero .lead {
  font-size: 1.125rem;
  color: var(--text-dark-muted);
  max-width: 58ch;
  margin: 0;
}

.prose {
  padding: 3rem 0 4rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text-dark-muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose .lead {
  font-size: 1.125rem;
  color: var(--text-dark);
}

/* Comparison table */
.compare-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-dark);
}

.compare-table th {
  background: var(--green-pale);
  font-weight: 600;
  color: var(--green-dark);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-yes {
  color: var(--green);
  font-weight: 600;
}

.compare-partial {
  color: var(--green-dim);
  font-weight: 600;
}

.compare-no {
  color: var(--text-dark-muted);
}

.privacy-summary {
  background: var(--green-pale);
  border: 1px solid rgba(114, 176, 29, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.privacy-summary h2 {
  margin-top: 0;
}

/* CTA band */
.cta-band {
  padding: 3.5rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--green-mist) 0%, var(--green-pale) 100%);
  border-top: 1px solid var(--border-dark);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.cta-band p {
  color: var(--text-dark-muted);
  max-width: 42ch;
  margin: 0 auto 1.5rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dim) 100%);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.5rem;
  font-size: 0.875rem;
}

.site-footer .brand {
  color: var(--text-on-green);
}

.site-footer .brand-tag {
  color: rgba(255, 255, 255, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-on-green);
  margin: 0 0 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8125rem;
}

.footer-bottom p {
  margin: 0.35rem 0;
}

.footer-blurb {
  margin: 1rem 0 0;
  max-width: 28ch;
  opacity: 0.9;
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
