/* Proteo — landing styles. Framework-free on purpose (single page, fast, no build step). */

:root {
  --bg: #faf9f6;
  --bg-alt: #f1efe7;
  --card: #ffffff;
  --border: #e6e2d6;
  --text: #16231f;
  --text-muted: #52625c;
  --primary: #0f766e;
  --primary-dark: #0b5b54;
  --primary-tint: #e3f3f0;
  --accent: #d97a3f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 35, 31, 0.06), 0 8px 24px rgba(22, 35, 31, 0.06);
  --max-width: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1e1b;
    --bg-alt: #132622;
    --card: #16302b;
    --border: #234039;
    --text: #eef5f2;
    --text-muted: #a9beb7;
    --primary: #34d1b9;
    --primary-dark: #5fe0cc;
    --primary-tint: #163b35;
    --accent: #f0a570;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand span {
  color: var(--primary);
}

.site-nav {
  display: none;
  gap: 28px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

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

@media (min-width: 720px) {
  .site-nav {
    display: flex;
  }
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ── Hero ── */

.hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--primary-tint), var(--bg) 80%);
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.eyebrow {
  display: inline-block;
  background: var(--primary-tint);
  color: var(--primary-dark);
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0;
}

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

.hero-note {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Hero: copy + chat mock side by side ── */

.hero .container.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .container.hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero-copy h1 {
  max-width: 16ch;
}

/* ── Chat mock ── */

.chat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 10px;
  font-size: 0.94rem;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.chat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.bubble {
  padding: 11px 14px;
  border-radius: 16px;
  max-width: 88%;
}

.bubble.user {
  justify-self: end;
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 5px;
}

/* The dark palette flips --primary to a light mint, so white text stops working. */
@media (prefers-color-scheme: dark) {
  .bubble.user {
    color: #0b201c;
  }
}

.bubble.bot {
  justify-self: start;
  background: var(--bg-alt);
  border-bottom-left-radius: 5px;
}

.chat-items {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
}

.chat-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}

.chat-items li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.chat-items span {
  color: var(--text-muted);
}

.chat-items b {
  white-space: nowrap;
  font-weight: 600;
}

.chat-remaining {
  margin-top: 12px;
  background: var(--primary-tint);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
}

.chat-remaining span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
}

.chat-remaining b {
  font-size: 1.3rem;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

.chat-remaining small {
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* ── Pillars (why the numbers hold) ── */

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.pillar-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 12px;
}

.pillar h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.pillar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.pillars-note {
  margin: 26px 0 0;
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 0.96rem;
  border-left: 3px solid var(--primary);
  padding-left: 16px;
}

/* ── Manifesto band ──
   Breaks the plain/alt alternation on purpose: this is the positioning the page
   turns on, so it gets its own surface rather than another card grid. */

.manifesto {
  background: var(--primary-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto .container {
  max-width: 720px;
  text-align: center;
}

.manifesto .eyebrow {
  background: transparent;
  margin-bottom: 18px;
}

.manifesto h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.manifesto p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.manifesto .manifesto-lead {
  font-size: 1.12rem;
  color: var(--text);
}

.manifesto .manifesto-punch {
  margin: 28px auto 0;
  max-width: 34ch;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ── Sections ── */

section {
  padding: 64px 0;
}

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

.section-head {
  max-width: 60ch;
  margin: 0 0 40px;
}

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

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* ── Steps ── */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.step .example {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--text);
}

/* ── Why-protein panel ── */

.why-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 24px;
}

@media (min-width: 720px) {
  .why-panel {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.why-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 14px;
}

.why-panel p {
  color: var(--text-muted);
  margin: 0 0 12px;
}

.disclaimer-box {
  background: var(--primary-tint);
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text);
}

.stat-list {
  display: grid;
  gap: 14px;
}

.stat {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 16px;
}

.stat b {
  display: block;
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.stat span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── Pricing ── */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.price-card .badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 600;
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-amount small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.price-card ul li::before {
  content: "✓ ";
  color: var(--primary);
  font-weight: 700;
}

.pricing-note {
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── FAQ ── */

.faq {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 20px;
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-weight: 700;
}

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

.faq p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

/* ── Final CTA ── */

.final-cta {
  text-align: center;
}

.final-cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.final-cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0;
  max-width: 26ch;
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-alt);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 720px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ── Legal pages ── */

.legal-page {
  padding: 56px 0 80px;
}

.legal-page .container {
  max-width: 760px;
}

.legal-page h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin-bottom: 6px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin-top: 36px;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.legal-page .placeholder {
  background: var(--primary-tint);
  border: 1px dashed var(--primary);
  border-radius: 8px;
  padding: 2px 8px;
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted);
}

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