/* Fatcory — portable static site styles
   Palette: cream #FBF8F1, deep teal #0E4B4B, dark green #0B3333,
   terracotta #C0563A, amber #E5A83B, gold #D9A441, sage accents. */

:root {
  --cream: #FBF8F1;
  --cream-deep: #F4EDDD;
  --card: #FFFDF8;
  --teal: #0E4B4B;
  --teal-deep: #0B3333;
  --teal-soft: #E7EFE4;
  --terra: #C0563A;
  --terra-dark: #A8472E;
  --terra-soft: #F6DCD1;
  --amber: #E5A83B;
  --amber-soft: #F4E6C6;
  --gold: #D9A441;
  --sage-soft: #E3EBDA;
  --ink: #3F5A5B;
  --muted: #6E8384;
  --line: #E7DCC6;
  --shadow: 0 18px 45px rgba(14, 75, 75, 0.10);
  --radius: 22px;
  --nav-h: 72px;
  --font-display: Georgia, 'Times New Roman', Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--teal);
  line-height: 1.12;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--terra); }
a:hover { color: var(--terra-dark); }

:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

.container {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow { max-width: 640px; }

section[id], footer[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.section { padding: 4rem 0; }
.section-tint { background: var(--cream-deep); }

.section-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 44rem;
}

.section-close {
  font-size: 1.2rem;
  text-align: center;
  max-width: 46rem;
  margin: 2.5rem auto 0;
  color: var(--teal);
}

/* ---------- Buttons & forms ---------- */

.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 10px 24px rgba(192, 86, 58, 0.35); }
.btn-primary:hover { background: var(--terra-dark); color: #fff; transform: translateY(-1px); }
.btn-small { padding: 0.7rem 1.4rem; font-size: 0.95rem; }

.capture-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}

.capture-form input[type="email"] {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.capture-form input[type="email"]::placeholder { color: #9AA9A9; }
.capture-form input[type="email"]:focus { border-color: var(--terra); outline: none; }

.form-note { margin: 0.25rem 0 0; font-size: 0.95rem; min-height: 1.4em; }
.form-note.error { color: var(--terra-dark); font-weight: 600; }
.form-note.success { color: var(--teal); font-weight: 600; }

.microcopy { color: var(--muted); font-size: 0.95rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.brand-logo { height: 44px; width: auto; }

.nav-links {
  display: none;
  gap: 1.6rem;
}

.nav-links a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

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

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--teal);
}

.nav-links.open {
  display: flex;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1.25rem 1rem;
}

.nav-links.open a { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.nav-links.open a:first-child { border-top: 0; }

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

.hero { padding: 3.5rem 0 4rem; overflow: clip; }

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

h1 .terra { color: var(--terra); font-style: normal; }

.lede { font-size: 1.2rem; color: var(--ink); }
.lede strong { color: var(--teal); }

.badge-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 1.25rem 0 0;
}

.badge-row li {
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

.badge-row li a {
  color: inherit;
  text-decoration: none;
}

.hero-art { display: flex; justify-content: center; }

.art-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 2.2rem 2rem 1.6rem;
  max-width: 420px;
  transform: rotate(1.6deg);
  margin: 0;
  text-align: center;
}

.art-card img { margin: 0 auto 1rem; }

.art-card figcaption {
  font-style: italic;
  color: var(--muted);
  font-size: 0.98rem;
}

.deco-star {
  position: absolute;
  width: 34px;
  height: 34px;
  fill: var(--amber);
  filter: drop-shadow(0 3px 6px rgba(229, 168, 59, 0.5));
}

.deco-1 { top: -12px; left: 8%; transform: rotate(-12deg); }
.deco-2 { bottom: 22%; right: -10px; transform: rotate(14deg); width: 28px; height: 28px; }

/* ---------- Cards ---------- */

.cards-2, .cards-3 {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.card h3 { margin-bottom: 0.6rem; }
.card p:last-child { margin-bottom: 0; }

.card-note { color: var(--muted); font-size: 0.95rem; margin-top: 0.75rem; }

.card-highlight { border: 2px solid var(--terra); }

.plain-list { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.plain-list li {
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
}
.plain-list li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  color: var(--terra);
  font-weight: 700;
}

/* ---------- Dark sections ---------- */

.section-dark { background: var(--teal-deep); color: #EDE7D6; }
.section-dark h2 { color: #FBF8F1; }
.section-dark .section-close { color: #EDE7D6; }

.card-dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.card-dark h3 { color: #FBF8F1; }
.card-dark p { color: #D8D2BF; }

.section-dark .microcopy { color: #B9C4B6; }
.section-dark .cta-lede { font-size: 1.2rem; }
.section-dark .cta-lede strong { color: #fff; }
.section-dark .form-note.success { color: #F4E6C6; }
.section-dark .form-note.error { color: #F0A58A; }

.alliance {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #FBF8F1;
  text-align: center;
}

/* ---------- Philosophy ---------- */

.numbered {
  list-style: none;
  counter-reset: phil;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.25rem;
}

.numbered li {
  counter-increment: phil;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem 1.6rem 4.6rem;
}

.numbered li::before {
  content: counter(phil);
  position: absolute;
  left: 1.4rem;
  top: 1.35rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.numbered h3 { margin-bottom: 0.4rem; }
.numbered p { margin-bottom: 0; }

.pullquote {
  margin: 2.5rem auto 0;
  max-width: 44rem;
  text-align: center;
  border: 0;
  padding: 0 1rem;
}

.pullquote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--teal);
  line-height: 1.45;
}

/* ---------- Steps ---------- */

.step { position: relative; }

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

/* ---------- Categories ---------- */

.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  margin: 1.75rem 0 0;
}

.pills li {
  background: var(--card);
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-weight: 700;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
}

.pills li.more {
  border-style: dashed;
  border-color: var(--muted);
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Tabs ---------- */

.tier-clarifier {
  color: var(--muted);
  max-width: 44rem;
}

.tabs { margin-top: 1.5rem; }

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.tab-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--teal);
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.tab-btn:hover { background: var(--teal-soft); }

.tab-btn.active { background: var(--teal); color: #FBF8F1; }

.tab-panel { max-width: 46rem; }
.tab-panel h3 { margin-bottom: 0.5rem; }

/* ---------- Sample entry ---------- */

.sample-card { max-width: 46rem; }

.sample-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  border: 1.5px dashed var(--muted);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}

.sample-tiers { margin: 1.25rem 0 0; display: grid; gap: 1rem; }
.sample-tiers div { margin: 0; }

.sample-tier {
  border-left: 4px solid var(--line);
  padding-left: 1rem;
}

.sample-tier dt {
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 0.2rem;
}

.sample-tier dd { margin: 0; }

.tier-premium { border-left-color: var(--gold); }
.tier-affordable { border-left-color: var(--teal); }
.tier-free { border-left-color: #7A9B6D; }

/* ---------- Standard ---------- */

.standard-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.criteria { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem; }

.criteria li { display: flex; gap: 1.1rem; align-items: flex-start; }

.icon-chip {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--teal);
}

.chip-amber { background: var(--amber-soft); }
.chip-sage { background: var(--sage-soft); }
.chip-terra { background: var(--terra-soft); }

.criteria h3 { margin-bottom: 0.35rem; }
.criteria p { margin-bottom: 0; }
.criteria strong { color: var(--teal); }

.seal-wrap { display: flex; justify-content: center; }

.seal { width: min(270px, 68vw); height: auto; }

.seal-text {
  font-family: var(--font-body);
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: 2px;
  fill: var(--gold);
}

/* ---------- Stories ---------- */

.scenario-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  border: 1.5px dashed var(--muted);
  border-radius: 999px;
  padding: 0.28rem 0.9rem;
  margin-bottom: 0.9rem;
}

.footnote {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
}

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

.footer {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo { height: 52px; width: auto; margin-bottom: 1rem; }

.tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.footer-links h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }

.footer-links ul { list-style: none; padding: 0; margin: 0 0 1rem; }

.footer-links li { margin-bottom: 0.4rem; }

.footer-links a { color: var(--teal); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--terra); }

.footer-contact { font-size: 0.95rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-bottom p { margin: 0; }

.anti-badge {
  font-weight: 800;
  color: var(--terra);
  letter-spacing: 0.04em;
}

/* ---------- Desktop ---------- */

@media (min-width: 860px) {
  .section { padding: 5.5rem 0; }

  .nav-toggle { display: none; }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    border: 0;
    padding: 0;
  }

  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; }

  .capture-form { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  .capture-form input[type="email"] { flex: 1 1 240px; }
  .capture-form .btn { flex: 0 0 auto; }
  .capture-form .form-note { flex: 1 1 100%; }

  .cards-2 { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }

  .numbered { grid-template-columns: 1fr 1fr; }

  .standard-grid { grid-template-columns: 1.2fr 0.8fr; }

  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
