:root {
  --paper: #f5ecd8;
  --paper-raised: #ffffff;
  --ink: #2b2620;
  --ink-soft: #6b6255;
  --line: #e2d5b8;
  --forest: #1f4d3f;
  --forest-deep: #14352b;
  --gold: #c08a3e;
  --gold-soft: #f1e2c4;
  --gold-text: #7a4e17;
  --live: #1f4d3f;
  --soon: #7a4212;
  --soon-bg: #f6e8d7;
  --watch: #55503f;
  --watch-bg: #e9e4d3;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 20px 40px -24px rgba(43, 38, 32, 0.28);
  --shadow-sm: 0 10px 24px -16px rgba(43, 38, 32, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: linear-gradient(175deg, #f8f0dd 0%, var(--paper) 55%, #efe0bd 100%);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

body, input, button { font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

h1, h2, h3, .display {
  font-family: "Newsreader", "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--forest-deep);
  margin: 0;
}

a { color: inherit; }
.market-desc a, .article a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.market-desc a:hover, .article a:hover { color: var(--forest-deep); }
table.market .market-name a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
table.market .market-name a:hover { border-bottom-color: var(--gold); color: var(--forest); }

/* Browser surfaces carry the design too */
::selection { background: var(--forest-deep); color: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; border: 3px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
html { scrollbar-color: var(--line) var(--paper); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 246, 238, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Newsreader", Georgia, serif; font-size: 1.5rem; font-weight: 600; color: var(--forest-deep); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(155deg, var(--forest) 0%, var(--forest-deep) 100%); display: flex; align-items: center; justify-content: center; color: var(--gold-soft); font-size: 0.75rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.brand-mark-sm { width: 26px; height: 26px; font-size: 0.75rem; }
.nav-links { display: flex; gap: 30px; font-size: 1rem; color: var(--ink-soft); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--forest-deep); }
.nav-cta { background: var(--forest-deep); color: #fff !important; padding: 10px 20px; border-radius: 999px; font-size: 1rem; text-decoration: none; box-shadow: var(--shadow-sm); }

/* Hero */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
  .hero-copy h1 { animation-delay: 0.05s; }
  .hero-copy .lede { animation-delay: 0.15s; }
  .hero-copy .hero-ctas { animation-delay: 0.25s; }
  .hero-panel { animation: rise-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards; }
}

.hero { padding: 96px 0 76px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4.2vw, 3.6rem); line-height: 1.08; margin: 0 0 22px; max-width: 14ch; }
.hero p.lede { font-family: "Hanken Grotesk", sans-serif; font-size: 1.25rem; line-height: 1.6; color: var(--ink-soft); max-width: 46ch; margin: 0 0 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { font-family: "Hanken Grotesk", sans-serif; font-weight: 600; font-size: 1rem; padding: 14px 26px; border-radius: 999px; text-decoration: none; display: inline-block; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn-primary { background: var(--forest-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: var(--paper-raised); color: var(--forest-deep); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--forest); }

.hero-panel { background: var(--paper-raised); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.hero-panel .row { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed var(--line); font-family: "Hanken Grotesk", sans-serif; }
.hero-panel .row:last-child { border-bottom: none; }
.hero-panel .row .label { color: var(--ink-soft); font-size: 0.75rem; }
.hero-panel .row .value { font-weight: 700; color: var(--forest-deep); }
.hero-panel .status { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.status-live { background: #e4efe9; color: var(--live); }
.status-soon { background: var(--soon-bg); color: var(--soon); }
.status-watch { background: var(--watch-bg); color: var(--watch); }

/* Section chrome */
section { padding: 76px 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 12px; }
.section-head p { font-family: "Hanken Grotesk", sans-serif; color: var(--ink-soft); font-size: 1.25rem; line-height: 1.6; }
#products .section-head, #how .section-head { text-align: left; }
#faq .section-head { max-width: 720px; }

/* Fact bar: one connected sentence, not four hero-metric tiles */
.factbar { background: var(--forest-deep); }
.factbar .wrap { padding: 22px 28px; }
.factbar p {
  margin: 0;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #e7dfc9;
  text-align: center;
}
.factbar strong { color: #fff; font-weight: 700; }

/* Market table — a real table, not nine identical cards */
.market-table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); background: var(--paper-raised); padding: 6px; }
table.market {
  width: 100%;
  border-collapse: collapse;
  font-family: "Hanken Grotesk", sans-serif;
  min-width: 720px;
}
table.market caption { text-align: left; padding: 20px 24px 0; font-size: 0.75rem; color: var(--ink-soft); }
table.market thead th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-weight: 700;
  padding: 18px 24px 14px;
  border-bottom: 2px solid var(--line);
}
table.market tbody td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 1rem;
  line-height: 1.55;
}
table.market tbody tr:last-child td { border-bottom: none; }
table.market tbody tr { transition: background 0.15s ease; }
table.market tbody tr:hover { background: color-mix(in srgb, var(--gold-soft) 40%, transparent); }
table.market .market-name { font-weight: 700; color: var(--forest-deep); font-family: "Newsreader", Georgia, serif; font-size: 1.25rem; white-space: nowrap; }
table.market .market-rank { display: block; font-family: "Hanken Grotesk", sans-serif; font-weight: 600; font-size: 0.75rem; color: var(--gold-text); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 3px; }
table.market .market-desc { color: var(--ink); max-width: 42ch; }
table.market .market-date { color: var(--ink-soft); white-space: nowrap; }
table.market .status { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
table.market .guide-link { display: inline-block; margin-top: 6px; font-size: 0.75rem; }

/* How it works — a connected pipeline, not four clone cards */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.pipeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--gold);
  opacity: 0.5;
}
.pipeline-step { position: relative; padding: 0 16px; text-align: left; }
.pipeline-step .idx {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: "Newsreader", Georgia, serif; font-weight: 700; font-size: 1.5rem;
  color: var(--forest-deep);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.pipeline-step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.pipeline-step p { font-family: "Hanken Grotesk", sans-serif; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; margin: 0; }

/* FAQ — a list, not a third card grid */
.faq-list { max-width: 780px; }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1.25rem; margin-bottom: 8px; }
.faq-item p { font-family: "Hanken Grotesk", sans-serif; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; margin: 0; }

/* Trust */
.trust { background: var(--forest-deep); color: #f4ede0; border-radius: var(--radius-lg); padding: 54px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.trust h2 { color: #fff; font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
.trust p { font-family: "Hanken Grotesk", sans-serif; color: #d8cdb8; line-height: 1.6; margin-top: 14px; }
.trust ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-family: "Hanken Grotesk", sans-serif; }
.trust li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: #f4ede0; }
.trust li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 16px; }
.cta p { font-family: "Hanken Grotesk", sans-serif; color: var(--ink-soft); max-width: 46ch; margin: 0 auto 30px; line-height: 1.6; }

/* Guide / article pages */
.guide-hero { padding: 56px 0 20px; }
.guide-hero .wrap { max-width: 760px; }
.breadcrumb { font-family: "Hanken Grotesk", sans-serif; font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--forest-deep); }
.guide-hero h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.12; margin-bottom: 14px; }
.guide-meta { font-family: "Hanken Grotesk", sans-serif; font-size: 0.75rem; color: var(--ink-soft); }
.article { padding: 20px 0 70px; }
.article .wrap { max-width: 760px; }
.article h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.article h3 { font-size: 1.25rem; margin: 28px 0 10px; color: var(--forest-deep); font-family: "Hanken Grotesk", sans-serif; font-weight: 700; }
.article p { font-family: "Hanken Grotesk", sans-serif; color: var(--ink); font-size: 1rem; line-height: 1.7; margin: 0 0 16px; }
.article ul, .article ol { font-family: "Hanken Grotesk", sans-serif; color: var(--ink); font-size: 1rem; line-height: 1.7; margin: 0 0 16px; padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article .callout { background: var(--paper-raised); border-radius: var(--radius-md); padding: 22px 26px; box-shadow: var(--shadow-sm); margin: 28px 0; }
.article .callout p:last-child { margin-bottom: 0; }
.article .sources { font-size: 1rem; color: var(--ink-soft); }

/* Contact page */
.contact-hero { padding: 56px 0 20px; }
.contact-hero .wrap { max-width: 900px; }
.contact-hero h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.12; margin-bottom: 14px; }
.contact-hero p.lede { font-family: "Hanken Grotesk", sans-serif; font-size: 1.25rem; line-height: 1.6; color: var(--ink-soft); max-width: 56ch; margin: 0; }

.contact-grid { padding: 20px 0 76px; }
.contact-grid .wrap-inner { max-width: 900px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }

.form h2 { font-size: 1.5rem; margin-bottom: 8px; }
.form > p { font-family: "Hanken Grotesk", sans-serif; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; margin: 0 0 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: "Hanken Grotesk", sans-serif; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--forest-deep); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--forest); outline-offset: 1px; border-color: var(--forest); }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { display: block; font-family: "Hanken Grotesk", sans-serif; font-size: 0.75rem; color: var(--ink-soft); margin-top: 6px; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-family: "Hanken Grotesk", sans-serif; font-size: 1rem; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }
.form-status.error { background: var(--soon-bg); color: var(--soon); }
.form-status.success { background: #e4efe9; color: var(--live); }
.form-note { font-family: "Hanken Grotesk", sans-serif; font-size: 0.75rem; color: var(--ink-soft); margin-top: 14px; }

.contact-card { background: var(--paper-raised); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.25rem; margin-bottom: 6px; }
.contact-card > p { font-family: "Hanken Grotesk", sans-serif; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; margin: 0 0 20px; }
.contact-card dl { font-family: "Hanken Grotesk", sans-serif; margin: 0 0 24px; }
.contact-card dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); margin-top: 14px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 2px 0 0; font-weight: 700; color: var(--forest-deep); }
.contact-card dd a { color: inherit; text-decoration: none; }
.contact-card dd a:hover { color: var(--forest); text-decoration: underline; }
.contact-card hr { border: none; border-top: 1px dashed var(--line); margin: 22px 0; }

.btn-whatsapp { background: var(--forest-deep); color: #fff; display: inline-flex; align-items: center; gap: 9px; }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-whatsapp svg { width: 18px; height: 18px; fill: var(--gold-soft); }

.next-steps { list-style: none; margin: 16px 0 0; padding: 0; font-family: "Hanken Grotesk", sans-serif; }
.next-steps li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 1rem; line-height: 1.55; color: var(--ink); }
.next-steps li:last-child { border-bottom: none; }
.next-steps .step-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); font-family: "Newsreader", Georgia, serif; font-weight: 700; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; }

@media (max-width: 900px) {
  .contact-grid .wrap-inner { grid-template-columns: 1fr; }
}

footer { border-top: 1px solid var(--line); padding: 40px 0; font-family: "Hanken Grotesk", sans-serif; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 1rem; }
footer .foot-links { display: flex; gap: 22px; font-size: 0.75rem; color: var(--ink-soft); }
footer .foot-links a { text-decoration: none; }
footer .foot-links a:hover { color: var(--forest-deep); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .pipeline::before { display: none; }
  .trust { grid-template-columns: 1fr; padding: 36px 26px; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .pipeline { grid-template-columns: 1fr; }

  /* Stack the table into labeled cards instead of forcing horizontal scroll */
  .market-table-wrap { overflow-x: visible; padding: 0; box-shadow: none; background: transparent; }
  table.market { min-width: 0; width: 100%; display: block; }
  table.market caption { padding: 0 0 14px; }
  table.market thead { display: none; }
  table.market tbody { display: block; }
  table.market tr {
    display: block;
    background: var(--paper-raised);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    padding: 18px 20px;
  }
  table.market td {
    display: block;
    padding: 8px 0;
    border-bottom: none;
  }
  table.market td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
    margin-bottom: 3px;
  }
  table.market .market-name { white-space: normal; padding-top: 0; }
  table.market tbody tr:hover { background: var(--paper-raised); }
}
