/* Their Stories Live On: the website (TIM-115). The app's autumn palette
   (lib/src/theme.dart): mist paper, wet-slate ink, river-stone quiet text,
   maple for actions. */
:root {
  --paper: #eae4e2;
  --panel: #f7f3f0;
  --ink: #3a3b34;
  --quiet: #625b59;
  --grid: #d3c8c1;
  --tan: #e3dacc;
  --accent: #b46018;
  --accent-ink: #904d13;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: clamp(26px, 4vw, 34px); }
h3 { font-size: 21px; }
section { padding: 72px 20px; }
section > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.note { color: var(--quiet); font-size: 15px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 20px;
  background: rgba(247, 243, 240, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--grid);
}
.brand { font: 600 19px var(--serif); color: var(--ink); text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav a:not(.button) { color: var(--ink); text-decoration: none; font-size: 15px; }
.top nav a:not(.button):hover { color: var(--accent-ink); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 8px; border: 1.5px solid var(--accent);
  background: var(--accent); color: #fff;
  font: 500 16px var(--sans); text-decoration: none;
  transition: background 0.15s;
}
.button:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.button.ghost { background: transparent; color: var(--accent-ink); }
.button.ghost:hover { background: rgba(180, 96, 24, 0.08); }
.button.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* The scene */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex; align-items: center;
  padding: 80px 20px;
  background:
    linear-gradient(90deg, rgba(234, 228, 226, 0.94) 0%, rgba(234, 228, 226, 0.82) 48%, rgba(234, 228, 226, 0.35) 100%),
    url("/img/cabin.jpg") 70% 38% / cover no-repeat;
}
.hero-text { max-width: 980px; width: 100%; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); margin-bottom: 18px; }
.lead { font: 20px/1.6 var(--serif); max-width: 34em; margin: 0; }
.hero .note { margin-top: 14px; }

.why { background: var(--panel); }
.why p { font: 19px/1.7 var(--serif); max-width: 40em; }

/* Steps */
.steps {
  list-style: none; padding: 0; counter-reset: step;
  display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.steps li {
  counter-increment: step;
  background: var(--panel); border: 1px solid var(--grid); border-radius: 14px;
  padding: 26px 24px;
}
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 600; margin-bottom: 12px;
}
.steps p { margin: 0; color: var(--quiet); }

/* Screens */
.see { background: var(--tan); }
.shot { margin: 34px auto 0; }
.shot img {
  border-radius: 14px; border: 1px solid var(--grid);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}
.shot figcaption { margin-top: 12px; color: var(--quiet); font-size: 16px; }
.shot figcaption strong { color: var(--ink); }

/* Trust */
.points { list-style: none; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.points li { background: var(--panel); border: 1px solid var(--grid); border-radius: 14px; padding: 22px; }
.points strong { display: block; font: 600 19px var(--serif); margin-bottom: 4px; }

/* Pricing */
.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 680px; margin-top: 24px; }
.plan { background: var(--panel); border: 1px solid var(--grid); border-radius: 14px; padding: 28px; text-align: center; }
.plan.featured { border: 2px solid var(--accent); }
.price { font: 600 44px var(--serif); margin: 8px 0 0; }
.price span { font: 400 17px var(--sans); color: var(--quiet); }
.alt { color: var(--quiet); margin: 0 0 12px; }

.cta { text-align: center; background: var(--panel); }
.cta .actions { justify-content: center; }

footer { padding: 30px 20px 40px; text-align: center; color: var(--quiet); font-size: 14px; }
footer p { margin: 4px 0; }

@media (max-width: 640px) {
  section { padding: 52px 18px; }
  .top nav a:not(.button) { display: none; }
  .hero {
    min-height: 0; padding: 56px 18px;
    background:
      linear-gradient(180deg, rgba(234, 228, 226, 0.9), rgba(234, 228, 226, 0.84)),
      url("/img/cabin.jpg") 70% 30% / cover no-repeat;
  }
  .lead { font-size: 18px; }
  .actions .button { flex: 1 1 100%; }
}
