/* The Promise Path / O Caminho da Promessa. Static, no JS, no external requests.
   Comic-book theme matching the printable kit: cream paper, black ink, warm flat colors. */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Comic Neue";
  src: url("/fonts/ComicNeue-Bold-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fff8ec;
  --paper-2: #f7ead2;
  --card: #fffdf7;
  --ink: #2b2b2b;
  --ink-soft: #4d4842;
  --terra: #c0623b;
  --terra-deep: #9e4b2a;   /* text-safe terracotta, 5.3:1 on --paper */
  --gold: #c99a2e;
  --gold-soft: #f3dfa6;
  --olive: #6b7a3a;
  --olive-deep: #55622c;
  --night: #24335c;
  --line: 3px;
  --round: 18px;
  --shadow: 5px 5px 0 var(--ink);
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --comic: "Comic Neue", "Comic Sans MS", "Nunito", system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--terra-deep); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--night); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 0.9rem; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 12px 16px;
  border: var(--line) solid var(--ink); border-radius: 12px; font-weight: 800;
}
.skip:focus { left: 8px; top: 8px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--comic); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.75rem, 5vw, 2.4rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.measure { max-width: 36em; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: var(--line) solid var(--ink);
}
.top .wrap { display: flex; align-items: center; gap: 12px 20px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  min-height: 44px; color: var(--ink); text-decoration: none;
  font-family: var(--comic); font-weight: 700; font-size: 1.15rem; line-height: 1.1;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--ink); }
.top nav ul { display: flex; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 700; }
.top nav a:hover { text-decoration: underline; text-decoration-color: var(--terra); text-decoration-thickness: 3px; text-underline-offset: 6px; }
@media (max-width: 860px) { .top nav { display: none; } }

/* language switch: two pills, current one filled */
.lang { display: flex; list-style: none; margin: 0; padding: 0; border: var(--line) solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--card); }
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; min-height: 40px; padding: 0 12px;
  font-weight: 800; font-size: 0.95rem; color: var(--ink); text-decoration: none;
}
.lang li + li a { border-left: var(--line) solid var(--ink); }
.lang a[aria-current] { background: var(--ink); color: var(--paper); }
.lang a:not([aria-current]):hover { background: var(--gold-soft); }

/* ---------- comic panel primitive ---------- */
.panel {
  background: var(--card);
  border: var(--line) solid var(--ink);
  border-radius: var(--round);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel img { width: 100%; }

/* ---------- hero ---------- */
.hero {
  padding: 36px 0 56px;
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 154, 46, 0.22) 0 120px, transparent 121px),
    radial-gradient(circle at 92% 82%, rgba(192, 98, 59, 0.14) 0 160px, transparent 161px),
    var(--paper);
  border-bottom: var(--line) solid var(--ink);
}
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  padding: 4px 14px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--gold-soft); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.02em;
}
.hero h1 { font-size: clamp(2.5rem, 10vw, 4.3rem); line-height: 1.02; color: var(--terra-deep); }
.hero h1 .sub-title { display: block; margin-top: 10px; font-size: 0.48em; line-height: 1.2; color: var(--ink); }
.hero .pitch { font-size: 1.15rem; margin: 18px 0 22px; max-width: 32em; }
.hero-art { position: relative; max-width: 480px; justify-self: center; width: 100%; }
.hero-art .panel { transform: rotate(1.5deg); }
.bubble {
  position: absolute; left: -6px; top: -14px; z-index: 2;
  max-width: 16ch; padding: 10px 16px;
  background: var(--card); border: var(--line) solid var(--ink); border-radius: 26px;
  font-family: var(--comic); font-weight: 700; font-size: 1.15rem; line-height: 1.15; text-align: center;
  transform: rotate(-4deg);
}
.bubble::after {
  content: ""; position: absolute; left: 26px; bottom: -15px;
  width: 18px; height: 18px; background: var(--card);
  border-right: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink);
  transform: skewY(30deg) rotate(30deg);
}
.facts-line { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 0; padding: 0; font-weight: 700; font-size: 0.95rem; color: var(--ink-soft); }
.facts-line li { padding: 2px 12px; border: 2px solid var(--ink-soft); border-radius: 999px; background: var(--card); }

@media (min-width: 860px) {
  .hero { padding: 64px 0 80px; }
  .hero .wrap { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .hero-art { justify-self: end; }
}

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.btn {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 56px; padding: 10px 22px;
  border: var(--line) solid var(--ink); border-radius: 16px;
  background: var(--terra-deep); color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none; font-weight: 900; font-size: 1.08rem; line-height: 1.2;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn small { font-weight: 700; font-size: 0.82rem; opacity: 0.95; }
.btn.alt { background: var(--olive-deep); }
.btn:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
/* placeholder state until the store page exists */
.btn.soon { background: var(--card); color: var(--ink); border-style: dashed; cursor: default; }
.btn.soon:hover, .btn.soon:active { transform: none; box-shadow: 4px 4px 0 var(--ink); }
.btn.soon small { color: var(--terra-deep); }
.store-note { margin: 12px 0 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- sections ---------- */
.sec { padding: 64px 0; }
.sec.alt { background: var(--paper-2); border-block: var(--line) solid var(--ink); }
.sec-head { margin-bottom: 28px; }
.kicker { display: block; font-weight: 900; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive-deep); margin-bottom: 6px; }

/* meet the family */
.cast { display: grid; gap: 28px; align-items: center; }
.cast-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cast-list li { padding: 12px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); }
.cast-list b { font-family: var(--comic); font-size: 1.2rem; }
@media (min-width: 860px) { .cast { grid-template-columns: 1.2fr 1fr; gap: 48px; } }

/* sample comic panels */
.panels { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; grid-template-columns: 1fr; }
.panels figure { margin: 0; }
.panels figcaption { padding: 10px 14px 12px; border-top: var(--line) solid var(--ink); font-weight: 700; line-height: 1.35; }
.panels figcaption .day {
  display: inline-block; margin-right: 6px; padding: 0 8px;
  background: var(--gold); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px;
  font-family: var(--comic); font-size: 0.95rem;
}
@media (min-width: 600px) { .panels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .panels { grid-template-columns: repeat(3, 1fr); } }
.panels li:nth-child(odd) .panel { transform: rotate(-0.6deg); }
.panels li:nth-child(even) .panel { transform: rotate(0.6deg); }

/* how it works */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding: 22px 20px 20px 84px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 18px; top: 20px;
  width: 48px; height: 48px; display: grid; place-items: center;
  border: var(--line) solid var(--ink); border-radius: 50%;
  background: var(--gold); font-family: var(--comic); font-weight: 700; font-size: 1.5rem;
}
.steps li:nth-child(2)::before { background: var(--terra); color: #fff; }
.steps li:nth-child(3)::before { background: var(--olive); color: #fff; }
.steps h3 { font-size: 1.3rem; }
.steps p { margin: 0; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.howto-map { display: grid; gap: 28px; align-items: center; margin-top: 40px; }
.howto-map .panel { max-width: 420px; justify-self: center; width: 100%; transform: rotate(-1deg); }
@media (min-width: 860px) { .howto-map { grid-template-columns: 1fr 1.2fr; gap: 48px; } }
.small-print { font-size: 0.95rem; color: var(--ink-soft); }

/* what you get / who it's for */
.two { display: grid; gap: 28px; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; gap: 36px; } }
.two > .panel { padding: 24px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em;
  width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--olive);
}
.ticks li::after {
  content: ""; position: absolute; left: 7px; top: calc(0.2em + 4px);
  width: 6px; height: 10px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.ticks.gold li::before { background: var(--gold); }
.ticks.gold li::after { border-color: var(--ink); }

/* benefits */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.benefits li { padding: 18px 20px; }
.benefits p { margin: 0; }
@media (min-width: 600px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .benefits { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 48rem; }
.faq details { border: var(--line) solid var(--ink); border-radius: 14px; background: var(--card); padding: 0 18px; }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--gold-soft); font-weight: 900; line-height: 1;
}
.faq details[open] summary::before { content: "\2212"; background: var(--gold); }
.faq details p { margin: 0 0 16px 40px; }

/* final call */
.cta-end { text-align: left; }
.cta-end .panel { padding: 28px 24px; background: var(--gold-soft); }
.cta-end h2 { color: var(--terra-deep); }
.ai-note { margin-top: 28px; font-size: 0.95rem; color: var(--ink-soft); max-width: 44em; }

/* ---------- footer ---------- */
.foot { border-top: var(--line) solid var(--ink); background: var(--paper-2); padding: 28px 0 40px; font-size: 0.95rem; color: var(--ink-soft); }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 8px; padding: 0; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; }
.foot p { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
