/* ===========================================================================
   Ant2Coach — site público · "Formiga atleta"
   Tokens espelhados do design system (.claude/skills/ant2coach-design/tokens).
   Flat, quente, arenoso. Terracota é o único acento forte por tela.
   =========================================================================== */

:root {
  --cream:            #FBF3E7;
  --surface:          #FFFDF9;
  --sand:             #F2E5CF;
  --ink:              #2C2C2A;
  --ink-soft:         #8A7A64;
  --terracotta:       #D85A30;
  --terracotta-press: #C24A24;
  --terracotta-tint:  #F7E3D6;

  --olive:  #5E8C3A;  --olive-tint: #E7EEDC;
  --sea:    #0F6E56;  --sea-tint:   #D8E9E2;
  --brick:  #C2330F;  --brick-tint: #F6DED5;
  --amber:  #BA7517;  --amber-tint: #F4E6CD;
  --sage:   #4E9B7E;  --sage-tint:  #DCEDE5;
  --plum:   #6B4E9E;  --plum-tint:  #E6DFF1;

  --line:       #EADBC4;
  --line-soft:  #F0E6D5;
  --focus-ring: #D85A3055;
  --text-on-accent: #FFFFFF;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 2px 8px rgba(90, 62, 40, 0.06);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream:            #1C1713;
    --surface:          #29221B;
    --sand:             #3A3128;
    --ink:              #F2E9DC;
    --ink-soft:         #B8A88F;
    --terracotta:       #E8743F;
    --terracotta-press: #D2632F;
    --terracotta-tint:  #3A2A20;

    --olive:  #7BAA54;  --olive-tint: #2C3422;
    --sea:    #2C9379;  --sea-tint:   #1E332C;
    --brick:  #E0552E;  --brick-tint: #3A271E;
    --amber:  #D79A3C;  --amber-tint: #3A3020;
    --sage:   #6FB89A;  --sage-tint:  #213029;
    --plum:   #9079C2;  --plum-tint:  #2C2538;

    --line:       #3F352A;
    --line-soft:  #322A21;
    --focus-ring: #E8743F66;
    --text-on-accent: #1C1713;
    --shadow-card: none;
  }
}

/* ---- Base ---------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", -apple-system, "SF Pro Rounded", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--terracotta); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img, svg { max-width: 100%; height: auto; }

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.overline {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.muted { color: var(--ink-soft); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--line-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 22px; }

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--terracotta); }

@media (max-width: 720px) {
  .site-nav .nav-link { display: none; }
}

/* ---- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 26px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 160ms var(--ease), transform 120ms var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--terracotta); color: var(--text-on-accent); }
.btn-primary:hover { background: var(--terracotta-press); }

.btn-ghost {
  background: transparent;
  color: var(--terracotta);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--terracotta-tint); }

.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

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

.hero { padding: 72px 0 56px; }

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; }
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 14px; }

/* Mock do plano (cartão ilustrativo, não é screenshot) */
.plan-mock {
  width: min(340px, 100%);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.plan-mock .mock-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border-left: 4px solid var(--sand);
  margin-bottom: 8px;
}

.mock-row:last-child { margin-bottom: 0; }
.mock-row .day { font-weight: 800; font-size: 0.85rem; width: 36px; color: var(--ink-soft); }
.mock-row .what { font-weight: 700; font-size: 0.95rem; flex: 1; }
.mock-row .tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.mock-row.easy     { border-left-color: var(--sage); }
.mock-row.long     { border-left-color: var(--olive); }
.mock-row.interval { border-left-color: var(--brick); }
.mock-row.tempo    { border-left-color: var(--amber); }
.mock-row.race     { border-left-color: var(--plum); }

.tag.easy     { background: var(--sage-tint);  color: var(--sage); }
.tag.long     { background: var(--olive-tint); color: var(--olive); }
.tag.interval { background: var(--brick-tint); color: var(--brick); }
.tag.tempo    { background: var(--amber-tint); color: var(--amber); }
.tag.race     { background: var(--plum-tint);  color: var(--plum); }

.mock-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1.5px solid var(--line-soft);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---- Sections --------------------------------------------------------------- */

.section { padding: 64px 0; }
.section.alt { background: var(--surface); border-top: 1.5px solid var(--line-soft); border-bottom: 1.5px solid var(--line-soft); }
.section-head { max-width: 40em; margin-bottom: 40px; }

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

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

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

.card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 26px;
}

.section.alt .card { background: var(--cream); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--terracotta-tint);
  color: var(--terracotta);
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--sand);
  margin-bottom: 14px;
}

.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 0; }

/* ---- Preço ------------------------------------------------------------------ */

.price-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  padding: 36px 30px;
}

.price-value { font-size: 2.6rem; font-weight: 900; letter-spacing: -0.02em; }
.price-value small { font-size: 1rem; font-weight: 700; color: var(--ink-soft); }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 26px;
  text-align: left;
}
.price-card li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.97rem;
  border-bottom: 1.5px solid var(--line-soft);
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: "🐜";
  position: absolute;
  left: 0;
  font-size: 0.85rem;
}

/* ---- FAQ ---------------------------------------------------------------------- */

.faq { max-width: 720px; }

.faq details {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 800;
  list-style: none;
  position: relative;
  padding-right: 48px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  color: var(--terracotta);
  font-size: 1.3rem;
}

.faq details[open] summary::after { content: "–"; }

.faq .answer { padding: 0 22px 18px; color: var(--ink-soft); }
.faq .answer p { margin-bottom: 0.5em; }

/* ---- Waitlist ------------------------------------------------------------------ */

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 520px;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.waitlist-form input::placeholder { color: var(--ink-soft); }

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

.site-footer {
  border-top: 1.5px solid var(--line-soft);
  padding: 40px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--terracotta); }

/* ---- Páginas de texto (suporte, privacidade, termos) ----------------------------- */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.page h2 { font-size: 1.35rem; margin-top: 2em; }
.page .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 2em; }
.page ul { padding-left: 1.3em; }
.page li { margin-bottom: 0.4em; }

.notice {
  background: var(--terracotta-tint);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.95rem;
  margin: 1.5em 0;
}
