/* ============================================================
   Kamkav Farm V3 — shared styles
   Visual language: Kamkav Farm Design System
   (mahogany · terracotta · gold · cream / Newsreader · Hanken Grotesk · IBM Plex Mono)
   ============================================================ */
:root {
  /* palette — DS tokens (legacy var names kept as aliases) */
  --brown-950: #2e1309;            /* deep mahogany — footer, story */
  --brown-900: #3b1a0f;            /* mahogany — the anchor */
  --brown-800: #4c2a15;
  --brown-700: #5c3a1e;            /* chocolate — secondary text */
  --terracotta: #a0522d;           /* the accent */
  --cream: #f5f0eb;
  --cream-2: #ece4d8;
  --warm-white: #fdfcfa;
  --ink: #3b1a0f;
  --ink-soft: #6b543f;
  --gold: #c8a96e;                 /* light gold — labels, hairlines */
  --gold-soft: #dcc496;
  --wa: #25d366;
  --wa-dark: #1da851;
  --hairline: rgba(59, 26, 15, 0.08);
  --hairline-gold: rgba(200, 169, 110, 0.3);
  --radius: 12px;
  --radius-img: 4px;
  --shadow: 0 2px 12px rgba(59, 26, 15, 0.08);
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.625;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(200, 169, 110, 0.35); }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.15), 0 0 0 1.5px var(--terracotta);
  border-radius: 4px;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 40px); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }

/* eyebrow label — gold, wide tracking, 40px hairline rule */
.kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 600; margin-bottom: 1rem;
}
.kicker::after { content: ""; width: 40px; height: 1px; background: var(--gold); opacity: 0.7; }
/* on dark sections the eyebrow goes gold */
.buyfast .kicker, .story .kicker, .hero .kicker, .page-hero .kicker { color: var(--gold); }

.section { padding: clamp(80px, 11vw, 116px) 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head p { color: var(--ink-soft); margin-top: 0.9rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.93rem; letter-spacing: 0.01em; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.98); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3); }
.btn-outline { border-color: rgba(253, 252, 250, 0.55); color: var(--warm-white); background: transparent; }
.btn-outline:hover { border-color: var(--gold); }
.btn-outline-dark { border-color: var(--terracotta); color: var(--terracotta); background: transparent; }
.btn-outline-dark:hover { border-color: #8b4513; color: #8b4513; }
.btn svg { flex: none; }

/* text links grow an underline from the left */
.tier-more a, .card a, .inline-links a:not(.btn) {
  text-decoration: none; background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: left bottom;
  transition: background-size 0.3s ease; padding-bottom: 2px;
}
.tier-more a:hover, .card a:hover, .inline-links a:not(.btn):hover { background-size: 100% 1px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(59, 26, 15, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--cream);
  border-bottom: 1px solid var(--hairline-gold);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand span { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.02em; color: var(--warm-white); }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { text-decoration: none; font-size: 0.88rem; font-weight: 500; opacity: 0.85; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.nav a:not(.btn):hover { opacity: 1; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { padding: 10px 22px; font-size: 0.84rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); font-size: 1.6rem; }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--warm-white); min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(42, 17, 6, 0.85) 0%, rgba(42, 17, 6, 0.45) 55%, rgba(42, 17, 6, 0.22) 100%),
    var(--hero-img, url("../assets/hero-pods.jpg")) center / cover no-repeat;
}
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); max-width: 14ch; letter-spacing: -0.025em; }
.hero .sub { max-width: 54ch; margin: 1.5rem 0 2.4rem; font-size: 1.08rem; font-weight: 300; opacity: 0.95; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.trust-strip {
  margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: 0.84rem; opacity: 0.9; padding-top: 1.4rem;
  border-top: 1px solid var(--hairline-gold); max-width: 760px;
}
.trust-strip li { list-style: none; display: flex; align-items: center; gap: 8px; }
.trust-strip li::before { content: "·"; color: var(--gold); font-weight: 700; font-size: 1.3em; }
.trust-strip li:first-child::before { content: none; }

/* ---------- buy-fast strip ---------- */
.buyfast { background: var(--brown-900); color: var(--cream); }
.buyfast h2 { color: var(--warm-white); }
.buyfast-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(253, 252, 250, 0.08); border: 1px solid var(--hairline-gold);
  color: var(--gold-soft); border-radius: 100px; padding: 7px 16px;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.tier-teaser { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-size: 0.95rem; }
.tier-teaser th {
  text-align: left; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); padding: 0 14px 10px; font-weight: 600;
}
.tier-teaser td { padding: 15px 14px; border-top: 1px solid var(--hairline-gold); transition: background 0.25s ease; }
.tier-teaser tbody tr:hover td { background: rgba(200, 169, 110, 0.06); }
.tier-teaser .hl td { background: rgba(160, 82, 45, 0.14); }
.tier-teaser .hl td:first-child { border-left: 3px solid var(--terracotta); }
.tier-teaser .hl:hover td { background: rgba(160, 82, 45, 0.2); }
.tier-teaser .price { font-family: var(--font-display); font-size: 1.3rem; white-space: nowrap; color: var(--warm-white); }
.tier-note { font-size: 0.8rem; opacity: 0.65; margin-top: 1rem; }
.tier-more { font-size: 0.88rem; margin-top: 0.8rem; }
.tier-more a { color: var(--gold-soft); font-weight: 500; }

.steps { display: grid; gap: 24px; margin-top: 1.4rem; }
.step { display: flex; gap: 20px; }
.step .n {
  flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 4px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.step p { font-size: 0.92rem; opacity: 0.78; font-weight: 300; }
.buyfast .btn-row { margin-top: 2.4rem; }

/* ---------- product block ---------- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
.product-grid figure { border-radius: var(--radius-img); overflow: hidden; }
.product-grid figure img { transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.spec-table { width: 100%; border-collapse: collapse; margin: 1.7rem 0; font-size: 0.94rem; }
.spec-table td { padding: 12px 4px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.spec-table td:first-child { color: var(--ink-soft); width: 36%; font-size: 0.85rem; }
.spec-table td:last-child { font-weight: 500; color: var(--brown-700); }
.inline-links { display: flex; gap: 14px 28px; flex-wrap: wrap; align-items: center; }

/* ---------- proof ---------- */
.proof { background: var(--cream-2); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.card {
  background: var(--warm-white); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.35rem; }
.card p { font-size: 0.92rem; color: var(--ink-soft); }
.card .card-img { border-radius: var(--radius-img); overflow: hidden; margin: -6px 0 4px; aspect-ratio: 16/10; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.card a { color: var(--terracotta); font-weight: 600; font-size: 0.9rem; }
.card-wa { border-top: 3px solid transparent; }
.card-wa:hover { border-top-color: var(--wa); }
.quote-card { border-left: 3px solid var(--gold); }
.quote-card blockquote { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--brown-700); line-height: 1.45; }
.quote-card cite { font-size: 0.82rem; color: var(--ink-soft); font-style: normal; }
.placeholder-tag {
  display: inline-block; background: #fdf3d7; color: #8a6d1a; font-size: 0.72rem;
  padding: 2px 10px; border-radius: var(--radius-img); font-weight: 600; letter-spacing: 0.04em;
}

/* ---------- process strip ---------- */
.process-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.pstep { text-align: left; }
.pstep .p-img { border-radius: var(--radius-img); overflow: hidden; aspect-ratio: 1/1; margin-bottom: 14px; }
.pstep .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.pstep:hover .p-img img { transform: scale(1.06); }
.pstep .num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--terracotta); letter-spacing: 0.08em; }
.pstep h3 { font-size: 0.98rem; font-family: var(--font-body); font-weight: 600; margin: 3px 0 4px; letter-spacing: 0; }
.pstep p { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- story ---------- */
.story { background: var(--brown-950); color: var(--cream); }
.story h2 { color: var(--warm-white); }
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
.story-grid figure { border-radius: var(--radius-img); overflow: hidden; }
.story p { opacity: 0.85; margin: 1.3rem 0 2.4rem; max-width: 52ch; font-weight: 300; }

/* ---------- final CTA ---------- */
.final-cta { text-align: center; border-top: 1px solid var(--hairline); }
.final-cta .kicker { justify-content: center; }
.final-cta .kicker::before { content: ""; width: 40px; height: 1px; background: var(--gold); opacity: 0.7; }
.final-cta h2 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
.final-cta p { color: var(--ink-soft); max-width: 52ch; margin: 1.1rem auto 2.4rem; }
.final-cta .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.response-note {
  margin-top: 1.8rem; font-size: 0.85rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px; justify-content: center;
}
@media (min-width: 641px) { .response-note { white-space: nowrap; } }
.response-note::before { content: "●"; color: #22c55e; font-size: 0.6rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--brown-950); color: rgba(245, 240, 235, 0.7); font-size: 0.88rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding: 64px 0 44px;
}
.site-footer h4 { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--warm-white); }
.footer-bottom {
  border-top: 1px solid var(--hairline-gold);
  padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem; opacity: 0.75;
}

/* ---------- sticky mobile WhatsApp bar ---------- */
.wa-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--wa); color: #fff; text-decoration: none;
  padding: 15px 20px calc(15px + env(safe-area-inset-bottom));
  font-weight: 600; text-align: center; font-size: 0.95rem;
  justify-content: center; align-items: center; gap: 10px;
}
.wa-bar:active { opacity: 0.9; }
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float:active { transform: scale(0.98); }

/* ---------- page hero (cacao-beans) ---------- */
.page-hero { position: relative; color: var(--warm-white); padding: 130px 0 90px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(42, 17, 6, 0.88) 0%, rgba(42, 17, 6, 0.55) 60%, rgba(42, 17, 6, 0.32) 100%),
    var(--hero-img, url("../assets/pricing-hero.jpg")) center / cover no-repeat;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.5rem, 5.5vw, 3.9rem); max-width: 18ch; }
.page-hero .badge + h1 { margin-top: 1.4rem; }
.page-hero .sub { max-width: 56ch; margin-top: 1.3rem; opacity: 0.92; font-weight: 300; }
.page-hero .hero-ctas { margin-top: 2.4rem; }

/* ---------- pricing table ---------- */
.pricing-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hairline); }
.pricing-table thead { background: var(--brown-900); color: var(--cream); }
.pricing-table th { text-align: left; padding: 17px 18px; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--gold-soft); }
.pricing-table td { padding: 18px; background: var(--warm-white); border-top: 1px solid var(--hairline); transition: background 0.25s ease; }
.pricing-table td:first-child { font-family: var(--font-mono); font-size: 0.82rem; color: var(--gold); }
.pricing-table tbody tr:hover td { background: rgba(160, 82, 45, 0.07); }
.pricing-table tr.hl td { background: rgba(160, 82, 45, 0.05); }
.pricing-table tr.hl td:first-child { border-left: 3px solid var(--terracotta); color: var(--terracotta); }
.pricing-table tr.hl:hover td { background: rgba(160, 82, 45, 0.09); }
.pricing-table .price { font-family: var(--font-display); font-size: 1.25rem; color: var(--brown-900); }
.fine-print { font-size: 0.82rem; color: var(--ink-soft); margin-top: 1.4rem; display: grid; gap: 6px; }

/* ---------- calculator ---------- */
.calc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
  background: var(--warm-white); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  margin-top: 3rem;
}
.calc label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta); }
.calc-input-row { display: flex; gap: 14px; margin-top: 14px; align-items: stretch; }
.calc input[type="number"] {
  font-size: 1.7rem; font-family: var(--font-display); width: 150px;
  padding: 10px 18px; border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--cream); color: var(--brown-900);
  transition: border-color 0.2s ease;
}
.calc input[type="number"]:focus { border-color: var(--terracotta); }
.unit-toggle { display: flex; border: 1px solid var(--hairline); border-radius: 100px; overflow: hidden; }
.unit-toggle button {
  border: 0; background: transparent; padding: 0 24px; font-weight: 600;
  cursor: pointer; font-size: 0.85rem; color: var(--ink-soft); font-family: var(--font-body);
  transition: background 0.2s ease, color 0.2s ease;
}
.unit-toggle button.active { background: var(--brown-900); color: var(--cream); }
.calc .equiv { font-size: 0.85rem; color: var(--ink-soft); margin-top: 12px; font-family: var(--font-mono); }
.calc-result {
  background: var(--brown-900); color: var(--cream); border-radius: var(--radius);
  padding: 32px; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  border: 1px solid var(--hairline-gold);
}
.calc-result .label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.calc-result .total { font-family: var(--font-display); font-size: clamp(2.3rem, 4vw, 3.2rem); color: var(--warm-white); font-variant-numeric: tabular-nums; }
.calc-result .tier-badge {
  align-self: center; background: rgba(200, 169, 110, 0.12); border: 1px solid var(--hairline-gold);
  color: var(--gold-soft); padding: 6px 16px; border-radius: 100px; font-size: 0.8rem; font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--warm-white); border: 1px solid var(--hairline); border-radius: 8px;
  padding: 20px 26px; margin-bottom: 12px;
  transition: border-color 0.25s ease;
}
.faq details:hover { border-color: rgba(160, 82, 45, 0.3); }
.faq details[open] { border-left: 3px solid var(--terracotta); }
.faq summary { font-weight: 600; cursor: pointer; font-size: 1rem; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 1.4rem; color: var(--terracotta); font-weight: 400;
  transition: transform 0.3s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- 3D bean journey canvas ---------- */
#bean-canvas {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease;
}
#bean-canvas.on { opacity: 1; }
@media (max-width: 900px) { #bean-canvas { display: none; } }
@media (prefers-reduced-motion: reduce) { #bean-canvas { display: none !important; } }

/* ---------- reveal on scroll (subtle, content visible by default for SEO) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .buyfast-grid, .product-grid, .story-grid, .calc { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .process-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--brown-950); flex-direction: column; padding: 24px; gap: 18px;
    border-bottom: 1px solid var(--hairline-gold);
  }
  .nav-toggle { display: block; }
  .hero { min-height: 76vh; }
  .process-strip { grid-template-columns: repeat(2, 1fr); }
  .wa-bar { display: flex; }
  .wa-float { display: none; }
  body { padding-bottom: 56px; }
  .footer-grid { grid-template-columns: 1fr; }
}
