/* Chew Network — affiliate site, back office and admin.
   Mobile-first. Clean white surfaces, Chew green as the primary brand color,
   orange reserved for major action buttons. */

:root {
  --green-950: #082d1a;
  --green-900: #0b3d23;
  --green-800: #0e4d2c;
  --green-700: #13633a;
  --green-600: #1a7a48;
  --green-200: #c7e3cf;
  --green-100: #e3f1e7;
  --green-50: #f2f8f4;
  --orange-500: #f58220;
  --orange-600: #e8700c;
  --orange-700: #a94c07;
  --orange-100: #ffe3cc;
  --orange-50: #fff4ea;
  --ink: #16201b;
  --ink-2: #36423c;
  --muted: #5f6b65;
  --line: #e3e8e5;
  --line-2: #cfd8d3;
  --bg: #ffffff;
  --bg-soft: #f6f8f7;
  --red: #b42318;
  --red-50: #fef3f2;
  --blue: #175cd3;
  --blue-50: #eff5ff;
  --purple: #6941c6;
  --purple-50: #f4f1fd;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 20, 0.05), 0 1px 3px rgba(16, 24, 20, 0.07);
  --shadow: 0 12px 32px -12px rgba(16, 24, 20, 0.18), 0 2px 6px rgba(16, 24, 20, 0.05);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --header-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--green-700); text-underline-offset: 2px; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.6rem; font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--bg-soft); padding: 0.1em 0.35em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--green-800); color: #fff; padding: 0.5rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { font-size: 0.8rem; color: var(--muted); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }
.ico-fill { width: 1.5em; height: 1.5em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.6rem 1.15rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-cta { background: var(--orange-500); color: #1d1206; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), inset 0 -2px 0 rgba(0, 0, 0, 0.08); letter-spacing: 0.02em; }
.btn-cta:hover { background: var(--orange-600); color: #1d1206; }
.btn-green { background: var(--green-800); color: #fff; }
.btn-green:hover { background: var(--green-900); color: #fff; }
.btn-outline { background: #fff; color: var(--green-800); border-color: var(--green-800); }
.btn-outline:hover { background: var(--green-50); color: var(--green-900); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { border-color: var(--green-700); color: var(--green-800); }
.btn-ghost { background: transparent; color: var(--green-800); }
.btn-ghost:hover { background: var(--green-50); }
.btn-danger { background: #fff; color: var(--red); border-color: #f0c2bd; }
.btn-danger:hover { background: var(--red-50); }
.btn-xl { min-height: 58px; padding: 0 1.9rem; font-size: 1.1rem; }
.btn-lg { min-height: 52px; padding: 0 1.5rem; font-size: 1.02rem; }
.btn-sm { min-height: 36px; padding: 0.35rem 0.85rem; font-size: 0.85rem; }
.btn-xs { min-height: 30px; padding: 0.2rem 0.65rem; font-size: 0.8rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; pointer-events: none; }
.btn .ico { width: 1.1em; height: 1.1em; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--green-700); text-decoration: underline; cursor: pointer; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header-bar { display: flex; align-items: center; gap: 0.5rem; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--green-800); flex: none; }
.logo img { width: 34px; height: 34px; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word b { font-size: 1.2rem; font-weight: 900; letter-spacing: 0.04em; }
.logo-word span { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.32em; color: var(--muted); margin-top: 3px; }
.logo-custom { height: 36px; width: auto; }
.main-nav { display: none; }
.header-search { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; }
.header-actions .btn-signin { display: none; }
.header-actions .btn-cta { min-height: 42px; padding: 0 1rem; font-size: 0.9rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--bg-soft); color: var(--green-800); }
.icon-btn .ico { width: 22px; height: 22px; }

.mobile-menu { position: static; }
.mobile-menu > summary { list-style: none; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu[open] > summary .i-open, .mobile-menu:not([open]) > summary .i-close { display: none; }
.mobile-nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 0.5rem 16px 1.25rem; display: grid; gap: 0.15rem;
}
.mobile-nav a:not(.btn) { display: flex; align-items: center; justify-content: space-between; padding: 0.95rem 0.25rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.mobile-nav .btn { margin-top: 0.9rem; }
.mobile-nav form { margin: 0.75rem 0 0.25rem; }

/* ---------- Search ---------- */
.search-field { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #fff; }
.search-field:focus-within { border-color: var(--green-700); box-shadow: 0 0 0 3px var(--green-100); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 1rem; font: inherit; font-size: 16px; min-height: 44px; background: transparent; }
.search-field button { border: 0; background: var(--green-800); color: #fff; padding: 0 1rem; cursor: pointer; display: inline-flex; align-items: center; }
.search-field button:hover { background: var(--green-900); }

/* ---------- Eyebrows, titles, sections ---------- */
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-700); background: var(--green-100); padding: 0.35rem 0.7rem; border-radius: 999px; margin-bottom: 1rem; }
.eyebrow-orange { color: var(--orange-700); background: var(--orange-50); }
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.display { font-size: 2.2rem; font-weight: 900; letter-spacing: -0.02em; color: var(--green-800); text-transform: uppercase; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.page-hero { background: linear-gradient(180deg, var(--green-50), #fff); border-bottom: 1px solid var(--line); padding: 40px 0 32px; }
.page-hero h1 { font-size: 2rem; color: var(--green-800); }
.page-hero p { color: var(--ink-2); font-size: 1.08rem; max-width: 760px; }

/* ---------- Hero ---------- */
.hero { padding: 24px 0 40px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-title { font-size: 1.95rem; font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; text-transform: uppercase; color: var(--green-800); margin-bottom: 0.7rem; }
.free-line { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; font-weight: 800; letter-spacing: 0.06em; font-size: 0.86rem; color: var(--orange-700); margin: 0 0 0.9rem; text-transform: uppercase; }
.free-line .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange-500); }
.hero-sub { font-size: 1.05rem; color: var(--ink-2); max-width: 540px; margin-bottom: 0.9rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.45rem; }
.checklist li { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 600; }
.check { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; }
.check .ico { width: 15px; height: 15px; stroke-width: 3; }
.hero-cta { display: grid; gap: 0.75rem; justify-items: start; }
.hero-cta .btn-xl { width: 100%; }
.hero-signin { margin: 0; color: var(--muted); font-size: 0.95rem; }
.hero-signin a { font-weight: 700; }
.hero-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.hero-photo { position: absolute; inset: 0 0 60px 0; width: 100%; height: calc(100% - 60px); object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.hero-visual .phone { position: relative; z-index: 2; margin-top: 10px; }
.hero-visual .store-badges { position: relative; z-index: 3; margin-top: 16px; justify-content: center; }
.hero-visual-inner { display: grid; justify-items: center; position: relative; z-index: 2; }

/* ---------- Phone mockup ---------- */
.phone { width: 200px; aspect-ratio: 9 / 18.5; border-radius: 34px; background: #0d0f0e; padding: 8px; box-shadow: 0 30px 60px -20px rgba(8, 45, 26, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset; position: relative; }
.phone-lg { width: 250px; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 27px; overflow: hidden; background: #222; }
.phone-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 64px; height: 18px; background: #0d0f0e; border-radius: 999px; z-index: 3; }
.phone-status { position: absolute; top: 40px; left: 0; right: 0; display: flex; justify-content: center; z-index: 2; }
.phone-status span { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em; color: #fff; background: rgba(0, 0, 0, 0.4); padding: 0.25rem 0.55rem; border-radius: 999px; backdrop-filter: blur(4px); }
.scan-frame { position: absolute; left: 16%; right: 16%; top: 26%; height: 30%; z-index: 2; }
.scan-frame i { position: absolute; width: 22px; height: 22px; border: 3px solid #fff; }
.scan-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.scan-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.scan-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.scan-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.phone-card { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; background: #fff; border-radius: 18px; padding: 0.7rem 0.75rem; display: grid; gap: 0.15rem; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.phone-card strong { font-size: 0.85rem; line-height: 1.2; }
.phone-card .muted { font-size: 0.68rem; }
.phone-card .chip { justify-self: start; font-size: 0.6rem; font-weight: 800; color: var(--green-700); background: var(--green-100); border-radius: 999px; padding: 0.15rem 0.45rem; }
.phone-play { margin-top: 0.3rem; display: flex; align-items: center; justify-content: center; gap: 0.3rem; background: var(--green-800); color: #fff; font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 0.4rem; }

/* ---------- Store badges ---------- */
.store-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 50px; padding: 0.4rem 1rem 0.4rem 0.8rem; background: #0b0b0b; color: #fff; border-radius: 12px; text-decoration: none; border: 1px solid #333; }
.store-badge:hover { background: #222; color: #fff; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.05; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.store-badge small { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.02em; }
.store-badge .ico-fill { width: 26px; height: 26px; }

/* ---------- Benefit strip ---------- */
.benefits { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.benefit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.benefit { display: flex; gap: 0.7rem; align-items: center; padding: 1rem 0.5rem; }
.benefit + .benefit { border-left: 0; }
.benefit strong { display: block; color: var(--green-800); font-size: 0.95rem; line-height: 1.2; }
.benefit span.sub { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.3; }
.benefit-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; }
.benefit-ico .ico { width: 22px; height: 22px; }
.benefit:last-child { grid-column: 1 / -1; justify-content: center; }

/* ---------- See It. Cook It. ---------- */
.seeit { background: linear-gradient(180deg, #fff 0%, var(--green-50) 100%); }
.seeit-grid { display: grid; gap: 32px; align-items: center; }
.seeit-visual { position: relative; display: grid; place-items: center; padding: 20px 0; }
.seeit-visual::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, var(--orange-100), transparent 70%); }
.seeit-visual .phone { z-index: 1; }
.feature-cards { display: grid; gap: 0.75rem; margin: 1.5rem 0; }
.feature-card { display: flex; gap: 0.9rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); }
.feature-card .num { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--green-800); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.feature-card h3 { margin: 0 0 0.15rem; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Category cards (125+ ways) ---------- */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform 0.15s, box-shadow 0.15s; }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.cat-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--bg-soft); }
.cat-card .cat-body { padding: 0.75rem 0.85rem 0.9rem; display: grid; gap: 0.2rem; }
.cat-card h3 { font-size: 0.98rem; margin: 0; display: flex; gap: 0.4rem; align-items: center; }
.cat-card h3 .ico { color: var(--green-700); }
.cat-card p { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.cat-card .cat-meta { font-size: 0.75rem; font-weight: 700; color: var(--green-700); margin-top: 0.25rem; }

/* ---------- Back office preview ---------- */
.op-grid { display: grid; gap: 32px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: 0.7rem; }
.feature-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.feature-list .fi { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--green-50); color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; }
.feature-list strong { display: block; }
.feature-list span.sub { color: var(--muted); font-size: 0.9rem; }
.op-mock { border-radius: 18px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); overflow: hidden; font-size: 0.8rem; }
.op-bar { display: flex; align-items: center; gap: 6px; padding: 0.6rem 0.8rem; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.op-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.op-bar span { margin-left: 0.5rem; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.op-body { display: grid; grid-template-columns: 120px 1fr; min-height: 300px; }
.op-side { background: var(--green-900); color: #cfe6d7; padding: 0.8rem 0.6rem; display: grid; gap: 0.2rem; align-content: start; }
.op-side span { padding: 0.35rem 0.5rem; border-radius: 7px; font-size: 0.72rem; }
.op-side span.on { background: rgba(255, 255, 255, 0.12); color: #fff; font-weight: 700; }
.op-main { padding: 0.9rem; display: grid; gap: 0.7rem; align-content: start; }
.op-card { border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.7rem; }
.op-card b { display: block; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.op-id { font-family: var(--mono); font-weight: 800; color: var(--green-800); font-size: 0.95rem; }
.op-row { display: grid; grid-template-columns: 1fr 64px; gap: 0.7rem; align-items: center; }
.op-qr { width: 64px; height: 64px; border-radius: 8px; background: repeating-conic-gradient(var(--green-800) 0 25%, #fff 0 50%) 0 0 / 12px 12px; border: 4px solid #fff; outline: 1px solid var(--line); }
.op-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.op-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.op-link { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-2); background: var(--bg-soft); border-radius: 6px; padding: 0.3rem 0.45rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.op-progress i { display: block; height: 100%; width: 35%; background: var(--green-600); }

/* ---------- How it works ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: step; }
.step { position: relative; display: flex; gap: 0.9rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.step-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--orange-50); color: var(--orange-700); font-weight: 900; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--orange-100); }
.step h3 { margin: 0 0 0.15rem; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-800); }
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.step-arrow { display: none; }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--green-800); color: #fff; padding: 56px 0; text-align: center; position: relative; overflow: hidden; }
.final-cta::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(245, 130, 32, 0.16); }
.final-cta h2 { color: #fff; font-size: 1.9rem; }
.final-cta p { color: #d4ebdc; font-size: 1.08rem; max-width: 620px; margin: 0 auto 1.5rem; }
.final-cta .fine { color: #a9d0b7; margin-top: 1rem; }
.final-cta .wrap { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #b8d3c2; padding: 40px 0 24px; font-size: 0.92rem; }
.site-footer a { color: #e4f1e8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo-word span { color: #9cc3aa; }
.footer-brand p { margin: 0.75rem 0 0; max-width: 340px; }
.footer-col h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; align-items: center; }
.footer-legal .sep { color: #5f8a6f; }
.footer-fine { margin-top: 1rem; font-size: 0.78rem; color: #8fb39c; }

/* ---------- Cards, panels, badges ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.card-tight { padding: 1rem; }
.card h2, .card h3 { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.1rem; }
.panel-green { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius); padding: 1rem 1.2rem; }
.panel-orange { background: var(--orange-50); border: 1px solid var(--orange-100); border-radius: var(--radius); padding: 1rem 1.2rem; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.grid-4 { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }

.badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; padding: 0.22rem 0.55rem; border-radius: 999px; white-space: nowrap; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); line-height: 1.3; }
.badge-live { background: var(--green-100); color: var(--green-800); border-color: var(--green-200); }
.badge-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); }
.badge-soon { background: var(--orange-50); color: var(--orange-700); border-color: var(--orange-100); }
.badge-dev { background: var(--blue-50); color: var(--blue); border-color: #d1e0ff; }
.badge-partner { background: var(--purple-50); color: var(--purple); border-color: #e4dcfb; }
.badge-new { background: var(--orange-50); color: var(--orange-700); border-color: var(--orange-100); }
.badge-viewed { background: var(--blue-50); color: var(--blue); border-color: #d1e0ff; }
.badge-used { background: var(--green-100); color: var(--green-800); border-color: var(--green-200); }
.badge-red { background: var(--red-50); color: var(--red); border-color: #fcd5d0; }
.badge-grey { background: var(--bg-soft); color: var(--muted); }
.chip-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }

/* Filter pills (categories across the top) */
.pills { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0 0.75rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 0.9rem; text-decoration: none; white-space: nowrap; }
.pill:hover { border-color: var(--green-700); color: var(--green-800); }
.pill.on { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.pill .count { font-size: 0.75rem; opacity: 0.75; font-weight: 700; }

/* ---------- Alerts / flash ---------- */
.flash-wrap { padding-top: 16px; }
.alert { display: flex; gap: 0.6rem; align-items: flex-start; border-radius: 12px; padding: 0.8rem 1rem; margin-bottom: 0.75rem; border: 1px solid; font-weight: 500; }
.alert .ico { margin-top: 2px; }
.alert-success { background: var(--green-50); border-color: var(--green-200); color: var(--green-900); }
.alert-error { background: var(--red-50); border-color: #fcd5d0; color: #7a1a12; }
.alert-info { background: var(--blue-50); border-color: #d1e0ff; color: #133b86; }
.alert-warn { background: var(--orange-50); border-color: var(--orange-100); color: #6b3205; }
.alert p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem; min-width: 0; }
.field > label, .label { font-weight: 700; font-size: 0.9rem; color: var(--ink-2); }
.field .hint { font-size: 0.8rem; color: var(--muted); margin: 0; }
.field .error, .error-text { font-size: 0.85rem; color: var(--red); font-weight: 600; margin: 0; }
.input, .field input[type='text'], .field input[type='email'], .field input[type='tel'], .field input[type='password'], .field input[type='number'], .field input[type='url'], .field input[type='date'], .field input[type='search'], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.7rem 0.9rem; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); outline: none; transition: border-color 0.15s, box-shadow 0.15s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235f6b65' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field textarea.code { font-family: var(--mono); font-size: 14px; min-height: 360px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px var(--green-100); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.input-sm { min-height: 38px !important; padding: 0.35rem 0.7rem !important; font-size: 14px !important; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 4.5rem; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 38px; padding: 0 0.7rem; border: 0; background: transparent; color: var(--green-700); font-weight: 700; font-size: 0.85rem; cursor: pointer; border-radius: 8px; }
.pw-toggle:hover { background: var(--green-50); }
.check-row { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; font-size: 0.92rem; line-height: 1.45; color: var(--ink-2); }
.check-row input[type='checkbox'], .check-row input[type='radio'] { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--green-700); cursor: pointer; }
.check-group { display: grid; gap: 0.75rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); }
.check-group .group-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin: 0; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
details.disclosure { border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 0 1rem; }
details.disclosure > summary { cursor: pointer; padding: 0.8rem 0; font-weight: 700; color: var(--green-700); font-size: 0.92rem; }
details.disclosure[open] { padding-bottom: 1rem; }
.code-input { font-family: var(--mono) !important; font-size: 1.8rem !important; letter-spacing: 0.45em; text-align: center; font-weight: 700; min-height: 64px !important; }
.inline-form { display: inline; }

/* ---------- Join flow ---------- */
.join-body { background: var(--bg-soft); min-height: 100vh; display: flex; flex-direction: column; }
.join-header { background: #fff; border-bottom: 1px solid var(--line); }
.join-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 1rem; }
.join-header .aside { font-size: 0.88rem; color: var(--muted); }
.join-main { flex: 1; padding: 20px 0 40px; }
.join-card { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem 1.2rem; box-shadow: var(--shadow-sm); }
.join-card-wide { max-width: 760px; }
.join-card h1 { font-size: 1.6rem; color: var(--green-800); margin-bottom: 0.35rem; }
.join-card .sub { color: var(--muted); margin-bottom: 1.25rem; }
.join-footer { text-align: center; padding: 1.5rem 16px 2rem; font-size: 0.8rem; color: var(--muted); }
.join-footer a { color: var(--muted); }
.stepper { max-width: 560px; margin: 0 auto 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; padding: 0; }
.join-card-wide + .stepper, .stepper.wide { max-width: 760px; }
.stepper li { display: grid; gap: 6px; font-size: 0.72rem; font-weight: 700; color: var(--muted); text-align: center; }
.stepper li::before { content: ''; height: 5px; border-radius: 99px; background: var(--line-2); }
.stepper li.done { color: var(--green-700); }
.stepper li.done::before { background: var(--green-600); }
.stepper li.current { color: var(--ink); }
.stepper li.current::before { background: var(--orange-500); }
.sponsor-note { display: flex; gap: 0.7rem; align-items: center; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 12px; padding: 0.75rem 0.9rem; font-size: 0.92rem; margin-bottom: 1rem; }
.sponsor-note .ico { color: var(--green-700); }
.free-note { display: flex; gap: 0.5rem; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--muted); margin: 0.25rem 0 0; }
.free-note .ico { color: var(--green-700); }
.agreement-box { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; background: var(--bg-soft); font-size: 0.9rem; }
.agreement-box h2 { font-size: 1rem; margin-top: 1rem; }
.agreement-box blockquote { margin: 0 0 1rem; padding: 0.5rem 0.8rem; background: var(--orange-50); border-left: 3px solid var(--orange-500); border-radius: 6px; font-size: 0.85rem; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; margin: 0 auto 0.75rem; }
.success-mark .ico { width: 34px; height: 34px; stroke-width: 2.6; }
.id-display { text-align: center; background: var(--green-800); color: #fff; border-radius: 16px; padding: 1.1rem; margin: 1rem 0; }
.id-display small { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #bfe0ca; font-weight: 700; }
.id-display strong { display: block; font-family: var(--mono); font-size: 1.9rem; letter-spacing: 0.08em; margin-top: 0.2rem; }
.flow-steps { display: grid; gap: 0.75rem; margin: 1.25rem 0; }
.flow-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0.75rem; align-items: start; border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem; }
.flow-step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--orange-50); color: var(--orange-700); font-weight: 900; display: grid; place-items: center; }
.flow-step h3 { margin: 0.35rem 0 0.4rem; font-size: 1rem; }
.flow-step p { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.9rem; }

/* Copy field */
.copy-field { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.copy-field input, .copy-field .value { flex: 1; min-width: 0; border: 0; padding: 0 0.8rem; font-family: var(--mono); font-size: 14px; color: var(--ink); background: transparent; min-height: 48px; outline: none; display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-field .btn { border-radius: 0; min-height: 48px; }
.qr-box { width: 160px; height: 160px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; flex: none; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-sm { width: 120px; height: 120px; }

/* ---------- Ways page ---------- */
.status-legend { display: grid; gap: 0.6rem; grid-template-columns: 1fr; margin: 1.25rem 0 0; }
.legend-item { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--ink-2); }
.legend-item .badge { flex: none; }
.available-box { border: 2px solid var(--green-200); background: var(--green-50); border-radius: 20px; padding: 1.2rem; margin-bottom: 2rem; }
.available-box h2 { color: var(--green-800); font-size: 1.3rem; display: flex; align-items: center; gap: 0.5rem; }
.path-list { display: grid; gap: 10px; }
.path-item { display: flex; gap: 0.8rem; align-items: flex-start; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem; }
.path-item h3 { font-size: 1rem; margin: 0 0 0.15rem; }
.path-item p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.path-item.is-live { border-color: var(--green-200); box-shadow: inset 4px 0 0 var(--green-600); }
.path-item.is-muted h3 { color: var(--ink-2); }
.path-item .path-cat { font-size: 0.72rem; font-weight: 700; color: var(--green-700); text-transform: uppercase; letter-spacing: 0.06em; }
.cat-section { margin-top: 2rem; scroll-margin-top: 80px; }
.cat-section-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
.cat-section-head img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.cat-section-head h2 { margin: 0; font-size: 1.3rem; }
.cat-section-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.notice { font-size: 0.85rem; color: var(--ink-2); background: var(--orange-50); border: 1px solid var(--orange-100); border-radius: 12px; padding: 0.8rem 1rem; }

/* ---------- Prose (legal, lessons) ---------- */
.prose { max-width: 760px; font-size: 1.02rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; color: var(--green-800); }
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0.35rem 0; }
.prose blockquote { margin: 0 0 1.5rem; padding: 0.8rem 1rem; background: var(--orange-50); border-left: 4px solid var(--orange-500); border-radius: 8px; color: #6b3205; font-size: 0.92rem; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq + .faq { margin-top: 8px; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 1.1rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--green-700); font-weight: 400; }
.faq[open] summary::after { content: '–'; }
.faq .faq-a { padding: 0 1.1rem 1rem; color: var(--ink-2); }

/* Resource list */
.res-list { display: grid; gap: 10px; }
.res-item { display: flex; gap: 0.9rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); }
.res-item:hover { border-color: var(--green-200); background: var(--green-50); color: var(--ink); }
.res-item .ri { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; }
.res-item strong { display: block; }
.res-item span.sub { color: var(--muted); font-size: 0.88rem; }
.res-item .go { margin-left: auto; color: var(--muted); }

/* Search results */
.result-group { margin-top: 1.75rem; }
.result-group h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* Empty states */
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: #fff; }
.empty .ico { width: 34px; height: 34px; color: var(--green-600); margin-bottom: 0.5rem; }
.empty h3 { color: var(--ink); margin-bottom: 0.3rem; }
.empty p { margin: 0 auto 1rem; max-width: 420px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 800; background: var(--bg-soft); padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbfcfb; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; display: block; background: var(--bg-soft); }
.table a { font-weight: 600; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions > * { margin-left: 0.25rem; }
.table-empty { text-align: center; color: var(--muted); padding: 2rem 1rem !important; }
.pager { display: flex; gap: 0.5rem; align-items: center; justify-content: center; margin: 1rem 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- Stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem; }
.stat .label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.stat .value { display: block; font-size: 1.6rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 0.25rem; }
.stat .meta { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }

/* Bar chart (server-rendered SVG) */
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--green-600); }
.chart .hit { fill: transparent; }
.chart .bar-g { outline: none; cursor: default; }
.chart .bar-g:hover .bar, .chart .bar-g:focus .bar { fill: var(--green-800); }
.chart .bar-g:focus .hit { fill: var(--green-50); }
.chart .baseline { stroke: var(--line-2); stroke-width: 1; }
.chart-tip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 0.35rem 0.6rem; border-radius: 8px; box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; }
.chart-table { margin-top: 0.5rem; font-size: 0.85rem; }
.chart-table summary { cursor: pointer; color: var(--green-700); font-weight: 600; padding: 0.3rem 0; }
.chart-table .table-wrap { max-height: 260px; overflow-y: auto; margin-top: 0.5rem; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.chart-empty { display: grid; place-items: center; height: 180px; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: 12px; font-size: 0.92rem; text-align: center; padding: 1rem; }
.hbar { display: grid; gap: 0.55rem; }
.hbar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 0.75rem; font-size: 0.88rem; align-items: center; }
.hbar-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-row .val { font-variant-numeric: tabular-nums; font-weight: 700; }
.hbar-row .track { grid-column: 1 / -1; height: 8px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.hbar-row .track i { display: block; height: 100%; background: var(--green-600); border-radius: 99px; }
.funnel { display: grid; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: center; padding: 0.65rem 0.8rem; border-radius: 10px; background: var(--bg-soft); font-size: 0.92rem; }
.funnel-row strong { font-variant-numeric: tabular-nums; }
.progress { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green-600); border-radius: 99px; }

/* ---------- Back office ---------- */
.office-body { background: var(--bg-soft); }
.office-top { position: sticky; top: 0; z-index: 40; background: var(--green-900); color: #fff; }
.office-top .bar { display: flex; align-items: center; gap: 0.5rem; height: 58px; }
.office-top .logo { color: #fff; }
.office-top .logo-word span { color: #9cc3aa; }
.office-top .logo img { width: 30px; height: 30px; }
.office-top .tools { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.office-top a:not(.btn), .office-top button.icon-btn { color: #dcefe3; }
.office-top .icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.aff-chip { display: none; align-items: center; gap: 0.4rem; font-family: var(--mono); font-size: 0.82rem; font-weight: 700; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); padding: 0.3rem 0.7rem; border-radius: 999px; color: #fff; }
.office-nav { position: sticky; top: 58px; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.office-nav ul { list-style: none; margin: 0; padding: 0 8px; display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.office-nav ul::-webkit-scrollbar { display: none; }
.office-nav a { display: flex; align-items: center; gap: 0.45rem; padding: 0 0.8rem; min-height: 50px; white-space: nowrap; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 0.9rem; border-bottom: 3px solid transparent; }
.office-nav a:hover { color: var(--green-800); }
.office-nav a.on { color: var(--green-800); border-bottom-color: var(--orange-500); }
.office-nav .ico { width: 18px; height: 18px; }
.office-main { padding: 20px 0 48px; }
.office-main > .wrap > h1, .page-title { font-size: 1.5rem; margin-bottom: 0.25rem; }
.page-intro { color: var(--muted); margin-bottom: 1.25rem; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.id-card { background: linear-gradient(135deg, var(--green-800), var(--green-900)); color: #fff; border: 0; }
.id-card .label-sm { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a9d0b7; font-weight: 800; }
.id-card .big-id { font-family: var(--mono); font-size: 1.8rem; font-weight: 800; letter-spacing: 0.06em; margin: 0.15rem 0 0.9rem; }
.id-card .copy-field { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); }
.id-card .copy-field input { color: #fff; }
.id-card .btn-light { background: #fff; }
.id-card-inner { display: grid; gap: 1rem; }
.id-card .qr-box { border: 0; }
.t3-grid { display: grid; gap: 12px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.asset { container-type: inline-size; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.asset-thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.asset-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-thumb .badge { position: absolute; top: 10px; left: 10px; }
.asset-thumb .media-type { position: absolute; bottom: 10px; right: 10px; background: rgba(0, 0, 0, 0.6); color: #fff; border: 0; }
.asset-thumb .rank { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--orange-500); color: #1d1206; font-weight: 900; display: grid; place-items: center; font-size: 0.9rem; }
.asset-body { padding: 0.8rem 0.9rem 0.4rem; display: grid; gap: 0.45rem; flex: 1; align-content: start; }
.asset-body h3 { font-size: 1rem; margin: 0; }
.asset-body h3 a { color: var(--ink); text-decoration: none; }
.asset-meta { font-size: 0.78rem; color: var(--muted); }
.asset-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0.6rem 0.9rem 0.9rem; }
.asset-actions .btn { min-height: 42px; font-size: 0.82rem; padding: 0.3rem 0.4rem; width: 100%; white-space: normal; text-align: center; line-height: 1.15; }
@container (max-width: 250px) { .asset-actions .btn .ico { display: none; } .asset-actions .btn { font-size: 0.78rem; } }
.asset-actions form { margin: 0; }
.t3-banner { background: linear-gradient(135deg, #fff7ef, #fff); border: 1px solid var(--orange-100); border-radius: 20px; padding: 1.1rem; margin-bottom: 1.5rem; }
.t3-banner h2 { display: flex; gap: 0.4rem; align-items: center; font-size: 1.15rem; margin-bottom: 0.2rem; }
.t3-banner h2 .ico { color: var(--orange-600); }
.t3-banner > p { color: var(--muted); margin-bottom: 1rem; font-size: 0.9rem; }
.kitchen-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.25rem; align-items: center; }
.kitchen-hero { display: grid; gap: 0.25rem; margin-bottom: 1rem; }
.kitchen-hero .tagline { font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-700); font-size: 0.85rem; margin: 0; }
.asset-preview { display: grid; gap: 20px; }
.asset-media { border-radius: var(--radius); overflow: hidden; background: #000; }
.asset-media img, .asset-media video { width: 100%; display: block; max-height: 70vh; object-fit: contain; background: #111; }
.caption-box { white-space: pre-wrap; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; font-size: 0.95rem; }
textarea.caption-box { width: 100%; min-height: 140px; font: inherit; resize: vertical; }
.activation-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.activation-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0.7rem; align-items: center; padding: 0.7rem 0.8rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.activation-steps .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--muted); font-weight: 800; font-size: 0.85rem; border: 1.5px solid var(--line-2); }
.activation-steps li.done .dot { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.activation-steps li.done { background: var(--green-50); border-color: var(--green-100); }
.activation-steps strong { display: block; font-size: 0.95rem; }
.activation-steps span.sub { display: block; font-size: 0.8rem; color: var(--muted); }
.link-code { font-family: var(--mono); font-size: 2rem; font-weight: 800; letter-spacing: 0.25em; text-align: center; color: var(--green-800); background: var(--green-50); border: 2px dashed var(--green-200); border-radius: 14px; padding: 0.8rem; }
.announce { display: grid; gap: 0.2rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.announce:last-child { border-bottom: 0; padding-bottom: 0; }
.announce:first-child { padding-top: 0; }
.announce strong { display: flex; gap: 0.4rem; align-items: center; }
.announce p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li + li { border-top: 1px solid var(--line); }
.lesson-list a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; padding: 0.75rem 0.25rem; text-decoration: none; color: var(--ink); }
.lesson-list a:hover { background: var(--green-50); }
.lesson-list .tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: #fff; }
.lesson-list .done .tick { background: var(--green-600); border-color: var(--green-600); }
.lesson-list .tick .ico { width: 14px; height: 14px; stroke-width: 3; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 1.25rem; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 0.75rem 1.1rem; border-radius: 12px; font-weight: 600; font-size: 0.92rem; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 100; max-width: calc(100vw - 32px); box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Admin ---------- */
.admin-body { background: var(--bg-soft); }
.admin-top { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.admin-top .bar { display: flex; align-items: center; gap: 0.6rem; height: 58px; }
.admin-top .role-chip { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: var(--orange-50); color: var(--orange-700); border: 1px solid var(--orange-100); padding: 0.2rem 0.55rem; border-radius: 999px; }
.admin-top .tools { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.admin-shell { display: block; }
.admin-side { background: #fff; border-bottom: 1px solid var(--line); }
.admin-menu-toggle { display: flex; width: 100%; align-items: center; gap: 0.5rem; padding: 0.8rem 16px; font: inherit; font-weight: 700; background: none; border: 0; cursor: pointer; color: var(--ink); min-height: 48px; }
html.js .admin-side nav { display: none; }
html.js .admin-side.open nav { display: block; }
.admin-side nav { padding: 0 8px 12px; }
.admin-side h4 { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 1rem 0.6rem 0.35rem; }
.admin-side a { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.6rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 0.9rem; }
.admin-side a:hover { background: var(--bg-soft); color: var(--green-800); }
.admin-side a.on { background: var(--green-50); color: var(--green-800); }
.admin-side .ico { width: 18px; height: 18px; color: var(--muted); }
.admin-side a.on .ico { color: var(--green-700); }
.admin-side .count { margin-left: auto; background: var(--orange-500); color: #1d1206; font-size: 0.7rem; font-weight: 800; padding: 0 0.45rem; border-radius: 99px; }
.admin-main { padding: 20px 16px 48px; min-width: 0; }
.admin-main h1 { font-size: 1.45rem; margin-bottom: 0.25rem; }
.toolbar { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: flex-end; margin: 1rem 0; }
.toolbar .field { min-width: 150px; }
.toolbar .field input, .toolbar .field select { min-height: 42px; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.toolbar .btn { min-height: 42px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1rem; margin: 0; font-size: 0.92rem; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.perm-table td:first-child { font-weight: 600; }
.perm-yes { color: var(--green-700); font-weight: 800; }
.perm-no { color: var(--line-2); }
.key-reveal { font-family: var(--mono); background: var(--ink); color: #9ff0bf; padding: 0.9rem 1rem; border-radius: 12px; overflow-wrap: anywhere; font-size: 0.95rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.timeline li { border-left: 3px solid var(--green-200); padding: 0.1rem 0 0.1rem 0.8rem; font-size: 0.9rem; }
.timeline li .meta { color: var(--muted); font-size: 0.78rem; }
.timeline li p { white-space: pre-wrap; margin: 0.2rem 0 0; }
.settings-group { scroll-margin-top: 80px; }
.status-select { min-height: 34px; padding: 0.2rem 1.8rem 0.2rem 0.5rem; font: inherit; font-size: 0.82rem; border: 1.5px solid var(--line-2); border-radius: 8px; background: #fff; }

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .hero-cta .btn-xl { width: auto; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-legend { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: repeat(3, 1fr); }
  .join-card { padding: 2rem; }
  .id-card-inner { grid-template-columns: 1fr auto; align-items: center; }
  .t3-grid { grid-template-columns: repeat(3, 1fr); }
  .aff-chip { display: inline-flex; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 760px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }
  .section { padding: 80px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-title { font-size: 2.9rem; }
  .benefit-row { grid-template-columns: repeat(5, 1fr); }
  .benefit { flex-direction: column; text-align: center; padding: 1.25rem 0.5rem; }
  .benefit + .benefit { border-left: 1px solid var(--line); }
  .benefit:last-child { grid-column: auto; }
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .feature-cards { grid-template-columns: repeat(3, 1fr); }
  .feature-card { flex-direction: column; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .display { font-size: 3rem; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-hero { padding: 56px 0 44px; }
  .page-hero h1 { font-size: 2.6rem; }
  .steps { grid-template-columns: repeat(6, 1fr); gap: 0; }
  .step { flex-direction: column; align-items: center; text-align: center; border: 0; background: transparent; padding: 0 0.5rem; }
  .step-arrow { display: block; position: absolute; top: 12px; right: -12px; color: var(--line-2); }
  .step-arrow .ico { width: 22px; height: 22px; }
  .asset-preview { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .kitchen-filters { grid-template-columns: minmax(0, 1fr) 260px; gap: 1rem; }
  .join-main { padding: 40px 0 56px; }
  .phone { width: 230px; }
  .phone-lg { width: 280px; }
  .final-cta h2 { font-size: 2.4rem; }
}

@media (min-width: 1000px) {
  .main-nav { display: flex; gap: 0.1rem; margin-left: 1rem; }
  .main-nav a { padding: 0.5rem 0.65rem; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 0.93rem; white-space: nowrap; }
  .main-nav a:hover { color: var(--green-800); background: var(--green-50); }
  .main-nav a.on { color: var(--green-800); }
  .header-search { display: block; flex: 1; max-width: 280px; margin-left: auto; }
  .header-search .search-field input { min-height: 40px; font-size: 14px; }
  .header-actions { margin-left: 0.5rem; }
  .header-actions .btn-signin { display: inline-flex; min-height: 42px; }
  .mobile-menu, .search-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .hero-title { font-size: 3.35rem; }
  .hero-visual { min-height: 540px; }
  .hero-photo { inset: 0 0 70px 40px; width: calc(100% - 40px); height: calc(100% - 70px); }
  .seeit-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  .op-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .dash-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
  .office-shell { display: grid; grid-template-columns: 232px 1fr; max-width: 1400px; margin: 0 auto; }
  .office-nav { position: sticky; top: 58px; height: calc(100vh - 58px); border-bottom: 0; border-right: 1px solid var(--line); background: #fff; padding: 16px 12px; }
  .office-nav ul { flex-direction: column; overflow: visible; padding: 0; gap: 2px; }
  .office-nav a { min-height: 44px; border-bottom: 0; border-radius: 10px; padding: 0 0.8rem; }
  .office-nav a.on { background: var(--green-50); box-shadow: inset 3px 0 0 var(--orange-500); }
  .office-main { padding: 28px 12px 56px; }
  .admin-shell { display: grid; grid-template-columns: 240px 1fr; }
  .admin-side { position: sticky; top: 58px; height: calc(100vh - 58px); overflow-y: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .admin-menu-toggle { display: none; }
  html.js .admin-side nav { display: block; }
  .admin-main { padding: 28px 32px 56px; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 1.7rem; }
  .header-actions .btn-cta { padding: 0 0.8rem; font-size: 0.85rem; }
  .logo-word b { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .office-top, .office-nav, .admin-top, .admin-side { display: none !important; }
}
