/* Sunset Path palette tokens, mirrored from
 * mobile/lib/ui/theme.dart's CartPathColors so the marketing site
 * reads as one continuous brand surface with the app. If those
 * tokens drift, update here too. */
:root {
  --brick: #8C3A22;
  --brick-deep: #5C2415;
  --brick-tint: #F3E2D8;
  --dusk: #2A4C6E;
  --apricot: #F4A26F;
  --slate: #4A5560;
  --ink: #111111;
  --mist: #F7F8F8;
  --sand: #F5EBD7;
  --surface: #FFFFFF;
}

* {
  box-sizing: border-box;
}

html {
  /* Smooth-scroll for in-page anchors. */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
}

a {
  color: var(--brick);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--brick-deep);
}

/* ---------- header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid #E5E7E7;
  padding: 16px 24px;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header__logo img {
  height: 56px;
  width: auto;
  display: block;
}

.site-header nav {
  display: flex;
  gap: 24px;
  font-size: 16px;
}

.site-header nav a {
  text-decoration: none;
  color: var(--slate);
  font-weight: 600;
}

.site-header nav a:hover {
  color: var(--brick);
}

/* ---------- hero ---------- */

.hero {
  /* Sunset Path background story: dusk twilight at top, paver brick
   * below. Same colour-stop split as the app icon. */
  background: linear-gradient(180deg, var(--dusk) 0%, var(--brick) 55%, var(--brick-deep) 100%);
  color: var(--surface);
  padding: 96px 24px 120px;
  text-align: center;
}

.hero__inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -1.5px;
  font-weight: 700;
}

.hero p {
  font-size: 22px;
  line-height: 1.5;
  margin: 0 0 32px;
  color: var(--brick-tint);
}

.hero__cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero__cta-placeholder {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--surface);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.hero__cta-placeholder small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 600;
}

/* ---------- content sections ---------- */

main.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  background: var(--surface);
}

main.page h1 {
  font-size: 40px;
  margin: 0 0 8px;
  line-height: 1.15;
  color: var(--brick-deep);
}

main.page h2 {
  font-size: 24px;
  margin: 48px 0 12px;
  color: var(--brick-deep);
}

main.page h3 {
  font-size: 18px;
  margin: 24px 0 8px;
  color: var(--brick);
}

main.page p,
main.page ul,
main.page ol {
  margin: 0 0 16px;
}

main.page ul,
main.page ol {
  padding-left: 24px;
}

main.page li {
  margin-bottom: 6px;
}

main.page blockquote {
  margin: 16px 0;
  padding: 12px 20px;
  border-left: 4px solid var(--apricot);
  background: var(--brick-tint);
  color: var(--slate);
  font-style: italic;
}

main.page .lede {
  font-size: 18px;
  color: var(--slate);
}

.features {
  background: var(--surface);
  padding: 64px 24px;
}

.features__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature {
  padding: 24px;
  border-radius: 12px;
  background: var(--mist);
  border: 1px solid #E5E7E7;
}

.feature h3 {
  margin: 0 0 8px;
  color: var(--brick-deep);
  font-size: 20px;
}

.feature p {
  margin: 0;
  color: var(--slate);
  font-size: 16px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--brick-deep);
  color: var(--brick-tint);
  padding: 48px 24px 32px;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.site-footer a {
  color: var(--apricot);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .site-footer__links {
    justify-content: flex-end;
  }
}

.site-footer__disclaimer {
  /* The affiliation disclaimer must remain readable + present in
   * the body of the marketing surface, not buried — per issue
   * #223's trademark guardrails. Keeping it at small-but-not-tiny
   * size in the footer satisfies that. */
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.92;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .hero {
    padding: 64px 20px 80px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }

  .site-header__logo img {
    height: 44px;
  }
}
