:root {
  --bg: #fafafa;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-faint: #8a8a8a;
  --line: #e8e8e8;
  --accent: #c2410c;
  --accent-deep: #9a3412;
  --card: #ffffff;
  --maxw: 760px;
  --maxw-wide: 640px;
  --maxw-banner: 700px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Work Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

a {
  color: inherit;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ── Landing hero ── */
.landing-hero {
  position: relative;
  padding: 48px 24px 24px;
  text-align: center;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: center top;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 20%,
    var(--bg) 40%,
    rgba(250, 250, 250, 0) 100%
  );
  pointer-events: none;
}

.landing-hero > * {
  position: relative;
}

.install-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 14px 28px 14px 16px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 32%, transparent);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.install-pill:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 38%, transparent);
}

.install-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.install-pill-icon img,
.install-pill-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.install-pill svg.ext {
  width: 16px;
  height: 16px;
  opacity: 0.85;
  flex-shrink: 0;
}

.landing-hero h1 {
  font-size: clamp(28px, 4.5vw, 46px);
  max-width: 22ch;
  margin: 0 auto;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.landing-hero .hero-lede {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 24px auto 0;
  max-width: 44ch;
}

.landing-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 48px auto 0;
  max-width: 340px;
  height: 120px;
}

.landing-visual .panel {
  width: 140px;
  height: 100px;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.landing-visual .panel.before {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
}

.landing-visual .panel.after {
  background:
    linear-gradient(45deg, #e5e5e5 25%, transparent 25%),
    linear-gradient(-45deg, #e5e5e5 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e5e5e5 75%),
    linear-gradient(-45deg, transparent 75%, #e5e5e5 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-color: #f5f5f5;
}

.landing-visual .panel .subject {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 72px;
  background: var(--accent);
  border-radius: 28px 28px 8px 8px;
  opacity: 0.85;
}

.landing-visual .panel.before .subject {
  opacity: 1;
}

.landing-visual .arrow {
  font-size: 24px;
  color: var(--ink-faint);
  padding: 0 8px;
}

/* ── Landing body sections ── */
.landing-body {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.landing-body > h1:first-child,
.landing-body > h1:first-child + p {
  display: none;
}

.landing-body h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.landing-body h2:first-child {
  margin-top: 0;
}

.landing-body p,
.landing-body li {
  color: var(--ink-soft);
  font-size: 15px;
}

.landing-body ul {
  padding-left: 1.25rem;
}

.landing-body a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.landing-body a:hover {
  color: var(--accent);
}

.site-install-top {
  display: flex;
  justify-content: center;
  padding: 28px 24px 0;
}

.site-install-top .install-pill {
  margin-bottom: 0;
}

.landing-cta-band {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 64px 24px;
  text-align: center;
}

.landing-cta-band h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  max-width: 22ch;
  margin: 0 auto 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.landing-cta-band p {
  color: var(--ink-soft);
  margin-top: 14px;
  font-size: 15px;
}

.landing-cta-band .install-pill {
  margin-top: 28px;
  margin-bottom: 0;
}

.landing-cta-band--article {
  padding: 48px 24px;
  border-top: 1px solid var(--line);
  border-bottom: none;
}

.landing-cta-band--article .install-pill {
  margin-top: 0;
}

/* ── Article pages ── */
.site-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.site-main h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 1rem;
}

.site-main h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  margin-top: 2rem;
}

.site-main h3 {
  font-size: 18px;
  margin-top: 1.5rem;
}

.site-main p,
.site-main li {
  color: var(--ink-soft);
  font-size: 15px;
}

.site-main a {
  color: var(--accent-deep);
}

.site-main a:hover {
  color: var(--accent);
}

.article-page > p:first-of-type {
  margin-top: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.article-page p,
.article-page ul,
.article-page ol,
.article-page dl {
  max-width: 72ch;
}

.article-page li + li {
  margin-top: 0.5rem;
}

.article-page code {
  overflow-wrap: anywhere;
}

.legal-data-list {
  margin-block: 1.5rem;
}

.legal-data-list dt {
  margin-top: 1rem;
  font-weight: 650;
}

.legal-data-list dd {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.byline {
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

@media (max-width: 640px) {
  .install-pill {
    font-size: 14px;
    padding: 12px 20px 12px 14px;
  }
}

/* ── Static landing sections ── */
.promo-banner {
  display: block;
  width: min(100%, var(--maxw-banner));
  margin: 20px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.14);
}

.promo-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.promo-banner-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.hero-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  width: min(100%, var(--maxw-banner));
  margin: 28px auto 8px;
  color: var(--ink);
  font-size: 20px;
}

.hero-rating-users {
  color: var(--ink-soft);
  font-family: "Newsreader", Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  margin-right: 36px;
}

.hero-rating .rating-stars {
  color: var(--accent);
  letter-spacing: 0.12em;
  font-size: 32px;
  line-height: 1;
}

.hero-rating strong {
  font-family: "Newsreader", Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
}

.landing-content {
  width: min(100% - 48px, 1040px);
  margin: 0 auto;
}

.landing-content--lower {
  padding-bottom: 80px;
}

.landing-content--interesting {
  padding-bottom: 24px;
}

.landing-content--interesting-compact {
  width: min(100% - 48px, var(--maxw));
  padding-bottom: 8px;
}

.landing-section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.landing-section h2 {
  font-size: clamp(32px, 5vw, 54px);
}

.landing-section h3 {
  font-size: 22px;
}

.landing-section p {
  color: var(--ink-soft);
}

.section-heading {
  max-width: 620px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-deep) !important;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.feature-card h3 {
  margin-top: 0;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 15px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
  gap: 64px;
  align-items: end;
}

.about-copy > p:last-child {
  max-width: 52ch;
  font-size: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}

.stat {
  padding: 24px 20px;
  border-left: 3px solid var(--accent);
  background: var(--card);
}

.stat dd {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 46px;
  line-height: 1;
}

.stat dt {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
}

.reviews-section {
  overflow: hidden;
}

.reviews-note {
  margin: 0 0 28px;
  font-size: 13px;
}

.reviews-marquee {
  overflow: hidden;
  margin-inline: calc((100vw - min(100vw - 48px, 1040px)) / -2);
}

.reviews-marquee-track {
  display: flex;
  width: max-content;
  animation: review-marquee 34s linear infinite;
}

.reviews-set {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}

.review-card {
  width: min(340px, 78vw);
  min-height: 210px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.review-card-stars {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.review-card blockquote {
  margin: 28px 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 21px;
  line-height: 1.35;
}

.review-card figcaption {
  color: var(--ink-faint);
  font-size: 13px;
}

@keyframes review-marquee {
  to {
    transform: translateX(-50%);
  }
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  list-style: none;
}

.howto-grid li {
  position: relative;
  padding: 72px 24px 24px;
  border-top: 1px solid var(--ink);
}

.howto-grid li > span {
  position: absolute;
  top: 14px;
  color: var(--accent);
  font-family: "Newsreader", Georgia, serif;
  font-size: 34px;
}

.howto-grid p {
  margin-bottom: 0;
  font-size: 15px;
}

.landing-cta-band {
  padding: 64px 24px 28px;
}

.landing-cta-band .install-pill {
  margin: 0;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 22px 44px 22px 0;
  cursor: pointer;
  font-family: "Newsreader", Georgia, serif;
  font-size: 21px;
}

.faq-list details p {
  max-width: 70ch;
  margin: -4px 0 24px;
}

.interesting-section {
  border-bottom: 0;
}

.interesting-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 48px;
}

.interesting-links li {
  break-inside: avoid;
  margin: 0 0 10px;
  padding: 0;
}

.interesting-links a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 3px;
  font-size: 16px;
  line-height: 1.45;
}

.interesting-links a:hover {
  color: var(--accent-deep);
  text-decoration-color: var(--accent);
}

/* Compact Interesting on non-home pages (match article column) */
.interesting-section--compact {
  padding: 36px 0 28px;
}

.interesting-section--compact .section-heading {
  max-width: none;
  margin-bottom: 14px;
}

.interesting-section--compact .eyebrow {
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.interesting-section--compact h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
}

.interesting-section--compact .interesting-links ul {
  column-gap: 28px;
}

.interesting-section--compact .interesting-links li {
  margin: 0 0 6px;
}

.interesting-section--compact .interesting-links a {
  font-size: 14px;
  line-height: 1.4;
  text-underline-offset: 2px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 24px;
  padding: 32px max(24px, calc((100vw - 1040px) / 2));
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.site-footer .site-brand {
  justify-self: start;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  justify-self: center;
}

.site-footer p {
  margin: 0;
  justify-self: end;
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  .reviews-marquee-track {
    animation-play-state: paused;
  }
}

@media (max-width: 760px) {
  .landing-hero {
    padding: 48px 20px 24px;
  }

  .landing-content {
    width: min(100% - 32px, 1040px);
  }

  .landing-section {
    padding: 64px 0;
  }

  .feature-grid,
  .howto-grid {
    grid-template-columns: 1fr;
  }

  .interesting-links ul {
    columns: 1;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer .site-brand,
  .site-footer nav,
  .site-footer p {
    justify-self: center;
    text-align: center;
  }
}

