/* ---------- Tokens (mirrored from lib/theme.ts + tailwind.config.js) ---------- */

:root {
  --pine-500: #2c8651;
  --pine-700: #163d22;
  --pine-800: #0d3b1a;
  --sun: #fbbf24;

  /* clear-day */
  --cream: #fef9e7;
  --cream-border: #f1e8c4;
  --ink: #1a1a1a;
  --ink-muted: #5b5847;

  /* clear-night */
  --night: #0a1424;
  --night-surface: #0f1d33;
  --night-border: #1c2c4a;
  --night-text: #f5f7fa;
  --night-muted: #94a4c2;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --max-width: 1040px;
  --content-pad: clamp(20px, 4vw, 32px);
}

/* ---------- Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* ---------- Layout primitives ---------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--content-pad);
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section--tight {
  padding-block: clamp(40px, 6vw, 72px);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine-500);
  margin-bottom: 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  padding-block: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.brand-name {
  font-size: 18px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--cream);
  padding-top: clamp(96px, 14vw, 160px);
  padding-bottom: clamp(48px, 8vw, 96px);
  text-align: center;
  overflow: hidden;
}

.hero .pine-mark--lg {
  width: clamp(96px, 14vw, 132px);
  height: clamp(96px, 14vw, 132px);
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.05;
}

.hero .lede {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--ink);
  margin-top: 18px;
  font-weight: 500;
}

.hero .sub-lede {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--ink-muted);
  margin-top: 14px;
  max-width: 36ch;
  margin-inline: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding: 8px 16px;
  background: rgba(44, 134, 81, 0.08);
  border: 1px solid rgba(44, 134, 81, 0.18);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pine-700);
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pine-500);
  box-shadow: 0 0 0 4px rgba(44, 134, 81, 0.18);
}

/* ---------- The point ---------- */

.point {
  background: var(--cream);
  border-top: 1px solid var(--cream-border);
}

.point__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  max-width: 880px;
  margin: 0 auto;
}

.point__grid p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}

.point__grid p strong {
  color: var(--pine-700);
  font-weight: 600;
}

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

/* ---------- Features ---------- */

.features {
  background: #ffffff;
  border-top: 1px solid var(--cream-border);
  border-bottom: 1px solid var(--cream-border);
}

.features__heading {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.features__heading h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.feature-card {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 32px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(44, 134, 81, 0.4);
}

.feature-card__icon {
  width: 36px;
  height: 36px;
  color: var(--pine-500);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

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

/* ---------- Theme strip ---------- */

.themes {
  background: var(--night);
  color: var(--night-text);
  border-bottom: 1px solid var(--night-border);
}

.themes__heading {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.themes__heading h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--night-text);
}

.themes__heading p {
  margin-top: 12px;
  color: var(--night-muted);
  max-width: 50ch;
  margin-inline: auto;
}

.themes__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.swatch {
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid transparent;
}

.swatch__label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.swatch__chip {
  align-self: flex-start;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

@media (max-width: 960px) {
  .themes__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .themes__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--cream-border);
  padding-block: 36px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer .brand .pine-mark {
  width: 22px;
  height: 22px;
}

.site-footer .brand-name {
  font-size: 15px;
}

.site-footer__meta {
  font-size: 14px;
  color: var(--ink-muted);
}

/* ---------- Focus ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pine-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Scroll-fade ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: none;
}

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

  .fade-up {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
