/* Triggerly marketing homepage — aligned with Android app palette */

.home-page {
  --home-max: 1120px;
  --home-pad-x: clamp(20px, 4vw, 32px);
  --home-section-y: clamp(64px, 10vw, 96px);
  --home-radius: 16px;
  --home-radius-lg: 24px;
  --home-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --home-card-bg: var(--surface);
  --home-hero-glow: rgba(0, 200, 83, 0.22);
  --home-step-num: rgba(0, 200, 83, 0.15);
  --home-icon-bg: rgba(0, 200, 83, 0.12);
}

@media (prefers-color-scheme: light) {
  .home-page {
    --bg: #f2f2f5;
    --surface: #d0d0d5;
    --text: #121212;
    --text-secondary: #424242;
    --text-muted: #757575;
    --accent: #008c3a;
    --accent-hover: #00a844;
    --border: rgba(18, 18, 18, 0.1);
    --home-shadow: 0 16px 36px rgba(18, 18, 18, 0.08);
    --home-card-bg: #d0d0d5;
    --home-hero-glow: rgba(0, 140, 58, 0.14);
    --home-step-num: rgba(0, 140, 58, 0.14);
    --home-icon-bg: rgba(0, 140, 58, 0.1);
  }

  .home-page .site-header {
    background: rgba(242, 242, 245, 0.92);
  }

  .home-page .hero::before {
    opacity: 0.7;
  }

  .hero-logo {
    box-shadow:
      0 0 0 1px rgba(18, 18, 18, 0.08),
      0 12px 28px rgba(0, 140, 58, 0.18);
  }
}

.home-page .site-header-inner {
  max-width: var(--home-max);
}

.home-main {
  overflow-x: clip;
}

.home-section {
  max-width: var(--home-max);
  margin: 0 auto;
  padding: var(--home-section-y) var(--home-pad-x);
}

.home-section-header {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.home-section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.home-section-header p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 72px) var(--home-pad-x) clamp(56px, 9vw, 96px);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 50% 0%, var(--home-hero-glow), transparent 68%),
    radial-gradient(ellipse 35% 28% at 80% 15%, rgba(0, 200, 83, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  margin: 0 auto 28px;
}

.hero-logo-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 200, 83, 0.32) 0%,
    rgba(0, 200, 83, 0.1) 45%,
    transparent 70%
  );
}

.hero-logo {
  position: relative;
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px var(--border),
    0 12px 32px rgba(0, 200, 83, 0.28),
    0 4px 16px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(3rem, 9vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--text);
}

.hero-tagline {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text);
}

.hero-sub {
  margin: 0 auto 16px;
  max-width: 560px;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

.hero-free-note {
  margin: 0 auto 32px;
  max-width: 560px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--text-muted);
}

.hero-page .hero-free-note {
  margin-bottom: 0;
}

.cta-free-note {
  margin: 0;
  max-width: 320px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
  text-align: center;
}

@media (prefers-color-scheme: light) {
  .hero-free-note {
    color: var(--text-muted);
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.play-badge {
  display: block;
  height: 60px;
  width: auto;
  opacity: 0.92;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
  transition: opacity 0.15s ease, transform 0.15s ease;
}

@media (prefers-color-scheme: light) {
  .play-badge {
    filter: drop-shadow(0 6px 16px rgba(18, 18, 18, 0.1));
  }
}

.play-badge-wrap {
  display: inline-block;
  text-decoration: none;
  border-radius: 4px;
}

.play-badge-wrap:hover .play-badge,
.play-badge-wrap:focus-visible .play-badge {
  opacity: 1;
  transform: scale(1.02);
}

.play-badge-wrap:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.hero-soon {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* —— About —— */
.about {
  padding-top: 0;
}

.about-card {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 48px);
  border-radius: var(--home-radius);
  border: 1px solid var(--border);
  background: var(--home-card-bg);
  box-shadow: var(--home-shadow);
  text-align: center;
}

.about-card h2 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.about-card p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.about-card p + p {
  margin-top: 14px;
}

/* —— AI insights —— */
.insights-section {
  padding-top: 0;
}

.insights-card {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 48px);
  border-radius: var(--home-radius);
  border: 1px solid rgba(0, 200, 83, 0.28);
  background:
    linear-gradient(145deg, rgba(0, 200, 83, 0.1) 0%, transparent 55%),
    var(--home-card-bg);
  box-shadow: var(--home-shadow);
}

@media (prefers-color-scheme: light) {
  .insights-card {
    border-color: rgba(0, 140, 58, 0.25);
    background:
      linear-gradient(145deg, rgba(0, 140, 58, 0.08) 0%, transparent 55%),
      var(--home-card-bg);
  }
}

.insights-card p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
  text-align: center;
}

.insights-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.insights-list li {
  position: relative;
  padding: 12px 16px 12px 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
}

@media (prefers-color-scheme: light) {
  .insights-list li {
    background: rgba(255, 255, 255, 0.35);
  }
}

.insights-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

/* —— Feature grid —— */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 22px 20px;
  border-radius: var(--home-radius);
  border: 1px solid var(--border);
  background: var(--home-card-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  border-color: rgba(0, 200, 83, 0.4);
  box-shadow: 0 8px 24px rgba(0, 200, 83, 0.08);
}

@media (prefers-color-scheme: light) {
  .feature-card:hover {
    border-color: rgba(0, 140, 58, 0.35);
    box-shadow: 0 8px 24px rgba(0, 140, 58, 0.1);
  }
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--home-icon-bg);
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* —— How it works —— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--home-radius);
  border: 1px solid var(--border);
  background: var(--home-card-bg);
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--home-step-num);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.step-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* —— App showcase gallery —— */
.showcase-section {
  position: relative;
  padding-top: clamp(72px, 10vw, 104px);
  padding-bottom: clamp(72px, 10vw, 104px);
}

.showcase-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, var(--home-hero-glow), transparent 68%),
    radial-gradient(ellipse 40% 30% at 15% 70%, rgba(0, 200, 83, 0.06), transparent 65%),
    radial-gradient(ellipse 35% 28% at 85% 75%, rgba(0, 200, 83, 0.05), transparent 60%);
  opacity: 0.85;
}

.showcase-header {
  position: relative;
}

.showcase-eyebrow {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.showcase-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 28px);
  align-items: start;
}

.showcase-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.showcase-item figcaption {
  max-width: 280px;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.showcase-item--featured {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
}

.showcase-item--featured .showcase-device-frame {
  max-width: 320px;
}

.showcase-item--featured figcaption {
  max-width: 340px;
  font-size: 0.9375rem;
}

.showcase-item:nth-child(2) {
  grid-column: 8 / 11;
  grid-row: 1;
}

.showcase-item:nth-child(3) {
  grid-column: 11 / 13;
  grid-row: 1;
  margin-top: 36px;
}

.showcase-item--wide {
  grid-column: 8 / 13;
  grid-row: 2;
  justify-self: center;
  width: 100%;
  max-width: 280px;
}

.showcase-item:nth-child(5) {
  grid-column: 1 / 5;
  grid-row: 3;
}

.showcase-item:nth-child(6) {
  grid-column: 5 / 9;
  grid-row: 3;
  margin-top: 24px;
}

.showcase-item:nth-child(7) {
  grid-column: 9 / 13;
  grid-row: 3;
}

.showcase-item:nth-child(8) {
  grid-column: 1 / 5;
  grid-row: 4;
}

.showcase-item:nth-child(9) {
  grid-column: 5 / 9;
  grid-row: 4;
  margin-top: 24px;
}

.showcase-item:nth-child(10) {
  grid-column: 9 / 13;
  grid-row: 4;
}

.showcase-item--rise {
  margin-top: 12px;
}

.showcase-item--drop {
  margin-top: 36px;
}

.showcase-device {
  display: block;
  width: 100%;
  max-width: 240px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  text-align: inherit;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.showcase-item--featured .showcase-device {
  max-width: 320px;
}

.showcase-device:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 32px;
}

.showcase-device-frame {
  position: relative;
  display: block;
  padding: 11px 9px 15px;
  border-radius: 30px;
  background: linear-gradient(160deg, #2e2e32 0%, #18181a 48%, #0f0f11 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 8px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

@media (prefers-color-scheme: light) {
  .showcase-device-frame {
    background: linear-gradient(160deg, #e8e8ec 0%, #d4d4d8 48%, #c8c8cd 100%);
    box-shadow:
      0 0 0 1px rgba(18, 18, 18, 0.08),
      0 24px 48px rgba(18, 18, 18, 0.12),
      0 8px 20px rgba(18, 18, 18, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
}

.showcase-device:hover .showcase-device-frame,
.showcase-device:focus-visible .showcase-device-frame {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(0, 200, 83, 0.35),
    0 28px 56px rgba(0, 0, 0, 0.5),
    0 12px 28px rgba(0, 200, 83, 0.12);
}

@media (prefers-color-scheme: light) {
  .showcase-device:hover .showcase-device-frame,
  .showcase-device:focus-visible .showcase-device-frame {
    box-shadow:
      0 0 0 1px rgba(0, 140, 58, 0.3),
      0 28px 56px rgba(18, 18, 18, 0.14),
      0 12px 28px rgba(0, 140, 58, 0.1);
  }
}

.showcase-device-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 2;
  width: 34%;
  max-width: 68px;
  height: 5px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
  pointer-events: none;
}

@media (prefers-color-scheme: light) {
  .showcase-device-notch {
    background: rgba(18, 18, 18, 0.18);
  }
}

.showcase-device-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

@media (max-width: 960px) {
  .showcase-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }

  .showcase-item--featured,
  .showcase-item:nth-child(2),
  .showcase-item:nth-child(3),
  .showcase-item--wide,
  .showcase-item:nth-child(5),
  .showcase-item:nth-child(6),
  .showcase-item:nth-child(7),
  .showcase-item:nth-child(8),
  .showcase-item:nth-child(9),
  .showcase-item:nth-child(10) {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
    max-width: none;
  }

  .showcase-item--featured {
    grid-column: 1 / -1;
  }

  .showcase-item--featured .showcase-device,
  .showcase-item--featured .showcase-device-frame {
    max-width: 280px;
  }

  .showcase-item--wide {
    grid-column: 1 / -1;
    max-width: 260px;
    justify-self: center;
  }

  .showcase-item--rise {
    margin-top: 0;
  }

  .showcase-item--drop {
    margin-top: 16px;
  }
}

@media (max-width: 520px) {
  .showcase-gallery {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .showcase-item--drop {
    margin-top: 0;
  }

  .showcase-device {
    max-width: 260px;
  }

  .showcase-item--featured .showcase-device {
    max-width: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-device-frame {
    transition: none;
  }

  .showcase-device:hover .showcase-device-frame,
  .showcase-device:focus-visible .showcase-device-frame {
    transform: none;
  }
}

/* —— Screenshot lightbox —— */
.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.screenshot-lightbox[hidden] {
  display: none;
}

.screenshot-lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(100%, 420px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
}

.screenshot-lightbox-frame {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  padding: 12px 10px 16px;
  border-radius: 32px;
  background: linear-gradient(160deg, #2e2e32 0%, #18181a 48%, #0f0f11 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 32px 64px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(0, 200, 83, 0.1);
}

.screenshot-lightbox-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  object-fit: contain;
  border-radius: 22px;
}

.screenshot-lightbox-caption {
  margin: 0;
  max-width: 360px;
  font-size: 0.9375rem;
  line-height: 1.55;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

.screenshot-lightbox-close,
.screenshot-lightbox-prev,
.screenshot-lightbox-next {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.75);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.screenshot-lightbox-close:hover,
.screenshot-lightbox-prev:hover,
.screenshot-lightbox-next:hover {
  background: rgba(30, 30, 30, 0.95);
  border-color: rgba(0, 200, 83, 0.45);
}

.screenshot-lightbox-close:focus-visible,
.screenshot-lightbox-prev:focus-visible,
.screenshot-lightbox-next:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.screenshot-lightbox-close {
  top: clamp(12px, 3vw, 24px);
  right: clamp(12px, 3vw, 24px);
}

.screenshot-lightbox-prev {
  left: clamp(8px, 2vw, 20px);
  top: 50%;
  transform: translateY(-50%);
}

.screenshot-lightbox-next {
  right: clamp(8px, 2vw, 20px);
  top: 50%;
  transform: translateY(-50%);
}

.screenshot-lightbox-prev svg,
.screenshot-lightbox-next svg,
.screenshot-lightbox-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screenshot-lightbox-counter {
  position: absolute;
  top: clamp(12px, 3vw, 24px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(18, 18, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .screenshot-lightbox-prev {
    left: 4px;
  }

  .screenshot-lightbox-next {
    right: 4px;
  }

  .screenshot-lightbox-prev,
  .screenshot-lightbox-next {
    width: 40px;
    height: 40px;
    background: rgba(18, 18, 18, 0.9);
  }
}

body.screenshot-lightbox-open {
  overflow: hidden;
}

/* —— Final CTA —— */
.cta-section {
  padding-bottom: clamp(72px, 10vw, 104px);
}

.cta-card {
  padding: clamp(40px, 6vw, 56px) clamp(24px, 4vw, 48px);
  border-radius: var(--home-radius);
  border: 1px solid rgba(0, 200, 83, 0.28);
  background:
    linear-gradient(145deg, rgba(0, 200, 83, 0.12) 0%, transparent 55%),
    var(--home-card-bg);
  box-shadow: var(--home-shadow);
  text-align: center;
}

@media (prefers-color-scheme: light) {
  .cta-card {
    border-color: rgba(0, 140, 58, 0.25);
    background:
      linear-gradient(145deg, rgba(0, 140, 58, 0.1) 0%, transparent 55%),
      var(--home-card-bg);
  }
}

.cta-card h2 {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
}

/* —— Footer —— */
.home-footer {
  border-top: 1px solid var(--border);
  padding: 32px var(--home-pad-x) 40px;
}

.home-footer-inner {
  max-width: var(--home-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.home-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.home-footer-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

.home-footer-nav a:hover {
  color: var(--accent);
}

.home-footer-link-secondary {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.home-footer-link-secondary:hover {
  color: var(--text-secondary);
}

/* —— Features page —— */
.hero-page {
  padding-bottom: clamp(32px, 5vw, 48px);
}

.hero-page .hero-inner {
  max-width: 680px;
}

.hero-page h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}

.hero-page .hero-sub {
  margin: 0 auto;
}

.feature-group-section {
  padding-top: 0;
  padding-bottom: clamp(48px, 7vw, 72px);
}

.feature-group-section + .feature-group-section {
  padding-top: clamp(48px, 7vw, 72px);
  border-top: 1px solid var(--border);
}

.feature-group-section--highlight {
  padding-bottom: clamp(56px, 8vw, 80px);
}

.feature-group-section--highlight .showcase-eyebrow {
  margin-bottom: 8px;
}

.feature-detail-card--highlight {
  border-color: rgba(0, 200, 83, 0.28);
  background:
    linear-gradient(145deg, rgba(0, 200, 83, 0.1) 0%, transparent 55%),
    var(--home-card-bg);
}

@media (prefers-color-scheme: light) {
  .feature-detail-card--highlight {
    border-color: rgba(0, 140, 58, 0.25);
    background:
      linear-gradient(145deg, rgba(0, 140, 58, 0.08) 0%, transparent 55%),
      var(--home-card-bg);
  }
}

.feature-group-header {
  max-width: 640px;
  margin: 0 0 28px;
}

.feature-group-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
}

.feature-group-header p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.feature-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.feature-detail-grid-single {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.feature-detail-card {
  padding: 24px 22px;
  border-radius: var(--home-radius);
  border: 1px solid var(--border);
  background: var(--home-card-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feature-detail-card:hover {
  border-color: rgba(0, 200, 83, 0.4);
  box-shadow: 0 8px 24px rgba(0, 200, 83, 0.08);
}

@media (prefers-color-scheme: light) {
  .feature-detail-card:hover {
    border-color: rgba(0, 140, 58, 0.35);
    box-shadow: 0 8px 24px rgba(0, 140, 58, 0.1);
  }
}

.feature-detail-card h3 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
}

.feature-detail-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.feature-detail-card p + p {
  margin-top: 12px;
}

.feature-detail-card strong {
  color: var(--text);
  font-weight: 600;
}

.feature-detail-list {
  margin: 12px 0 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.feature-detail-list li + li {
  margin-top: 8px;
}

.feature-detail-card p + .feature-detail-list {
  margin-top: 8px;
}

.feature-detail-list + p {
  margin-top: 16px;
}

/* —— Content pages (privacy, account deletion) —— */
.content-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--home-pad-x) clamp(72px, 10vw, 104px);
}

.content-body-top {
  padding-top: clamp(48px, 8vw, 88px);
}

.content-body .content-card {
  padding: clamp(24px, 4vw, 32px) clamp(22px, 4vw, 28px);
  border-radius: var(--home-radius);
  border: 1px solid var(--border);
  background: var(--home-card-bg);
  box-shadow: var(--home-shadow);
  margin-bottom: 16px;
}

.content-body .content-card:last-child {
  margin-bottom: 0;
}

.content-body h2 {
  margin: 0 0 14px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.content-body p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.content-body p:last-child {
  margin-bottom: 0;
}

.content-body ul,
.content-body ol {
  margin: 0 0 14px;
  padding-left: 1.4rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.content-body li {
  margin-bottom: 8px;
}

.content-body li:last-child {
  margin-bottom: 0;
}

.content-body a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.content-body a:hover {
  text-decoration: underline;
}

.content-body strong {
  color: var(--text);
  font-weight: 600;
}

.hero-page .page-meta {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.home-page .field label {
  color: var(--text-secondary);
}

.home-page input[type="email"],
.home-page textarea {
  background: var(--bg);
  border-radius: 12px;
}

.home-page .otp-cell {
  background: var(--bg);
}

.home-page .content-card.verify-panel,
.home-page .content-card.success-panel {
  text-align: center;
}

.home-page .success-home-btn {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  margin-top: 4px;
}

.section-cta-row {
  margin: 32px 0 0;
  text-align: center;
}

.section-cta-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.section-cta-link:hover {
  text-decoration: underline;
}

/* —— Blog —— */
.blog-index-body {
  padding-top: 0;
}

.blog-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-index-card {
  padding: clamp(24px, 4vw, 32px) clamp(22px, 4vw, 28px);
  border-radius: var(--home-radius);
  border: 1px solid var(--border);
  background: var(--home-card-bg);
  box-shadow: var(--home-shadow);
}

.blog-post-date,
.blog-index-card .blog-post-date {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-index-title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.blog-index-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.blog-index-title a:hover {
  color: var(--accent);
}

.blog-index-excerpt {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.blog-read-link {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.blog-read-link:hover {
  text-decoration: underline;
}

.blog-back-link-wrap {
  margin: 0 0 20px;
}

.blog-back-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.blog-back-link:hover {
  color: var(--accent);
}

.blog-article {
  padding-top: 0;
}

.blog-article-card {
  margin-bottom: 0;
}

.blog-prose p {
  margin: 0 0 1.25em;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.blog-prose p:last-child {
  margin-bottom: 0;
}

.blog-prose h2 {
  margin: 2em 0 0.75em;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.blog-prose h2:first-child {
  margin-top: 0;
}

.blog-prose ul,
.blog-prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.35rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.blog-prose li + li {
  margin-top: 0.5em;
}

.blog-prose li strong {
  color: var(--text);
  font-weight: 600;
}

.blog-prose-closing {
  margin-top: 1.75em;
  padding-top: 1.75em;
  border-top: 1px solid var(--border);
}

.blog-signature {
  margin-top: 0.5em;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.blog-download-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2em 0;
  padding: clamp(20px, 4vw, 28px);
  border-radius: calc(var(--home-radius) - 4px);
  border: 1px solid rgba(0, 200, 83, 0.22);
  background:
    linear-gradient(145deg, rgba(0, 200, 83, 0.08) 0%, transparent 55%),
    var(--home-card-bg);
  text-align: center;
}

@media (prefers-color-scheme: light) {
  .blog-download-cta {
    border-color: rgba(0, 140, 58, 0.2);
    background:
      linear-gradient(145deg, rgba(0, 140, 58, 0.06) 0%, transparent 55%),
      var(--home-card-bg);
  }
}

.blog-download-label {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.blog-download-cta .blog-download-note {
  margin: 16px 0 0;
  max-width: 36ch;
  font-size: 0.9375rem;
  line-height: 1.65;
  text-align: center;
  color: var(--text-secondary);
}

.blog-prose h2 + .blog-screenshots {
  margin-top: 1.25em;
}

.blog-screenshots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 24px);
  margin: 2em 0 2.25em;
  padding: clamp(20px, 4vw, 28px);
  border-radius: calc(var(--home-radius) - 4px);
  border: 1px solid var(--border);
  background: var(--home-card-bg);
}

.blog-screenshot-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.blog-screenshots .showcase-device {
  display: block;
  width: 100%;
  max-width: min(100%, 200px);
  margin: 0 auto;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.blog-screenshots figcaption {
  max-width: 240px;
  margin: 0 auto;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .blog-screenshots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-screenshot-item:last-child {
    grid-column: 1 / -1;
    max-width: 220px;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .blog-screenshots {
    grid-template-columns: 1fr;
  }

  .blog-screenshot-item:last-child {
    grid-column: auto;
    max-width: none;
  }
}
