/* Hue Labs — product landing on warm paper (#FCF5EE), matched to the mascot art. */

:root {
  --bg: #fcf5ee;          /* exact background of the mascot artwork */
  --panel: #fffdf9;
  --card: #ffffff;
  --ink: #141412;
  --text: #26251f;
  --muted: #6f6d63;
  --faint: #9a9789;
  --border: #ece2d4;
  --border-soft: #f1ebe0;
  --track: #ece2d2;
  --run: #3a9d57;

  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: "Fraunces", Georgia, serif;

  --wrap: 1240px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* =========================================================
   NAV
   ========================================================= */
header.nav { padding: 26px 0 4px; }
.nav .row { display: flex; align-items: center; }
.nav .left { flex: 1; }
.nav .brand { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.nav .links {
  display: flex;
  gap: 40px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.nav .links a { transition: opacity 0.15s; }
.nav .links a:hover { opacity: 0.6; }
.nav .right { flex: 1; display: flex; justify-content: flex-end; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 9px;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.86; }
.nav-cta svg { width: 15px; height: 15px; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 62px 0 20px; }
.hero .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  background: #fffdf9;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.4vw, 82px);
  line-height: 1.0;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.hero .lede { margin-top: 26px; max-width: 30ch; font-size: 18.5px; line-height: 1.5; color: var(--muted); }
.hero .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s, background 0.15s, transform 0.15s;
}
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { transform: translateY(-1px); }
.btn.outline { background: transparent; color: var(--ink); border-color: #d9d0c1; }
.btn.outline:hover { background: #f4ede2; }
.btn svg { width: 16px; height: 16px; }

.hero .art { display: flex; justify-content: center; align-items: center; }
.hero .art img { width: 100%; max-width: 620px; height: auto; }

/* =========================================================
   FEATURE ROW
   ========================================================= */
.features { padding: 44px 0 60px; }
.features .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.feat { padding: 4px 28px; }
.feat + .feat { border-left: 1px solid var(--border); }
.feat h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.feat p { font-size: 15px; color: var(--muted); line-height: 1.45; max-width: 22ch; }

/* =========================================================
   DASHBOARD PREVIEW
   ========================================================= */
.preview { padding: 0 0 40px; }
.dash {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  display: grid;
  grid-template-columns: 208px 1fr;
  overflow: hidden;
}
.dash .side { border-right: 1px solid var(--border-soft); padding: 26px 16px; }
.dash .side .sitem { display: block; font-size: 14.5px; font-weight: 500; color: var(--muted); padding: 9px 14px; border-radius: 8px; margin-bottom: 3px; }
.dash .side .sitem.active { background: #f0e9dd; color: var(--ink); }
.dash .main { padding: 30px 34px 40px; min-width: 0; }
.dash .main-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; }
.dash .main-head h2 { font-family: var(--serif); font-weight: 500; font-size: 27px; letter-spacing: -0.01em; color: var(--ink); }
.dash .main-head p { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.load-btn { background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; padding: 10px 18px; border-radius: 8px; border: none; cursor: pointer; white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 34px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 16px 15px; }
.stat .lbl { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.stat .d { font-size: 13px; color: var(--muted); line-height: 1.5; }
.stat .d strong { color: var(--text); font-weight: 500; }
.stat .barwrap { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.stat .bar { flex: 1; height: 6px; background: var(--track); border-radius: 999px; overflow: hidden; }
.stat .bar span { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.stat .pct { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.dash-lower { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.dash-lower h4 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.models { min-width: 0; }
.models table { width: 100%; border-collapse: collapse; }
.models th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--faint); padding: 0 12px 12px 0; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.models th.r, .models td.r { text-align: right; padding-right: 0; }
.models td { padding: 18px 12px 0 0; font-size: 14px; vertical-align: middle; white-space: nowrap; }
.models .mname { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.tag { font-size: 11px; font-weight: 500; color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; letter-spacing: 0.02em; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.status .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--run); }
.dots { color: var(--faint); letter-spacing: 1px; }
.recent { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px 8px; }
.recent .chat { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.recent .chat:last-child { border-bottom: none; }
.recent .chat .top { display: flex; justify-content: space-between; align-items: baseline; }
.recent .chat .t { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.recent .chat .time { font-size: 12.5px; color: var(--faint); }
.recent .chat .sub { font-size: 13px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =========================================================
   SHARED SECTION HEADER
   ========================================================= */
.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head .eyebrow { margin-bottom: 16px; display: block; }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; letter-spacing: -0.018em; color: var(--ink); }
.sec-head p { margin-top: 18px; font-size: 18px; color: var(--muted); }
.rule { height: 1px; background: var(--border); }

/* =========================================================
   THE GAP
   ========================================================= */
.gap-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.bignum {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(88px, 15vw, 176px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.bignum .u { font-size: 0.32em; vertical-align: 0.55em; color: var(--muted); letter-spacing: 0; }
.bignum-cap { margin-top: 20px; font-size: 15px; color: var(--muted); max-width: 30ch; }
.gap-body p { font-size: 19px; color: var(--text); margin-bottom: 18px; }
.gap-body p.big { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.22; color: var(--ink); }
.causes { margin-top: 26px; border-top: 1px solid var(--border); }
.causes .c { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--border-soft); align-items: baseline; }
.causes .c .n { font-size: 13px; font-weight: 600; color: var(--faint); width: 26px; flex: none; font-variant-numeric: tabular-nums; }
.causes .c .t { font-size: 16px; color: var(--text); }

/* =========================================================
   METHOD (6 STEPS)
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 26px 24px 28px; }
.step .sn { font-size: 13px; font-weight: 600; color: var(--faint); margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.step h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1; margin-bottom: 10px; color: var(--ink); }
.step p { font-size: 15px; color: var(--muted); line-height: 1.45; }

/* =========================================================
   PROOF
   ========================================================= */
.proof-panel { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.proof-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; }
.proof-cell { padding: 44px 32px; border-right: 1px solid var(--border-soft); }
.proof-cell:last-child { border-right: none; }
.proof-cell .k { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.proof-num { font-family: var(--sans); font-weight: 600; line-height: 0.85; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.proof-cell.before .proof-num { font-size: clamp(56px, 8vw, 92px); color: #c3bcac; }
.proof-cell.after .proof-num { font-size: clamp(56px, 8vw, 92px); color: var(--ink); }
.proof-cell .unit { font-size: 14px; color: var(--muted); margin-top: 14px; }
.proof-cell.delta { background: var(--ink); display: flex; flex-direction: column; justify-content: center; }
.proof-cell.delta .k { color: rgba(255,255,255,0.55); }
.proof-cell.delta .proof-num { font-size: clamp(78px, 13vw, 150px); color: #fff; }  /* biggest, blackest number */
.proof-cell.delta .unit { color: rgba(255,255,255,0.6); }
.proof-foot { border-top: 1px solid var(--border); padding: 16px 26px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* =========================================================
   SPLIT (image + text) & FIGURE PLATE
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.figure-plate { border: 1px solid var(--border); border-radius: var(--radius); background: #fbf3e7; padding: 26px; display: flex; align-items: center; justify-content: center; }
.figure-plate img { width: 100%; height: auto; display: block; }
.split .txt .eyebrow { margin-bottom: 16px; display: block; }
.split .txt h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.02; letter-spacing: -0.018em; color: var(--ink); }
.split .txt p { margin-top: 18px; font-size: 17px; color: var(--muted); }

.req { margin-top: 18px; font-size: 13.5px; color: var(--faint); }

/* =========================================================
   PRICING
   ========================================================= */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tier { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 26px 22px 24px; display: flex; flex-direction: column; }
.tier .cap { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.tier .tname { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.tier .price { font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.tier .price .per { display: block; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 8px; }
.tier ul { list-style: none; margin: 22px 0; flex: 1; }
.tier ul li { font-size: 14.5px; line-height: 1.4; color: var(--muted); padding: 9px 0 9px 20px; border-bottom: 1px solid var(--border-soft); position: relative; }
.tier ul li::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; border-radius: 999px; background: var(--ink); }
.tier .reserve { font-size: 14px; font-weight: 500; padding: 13px; border-radius: 9px; border: 1px solid #d9d0c1; background: transparent; color: var(--ink); cursor: pointer; text-align: center; transition: background 0.15s, color 0.15s; }
.tier .reserve:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.tier.feature { background: var(--ink); border-color: var(--ink); }
.tier.feature .tname, .tier.feature .price, .tier.feature .price .per { color: #fff; }
.tier.feature ul li { color: rgba(255,255,255,0.72); border-bottom-color: rgba(255,255,255,0.14); }
.tier.feature ul li::before { background: #fff; }
.tier.feature .cap { color: rgba(255,255,255,0.55); }
.tier.feature .reserve { border-color: rgba(255,255,255,0.5); color: #fff; }
.tier.feature .reserve:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* =========================================================
   WAITLIST
   ========================================================= */
.wl-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.wl-left { padding: 48px 44px; border-right: 1px solid var(--border-soft); }
.wl-left .eyebrow { margin-bottom: 18px; display: block; }
.wl-left h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.0; letter-spacing: -0.015em; color: var(--ink); }
.wl-left p { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 34ch; }
.wl-left .fine { margin-top: 28px; font-size: 13.5px; color: var(--faint); line-height: 1.7; }
.wl-right { padding: 48px 44px; }
.reserved-flag { display: none; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--ink); border-radius: 9px; padding: 10px 14px; margin-bottom: 22px; font-size: 13.5px; font-weight: 500; }
.reserved-flag.show { display: flex; }
.reserved-flag button { background: none; border: none; cursor: pointer; font-size: 17px; color: var(--muted); line-height: 1; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field label .opt { color: var(--faint); font-weight: 500; }
.field input, .field select {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23141412' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field input::placeholder { color: var(--faint); }
.wl-submit { width: 100%; background: var(--ink); color: #fff; border: none; border-radius: 10px; padding: 16px; font-family: var(--sans); font-size: 15.5px; font-weight: 500; cursor: pointer; transition: opacity 0.15s; }
.wl-submit:hover { opacity: 0.88; }
.wl-note { margin-top: 15px; font-size: 14px; color: var(--muted); min-height: 20px; }
.wl-note.ok { color: var(--run); font-weight: 500; }
.wl-note.err { color: #b23b3b; font-weight: 500; }

/* =========================================================
   VISION
   ========================================================= */
.vision-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.vision-inner .eyebrow { margin-bottom: 16px; display: block; }
.vision-inner h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.0; letter-spacing: -0.015em; color: var(--ink); }
.vision-inner h2 em { font-style: italic; }
.vision-inner p { font-size: 18px; color: var(--muted); max-width: 44ch; }

/* =========================================================
   FOOTER
   ========================================================= */
footer { padding: 56px 0 64px; border-top: 1px solid var(--border); margin-top: 40px; }
footer .row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 28px; }
footer .brand { font-family: var(--serif); font-size: 20px; font-weight: 500; }
footer .meta { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-top: 12px; max-width: 40ch; }
footer nav { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
footer nav a:hover { color: var(--ink); }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) { .dash-lower { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 980px) {
  .nav .links { gap: 22px; }
  .hero .grid { grid-template-columns: 1fr; gap: 20px; }
  .hero .art { order: -1; }
  .hero .art img { max-width: 440px; }
  .features .grid { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .feat:nth-child(3) { border-left: none; }
  .gap-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .fig { order: -1; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .wl-panel { grid-template-columns: 1fr; }
  .wl-left { border-right: none; border-bottom: 1px solid var(--border-soft); }
  .vision-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  .nav .links { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash .side { display: flex; gap: 6px; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border-soft); padding: 14px; }
  .dash .side .sitem { margin-bottom: 0; white-space: nowrap; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-cell { border-right: none; border-bottom: 1px solid var(--border-soft); }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .dash .main { padding: 22px 18px 30px; }
  .wl-left, .wl-right { padding: 32px 24px; }
  .models th:nth-child(3), .models td:nth-child(3) { display: none; }
}
