/* ===========================================================================
   SHILA LAB — Stylesheet
   Built on the SHILA Design System tokens (warm off-white, single amber accent,
   Geist / Inter Tight / JetBrains Mono). Re-skin = change the :root block.
   =========================================================================== */

:root {
  /* —— SHILA Design System tokens (verbatim) —— */
  --shila-ink:        #0A0A0A;
  --shila-ink-2:      #262626;
  --shila-ink-3:      #404040;
  --shila-mute:       #525252;
  --shila-mute-2:     #737373;
  --shila-mute-3:     #A3A3A3;
  --shila-hairline:   rgba(10,10,10,0.06);
  --shila-hairline-2: rgba(10,10,10,0.08);
  --shila-hairline-3: rgba(10,10,10,0.12);

  --shila-surface:     #FCFBF8;
  --shila-surface-alt: #FAFAF7;
  --shila-card:        #FFFFFF;
  --shila-dark:        #0A0A0A;
  --shila-dark-card:   #0F0F12;

  --shila-accent:      #F5C518;
  --shila-accent-ink:  #0A0A0A;
  --shila-accent-soft: #FFF4C5;
  --shila-accent-deep: #A07700;
  --shila-accent-tint: rgba(245,197,24,0.12);

  --shila-success:     #16A34A;
  --shila-success-ink: #15803D;
  --shila-success-dot: #22C55E;
  --shila-danger:      #DC2626;
  --shila-orange:      #F97316;
  --shila-lime:        #84CC16;

  --font-display: 'Geist', 'Inter Tight', system-ui, sans-serif;
  --font-body:    'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --font-serif:   'Instrument Serif', Georgia, serif;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
  --radius-xl: 20px; --radius-pill: 999px;

  --shadow-card: 0 12px 24px -10px rgba(10,10,10,0.15);
  --shadow-lift: 0 24px 48px -16px rgba(10,10,10,0.18);
  --shadow-hero: 0 32px 64px -24px rgba(10,10,10,0.25);
  --shadow-glow: 0 12px 28px -10px rgba(245,197,24,0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--shila-surface); color: var(--shila-ink); }
body { font-family: var(--font-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ---------- shared atoms ---------- */
.eyebrow, .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(10,10,10,0.04); border: 1px solid var(--shila-hairline);
  color: var(--shila-mute); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-mono);
}
.pill.dark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); color: #D4D4D4; }
.pill.accent { background: var(--shila-accent); border-color: var(--shila-accent); color: var(--shila-ink); font-weight: 700; }
.pill.success { background: rgba(22,163,74,0.1); border-color: rgba(22,163,74,0.2); color: var(--shila-success-ink); }
.pill.tier-Starter { background: rgba(22,163,74,0.1); border-color: rgba(22,163,74,0.2); color: var(--shila-success-ink); }
.pill.tier-Pro { background: var(--shila-accent-tint); border-color: rgba(245,197,24,0.3); color: var(--shila-accent-deep); }
.pill.tier-Elite { background: rgba(10,10,10,0.9); border-color: var(--shila-ink); color: var(--shila-accent); }

.marker { position: relative; display: inline-block; padding: 0 2px; isolation: isolate; }
.marker::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 4px;
  height: 14px; background: var(--shila-accent); z-index: -1;
  transform: skewX(-6deg); border-radius: 2px;
}
.hl { background: var(--shila-accent-soft); padding: 1px 5px; border-radius: 3px; font-weight: 700; color: var(--shila-ink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 13px 18px 13px 22px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; font-family: var(--font-body); letter-spacing: 0.02em;
  transition: transform .12s ease, box-shadow .12s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--shila-ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 8px 20px -8px rgba(10,10,10,0.4); }
.btn-accent { background: var(--shila-accent); color: var(--shila-ink); font-weight: 700; box-shadow: var(--shadow-glow); }
.btn-secondary { background: #fff; color: var(--shila-ink); border: 1px solid var(--shila-hairline-3); }
.btn-ghost { background: transparent; color: var(--shila-ink); padding: 10px 14px; }
.btn-ghost:hover { background: rgba(10,10,10,0.04); }
.btn .knob { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; flex-shrink: 0; }
.btn-primary .knob { background: var(--shila-accent); }
.btn-accent .knob { background: var(--shila-ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

.logo-s {
  width: 32px; height: 32px; border-radius: 8px; background: var(--shila-accent);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 900;
  color: var(--shila-ink); font-size: 17px; transform: rotate(-4deg); letter-spacing: -0.04em;
  flex-shrink: 0;
}
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }

/* ===================== HEADER ===================== */
.appbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(252,251,248,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--shila-hairline-2);
}
.appbar-inner {
  max-width: 1240px; margin: 0 auto; padding: 12px 28px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand .tag {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--shila-accent-deep); background: var(--shila-accent-tint);
  padding: 3px 6px; border-radius: 5px; font-weight: 700;
}
.appbar .spacer { flex: 1; }

/* progress cluster in header */
.hud { display: flex; align-items: center; gap: 14px; }
.hud-streak {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; color: var(--shila-ink);
  background: #fff; border: 1px solid var(--shila-hairline-2); padding: 6px 11px; border-radius: 999px;
}
.hud-level { min-width: 168px; display: flex; flex-direction: column; gap: 4px; }
.hud-level .row { display: flex; justify-content: space-between; align-items: baseline; }
.hud-level .rank { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--shila-ink-2); }
.hud-level .xp { font-family: var(--font-mono); font-size: 10px; color: var(--shila-mute-2); }
.xpbar { height: 7px; border-radius: 999px; background: rgba(10,10,10,0.07); overflow: hidden; }
.xpbar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--shila-accent), #FFD84D); border-radius: 999px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.lvl-badge {
  width: 30px; height: 30px; border-radius: 999px; background: var(--shila-ink); color: var(--shila-accent);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.avatar-btn {
  width: 36px; height: 36px; border-radius: 999px; border: 2px solid var(--shila-accent);
  background: var(--shila-accent-tint); display: grid; place-items: center; cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--shila-accent-deep);
}

/* ===================== LAYOUT ===================== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.view { display: none; }
.view.active { display: block; animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===================== HERO ===================== */
.hero { position: relative; overflow: hidden; padding: 76px 0 56px; }
.hero-grid::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(10,10,10,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 80%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(40px, 6vw, 76px); line-height: 0.96;
  letter-spacing: -0.04em; margin: 18px 0 0; font-weight: 700; max-width: 880px;
}
.hero p.lead { font-size: 17px; color: var(--shila-mute); max-width: 600px; margin: 18px 0 0; line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.hero-stats .lbl { font-size: 12px; color: var(--shila-mute-2); margin-top: 2px; }
.hero-stats .stat { border-left: 1px solid var(--shila-hairline-2); padding-left: 18px; }
.hero-stats .stat:first-child { border-left: none; padding-left: 0; }

/* ===================== SECTION HEADERS ===================== */
.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(28px,3.5vw,40px); line-height: 1.05; letter-spacing: -0.03em; margin: 12px 0 0; font-weight: 700; }
.section-head p { color: var(--shila-mute); margin: 8px 0 0; max-width: 520px; font-size: 15px; }

/* ===================== CATEGORY GRID ===================== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cat-card {
  background: #fff; border: 1px solid var(--shila-hairline-2); border-radius: var(--radius-lg);
  padding: 24px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--shila-hairline-3); }
.cat-card .cat-ico {
  width: 48px; height: 48px; border-radius: 12px; background: var(--shila-accent-tint);
  border: 1px solid rgba(245,197,24,0.3); display: grid; place-items: center; font-size: 24px;
}
.cat-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.cat-card p { margin: 0; font-size: 13.5px; color: var(--shila-mute); line-height: 1.5; }
.cat-card .cat-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--shila-hairline); display: flex; justify-content: space-between; align-items: center; }
.cat-card .count { font-family: var(--font-mono); font-size: 11px; color: var(--shila-mute-2); letter-spacing: 0.04em; }
.cat-card .done-dot { font-family: var(--font-mono); font-size: 10px; color: var(--shila-success-ink); display: flex; align-items: center; gap: 4px; }

/* ===================== TOOLBAR / FILTERS ===================== */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--shila-hairline-2); border-radius: 999px; padding: 10px 16px;
}
.search input { border: none; outline: none; background: transparent; font-size: 14px; font-family: var(--font-body); flex: 1; color: var(--shila-ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  cursor: pointer; padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: #fff; border: 1px solid var(--shila-hairline-2); color: var(--shila-ink-3); transition: all .12s ease;
  font-family: var(--font-mono); letter-spacing: 0.02em;
}
.chip:hover { border-color: var(--shila-hairline-3); }
.chip.active { background: var(--shila-ink); color: #fff; border-color: var(--shila-ink); }

/* ===================== PROMPT GRID ===================== */
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.prompt-card {
  background: #fff; border: 1px solid var(--shila-hairline-2); border-radius: var(--radius-lg);
  padding: 22px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex; flex-direction: column; gap: 12px; position: relative;
}
.prompt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--shila-hairline-3); }
.prompt-card .pc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.prompt-card .pc-cat { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--shila-mute-2); }
.prompt-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
.prompt-card .pc-teaser { font-size: 13.5px; color: var(--shila-mute); line-height: 1.5; margin: 0; }
.prompt-card .pc-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--shila-hairline); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prompt-card .pc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-tag { font-family: var(--font-mono); font-size: 10px; color: var(--shila-mute-2); background: var(--shila-surface-alt); padding: 3px 7px; border-radius: 5px; }
.pc-xp { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--shila-accent-deep); }
.fav-btn { background: none; border: none; cursor: pointer; font-size: 18px; line-height: 1; padding: 2px; color: var(--shila-mute-3); transition: transform .12s ease; }
.fav-btn:hover { transform: scale(1.15); }
.fav-btn.on { color: var(--shila-accent); }

/* lock overlay corner on cards */
.lock-ribbon {
  position: absolute; top: 14px; right: 14px; font-size: 11px; font-family: var(--font-mono);
  font-weight: 700; color: var(--shila-mute-2); display: flex; align-items: center; gap: 4px;
}
.prompt-card.locked { opacity: 0.92; }
.prompt-card.locked h3, .prompt-card.locked .pc-teaser { filter: none; }

/* empty state */
.empty { text-align: center; padding: 60px 20px; color: var(--shila-mute-2); }
.empty .big { font-size: 40px; }

/* ===================== MODAL ===================== */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(10,10,10,0.45);
  backdrop-filter: blur(3px); display: none; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
}
.overlay.open { display: flex; animation: fadeIn .2s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--shila-surface); border-radius: var(--radius-xl); width: 100%; max-width: 760px;
  box-shadow: var(--shadow-hero); border: 1px solid var(--shila-hairline-2); overflow: hidden;
  animation: popIn .25s cubic-bezier(.2,.9,.3,1.2) both; margin: auto 0;
}
@keyframes popIn { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: none; } }
.modal-sm { max-width: 440px; }
.modal-head { padding: 24px 28px 18px; border-bottom: 1px solid var(--shila-hairline-2); position: relative; }
.modal-head .meta-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.modal-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.025em; margin: 0; line-height: 1.15; }
.modal-head .sub { color: var(--shila-mute); font-size: 14px; margin: 8px 0 0; line-height: 1.5; }
.modal-x { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 999px; background: rgba(10,10,10,0.05); border: none; cursor: pointer; font-size: 18px; color: var(--shila-ink-2); display: grid; place-items: center; }
.modal-x:hover { background: rgba(10,10,10,0.1); }
.modal-body { padding: 22px 28px 26px; }

.deliverable {
  background: var(--shila-accent-tint); border: 1px solid rgba(245,197,24,0.3); border-radius: var(--radius-md);
  padding: 14px 16px; margin-bottom: 18px; font-size: 13.5px; color: var(--shila-ink-2); line-height: 1.5;
}
.deliverable .lbl { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--shila-accent-deep); display: block; margin-bottom: 6px; }

.prompt-box-wrap { position: relative; }
.prompt-box {
  background: var(--shila-dark-card); color: #E5E7EB; border-radius: var(--radius-md);
  padding: 18px 20px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word; max-height: 460px; overflow-y: auto;
}
.prompt-box .ph { color: var(--shila-accent); font-weight: 600; }

/* gated state */
.prompt-box.gated { max-height: 230px; overflow: hidden; }
.gate-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 180px; border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(15,15,18,0) 0%, rgba(15,15,18,0.82) 55%, rgba(15,15,18,0.97) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding-bottom: 22px; text-align: center;
}
.gate-fade .lock-title { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.gate-fade .lock-sub { color: #A3A3A3; font-size: 12.5px; max-width: 320px; }

.modal-foot { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.modal-foot .spacer { flex: 1; }
.copy-state { font-family: var(--font-mono); font-size: 11px; color: var(--shila-success-ink); }

/* level-lock notice (logged in but too low level) */
.levellock {
  background: var(--shila-ink); color: #fff; border-radius: var(--radius-md); padding: 18px 20px;
  display: flex; gap: 14px; align-items: center;
}
.levellock .ico { font-size: 26px; }
.levellock .t { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.levellock .s { font-size: 12.5px; color: #A3A3A3; margin-top: 2px; }

/* ===================== LOGIN MODAL ===================== */
.auth-tabs { display: flex; gap: 6px; background: var(--shila-surface-alt); padding: 4px; border-radius: 999px; margin-bottom: 18px; }
.auth-tabs button { flex: 1; border: none; background: transparent; padding: 9px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--shila-mute); }
.auth-tabs button.active { background: #fff; color: var(--shila-ink); box-shadow: var(--shadow-card); }
.field { margin-bottom: 12px; }
.field label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--shila-mute-2); display: block; margin-bottom: 6px; }
.field input { width: 100%; padding: 12px 14px; border: 1px solid var(--shila-hairline-3); border-radius: var(--radius-md); font-size: 14px; font-family: var(--font-body); outline: none; }
.field input:focus { border-color: var(--shila-accent); box-shadow: 0 0 0 3px var(--shila-accent-tint); }
.auth-err { color: var(--shila-danger); font-size: 12.5px; margin: 4px 0 12px; min-height: 16px; }
.google-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px;
  border: 1px solid var(--shila-hairline-3); border-radius: var(--radius-md); background: #fff; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--shila-ink); transition: background .12s ease;
}
.google-btn:hover { background: var(--shila-surface-alt); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--shila-mute-3); font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.1em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--shila-hairline-2); }
.demo-note { font-size: 11px; color: var(--shila-mute-2); text-align: center; margin-top: 14px; line-height: 1.5; }

/* ===================== PROFILE ===================== */
.profile-hero { background: var(--shila-dark); color: #fff; border-radius: var(--radius-xl); padding: 32px; margin-bottom: 24px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.profile-hero .pa { width: 72px; height: 72px; border-radius: 999px; border: 3px solid var(--shila-accent); background: var(--shila-accent-tint); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--shila-accent); }
.profile-hero .pname { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.profile-hero .prank { font-family: var(--font-mono); font-size: 12px; color: var(--shila-accent); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.profile-hero .pbar-wrap { flex: 1; min-width: 240px; }
.profile-hero .pbar-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: #A3A3A3; margin-bottom: 6px; }
.profile-hero .xpbar { background: rgba(255,255,255,0.12); height: 9px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card { background: #fff; border: 1px solid var(--shila-hairline-2); border-radius: var(--radius-lg); padding: 18px 20px; }
.stat-card .num { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.stat-card .lbl { font-size: 12px; color: var(--shila-mute-2); margin-top: 2px; }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.badge {
  background: #fff; border: 1px solid var(--shila-hairline-2); border-radius: var(--radius-lg); padding: 20px 16px;
  text-align: center; transition: transform .15s ease; position: relative;
}
.badge.earned { border-color: rgba(245,197,24,0.4); box-shadow: var(--shadow-glow); }
.badge.locked { opacity: 0.55; }
.badge .b-ico { font-size: 34px; filter: grayscale(1); }
.badge.earned .b-ico { filter: none; }
.badge .b-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-top: 8px; }
.badge .b-desc { font-size: 11.5px; color: var(--shila-mute-2); margin-top: 4px; line-height: 1.45; }
.badge .b-check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 999px; background: var(--shila-accent); display: none; place-items: center; }
.badge.earned .b-check { display: grid; }

/* ===================== TOAST + XP POP ===================== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--shila-ink); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.02em; opacity: 0;
  pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 100;
  display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lift);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .xp { color: var(--shila-accent); font-weight: 700; }

.xp-pop {
  position: fixed; z-index: 110; font-family: var(--font-display); font-weight: 800; font-size: 20px;
  color: var(--shila-accent-deep); pointer-events: none; animation: xpFloat 1s ease-out forwards;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}
@keyframes xpFloat { 0% { opacity: 0; transform: translateY(0) scale(.8); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px) scale(1.1); } }

/* level-up + badge celebration */
.celebrate {
  position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center;
  background: rgba(10,10,10,0.5); backdrop-filter: blur(4px); padding: 20px;
}
.celebrate.open { display: flex; animation: fadeIn .2s ease both; }
.celebrate .card {
  background: var(--shila-surface); border-radius: var(--radius-xl); padding: 40px 36px; text-align: center;
  max-width: 380px; box-shadow: var(--shadow-hero); border: 1px solid var(--shila-hairline-2);
  animation: popIn .4s cubic-bezier(.2,.9,.3,1.3) both;
}
.celebrate .c-ico { font-size: 64px; animation: bounceIn .6s ease both; }
@keyframes bounceIn { 0% { transform: scale(0); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.celebrate .c-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--shila-accent-deep); margin-top: 12px; }
.celebrate .c-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0; }
.celebrate .c-sub { color: var(--shila-mute); font-size: 14px; margin-bottom: 22px; line-height: 1.5; }

/* confetti */
.confetti { position: fixed; top: -10px; z-index: 121; width: 9px; height: 14px; pointer-events: none; opacity: .95; }
@keyframes confFall { to { transform: translateY(105vh) rotate(640deg); opacity: .9; } }

/* ===================== FOOTER ===================== */
.footer { border-top: 1px solid var(--shila-hairline-2); margin-top: 40px; padding: 36px 0; color: var(--shila-mute-2); font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--shila-ink-3); }
.footer a:hover { color: var(--shila-ink); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 880px) {
  .hud-level { display: none; }
  .appbar-inner { padding: 10px 18px; gap: 12px; }
  .wrap { padding: 0 18px; }
  .hero { padding: 48px 0 36px; }
}
@media (max-width: 560px) {
  .hud-streak { display: none; }
  .hero-stats { gap: 22px; }
  .hero-stats .stat { border-left: none; padding-left: 0; }
  .modal-head, .modal-body { padding-left: 18px; padding-right: 18px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===========================================================================
   ====================  VISUAL OVERHAUL  (CRO / UX pass)  ====================
   Pinterest masonry + MeiGen gradient depth, inside the single-amber system.
   RULE: covers/tiles = CONTENT color (per-category hues). All chrome
   (buttons, HUD, pills, links, stars, marker, glow) stays amber/ink.
   =========================================================================== */

:root {
  /* per-category CONTENT hues — covers only, never chrome */
  --cat-keyword:   #6366F1;
  --cat-briefs:    #EC4899;
  --cat-onpage:    #14B8A6;
  --cat-geo:       #F5C518;
  --cat-schema:    #8B5CF6;
  --cat-technical: #0EA5E9;
  --cat-links:     #F97316;
  --cat-local:     #16A34A;
  --cat-ecommerce: #E11D48;
  --cat-analytics: #84CC16;
  --glow-amber: 0 0 0 1px rgba(245,197,24,0.4), 0 10px 28px -8px rgba(245,197,24,0.45);
}

/* per-category shade triplets (hi / base / lo) — set on card/tile root */
.cat-keyword   { --c-hi:#8489F4; --c-base:#6366F1; --c-lo:#3F40A8; }
.cat-briefs    { --c-hi:#F472B6; --c-base:#EC4899; --c-lo:#A51E63; }
.cat-onpage    { --c-hi:#3DD6C4; --c-base:#14B8A6; --c-lo:#0C7268; }
.cat-geo       { --c-hi:#FFE27A; --c-base:#E9B400; --c-lo:#A07700; }
.cat-schema    { --c-hi:#A78BF9; --c-base:#8B5CF6; --c-lo:#5B2FB8; }
.cat-technical { --c-hi:#3EC1F5; --c-base:#0EA5E9; --c-lo:#086B96; }
.cat-links     { --c-hi:#FB923C; --c-base:#F97316; --c-lo:#B14708; }
.cat-local     { --c-hi:#34C76A; --c-base:#16A34A; --c-lo:#0C6B30; }
.cat-ecommerce { --c-hi:#F43F6B; --c-base:#E11D48; --c-lo:#9A1233; }
.cat-analytics { --c-hi:#A3E635; --c-base:#84CC16; --c-lo:#557F0E; }

/* ---------- universal cover ---------- */
.cover {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,0.30), transparent 52%),
    linear-gradient(135deg, var(--c-hi) 0%, var(--c-base) 55%, var(--c-lo) 100%);
}
.cover::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  mix-blend-mode: soft-light; background-repeat: repeat;
}
.cover-glyph {
  position: absolute; right: 14px; bottom: 8px; z-index: 1;
  font-size: 46px; line-height: 1; opacity: 0.95;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.22));
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
/* per-category geometry */
.cat-keyword   .cover::before { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 1px, transparent 1px 11px); }
.cat-briefs    .cover::before { background-image: radial-gradient(rgba(255,255,255,.5) 1.5px, transparent 1.6px); background-size: 18px 18px; }
.cat-onpage    .cover::before { background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.32) 0 2px, transparent 2px 14px); }
.cat-geo       .cover::before { background-image: repeating-radial-gradient(circle at 82% 18%, rgba(255,255,255,.42) 0 2px, transparent 2px 16px); }
.cat-schema    .cover::before { background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px); background-size: 20px 20px; }
.cat-technical .cover::before { background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px); background-size: 22px 22px; }
.cat-links     .cover::before { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.3) 0 2px, transparent 2px 12px); }
.cat-local     .cover::before { background-image: radial-gradient(rgba(255,255,255,.45) 2px, transparent 2.2px); background-size: 24px 24px; }
.cat-ecommerce .cover::before { background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.3) 0 3px, transparent 3px 12px); }
.cat-analytics .cover::before { background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.0) 0 10px, rgba(255,255,255,.28) 10px 12px); }

/* ---------- MASONRY prompt grid ---------- */
.prompt-grid {
  display: block;
  column-gap: 20px;
  column-count: 4;
}
@media (max-width: 1280px) { .prompt-grid { column-count: 3; } }
@media (max-width: 860px)  { .prompt-grid { column-count: 2; } }
@media (max-width: 560px)  { .prompt-grid { column-count: 1; } }

.prompt-card {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  display: block; margin: 0 0 20px; padding: 0; overflow: hidden;
  gap: 0;
}
/* uniform cover height across all prompt cards (the smaller of the previous variants) */
.prompt-card .cover,
.prompt-card[data-size="s"] .cover,
.prompt-card[data-size="m"] .cover,
.prompt-card[data-size="l"] .cover { height: 140px; }
.prompt-card .cover-glyph { font-size: 46px; }
.prompt-card .pc-pad { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; }
.prompt-card .cat-eyebrow {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-base);
}
.prompt-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.18; }
.prompt-card .pc-teaser { font-size: 13px; color: var(--shila-mute); line-height: 1.5; margin: 0; }
.prompt-card .pc-foot { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--shila-hairline); display: flex; align-items: center; gap: 10px; }
.prompt-card .pc-foot .fav-btn { margin-left: auto; }

/* tier badge — amber/ink chrome, on cover */
.tier-badge {
  position: absolute; top: 11px; left: 11px; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px;
  background: rgba(10,10,10,0.7); color: var(--shila-accent-soft); backdrop-filter: blur(6px);
}
.tier-badge[data-tier="pro"]   { background: rgba(245,197,24,0.94); color: var(--shila-ink); }
.tier-badge[data-tier="elite"] { background: var(--shila-ink); color: var(--shila-accent); box-shadow: var(--glow-amber); }
.cover .lock-ribbon { position: absolute; top: 11px; right: 11px; z-index: 2; background: rgba(10,10,10,0.7); color: #fff; padding: 4px 8px; border-radius: 999px; backdrop-filter: blur(6px); font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.cover .quick-copy {
  position: absolute; top: 11px; right: 11px; z-index: 2; border: none; cursor: pointer;
  width: 30px; height: 30px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--shila-ink);
  display: grid; place-items: center; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; box-shadow: var(--shadow-card);
}
.prompt-card:hover .quick-copy { opacity: 1; transform: none; }

.prompt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.prompt-card:hover .cover-glyph { transform: scale(1.1) rotate(-4deg); }

/* ---------- BENTO category grid ---------- */
.cat-bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 176px; grid-auto-flow: dense;
}
.cat-tile { position: relative; border-radius: var(--radius-xl); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease; }
.cat-tile .cover { position: absolute; inset: 0; }
.cat-tile .cover-glyph { font-size: 60px; right: 18px; bottom: 14px; }
.cat-tile .tile-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 45%, transparent 70%); }
.cat-tile .tile-meta { position: absolute; left: 18px; right: 18px; bottom: 16px; color: #fff; z-index: 1; }
.cat-tile .tile-meta h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 4px; font-size: 18px; line-height: 1.1; }
.cat-tile .tile-meta .tile-count { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: rgba(255,255,255,0.85); }
.cat-tile .tile-blurb { display: none; }
.cat-tile .flag-badge { display: inline-block; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--shila-accent); color: var(--shila-ink); padding: 3px 8px; border-radius: 999px; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.cat-tile:hover .cover-glyph { transform: scale(1.1) rotate(-4deg); }
.cat-tile .cover-glyph { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
/* spans */
.tile-geo { grid-column: span 2; grid-row: span 2; }
.tile-geo .cover-glyph { font-size: 120px; }
.tile-geo .tile-meta h3 { font-size: 26px; }
.tile-keyword, .tile-technical { grid-column: span 2; }
/* the view-all tile */
.cat-tile.tile-viewall { background: var(--shila-ink); display: grid; place-items: center; text-align: center; }
.cat-tile.tile-viewall .va { color: #fff; }
.cat-tile.tile-viewall .va .n { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--shila-accent); }
.cat-tile.tile-viewall .va .t { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #A3A3A3; margin-top: 2px; }
@media (max-width: 900px) {
  .cat-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .tile-geo { grid-column: span 2; grid-row: span 1; }
  .tile-geo .cover-glyph { font-size: 72px; }
  .tile-keyword, .tile-technical { grid-column: span 1; }
}
@media (max-width: 560px) {
  .cat-bento { grid-template-columns: 1fr; }
  .cat-tile { grid-column: auto !important; grid-row: auto !important; }
}

/* ---------- HERO aurora + collage ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; }
/* aurora removed per user request - keep keyframes inert in case other elements reference them */
.hero__aurora { display: none; }
@keyframes drift1 { 50% { transform: translate(6%, 4%) scale(1.08); } }
@keyframes drift2 { 50% { transform: translate(-5%, -6%) scale(1.1); } }

.hero-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center; }
.hero-collage { position: relative; height: 380px; }
.collage-card { position: absolute; width: 168px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-hero); background: #fff; animation: floaty 6s ease-in-out infinite; }
.collage-card .cover { height: 92px; }
.collage-card .cc-pad { padding: 10px 12px 12px; }
.collage-card .cc-cat { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-base); }
.collage-card .cc-title { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: -0.01em; margin: 3px 0 0; line-height: 1.15; }
.collage-card:nth-child(1) { top: 8px;   left: 30px;  transform: rotate(-5deg); animation-delay: 0s; }
.collage-card:nth-child(2) { top: 36px;  right: 16px; transform: rotate(4deg);  animation-delay: -1.5s; }
.collage-card:nth-child(3) { bottom: 30px; left: 8px;  transform: rotate(3deg);  animation-delay: -3s; }
.collage-card:nth-child(4) { bottom: 0px;  right: 44px; transform: rotate(-4deg); animation-delay: -4.5s; }
@keyframes floaty { 50% { transform: translateY(-9px) rotate(var(--rot, 0deg)); } }
@media (max-width: 900px) { .hero-layout { grid-template-columns: 1fr; } .hero-collage { display: none; } }

/* social proof strip */
.proof-strip { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--shila-hairline-2); }
.proof-strip .pi { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--shila-mute); }
.proof-strip .pi b { font-family: var(--font-display); color: var(--shila-ink); font-weight: 700; }

/* marker draw-in */
.hero .marker::after { transform: skewX(-6deg) scaleX(0); transform-origin: left; animation: markerDraw .7s .35s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes markerDraw { to { transform: skewX(-6deg) scaleX(1); } }

/* ---------- MODAL gradient banner ---------- */
.modal .modal-banner { position: relative; height: 96px; overflow: hidden; }
.modal .modal-banner .cover-glyph { font-size: 80px; opacity: 0.5; right: 22px; bottom: -6px; }
.modal .modal-banner .banner-x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 32px; height: 32px; border-radius: 999px; background: rgba(255,255,255,0.9); border: none; cursor: pointer; font-size: 16px; color: var(--shila-ink); display: grid; place-items: center; }
.modal .modal-head { padding-top: 18px; }

/* gated prompt box — blur + amber lock card */
.prompt-box.gated { max-height: 260px; overflow: hidden; filter: blur(0.4px); }
.prompt-box-wrap .gate-fade { background: linear-gradient(180deg, rgba(15,15,18,0) 0%, rgba(15,15,18,0.7) 45%, rgba(15,15,18,0.97) 100%); }
.gate-fade .lock-pill { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--shila-accent); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 40ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- grain ---------- */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- sticky logged-out CTA ---------- */
.sticky-cta {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(140%);
  z-index: 80; display: flex; align-items: center; gap: 14px;
  background: var(--shila-ink); color: #fff; padding: 12px 14px 12px 20px; border-radius: 999px;
  box-shadow: var(--shadow-hero); border: 1px solid rgba(245,197,24,0.3); transition: transform .3s cubic-bezier(.2,.7,.2,1); max-width: calc(100vw - 32px);
}
.sticky-cta.show { transform: translateX(-50%) translateY(0); }
.sticky-cta .sc-txt { font-size: 13.5px; }
.sticky-cta .sc-txt b { color: var(--shila-accent); }
.sticky-cta .sc-x { background: rgba(255,255,255,0.12); border: none; color: #fff; width: 26px; height: 26px; border-radius: 999px; cursor: pointer; }

/* reduced motion: kill loops, snap reveals */
@media (prefers-reduced-motion: reduce) {
  .hero__aurora::before, .hero__aurora::after, .collage-card { animation: none !important; }
  .hero .marker::after { animation: none !important; transform: skewX(-6deg) scaleX(1) !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===========================================================================
   =============  SIDEBAR + GALLERY LAYOUT (creative-tool pattern)  ===========
   Persistent sidebar on desktop · slide-in drawer on mobile.
   =========================================================================== */

.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
.main-col { min-width: 0; padding: 0 32px; }
/* let app sections inside main-col use the full width, drop the constraint we inherited */
.main-col .wrap { max-width: none; margin: 0; padding: 0; }
.main-col .hero .wrap { padding: 0; }

.sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  padding: 18px 0 20px;
  overflow: hidden;
}
.sidebar-scroll {
  height: 100%; overflow-y: auto; padding-right: 8px;
  scrollbar-width: thin; scrollbar-color: rgba(10,10,10,0.12) transparent;
}
.sidebar-scroll::-webkit-scrollbar { width: 6px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(10,10,10,0.12); border-radius: 999px; }

.sb-section { margin-bottom: 22px; }
.sb-section .sb-h {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--shila-mute-2); margin: 0 0 6px 12px;
}
.sb-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin: 1px 0; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--shila-ink-3); cursor: pointer;
  transition: background .12s ease, color .12s ease;
  user-select: none;
}
.sb-link:hover { background: var(--shila-surface-alt); color: var(--shila-ink); }
.sb-link.active { background: var(--shila-ink); color: #fff; }
.sb-ico {
  display: inline-grid; place-items: center;
  width: 18px; flex-shrink: 0; font-size: 13px;
}
.sb-dot {
  width: 9px; height: 9px; border-radius: 999px; flex-shrink: 0;
  background: var(--c-base, var(--shila-accent));
  box-shadow: 0 0 0 1px rgba(10,10,10,0.06);
}
.sb-link.active .sb-dot { box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.sb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-count {
  font-family: var(--font-mono); font-size: 10px; color: var(--shila-mute-2); flex-shrink: 0;
}
.sb-link.active .sb-count { color: rgba(255,255,255,0.6); }

/* mini progress card */
.sidebar-progress {
  background: var(--shila-ink); color: #fff; border-radius: 14px;
  padding: 14px 16px; margin: 0 4px 22px;
}
.sidebar-progress .sp-rank { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--shila-accent); font-weight: 700; }
.sidebar-progress .sp-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 2px; }
.sidebar-progress .sp-name { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.sidebar-progress .sp-lvl { font-family: var(--font-mono); font-size: 10px; color: #A3A3A3; }
.sidebar-progress .sp-bar { height: 6px; background: rgba(255,255,255,0.12); border-radius: 999px; margin-top: 10px; overflow: hidden; }
.sidebar-progress .sp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--shila-accent), #FFD84D); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.sidebar-progress .sp-meta { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--font-mono); font-size: 10px; color: #A3A3A3; }
.sidebar-progress .sp-cta { margin-top: 12px; display: block; width: 100%; padding: 9px 12px; background: var(--shila-accent); color: var(--shila-ink); border: none; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: 12px; }

/* hamburger toggle */
.sidebar-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 10px; align-items: center; justify-content: center; padding: 0;
}
.sidebar-toggle:hover { background: rgba(10,10,10,0.05); }

/* mobile drawer */
.sidebar-backdrop {
  position: fixed; inset: 0; background: rgba(10,10,10,0.5); backdrop-filter: blur(3px);
  z-index: 49; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.sidebar-backdrop.show { opacity: 1; pointer-events: auto; }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; gap: 0; padding: 0 18px; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
    width: 286px; max-width: 86vw; height: 100vh;
    background: var(--shila-surface); padding: 76px 16px 24px;
    transform: translateX(-100%); transition: transform .26s cubic-bezier(.2,.7,.2,1);
    box-shadow: var(--shadow-hero); border-right: 1px solid var(--shila-hairline-2);
  }
  .sidebar.open { transform: none; }
  .sidebar-toggle { display: inline-flex; }
  .main-col .hero .wrap { padding: 0; }
}

/* ===========================================================================
   FEATURED + INDUSTRIES sections
   =========================================================================== */
.section-tight { padding: 36px 0; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
/* featured cards use the same .prompt-card visual but in a uniform grid, not masonry */
.featured-grid .prompt-card { margin: 0; }

.shuffle-btn {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 9px 14px; border-radius: 999px;
  background: var(--shila-accent-tint); color: var(--shila-accent-deep);
  border: 1px solid rgba(245,197,24,0.3); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.shuffle-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); background: var(--shila-accent); color: var(--shila-ink); }
.shuffle-btn:active { transform: scale(0.96); }
.shuffle-btn.spinning svg { animation: spinOnce .55s ease; }
@keyframes spinOnce { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.industries {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.industry-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--shila-hairline-2); cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--shila-ink-2);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.industry-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--shila-hairline-3); }
.industry-chip .ind-ico { font-size: 16px; }
.industry-chip .ind-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--ind-color, var(--shila-accent)); flex-shrink: 0; }
.industry-chip .ind-count { font-family: var(--font-mono); font-size: 10px; color: var(--shila-mute-2); letter-spacing: 0.04em; }

/* a small industry filter banner inside browse */
.industry-banner {
  background: var(--shila-ink); color: #fff; border-radius: 14px;
  padding: 14px 18px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.industry-banner .ib-ico { font-size: 22px; }
.industry-banner .ib-meta { flex: 1; min-width: 200px; }
.industry-banner .ib-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--shila-accent); font-weight: 700; }
.industry-banner .ib-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.industry-banner .ib-clear { background: rgba(255,255,255,0.1); border: none; color: #fff; padding: 7px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; cursor: pointer; }
.industry-banner .ib-clear:hover { background: rgba(255,255,255,0.18); }

/* tighten the hero typography for the narrower main column */
.main-col .hero h1 { font-size: clamp(34px, 4.4vw, 58px); }
.main-col .hero { padding: 56px 0 44px; }
/* give the copy more horizontal real-estate and pull the collage closer so the right side feels balanced */
.main-col .hero-layout { grid-template-columns: 1.25fr 0.95fr; gap: 28px; }
.main-col .hero-collage { height: 360px; }
.main-col .hero-collage .collage-card { width: 178px; }
.main-col .hero-collage .collage-card .cover { height: 92px; }
.main-col .hero-collage .collage-card:nth-child(1) { top: 0;    left: 6%;  }
.main-col .hero-collage .collage-card:nth-child(2) { top: 22px; right: 4%; }
.main-col .hero-collage .collage-card:nth-child(3) { bottom: 10px; left: 0; }
.main-col .hero-collage .collage-card:nth-child(4) { bottom: 38px; right: 14%; }
.main-col .hero-stats { gap: 26px; }

.main-col .section-head h2 { font-size: clamp(26px, 2.6vw, 34px); }

/* mobile: kill the two-column grid override (was leaving a white right column when the collage hides) and tighten the hero */
@media (max-width: 900px) {
  .main-col { padding: 0 16px; }
  .main-col .hero-layout { grid-template-columns: 1fr; gap: 0; }
  .main-col .hero { padding: 28px 0 24px; }
  .main-col .hero h1 { font-size: clamp(30px, 7vw, 40px); }
  .main-col .hero .lead { font-size: 15px; margin-top: 14px; }
  .main-col .hero-cta { margin-top: 20px; gap: 10px; }
  .main-col .hero-cta .btn { padding: 12px 16px 12px 18px; font-size: 13px; }
  .main-col .proof-strip { margin-top: 18px; padding-top: 14px; gap: 14px; }
  .main-col .proof-strip .pi { font-size: 12px; }
}

/* topbar: Log in link + Start for free button */
.loggedout-cluster { display: inline-flex; align-items: center; gap: 14px; }
.tb-login {
  font-size: 13px; font-weight: 600; color: var(--shila-ink-2); cursor: pointer;
  padding: 8px 4px; border-radius: 6px; transition: color .12s ease;
  text-decoration: none; user-select: none; white-space: nowrap;
}
.tb-login:hover { color: var(--shila-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
@media (max-width: 560px) {
  .loggedout-cluster { gap: 8px; }
  .tb-login { padding: 6px 2px; font-size: 12.5px; }
  .loggedout-cluster .btn { padding: 10px 14px 10px 16px; font-size: 12px; }
}

/* ===========================================================================
   LEGAL PAGES (privacy.html, terms.html)
   =========================================================================== */
.legal-page { padding: 56px 0 80px; min-height: 70vh; }
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.legal-wrap h1 {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px);
  font-weight: 700; letter-spacing: -0.03em; margin: 18px 0 6px; line-height: 1.05;
}
.legal-meta {
  font-family: var(--font-mono); font-size: 11px; color: var(--shila-mute-2);
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 32px;
}
.legal-wrap h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em; margin: 44px 0 14px;
}
.legal-wrap h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  letter-spacing: -0.01em; margin: 24px 0 8px;
}
.legal-wrap p, .legal-wrap li {
  font-size: 15px; color: var(--shila-ink-2); line-height: 1.65;
}
.legal-wrap ul, .legal-wrap ol { padding-left: 22px; margin: 12px 0; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 14px; background: #fff;
  border: 1px solid var(--shila-hairline-2); border-radius: var(--radius-md); overflow: hidden;
}
.legal-wrap th, .legal-wrap td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--shila-hairline-2);
}
.legal-wrap tbody tr:last-child td { border-bottom: none; }
.legal-wrap th {
  background: var(--shila-surface-alt); font-weight: 700;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--shila-ink-2);
}
.legal-wrap strong, .legal-wrap b { color: var(--shila-ink); font-weight: 700; }
.legal-wrap code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--shila-surface-alt); padding: 2px 6px; border-radius: 4px;
}
.legal-wrap a {
  color: var(--shila-accent-deep); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.legal-wrap a:hover { color: var(--shila-ink); }
.legal-wrap .pill { margin-bottom: 4px; }

/* footer links */
.footer-links { display: flex; gap: 22px; }
.footer-links a {
  font-size: 13px; color: var(--shila-ink-3);
  transition: color .12s ease;
}
.footer-links a:hover { color: var(--shila-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .legal-page { padding: 32px 0 56px; }
  .legal-wrap { padding: 0 18px; }
}

/* ===========================================================================
   PROFILE: name editor card + sub-line
   =========================================================================== */
.profile-hero .ph-id { display: flex; flex-direction: column; gap: 2px; }
.profile-hero .psub { font-family: var(--font-mono); font-size: 11px; color: #A3A3A3; letter-spacing: 0.04em; }

.name-card {
  background: #fff; border: 1px solid var(--shila-hairline-2); border-radius: var(--radius-lg);
  padding: 22px 24px; margin-bottom: 28px;
}
.name-card.reward {
  background: var(--shila-accent-tint);
  border-color: rgba(245,197,24,0.4);
  box-shadow: var(--shadow-glow);
}
.name-card-head .name-eyebrow {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--shila-accent-deep);
}
.name-card.done .name-card-head .name-eyebrow { color: var(--shila-mute-2); }
.name-card-head h3 {
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  letter-spacing: -0.02em; margin: 6px 0 4px;
}
.name-card-head p { margin: 0; color: var(--shila-mute); font-size: 13.5px; line-height: 1.5; }

.name-form {
  display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}
.name-form input {
  flex: 1; min-width: 200px;
  padding: 13px 16px; border-radius: 999px; border: 1px solid var(--shila-hairline-3);
  background: #fff; font-size: 14px; font-family: var(--font-body); outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.name-form input:focus { border-color: var(--shila-accent); box-shadow: 0 0 0 3px rgba(245,197,24,0.18); }
.name-form .btn { flex-shrink: 0; }

.name-msg { margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px; min-height: 14px; }
.name-msg.err { color: var(--shila-danger); }
.name-msg.ok { color: var(--shila-success-ink); }

/* ===========================================================================
   Brand logo image (replaces the legacy .logo-s amber box + .logo-text wordmark)
   =========================================================================== */
.brand-logo {
  height: 30px; width: auto; display: block; flex-shrink: 0;
}
.footer-logo {
  height: 22px; width: auto; display: block; flex-shrink: 0;
}
@media (max-width: 560px) {
  .brand-logo { height: 26px; }
}

/* Google-only auth modal — bigger button + fineprint link to legal */
.google-btn-lg {
  padding: 16px; font-size: 15px; font-weight: 600;
  border-radius: 999px; gap: 12px;
  box-shadow: 0 8px 20px -10px rgba(10,10,10,0.25);
}
.google-btn-lg:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(10,10,10,0.3); background: var(--shila-surface-alt); }
.auth-fineprint {
  text-align: center; font-size: 12px; color: var(--shila-mute-2);
  margin: 18px 0 4px; line-height: 1.5;
}
.auth-fineprint a { color: var(--shila-ink-2); text-decoration: underline; text-underline-offset: 3px; }
.auth-fineprint a:hover { color: var(--shila-ink); }
