/* ============================================================================
   uxjo/wa — Design System stylesheet
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--fg-2);
  background-color: var(--bg-canvas);
  background-image: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" 1, "cv01" 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--coral); color: #fff; }

/* ---------- LAYOUT --------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 6vw, 6rem); position: relative; }
.section--ink { background: var(--ink); color: var(--fg-on-ink-1); }
.section--ink h1,.section--ink h2,.section--ink h3,.section--ink h4 { color: #fff; }
.divider { height: 1px; background: var(--border-1); border: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--fg-3);
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 3px;
  background: var(--coral); transform: rotate(12deg);
}
.section--ink .eyebrow { color: var(--fg-on-ink-3); }

.sec-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head h2 {
  font-size: var(--fs-6xl); font-weight: var(--fw-extra);
  letter-spacing: var(--track-head); line-height: var(--lh-head);
  color: var(--fg-1); margin-top: 1rem; text-wrap: balance;
}
.sec-head p { font-size: var(--fs-xl); color: var(--fg-3); margin-top: 1.1rem; max-width: 56ch; text-wrap: pretty; }
.sec-num {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  color: var(--fg-4); letter-spacing: .1em;
}

/* ---------- TYPE HELPERS --------------------------------------------------- */
h1,h2,h3,h4 { color: var(--fg-1); line-height: var(--lh-head); letter-spacing: var(--track-head); }
.mono { font-family: var(--font-mono); }

/* ---------- BUILDING-BLOCK MOTIF ------------------------------------------- */
/* The signature decorative system: pill · double-arrow · triangle · dot,
   pulled straight from the app icon. */
.blocks { display: inline-grid; grid-auto-flow: column; gap: 10px; align-items: center; }
.glyph { width: 30px; height: 30px; display: inline-block; }
.glyph--pill { width: 46px; height: 24px; border-radius: var(--r-pill); background: var(--tangerine); }
.glyph--dot  { width: 26px; height: 26px; border-radius: 50%; background: var(--sky); }
.glyph--tri  { width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-bottom: 26px solid var(--sky); }
.glyph--arrow {
  width: 26px; height: 26px; position: relative;
}
.glyph--arrow::before, .glyph--arrow::after {
  content:""; position:absolute; width: 60%; height: 4px; border-radius: 2px; background: var(--coral);
  top: 50%; left: 50%;
}
.glyph--arrow::before { transform: translate(-50%,-50%) rotate(45deg); }
.glyph--arrow::after  { transform: translate(-50%,-50%) rotate(-45deg); }

/* Icon-accurate composite mark (used in cover + footer) */
.brickmark {
  --u: 26px;
  display: grid; grid-template-columns: repeat(3, var(--u)); grid-template-rows: repeat(3, var(--u));
  gap: 8px; align-items: center; justify-items: center;
}
.brickmark .pill { grid-column: 1 / 2; width: calc(var(--u)*1.7); height: calc(var(--u)*0.78); border-radius: 999px; background: var(--tangerine); }
.brickmark .pill.b { grid-column: 1 / 2; }
.brickmark .av { width: var(--u); height: var(--u); position: relative; }
.brickmark .av::before, .brickmark .av::after { content:""; position:absolute; left:50%; top:50%; width: 78%; height: 4.5px; border-radius:3px; background: var(--coral); }
.brickmark .av::before { transform: translate(-50%,-50%) rotate(45deg); }
.brickmark .av::after  { transform: translate(-50%,-50%) rotate(-45deg); }
.brickmark .tri { width:0;height:0;border-left: calc(var(--u)*0.5) solid transparent;border-right: calc(var(--u)*0.5) solid transparent;border-bottom: var(--u) solid var(--sky); }

/* Floating decorative blocks scattered on hero */
.float-blocks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.fb { position: absolute; opacity: 0; animation: fb-in .7s var(--ease-snap) forwards; }
@keyframes fb-in { from { opacity:0; transform: translateY(18px) scale(.6) rotate(var(--rot,0deg)); } to { opacity:1; transform: translateY(0) scale(1) rotate(var(--rot,0deg)); } }

/* ---------- BUTTONS -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-sans); font-weight: var(--fw-semibold); font-size: var(--fs-base);
  line-height: 1; padding: 0.95rem 1.6rem; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), color var(--t-fast);
}
.btn:active { transform: translateY(0) scale(0.97); }
.btn-primary { background: var(--action); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--action-hover); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 6px 18px -6px var(--coral); }
.btn-coral:hover { background: var(--coral-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--fg-1); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--fg-1); transform: translateY(-2px); }
.btn-wa { background: var(--grass); color: #08381f; box-shadow: 0 6px 18px -6px var(--grass); }
.btn-wa:hover { background: var(--grass-deep); color:#fff; transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: var(--fs-sm); }
.btn-lg { padding: 1.15rem 2rem; font-size: var(--fs-lg); }
.on-ink .btn-ghost { color:#fff; border-color: var(--border-ink); }
.on-ink .btn-ghost:hover { border-color: #fff; }
.on-ink .btn-primary { background: var(--bg-surface); color: var(--fg-1); }
.on-ink .btn-primary:hover { background: var(--neutral-100); }

/* ---------- NAV ------------------------------------------------------------ */
/* the grid lives on its own promoted layer, so scrolling never repaints it */
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background-color:var(--bg-canvas);
  background-image:linear-gradient(var(--grid-line) 1px,transparent 1px),linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);
  background-size:27px 27px}
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,247,249,0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-1);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-logo { display:flex; align-items:center; gap:.6rem; font-weight: var(--fw-black); font-size: 1.45rem; letter-spacing:-0.04em; color: var(--fg-1); }
.nav-logo img { height: 26px; width:auto; }
.nav-tag { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--fg-4); padding: 3px 8px; border:1px solid var(--border-2); border-radius: var(--r-pill); }
.nav-links { display:flex; gap: 1.6rem; align-items:center; }
.nav-links a { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--fg-2); transition: color var(--t-fast); }
.nav-links a:hover { color: var(--fg-1); }
@media (max-width: 820px){ .nav-links .hide-sm { display:none; } }

/* ---------- COVER ---------------------------------------------------------- */
.cover { background: var(--bg-canvas); position: relative; overflow: hidden; padding-block: clamp(4rem,9vw,8rem) clamp(3rem,6vw,6rem); }
.cover .wrap { position: relative; z-index: 2; }
.cover-kicker { display:flex; align-items:center; gap: .8rem; margin-bottom: 1.8rem; }
.cover h1 {
  font-size: var(--fs-mega); font-weight: var(--fw-black);
  letter-spacing: var(--track-mega); line-height: var(--lh-tight); color: var(--fg-1);
  text-wrap: balance;
}
.cover h1 em { font-style: normal; color: var(--coral); }
.cover-sub { font-size: clamp(1.1rem, .8rem + 1vw, 1.5rem); color: var(--fg-2); max-width: 60ch; margin-top: 1.6rem; line-height: 1.5; }
.cover-meta { display:flex; flex-wrap:wrap; gap: 2.2rem; margin-top: 2.6rem; }
.cover-meta .m { }
.cover-meta .m b { display:block; font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing:.12em; text-transform:uppercase; color: var(--fg-4); margin-bottom:.3rem; }
.cover-meta .m span { font-weight: var(--fw-semibold); color: var(--fg-1); font-size: var(--fs-base); }

/* ---------- GENERIC CARD / GRID -------------------------------------------- */
.grid { display:grid; gap: clamp(1rem, 2vw, 1.5rem); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px){ .g-3,.g-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .g-2,.g-3,.g-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-surface); border: 1px solid var(--border-1);
  border-radius: var(--r-xl); padding: var(--s-6);
}
.card-label { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing:.1em; text-transform:uppercase; color: var(--fg-4); }

/* ---------- COLOR SWATCHES ------------------------------------------------- */
.spectrum { display:grid; grid-template-columns: repeat(8,1fr); gap: 14px; }
@media (max-width: 920px){ .spectrum { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 520px){ .spectrum { grid-template-columns: repeat(2,1fr); } }
.hue { }
.hue-stack { border-radius: var(--r-lg); overflow:hidden; box-shadow: var(--sh-sm); cursor: pointer; transition: transform var(--t-fast) var(--ease-snap); }
.hue-stack:hover { transform: translateY(-4px); }
.hue-band { height: 46px; display:flex; align-items:center; justify-content:space-between; padding: 0 12px; }
.hue-band.tall { height: 88px; }
.hue-band .hx { font-family: var(--font-mono); font-size: var(--fs-2xs); opacity:.0; transition: opacity var(--t-fast); }
.hue-stack:hover .hx { opacity:.9; }
.hue-name { margin-top: .7rem; font-weight: var(--fw-bold); color: var(--fg-1); font-size: var(--fs-sm); }
.hue-token { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--fg-4); }
.copy-toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color:#fff; padding: .7rem 1.2rem; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: var(--fs-xs); opacity:0; pointer-events:none; transition: all var(--t-base) var(--ease-out); z-index: 100; }
.copy-toast.show { opacity:1; transform: translateX(-50%) translateY(0); }

/* role / semantic chips */
.roles { display:grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media (max-width: 720px){ .roles { grid-template-columns: repeat(2,1fr);} }
.role { border-radius: var(--r-lg); padding: 1.1rem; color:#fff; font-weight: var(--fw-semibold); display:flex; flex-direction:column; gap:.3rem; min-height: 96px; }
.role small { font-family: var(--font-mono); font-size: var(--fs-2xs); opacity:.85; font-weight: var(--fw-regular); }

/* ---------- TYPE SPECIMEN -------------------------------------------------- */
.type-row { display:grid; grid-template-columns: 160px 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom:1px solid var(--border-1); align-items: baseline; }
@media (max-width:680px){ .type-row { grid-template-columns: 1fr; gap:.4rem; } }
.type-meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-4); line-height:1.5; }
.type-meta b { color: var(--fg-2); display:block; font-weight:var(--fw-medium); }
.spec { color: var(--fg-1); letter-spacing: var(--track-head); }
.weights { display:flex; flex-wrap:wrap; gap: 1.4rem; align-items:baseline; }
.weights span { font-size: 2rem; color: var(--fg-1); }

/* ---------- TOKEN TABLES (spacing/radius/shadow) --------------------------- */
.spec-list { display:flex; flex-direction:column; gap: .5rem; }
.spec-item { display:flex; align-items:center; gap: 1.2rem; padding:.5rem 0; }
.spec-item .name { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--fg-2); width: 120px; flex-shrink:0; }
.spec-item .val { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-4); width: 64px; flex-shrink:0; }
.bar { height: 22px; background: var(--coral); border-radius: 5px; }
.radii { display:flex; flex-wrap:wrap; gap: 1.5rem; }
.radii .r { width: 92px; }
.radii .r .box { height: 92px; background: var(--ink); border: 2px solid var(--ink); }
.radii .r .lbl { margin-top:.6rem; font-family:var(--font-mono); font-size:var(--fs-2xs); color: var(--fg-4); }
.radii .r .lbl b { display:block; color: var(--fg-2); font-size: var(--fs-xs); }
.shadows { display:grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width:720px){ .shadows { grid-template-columns: repeat(2,1fr);} }
.shadow-chip { background:var(--bg-surface); height: 120px; border-radius: var(--r-lg); display:flex; align-items:flex-end; padding: .8rem; font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--fg-4); }

/* ---------- COMPONENT SHOWCASE --------------------------------------------- */
.swatch-pad { background: var(--neutral-50); border:1px solid var(--border-1); border-radius: var(--r-xl); padding: var(--s-8); display:flex; flex-wrap:wrap; gap: 1rem; align-items:center; }

/* monday-style status blocks */
.status-grid { display:flex; flex-direction:column; gap: 8px; max-width: 420px; }
.status-row { display:flex; gap: 8px; align-items:center; }
.status-pill { flex:1; text-align:center; color:#fff; font-weight: var(--fw-semibold); font-size: var(--fs-sm); padding:.7rem 1rem; border-radius: var(--r-md); transition: transform var(--t-fast) var(--ease-snap); cursor:default; }
.status-pill:hover { transform: scale(1.03); }
.status-label { width: 96px; font-size: var(--fs-sm); color: var(--fg-3); font-family: var(--font-mono); }

/* badges / tags */
.tags { display:flex; flex-wrap:wrap; gap:.6rem; }
.tag { display:inline-flex; align-items:center; gap:.4rem; font-size: var(--fs-xs); font-weight: var(--fw-semibold); padding:.4rem .8rem; border-radius: var(--r-pill); }
.tag::before { content:""; width:7px; height:7px; border-radius:50%; background: currentColor; }
.tag-coral { background: var(--coral-soft); color: var(--coral-text); }
.tag-grass { background: var(--grass-soft); color: var(--grass-deep); }
.tag-sky { background: var(--sky-soft); color: var(--sky-deep); }
.tag-violet { background: var(--violet-soft); color: var(--violet-deep); }
.tag-sun { background: var(--sun-soft); color: var(--sun-deep); }

/* input */
.field { display:flex; flex-direction:column; gap:.45rem; max-width: 320px; }
.field label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--fg-1); }
.field input {
  font-family: var(--font-sans); font-size: var(--fs-base); padding:.8rem 1rem;
  border:1.5px solid var(--border-2); border-radius: var(--r-md); background:var(--bg-surface); color: var(--fg-1);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus { outline:none; border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }
.field .hint { font-size: var(--fs-xs); color: var(--fg-4); }

/* feature card */
.feat { background:var(--bg-surface); border:1px solid var(--border-1); border-radius: var(--r-xl); padding: var(--s-6); transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
.feat:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.feat .ic { width: 52px; height: 52px; border-radius: var(--r-md); display:grid; place-items:center; margin-bottom: 1.1rem; }
.feat h4 { font-size: var(--fs-xl); font-weight: var(--fw-bold); }
.feat p { font-size: var(--fs-base); color: var(--fg-3); margin-top:.5rem; line-height: 1.55; }

/* ---------- WHATSAPP CHAT SHOWCASE ----------------------------------------- */
.phone {
  width: 340px; max-width: 100%; background: var(--wa-bg); border-radius: 38px; padding: 12px;
  box-shadow: var(--sh-xl), 0 0 0 1px rgba(255,255,255,0.06); position: relative;
}
.phone-screen { border-radius: 28px; overflow:hidden; background: var(--wa-bg); }
.wa-bar { background: #1f2c33; color:#e9edef; display:flex; align-items:center; gap:.7rem; padding: 14px 14px; }
.wa-ava { width: 38px; height:38px; border-radius:50%; background: var(--gradient, linear-gradient(135deg,var(--violet),var(--indigo))); display:grid; place-items:center; font-weight: var(--fw-bold); color:#fff; flex-shrink:0; }
.wa-name { font-weight: var(--fw-semibold); font-size: .95rem; line-height:1.1; }
.wa-status { font-size:0.75rem; color: #8696a0; display:flex; align-items:center; gap:.3rem; }
.wa-status .ai { color: var(--violet); font-weight:600; }
.wa-thread {
  background-color:var(--wa-bg);background-image:var(--wa-paper);background-size:240px 240px;background-repeat:repeat;
  padding: 18px 14px; display:flex; flex-direction:column; gap: 10px; min-height: 420px;
}
.bub { max-width: 80%; padding: 8px 11px 9px; border-radius: 12px; font-size: .86rem; line-height: 1.4; position:relative; box-shadow: 0 1px 1px rgba(0,0,0,.15); }
.bub .t { display:block; font-size:0.6875rem; text-align:right; margin-top: 3px; opacity:.6; }
.bub.in { align-self:flex-start; background:#202c33; color:#e9edef; border-top-left-radius: 4px; }
.bub.out { align-self:flex-end; background:#005c4b; color:#e9edef; border-top-right-radius: 4px; }
.bub.out .t { color:#a7d3c8; }
.bub-typing { align-self:flex-start; background:#202c33; padding: 12px 14px; border-radius:12px; border-top-left-radius:4px; display:flex; gap:4px; }
.bub-typing i { width:7px;height:7px;border-radius:50%;background:#8696a0; display:inline-block; animation: blink 1.2s infinite; }
.bub-typing i:nth-child(2){ animation-delay:.2s; } .bub-typing i:nth-child(3){ animation-delay:.4s; }
@keyframes blink { 0%,60%,100%{ opacity:.3; transform: translateY(0);} 30%{ opacity:1; transform: translateY(-3px);} }
.agent-tag { display:inline-flex; align-items:center; gap:.3rem; font-size:0.6875rem; font-weight:700; color:#d9c8ff; background: rgba(139,92,246,.34); padding:2px 7px; border-radius:999px; margin-bottom:5px; }
/* in-chat mini-app card */
.miniapp { align-self:flex-start; max-width: 84%; background:var(--bg-surface); border-radius: 12px; border-top-left-radius:4px; overflow:hidden; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.miniapp-head { padding: 10px 12px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--border-1); }
.miniapp-head b { font-size:0.8125rem; color: var(--fg-1); }
.miniapp-body { padding: 11px 12px; display:flex; flex-direction:column; gap:8px; }
.miniapp-line { display:flex; justify-content:space-between; font-size:0.8125rem; color: var(--fg-2); }
.miniapp-line.total { font-weight:700; color: var(--fg-1); border-top:1px dashed var(--border-2); padding-top:8px; }
.miniapp-cta { background: var(--grass); color:#08381f; font-weight:700; text-align:center; padding:9px; border-radius:8px; font-size:.82rem; margin-top:2px; }
.wa-input { background:#1f2c33; display:flex; align-items:center; gap:8px; padding:9px 12px; }
.wa-input .box { flex:1; background:#2a3942; border-radius:999px; padding:8px 14px; color:#8696a0; font-size:.82rem; }
.wa-input .send { width:36px;height:36px;border-radius:50%; background: var(--grass); display:grid; place-items:center; flex-shrink:0; }

/* number-health widget */
.health { background: var(--ink-700); border:1px solid var(--border-ink); border-radius: var(--r-lg); padding: 1.4rem; }
.health-top { display:flex; justify-content:space-between; align-items:center; margin-bottom: 1rem; }
.health-score { font-size: 2.4rem; font-weight: var(--fw-black); color: var(--grass); letter-spacing:-.03em; line-height:1; }
.health-bar { height: 10px; border-radius: 999px; background: var(--ink-500); overflow:hidden; }
.health-bar i { display:block; height:100%; border-radius:999px; background: linear-gradient(90deg, var(--grass), var(--sky)); }

/* ---------- APPLIED HERO --------------------------------------------------- */
.applied { background: var(--bg-canvas); }
.hero-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4.5rem); align-items:center; }
@media (max-width: 940px){ .hero-grid { grid-template-columns: 1fr; } }
.hero-pill { display:inline-flex; align-items:center; gap:.5rem; background:var(--bg-surface); border:1px solid var(--border-2); border-radius:999px; padding:.45rem .9rem .45rem .5rem; font-size: var(--fs-sm); font-weight:var(--fw-medium); box-shadow: var(--sh-xs); }
.hero-pill .dot { width:22px;height:22px;border-radius:50%; background: var(--grass-soft); color: var(--grass-deep); display:grid; place-items:center; font-size:0.75rem; font-weight:800; }
.hero h2.big { font-size: var(--fs-7xl); font-weight: var(--fw-black); letter-spacing: var(--track-mega); line-height: 1.0; margin: 1.4rem 0; color: var(--fg-1); }
.hero h2.big em { font-style:normal; position:relative; color: var(--fg-1); white-space:nowrap; }
.hero h2.big em::after { content:""; position:absolute; left:-2%; right:-2%; bottom: .08em; height: .34em; background: var(--tangerine); z-index:-1; border-radius: 4px; transform: rotate(-1deg); }
.hero p.lede { font-size: var(--fs-xl); color: var(--fg-2); max-width: 48ch; line-height:1.5; }
.hero-cta { display:flex; flex-wrap:wrap; gap:.8rem; margin-top: 2rem; align-items:center; }
.hero-logos { display:flex; gap: 1.4rem; align-items:center; margin-top: 2.4rem; opacity:.5; flex-wrap:wrap; }
.hero-logos span { font-weight:800; color: var(--fg-2); font-size:1.05rem; letter-spacing:-.02em; }

/* ---------- VOICE / DO-DONT ------------------------------------------------ */
.voice { display:grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width:680px){ .voice { grid-template-columns:1fr; } }
.voice .col { border-radius: var(--r-lg); padding: 1.5rem; }
.voice .do { background: var(--grass-soft); }
.voice .dont { background: var(--coral-soft); }
.voice h4 { display:flex; align-items:center; gap:.5rem; font-size: var(--fs-base); margin-bottom: 1rem; }
.voice ul { list-style:none; display:flex; flex-direction:column; gap:.7rem; }
.voice li { font-size: var(--fs-base); padding-left: 1.5rem; position:relative; line-height:1.4; }
.voice .do li::before { content:"✓"; position:absolute; left:0; color: var(--grass-deep); font-weight:800; }
.voice .dont li::before { content:"✕"; position:absolute; left:0; color: var(--coral-deep); font-weight:800; }

/* principles */
.principles { display:grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
@media (max-width:820px){ .principles{ grid-template-columns:1fr; } }
.principle { padding: 1.6rem; border-radius: var(--r-lg); background: var(--ink-700); border:1px solid var(--border-ink); }
.principle .n { font-family: var(--font-mono); color: var(--coral); font-size: var(--fs-sm); }
.principle h4 { color:#fff; font-size: var(--fs-xl); margin:.6rem 0; }
.principle p { color: var(--fg-on-ink-2); font-size: var(--fs-base); line-height:1.5; }

/* ---------- FOOTER --------------------------------------------------------- */
.foot { background: var(--ink); color: var(--fg-on-ink-2); padding-block: 4rem 3rem; }
.foot .wrap { display:flex; flex-wrap:wrap; justify-content:space-between; gap:2rem; align-items:flex-end; }
.foot-logo { display:flex; align-items:center; gap:.7rem; }
.foot-logo img { height: 30px; }
.foot small { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-on-ink-3); }

/* ============================================================================
   APP SHELL  — grounds the system in a clean product UI (monday-style)
   ============================================================================ */
.app { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }

/* ---- Sidebar ---- */
.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: var(--bg-surface); border-right: 1px solid var(--border-1);
  display: flex; flex-direction: column; min-width: 0;
}
.sidebar-head { display: flex; align-items: center; gap: .55rem; padding: 18px 20px; border-bottom: 1px solid var(--border-1); }
.sidebar-head img { height: 24px; width: auto; }
.sidebar-head .slash { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--fg-4); padding: 2px 7px; border: 1px solid var(--border-2); border-radius: var(--r-pill); }
.sidebar-nav { padding: 12px 12px 20px; overflow-y: auto; flex: 1; }
.nav-group { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-4); padding: 16px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: .65rem; padding: .55rem .6rem; border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--fg-2); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast); white-space: nowrap;
}
.nav-item:hover { background: var(--neutral-50); color: var(--fg-1); }
.nav-item.active { background: var(--ink); color: #fff; font-weight: var(--fw-semibold); }
.nav-item .chip { width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; }
.nav-item.active .chip { box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.sidebar-foot { padding: 14px 18px; border-top: 1px solid var(--border-1); display: flex; align-items: center; justify-content: space-between; }
.sidebar-foot small { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--fg-4); }

/* ---- Main ---- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 64px; flex-shrink: 0;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}
.crumb { font-size: var(--fs-sm); color: var(--fg-3); display: flex; align-items: center; gap: .5rem; }
.crumb b { color: var(--fg-1); font-weight: var(--fw-semibold); }
.crumb .sep { color: var(--fg-4); }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.minispectrum { display: flex; gap: 3px; }
.minispectrum i { width: 13px; height: 13px; border-radius: 4px; }
@media (max-width: 680px){ .minispectrum, .topbar .btn { display: none; } }

.content { padding: 0 clamp(1.25rem, 3vw, 3rem); width: 100%; max-width: 1120px; }

/* ---- Content blocks ---- */
.block { scroll-margin-top: 80px; padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--border-1); }
.block:last-of-type { border-bottom: 0; }
.block-head { max-width: 720px; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.block-head .num { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .12em; color: var(--fg-4); }
.block-head h2 { font-size: var(--fs-4xl); font-weight: var(--fw-extra); letter-spacing: var(--track-head); line-height: 1.1; color: var(--fg-1); margin-top: .55rem; text-wrap: balance; }
.block-head p { font-size: var(--fs-lg); color: var(--fg-3); margin-top: .7rem; max-width: 62ch; text-wrap: pretty; }

/* ---- Overview hero (calm, app-style, not an ad) ---- */
.overview { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 3vw, 2rem); align-items: stretch; }
@media (max-width: 860px){ .overview { grid-template-columns: 1fr; } }
.ov-card { background: var(--ink); color: #fff; border-radius: var(--r-2xl); padding: clamp(1.75rem, 4vw, 2.75rem); position: relative; overflow: hidden; }
.ov-card h1 { color: #fff; font-size: var(--fs-6xl); font-weight: var(--fw-black); letter-spacing: var(--track-mega); line-height: 1.04; }
.ov-card h1 em { font-style: normal; color: var(--coral); }
.ov-card p { color: var(--fg-on-ink-2); font-size: var(--fs-lg); margin-top: 1.1rem; max-width: 46ch; }
.ov-blocks { position: absolute; right: -10px; bottom: -10px; opacity: .9; }
.ov-side { display: grid; grid-template-rows: repeat(2, 1fr); gap: clamp(1.5rem,3vw,2rem); }
.stat-tile { background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: var(--r-2xl); padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.stat-tile .k { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-4); }
.stat-tile .v { font-size: var(--fs-3xl); font-weight: var(--fw-extra); color: var(--fg-1); letter-spacing: -.02em; margin-top: .3rem; line-height: 1.1; }
.stat-tile .v small { font-size: var(--fs-base); color: var(--fg-3); font-weight: var(--fw-medium); }

/* ---- Ink product panel (single duotone moment) ---- */
.ink-panel { background: var(--ink); color: var(--fg-on-ink-1); border-radius: var(--r-2xl); padding: clamp(1.75rem, 4vw, 3rem); }
.ink-panel h2, .ink-panel h3, .ink-panel h4 { color: #fff; }
.ink-panel .block-head h2 { color: #fff; }
.ink-panel .block-head p { color: var(--fg-on-ink-2); }
.ink-panel .block-head .num { color: var(--fg-on-ink-3); }
.ink-panel .eyebrow { color: var(--fg-on-ink-3); }

/* mobile: collapse sidebar into a horizontal scroller */
@media (max-width: 900px){
  .app { display: block; }
  .sidebar { position: sticky; top: 0; z-index: 40; height: auto; width: 100%; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--border-1); }
  .sidebar-head { border-bottom: 0; border-right: 1px solid var(--border-1); flex-shrink: 0; }
  .sidebar-nav { display: flex; flex-direction: row; gap: 4px; padding: 10px; overflow-x: auto; }
  .nav-group, .sidebar-foot { display: none; }
  .nav-item .label-long { display: none; }
}

/* ---- Token explorer (premium: real, exportable tokens) ---- */
.tok-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.25rem; }
.tok-tab { font-family: var(--font-mono); font-size: var(--fs-xs); padding: .5rem .9rem; border-radius: var(--r-pill); border: 1px solid var(--border-2); background: var(--bg-surface); color: var(--fg-3); cursor: pointer; transition: all var(--t-fast); white-space: nowrap; }
.tok-tab:hover { border-color: var(--fg-3); color: var(--fg-1); }
.tok-tab.active { background: var(--ink); color: #fff; border-color: var(--fg-1); }
.tok-tab.export { margin-left: auto; background: var(--coral-soft); color: var(--coral-deep); border-color: transparent; font-weight: var(--fw-semibold); }
.tok-tab.export:hover { background: var(--coral); color: #fff; }

.token-grid { background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-xs); }
.token-cat { padding: .55rem 1.1rem; background: var(--neutral-50); font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-4); border-bottom: 1px solid var(--border-1); }
.token-row { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 1rem; align-items: center; padding: .62rem 1.1rem; border-bottom: 1px solid var(--border-1); cursor: pointer; transition: background var(--t-fast); }
.token-row:last-child { border-bottom: 0; }
.token-row:hover { background: var(--neutral-50); }
.token-row .tk { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--violet-deep); }
.token-row .tv { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--fg-2); display: flex; align-items: center; gap: .6rem; }
.token-row .sw { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(0,0,0,.08); flex-shrink: 0; }
.token-row .cp { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--fg-4); opacity: 0; transition: opacity var(--t-fast); justify-self: end; }
.token-row:hover .cp { opacity: 1; }
.code-block { background: var(--ink); color: #d7dbe0; border-radius: var(--r-lg); padding: 1.3rem 1.5rem; font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1.75; overflow-x: auto; white-space: pre; margin-top: 1.25rem; }
.code-block .ck { color: #c0a3ff; } .code-block .cv { color: #7fd6ff; } .code-block .cc { color: #6b7882; }

/* light principle cards (replaces dark-on-dark) */
.pcard { background: var(--bg-surface); border: 1px solid var(--border-1); border-radius: var(--r-xl); padding: var(--s-6); transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.pcard .badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); margin-bottom: 1rem; font-weight: var(--fw-black); color: #fff; }
.pcard h4 { font-size: var(--fs-xl); font-weight: var(--fw-bold); }
.pcard p { font-size: var(--fs-base); color: var(--fg-3); margin-top: .5rem; line-height: 1.55; }

/* utility */
.stack-sm > * + * { margin-top: .9rem; }
.mt-1{margin-top:.5rem;} .mt-2{margin-top:1rem;} .mt-4{margin-top:2rem;}
.muted { color: var(--fg-3); }
.center { text-align:center; }
.reveal { opacity:0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1;transform:none;} .fb{animation:none;opacity:1;} * { scroll-behavior:auto; } }
