:root {
  --ink: #101916;
  --muted: #5d6a63;
  --paper: #f6f7f2;
  --surface: #ffffff;
  --green: #075f4c;
  --green-2: #16836a;
  --amber: #b86a12;
  --red-earth: #8a3926;
  --blue: #2d6f88;
  --line: #dfe6df;
  --shadow: 0 18px 40px rgba(16, 25, 22, 0.12);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.site-header {
  align-items: center;
  background: rgba(246, 247, 242, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(16px, 4vw, 48px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 3px;
}

.top-nav,
.header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.top-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-weight: 750;
  padding: 10px 12px;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: #eaf1eb;
  color: var(--green);
  outline: none;
}

.primary-button,
.ghost-button,
.whatsapp-button,
.filter-chip,
.sample-button,
.icon-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  min-height: 44px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button,
.whatsapp-button {
  align-items: center;
  background: var(--green);
  color: white;
  display: inline-flex;
  justify-content: center;
  padding: 0 18px;
}

.primary-button:hover,
.whatsapp-button:hover,
.ghost-button:hover,
.filter-chip:hover,
.sample-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.ghost-button {
  background: white;
  border: 1px solid var(--line);
  color: var(--green);
  padding: 0 16px;
}

.icon-button {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  color: var(--green);
  display: none;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.icon-button svg,
.search-box svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.wide {
  width: 100%;
}

main {
  overflow: hidden;
}

.market-shell,
.role-band,
.calculator-section,
.trust-section {
  padding: clamp(28px, 5vw, 66px) clamp(16px, 4vw, 48px);
}

.market-shell {
  background:
    linear-gradient(180deg, #fbfcf8 0%, var(--paper) 56%, #eef3ee 100%);
  padding-top: clamp(34px, 6vw, 72px);
}

.market-panel {
  align-items: center;
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1.12fr);
  margin: 0 auto;
  max-width: 1220px;
}

.market-copy {
  align-content: center;
  display: grid;
  min-height: 390px;
}

.eyebrow {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.96;
  margin-bottom: 16px;
  max-width: 720px;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 3.1rem);
  line-height: 1.05;
  margin-bottom: 0;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 600px;
}

.market-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  max-width: 680px;
}

.search-box {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.08);
  color: var(--muted);
  display: flex;
  flex: 1;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
}

.search-box input {
  border: 0;
  color: var(--ink);
  min-width: 0;
  outline: 0;
  width: 100%;
}

.whatsapp-button {
  background: #1f8f5f;
  min-height: 54px;
}

.hero-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  max-width: 680px;
}

.hero-metrics div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 14px;
}

.hero-metrics strong {
  color: var(--green);
  font-size: 1.05rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.market-board {
  background: #101916;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(16, 25, 22, 0.18);
  color: white;
  min-height: 470px;
  overflow: hidden;
  position: relative;
}

.market-board::before {
  background:
    linear-gradient(115deg, rgba(22, 131, 106, 0.34), transparent 42%),
    linear-gradient(245deg, rgba(184, 106, 18, 0.2), transparent 44%);
  content: "";
  inset: 0;
  position: absolute;
  pointer-events: none;
}

.board-topbar,
.board-hero,
.board-grid,
.board-flow {
  position: relative;
  z-index: 1;
}

.board-topbar {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
}

.board-topbar div {
  align-items: center;
  display: flex;
  gap: 9px;
}

.board-topbar span:last-child {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  font-weight: 800;
}

.board-hero {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.84fr) minmax(190px, 0.66fr);
  padding: 26px 20px 18px;
}

.board-label {
  color: rgba(255, 255, 255, 0.6);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.board-hero strong {
  display: block;
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: 0;
  line-height: 1;
}

.board-hero small {
  color: rgba(255, 255, 255, 0.64);
  display: block;
  line-height: 1.45;
  margin-top: 10px;
}

.settlement-stack {
  align-content: end;
  display: grid;
  gap: 8px;
}

.settlement-stack span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  display: block;
  font-size: 0.76rem;
  font-weight: 850;
  overflow: hidden;
  padding: 7px 9px;
  position: relative;
}

.settlement-stack span::before {
  background: linear-gradient(90deg, #17816a, #f2b15f);
  border-radius: inherit;
  content: "";
  inset: 0 auto 0 0;
  opacity: 0.42;
  position: absolute;
  width: var(--size);
}

.settlement-stack span {
  isolation: isolate;
}

.board-grid {
  display: grid;
  gap: 10px;
  padding: 0 20px 18px;
}

.board-product {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 62px 1fr auto;
  padding: 10px;
}

.board-product img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.board-product div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.board-product strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-product span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
}

.board-product b {
  color: #f2b15f;
}

.board-flow {
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 20px 20px;
}

.board-flow span {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 850;
  padding: 12px 8px;
  text-align: center;
}

.board-flow span:last-child {
  border-right: 0;
}

.trust-visual img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.quick-ledger {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, 1fr);
  margin: 26px auto 0;
  max-width: 1220px;
}

.quick-ledger span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 850;
  padding: 13px 10px;
  text-align: center;
}

.market-toolbar {
  display: flex;
  gap: 10px;
  margin: 28px auto 18px;
  max-width: 1220px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-chip,
.sample-button {
  background: white;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0 16px;
  white-space: nowrap;
}

.filter-chip.active,
.sample-button.active {
  background: var(--ink);
  color: white;
}

.product-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 340px;
  margin: 0 auto;
  max-width: 1220px;
}

.product-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card,
.order-panel,
.role-card,
.calculator,
.ledger-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card {
  cursor: pointer;
  overflow: hidden;
}

.product-card:focus-within,
.product-card:hover {
  box-shadow: var(--shadow);
}

.product-card img {
  aspect-ratio: 1.18;
  object-fit: cover;
  width: 100%;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-top {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.product-top strong {
  line-height: 1.2;
}

.badge {
  background: #f4eadc;
  border-radius: 999px;
  color: var(--red-earth);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 8px;
  white-space: nowrap;
}

.product-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-bottom {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.product-price {
  color: var(--green);
  font-size: 1.15rem;
  font-weight: 950;
}

.select-button {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  min-height: 38px;
  padding: 0 12px;
}

.order-panel {
  box-shadow: 0 18px 34px rgba(23, 33, 29, 0.08);
  padding: 18px;
  position: sticky;
  top: 88px;
}

.order-panel-head {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.88rem;
  font-weight: 850;
  gap: 8px;
  margin-bottom: 18px;
}

.status-dot {
  background: var(--green-2);
  border-radius: 999px;
  height: 9px;
  width: 9px;
}

.order-panel h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.order-panel p {
  color: var(--muted);
}

.order-summary {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.order-summary div {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
}

.order-summary dt {
  color: var(--muted);
}

.order-summary dd {
  font-weight: 950;
  margin: 0;
}

.timeline {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0;
}

.timeline span {
  background: #eef1ed;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 7px 4px;
  text-align: center;
}

.timeline .done {
  background: #dcefe8;
  color: var(--green);
}

.timeline .active {
  background: #fff0d8;
  color: var(--amber);
}

.role-band {
  background: #13211b;
  color: white;
}

.section-heading {
  margin: 0 auto 24px;
  max-width: 1180px;
}

.role-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.role-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  padding: 18px;
}

.role-card span {
  color: #f2b15f;
  display: block;
  font-size: 0.76rem;
  font-weight: 950;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.role-card p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0;
}

.calculator-section {
  background: #eef3ee;
}

.calculator-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  margin: 0 auto;
  max-width: 1180px;
}

.calculator {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px;
}

.sample-row {
  display: flex;
  gap: 10px;
  grid-column: 1 / -1;
}

.calculator label {
  color: var(--muted);
  display: grid;
  font-size: 0.86rem;
  font-weight: 850;
  gap: 7px;
}

.calculator input {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

.calculator input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(12, 95, 76, 0.12);
}

.ledger-panel {
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ledger-total {
  background: var(--ink);
  color: white;
  display: grid;
  gap: 8px;
  padding: 22px;
}

.ledger-total span {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 850;
}

.ledger-total strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.ledger-breakdown {
  display: grid;
  gap: 0;
}

.ledger-line {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  padding: 14px 18px;
}

.ledger-line:last-child {
  border-bottom: 0;
}

.ledger-line span {
  color: var(--muted);
}

.ledger-line strong {
  color: var(--ink);
}

.trust-section {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.trust-visual {
  border-radius: 8px;
  min-height: 380px;
  overflow: hidden;
}

.trust-copy {
  max-width: 650px;
}

.trust-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.trust-list div {
  border-left: 4px solid var(--green);
  display: grid;
  gap: 5px;
  padding: 6px 0 6px 14px;
}

.trust-list span {
  color: var(--muted);
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(16px, 4vw, 48px);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer span,
.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

.toast {
  background: var(--ink);
  border-radius: 8px;
  bottom: 18px;
  color: white;
  left: 50%;
  max-width: min(92vw, 460px);
  opacity: 0;
  padding: 14px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 40;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .top-nav {
    display: none;
  }

  .icon-button {
    display: inline-flex;
  }

  .market-panel,
  .product-layout,
  .calculator-layout,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .market-copy,
  .market-board {
    min-height: auto;
  }

  .market-copy {
    padding-top: 12px;
  }

  .market-board,
  .trust-visual {
    min-height: 340px;
  }

  .quick-ledger {
    grid-template-columns: repeat(3, 1fr);
  }

  .order-panel {
    position: static;
  }

  .product-grid,
  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 10px;
  }

  .brand small,
  .ghost-button {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .market-shell,
  .role-band,
  .calculator-section,
  .trust-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .market-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box,
  .whatsapp-button {
    width: 100%;
  }

  .quick-ledger {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-metrics,
  .board-hero,
  .board-flow {
    grid-template-columns: 1fr;
  }

  .board-flow span {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
  }

  .board-flow span:last-child {
    border-bottom: 0;
  }

  .board-product {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .board-product b {
    grid-column: 2;
  }

  .product-grid,
  .role-grid,
  .calculator {
    grid-template-columns: 1fr;
  }

  .sample-row {
    overflow-x: auto;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .primary-button,
  .ghost-button,
  .whatsapp-button {
    padding-left: 12px;
    padding-right: 12px;
  }

  .market-board,
  .trust-visual {
    min-height: 270px;
  }

  .board-topbar,
  .board-hero,
  .board-grid {
    padding-left: 14px;
    padding-right: 14px;
  }

  .board-flow {
    margin-left: 14px;
    margin-right: 14px;
  }
}
