:root {
  /* Same chart the app's Explore map is drawn on — lib/core/map/parchment_map_style.dart */
  --paper: #e9d5ac;
  --paper-soft: #e0c99b;
  --card: #f6ecd2;
  --ink: #43301c;
  --ink-dim: rgba(67, 48, 28, 0.72);
  --ink-faint: rgba(67, 48, 28, 0.5);
  --line: rgba(67, 48, 28, 0.2);
  --gold: #c9982f;
  --rust: #b04a32;
  --rust-deep: #8c3a28;
  --sea: #4f7d78;
  --sea-shallow: #8fb8b4;
  --yellow: #dba53c;
  --glass: rgba(67, 48, 28, 0.05);
  --radius: 14px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 15% -10%, rgba(176, 74, 50, 0.1), transparent 60%),
    radial-gradient(760px 560px at 100% 0%, rgba(201, 152, 47, 0.14), transparent 55%),
    radial-gradient(1000px 700px at 50% 115%, rgba(176, 74, 50, 0.08), transparent 60%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.22  0 0 0 0 0.16  0 0 0 0 0.11  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: 'Marcellus', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(233, 213, 172, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Marcellus', serif;
  font-size: 19px;
  text-decoration: none;
  color: var(--ink);
}

.brand-icon {
  width: 30px;
  height: 30px;
}

.brand-word {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1;
  color: var(--rust-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--ink-dim);
}

.nav-links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--rust);
}

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--gold), var(--rust));
  color: #fdf6e8;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.nav-cta:hover {
  color: #fdf6e8;
}

@media (max-width: 760px) {
  .nav-links span,
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* --- hero --- */
.hero {
  padding: 92px 0 68px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 560px;
  height: 560px;
  transform: translateX(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='2' seed='7' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='14'/%3E%3C/filter%3E%3Cg filter='url(%23w)' fill='none' stroke='%2343301c' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='300' cy='300' r='250'/%3E%3Ccircle cx='300' cy='300' r='236'/%3E%3Cline x1='300' y1='16' x2='300' y2='58'/%3E%3Cline x1='300' y1='542' x2='300' y2='584'/%3E%3Cline x1='16' y1='300' x2='58' y2='300'/%3E%3Cline x1='542' y1='300' x2='584' y2='300'/%3E%3Cpath d='M300 40 L312 66 L300 58 L288 66 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 26px;
}

.hero-word {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  line-height: 1.05;
  color: var(--rust-deep);
  /* written in left to right, like ink going down on the page */
  clip-path: inset(-10% 100% -10% 0);
  animation: ink-write 1.1s ease-out 0.15s forwards;
}

@keyframes ink-write {
  to {
    clip-path: inset(-10% -5% -10% 0);
  }
}

.hero-seal {
  width: clamp(58px, 8vw, 88px);
  height: auto;
  margin-left: -4px;
  transform: rotate(-8deg);
  /* stamped down after the name finishes writing */
  opacity: 0;
  animation: seal-stamp 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) 1.3s forwards;
}

@keyframes seal-stamp {
  0% {
    opacity: 0;
    transform: scale(1.9) rotate(-16deg);
  }
  55% {
    opacity: 1;
    transform: scale(0.92) rotate(-7deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-8deg);
  }
}

/* --- scroll reveals (elements get .reveal from app.js, .in when visible) --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-word,
  .hero-seal {
    animation: none;
    clip-path: none;
    opacity: 1;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  background: transparent;
  border: 1px dashed rgba(176, 74, 50, 0.5);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  max-width: 780px;
  margin: 0 auto;
  color: var(--ink);
}

.hero h1 .accent {
  color: var(--rust);
}

.hero .sub {
  max-width: 600px;
  margin: 22px auto 0;
  font-size: 18px;
  color: var(--ink-dim);
}

/* --- waitlist form --- */
.waitlist {
  max-width: 480px;
  margin: 40px auto 0;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 14px 30px rgba(67, 48, 28, 0.07);
}

.waitlist form {
  display: flex;
  gap: 10px;
}

.waitlist input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
}

.waitlist input[type="email"]::placeholder {
  color: var(--ink-faint);
}

.waitlist input[type="email"]:focus {
  outline: none;
  border-color: var(--rust);
}

.waitlist button {
  padding: 13px 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--gold), var(--rust));
  color: #fdf6e8;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.waitlist button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(176, 74, 50, 0.28);
}

.waitlist button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.guide-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-dim);
  text-align: left;
  cursor: pointer;
}

.guide-check input {
  margin-top: 3px;
  accent-color: var(--rust);
  flex-shrink: 0;
}

.form-msg {
  margin-top: 12px;
  font-size: 13.5px;
  min-height: 18px;
}

.form-msg.ok {
  color: #4f7a4a;
}

.form-msg.err {
  color: #b23a2a;
}

.fine-print {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-faint);
  text-align: center;
}

@media (max-width: 520px) {
  .waitlist form {
    flex-direction: column;
  }
}

/* --- sections --- */
section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-dim);
  font-size: 16px;
}

/* --- about cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.card .glyph {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--yellow), var(--rust));
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-dim);
  font-size: 14.5px;
}

/* --- how it works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

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

.step {
  position: relative;
  padding-top: 8px;
}

.step .num {
  font-family: 'Marcellus', serif;
  font-size: 38px;
  color: var(--rust);
  margin-bottom: 10px;
  display: block;
}

.step:nth-child(2) .num {
  color: var(--sea);
}

.step:nth-child(3) .num {
  color: var(--gold);
}

.step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step p {
  color: var(--ink-dim);
  font-size: 14.5px;
}

/* --- categories --- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 14.5px;
  font-weight: 500;
}

.chip .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 2px rgba(67, 48, 28, 0.35) inset, 0 1px 0 rgba(67, 48, 28, 0.18);
}

/* --- guides section --- */
.guides {
  background: var(--paper-soft);
}

.guides-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .guides-inner {
    grid-template-columns: 1fr;
  }
}

.guides h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin-bottom: 16px;
}

.guides p.lead {
  color: var(--ink-dim);
  font-size: 16px;
  margin-bottom: 22px;
}

.guides ul {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guides li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-dim);
}

.guides li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--rust);
  flex-shrink: 0;
}

.guides-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.guides-card .badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
}

.guides-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.guides-card p {
  color: var(--ink-dim);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.btn-outline {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(176, 74, 50, 0.45);
  color: var(--rust);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.btn-outline:hover {
  background: rgba(176, 74, 50, 0.08);
}

/* --- footer --- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

footer .foot-links {
  display: flex;
  gap: 22px;
}

footer a {
  text-decoration: none;
  color: var(--ink-faint);
}

footer a:hover {
  color: var(--rust);
}

/* --- policy / terms page --- */
.policy {
  padding: 64px 0 100px;
}

.policy .wrap {
  max-width: 720px;
}

.policy h1 {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.policy .effective {
  color: var(--ink-faint);
  font-size: 14px;
  margin-bottom: 44px;
  display: block;
}

.policy .intro {
  color: var(--ink-dim);
  font-size: 15px;
  margin-bottom: 40px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}

.policy section {
  border: none;
  padding: 0 0 30px;
}

.policy h2 {
  font-family: 'Inter', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--rust);
}

.policy p {
  color: var(--ink-dim);
  font-size: 15px;
}

.policy ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--ink-dim);
  font-size: 15px;
}

.policy li {
  margin-bottom: 6px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-faint);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 36px;
}

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