:root {
  color-scheme: light;
  --paper: #f3ece4;
  --paper-2: #e8d9cb;
  --surface: #fcf8f3;
  --surface-hover: #f3e8dd;
  --sand: #d8c2ae;
  --clay: #b96f51;
  --clay-dark: #8e4e39;
  --ink: #241b17;
  --muted: #75655c;
  --line: rgba(36, 27, 23, .16);
  --white: #fffaf5;
  --dark-section: #241b17;
  --dark-section-2: #17110f;
  --on-dark: #fffaf5;
  --header-bg: rgba(243, 236, 228, .88);
  --hero-light: rgba(255,255,255,.75);
  --hero-from: #f5eee7;
  --hero-to: #e8d8c9;
  --hero-shape: #d6b9a5;
  --hero-type: rgba(142,78,57,.17);
  --control-bg: rgba(252,248,243,.92);
  --button-dark-bg: #241b17;
  --button-dark-text: #fffaf5;
  --da-panel: #f4f1ee;
  --da-head: #ffffff;
  --da-ink: #241b17;
  --shadow: 0 24px 80px rgba(70, 45, 31, .15);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171311;
  --paper-2: #241c18;
  --surface: #201a17;
  --surface-hover: #2a211d;
  --sand: #745747;
  --clay: #d28a6c;
  --clay-dark: #e1a086;
  --ink: #f4ebe4;
  --muted: #ad9c92;
  --line: rgba(244, 235, 228, .14);
  --dark-section: #0f0d0c;
  --dark-section-2: #0b0908;
  --on-dark: #fffaf5;
  --header-bg: rgba(23, 19, 17, .88);
  --hero-light: rgba(210,138,108,.08);
  --hero-from: #1a1513;
  --hero-to: #2a201b;
  --hero-shape: #5b4035;
  --hero-type: rgba(225,160,134,.11);
  --control-bg: rgba(32,26,23,.92);
  --button-dark-bg: #f4ebe4;
  --button-dark-text: #171311;
  --da-panel: #201a17;
  --da-head: #171311;
  --da-ink: #f4ebe4;
  --shadow: 0 24px 80px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
  transition: color .25s ease, background .25s ease;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: flex-start; gap: 5px; font-family: "Unbounded"; font-weight: 700; font-size: 18px; letter-spacing: -.07em; }
.brand sup { margin-top: -1px; color: var(--clay); font-family: "Manrope"; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.desktop-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 34px; font-size: 13px; font-weight: 600; }
.desktop-nav a, .footer-links a, .footer-links button { transition: color .2s; }
.desktop-nav a:hover, .footer-links a:hover, .footer-links button:hover { color: var(--clay); }
.header-actions { display: flex; align-items: center; gap: 10px; }
[data-admin-only][hidden] { display: none !important; }
.live-link { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.live-dot { display: inline-block; width: 8px; height: 8px; background: #db543d; border-radius: 50%; box-shadow: 0 0 0 5px rgba(219,84,61,.13); animation: pulse 1.8s infinite; flex: 0 0 auto; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(219,84,61,0); } }
.theme-toggle { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; transition: background .2s, transform .2s; }
.theme-toggle:hover { background: var(--paper-2); transform: rotate(8deg); }
.theme-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-moon { display: block; }
.cart-trigger { border: 0; background: var(--button-dark-bg); color: var(--button-dark-text); height: 44px; padding: 0 17px; border-radius: 4px; font-weight: 700; cursor: pointer; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 8px; padding: 0 6px; background: var(--clay); border-radius: 50%; font-size: 11px; }

.hero {
  min-height: 760px;
  padding: 128px 4vw 70px;
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  align-items: center;
  gap: 5vw;
  background:
    radial-gradient(circle at 14% 23%, var(--hero-light), transparent 31%),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
}
.hero-copy { padding-left: 4vw; z-index: 2; }
.eyebrow, .section-index { font-size: 11px; font-weight: 800; letter-spacing: .17em; color: var(--clay-dark); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.eyebrow span { width: 34px; height: 1px; background: currentColor; }
h1, h2 { font-family: "Unbounded"; letter-spacing: -.065em; font-weight: 600; margin: 0; line-height: .98; }
h1 { font-size: clamp(55px, 6.7vw, 104px); max-width: 820px; }
h1 em, h2 em { font-family: Georgia, serif; font-weight: 400; color: var(--clay); }
.hero-lead { max-width: 610px; margin: 32px 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border: 1px solid transparent; border-radius: 3px; font-weight: 800; font-size: 13px; cursor: pointer; transition: transform .2s, background .2s, color .2s, border .2s; }
.button span { margin-left: 28px; font-size: 18px; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--clay); color: #fff; }
.button-primary:hover { background: var(--clay-dark); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.08); }
.button-ghost:hover { background: var(--paper-2); }
.button-dark { background: var(--button-dark-bg); color: var(--button-dark-text); }
.button-wide { width: 100%; }
.hero-proof { display: flex; gap: 40px; margin-top: 58px; }
.hero-proof div { display: flex; flex-direction: column; }
.hero-proof strong { font-family: "Unbounded"; font-size: 20px; }
.hero-proof span { margin-top: 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.hero-visual { position: relative; width: min(660px, 47vw); height: 635px; justify-self: end; align-self: end; isolation: isolate; }
.hero-shape { position: absolute; z-index: -2; width: 73%; aspect-ratio: 1; right: 4%; top: 6%; border-radius: 50%; background: var(--hero-shape); }
.hero-type { position: absolute; z-index: -1; left: -4%; top: 3%; color: var(--hero-type); font-family: "Unbounded"; font-size: clamp(150px, 18vw, 285px); font-weight: 700; letter-spacing: -.12em; line-height: 1; }
.hero-person { position: absolute; z-index: 1; right: -2%; bottom: -70px; width: 88%; height: 106%; object-fit: contain; object-position: bottom right; filter: contrast(1.03); }
.portrait-tag { position: absolute; z-index: 3; left: 7%; bottom: 25px; display: flex; align-items: center; gap: 14px; padding: 13px 15px; color: white; background: rgba(36, 27, 23, .83); backdrop-filter: blur(12px); font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.portrait-tag span:last-child { display: flex; flex-direction: column; }
.portrait-tag small { margin-bottom: 2px; font-size: 9px; font-weight: 500; opacity: .72; text-transform: uppercase; }
.portrait-tag b { font-size: 12px; }
.hero-city { position: absolute; z-index: 3; right: 1%; top: 17%; padding-left: 12px; border-left: 1px solid var(--clay-dark); color: var(--clay-dark); font-family: "Unbounded"; font-size: 8px; line-height: 1.6; }

.now-strip {
  min-height: 90px;
  padding: 18px 8vw;
  display: grid;
  grid-template-columns: 160px minmax(250px, 1.2fr) minmax(240px, .8fr) 60px;
  gap: 26px;
  align-items: center;
  background: var(--dark-section);
  color: var(--on-dark);
}
.now-label { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--sand); }
.now-title { font-size: 14px; font-weight: 700; }
.progress-wrap { width: 100%; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 10px; color: #cdbdb4; }
.progress { height: 3px; background: rgba(255,255,255,.16); }
.progress span { display: block; height: 100%; background: var(--clay); }
.now-percent { font-family: "Unbounded"; font-size: 13px; }

.section { padding: 120px 8vw; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 80px; align-items: end; margin-bottom: 65px; }
.section-heading h2 { margin-top: 18px; font-size: clamp(42px, 5vw, 74px); }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.step { min-height: 300px; padding: 28px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border: 0; }
.step > span { font-family: "Unbounded"; font-size: 10px; color: var(--muted); }
.step-icon { margin: 45px 0 42px; font-family: Georgia, serif; font-size: 40px; color: var(--clay); }
.step h3 { margin: 0 0 10px; font-family: "Unbounded"; font-size: 21px; }
.step p { max-width: 280px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.step.featured { background: var(--paper-2); }

.tasks-section { background: var(--surface); }
.tasks-heading { margin-bottom: 40px; }
.task-controls { position: sticky; top: 75px; z-index: 20; display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; margin-bottom: 24px; background: var(--control-bg); backdrop-filter: blur(10px); }
.categories { display: flex; gap: 7px; flex-wrap: wrap; }
.category { padding: 11px 15px; border: 1px solid var(--line); border-radius: 30px; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.category.active { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.search { width: 230px; height: 42px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--ink); }
.search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.task-card { min-height: 330px; padding: 26px; display: flex; flex-direction: column; background: var(--surface); transition: background .2s; }
.task-card:hover { background: var(--surface-hover); }
.task-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.task-id { font-family: "Unbounded"; font-size: 10px; color: var(--muted); }
.task-badges { display: flex; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }
.task-badge { padding: 5px 8px; border: 1px solid var(--line); border-radius: 15px; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.task-badge.hot { color: var(--clay-dark); border-color: rgba(142,78,57,.4); background: rgba(185,111,81,.1); }
.task-card h3 { margin: 36px 0 12px; max-width: 360px; font-size: 20px; line-height: 1.25; letter-spacing: -.035em; }
.task-card > p { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.task-meta { display: flex; gap: 18px; margin-top: auto; margin-bottom: 19px; color: var(--muted); font-size: 10px; }
.task-card-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }
.task-price { font-family: "Unbounded"; font-size: 17px; }
.add-task { width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; font-size: 20px; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.add-task:hover, .add-task.added { background: var(--ink); color: var(--paper); transform: rotate(8deg); }
.empty-state { padding: 70px 20px; text-align: center; }
.empty-state strong, .empty-state span { display: block; }
.empty-state span { margin-top: 8px; color: var(--muted); font-size: 13px; }
.tasks-footer { display: flex; justify-content: center; align-items: baseline; gap: 18px; margin-top: 48px; }
.tasks-footer p { color: var(--muted); font-size: 13px; }
.text-button, .footer-links button, .footer-bottom button, .clear-cart { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; font-size: 12px; font-weight: 800; cursor: pointer; }

.stream-section { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 750px; padding: 110px 7vw; gap: 6vw; align-items: center; overflow: hidden; background: var(--dark-section); color: var(--on-dark); }
.section-index.light { color: var(--sand); }
.stream-copy h2 { margin: 20px 0 28px; font-size: clamp(42px, 4.6vw, 70px); }
.stream-copy > p { max-width: 500px; color: #cbbdb4; font-size: 15px; line-height: 1.7; }
.stream-features { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 55px; }
.stream-features > div { display: flex; gap: 14px; }
.stream-features span { font-family: "Unbounded"; font-size: 9px; color: var(--clay); }
.stream-features p { margin: 0; color: #a99b93; font-size: 11px; line-height: 1.55; }
.stream-features strong { display: block; margin-bottom: 4px; color: white; font-size: 12px; }
.overlay-demo { transform: rotate(2deg); border: 1px solid rgba(255,255,255,.2); background: #17110f; box-shadow: 0 35px 100px rgba(0,0,0,.45); }
.browser-bar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
.browser-bar span { width: 7px; height: 7px; background: #6f5c54; border-radius: 50%; }
.browser-bar p { margin: 0 0 0 15px; color: #786c67; font-size: 8px; }
.stream-preview { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.stream-preview > img { width: 100%; height: 112%; object-fit: contain; object-position: right bottom; background: #bca18f; filter: brightness(.72) saturate(.6); }
.preview-top { position: absolute; left: 16px; top: 16px; display: flex; align-items: center; gap: 9px; font-size: 9px; }
.live-badge { padding: 4px 6px; background: #d9493e; border-radius: 2px; font-weight: 800; }
.challenge-widget { position: absolute; left: 18px; bottom: 18px; width: min(390px, 72%); padding: 16px; background: rgba(25,18,15,.87); backdrop-filter: blur(9px); border-left: 3px solid var(--clay); }
.widget-head, .widget-meta { display: flex; justify-content: space-between; font-size: 7px; color: #cbbdb4; letter-spacing: .09em; }
.challenge-widget h3 { max-width: 300px; margin: 10px 0 13px; font-size: 14px; }
.widget-progress { height: 2px; margin-bottom: 8px; background: rgba(255,255,255,.14); }
.widget-progress span { display: block; height: 100%; background: var(--clay); }
.qr-mock { position: absolute; right: 17px; bottom: 18px; width: 78px; padding: 7px; background: white; color: #241b17; text-align: center; }
.qr-mock i { display: block; aspect-ratio: 1; background: repeating-conic-gradient(#231a16 0 25%, transparent 0 50%) 0 / 13px 13px; border: 4px solid white; }
.qr-mock b { display: block; margin-top: 5px; font-size: 6px; letter-spacing: .1em; }

.manifesto { text-align: center; background: var(--paper-2); }
.manifesto-kicker { margin: 0 0 30px; color: var(--clay-dark); font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.manifesto h2 { margin-bottom: 45px; font-size: clamp(48px, 7vw, 104px); }
.rules-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.rules-grid article { padding: 28px 28px 10px 0; }
.rules-grid article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.rules-grid span { font-family: "Unbounded"; color: var(--clay); font-size: 9px; }
.rules-grid h3 { margin: 35px 0 12px; font-size: 15px; }
.rules-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

footer { padding: 65px 8vw 25px; color: var(--on-dark); background: var(--dark-section-2); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; padding-bottom: 75px; }
.footer-brand { font-size: 22px; }
.footer-top > p { margin: 0; color: #9f918a; font-size: 12px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 13px; font-size: 11px; font-weight: 800; }
.footer-links button { color: inherit; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #756963; font-size: 8px; letter-spacing: .12em; }
.footer-bottom button { color: inherit; font-size: inherit; letter-spacing: inherit; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 69; background: rgba(30,20,15,.5); opacity: 0; visibility: hidden; transition: .3s; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; z-index: 70; top: 0; right: 0; width: min(480px, 100%); height: 100dvh; padding: 28px; display: flex; flex-direction: column; background: var(--paper); transform: translateX(100%); transition: transform .35s ease; box-shadow: -30px 0 80px rgba(36,27,23,.18); }
.cart-drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.drawer-head span { color: var(--clay-dark); font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.drawer-head h2 { margin-top: 8px; font-size: 27px; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 22px; }
.cart-items { flex: 1; overflow-y: auto; }
.cart-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 13px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item-id { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; font-family: "Unbounded"; font-size: 8px; }
.cart-item-info { min-width: 0; }
.cart-item strong { display: block; font-size: 12px; line-height: 1.35; }
.cart-item span { color: var(--muted); font-size: 10px; }
.cart-quantity { grid-column: 2; display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: -3px; }
.cart-quantity button, .cart-quantity > span { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: var(--ink); font-size: 12px; cursor: pointer; }
.cart-quantity > span { color: var(--ink); cursor: default; }
.cart-quantity .remove-item { margin-left: 4px; color: var(--muted); }
.remove-item { border: 0; background: none; font-size: 18px; cursor: pointer; }
.cart-empty { margin: auto; max-width: 290px; text-align: center; }
.cart-empty > span { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 20px; border: 1px solid var(--line); border-radius: 50%; font-size: 26px; color: var(--clay); }
.cart-empty strong { font-family: "Unbounded"; font-size: 17px; }
.cart-empty p { margin: 11px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.cart-summary { padding-top: 22px; border-top: 1px solid var(--line); }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 12px; }
.summary-line.total { margin: 14px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary-line.total strong { font-family: "Unbounded"; font-size: 18px; }
.cart-summary > p { margin: 0 0 15px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.cart-summary .button { margin-top: 7px; }
.clear-cart { display: block; margin: 17px auto 0; color: var(--muted); font-size: 10px; }
.copy-secondary { display: block; margin: 14px auto 0; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--muted); font-size: 10px; font-weight: 800; cursor: pointer; }

.modal { width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 42px; border: 0; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); overflow-y: auto; }
.modal::backdrop { background: rgba(30,20,15,.65); backdrop-filter: blur(5px); }
.modal-close { position: absolute; top: 18px; right: 18px; }
.modal h2 { margin: 15px 0; font-size: 40px; }
.modal > p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.modal form { margin-top: 28px; }
.modal label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 17px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.modal input, .modal textarea, .modal select { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); outline: 0; background: transparent; font-size: 13px; text-transform: none; letter-spacing: normal; }
.modal textarea { min-height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.modal .checkbox { flex-direction: row; align-items: flex-start; text-transform: none; letter-spacing: normal; line-height: 1.45; font-weight: 500; color: var(--muted); }
.modal .checkbox input { width: 16px; margin: 2px 7px 0 0; }
.editor-modal { width: min(920px, calc(100% - 28px)); }
.editor-modal > p { max-width: 620px; }
.editor-tabs { position: sticky; top: -42px; z-index: 3; display: flex; gap: 8px; margin: 28px -42px 0; padding: 12px 42px; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.editor-tabs button { padding: 10px 16px; border: 1px solid var(--line); border-radius: 30px; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.editor-tabs button.active { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.editor-panel { padding-top: 28px; }
.editor-panel h3 { margin: 28px 0 16px; font-family: "Unbounded"; font-size: 15px; }
.editor-panel h3:first-child { margin-top: 0; }
.editor-panel form { margin-top: 0; }
.editor-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.editor-task-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.editor-task-toolbar .editor-search { flex: 1; margin: 0; }
.editor-task-toolbar .button { flex: 0 0 auto; }
.task-editor-form { margin-bottom: 28px !important; padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.task-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.task-editor-heading h3 { margin: 0; }
.editor-task-list { border-top: 1px solid var(--line); }
.editor-task-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 34px; gap: 12px; align-items: center; min-height: 70px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.editor-task-id { color: var(--muted); font-family: "Unbounded"; font-size: 9px; }
.editor-task-item strong, .editor-task-item small { display: block; }
.editor-task-item strong { font-size: 12px; line-height: 1.35; }
.editor-task-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.editor-task-item button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 3px; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.editor-task-item button:hover { background: var(--surface-hover); }
.editor-task-item button.danger { width: 34px; height: 34px; padding: 0; color: #b64b42; font-size: 18px; }
.editor-task-empty { padding: 35px 10px; }
.editor-note { padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.editor-note strong { font-family: "Unbounded"; font-size: 14px; }
.editor-note p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.editor-transfer-actions { display: flex; gap: 10px; margin-top: 20px; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.editor-reset { display: block; margin: 28px auto 0; padding: 0; border: 0; border-bottom: 1px solid currentColor; color: #b64b42; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.editor-exit { display: block; margin: 18px auto 0; padding: 0; border: 0; border-bottom: 1px solid currentColor; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.admin-login-modal { width: min(480px, calc(100% - 28px)); }
.admin-login-error { margin: -4px 0 16px; color: #b64b42; font-size: 11px; font-weight: 700; }
.legal-modal { max-width: 560px; }
.legal-modal p { font-size: 13px; }
.legal-sections { margin-top: 28px; }
.legal-sections section { padding: 18px 0; border-top: 1px solid var(--line); }
.legal-sections h3 { margin: 0 0 10px; font-family: "Unbounded"; font-size: 13px; }
.legal-sections p { margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.donation-modal { width: min(1120px, calc(100% - 28px)); padding: 0; overflow: hidden; }
.donation-modal .modal-close { z-index: 4; color: white; border-color: var(--dark-section); background: var(--dark-section); box-shadow: 0 6px 20px rgba(36,27,23,.2); }
.da-shell { display: grid; grid-template-columns: 360px 1fr; min-height: min(760px, calc(100dvh - 40px)); }
.da-summary { padding: 42px 34px; color: white; background: var(--dark-section); }
.da-summary h2 { margin: 18px 0 35px; font-size: 32px; }
.da-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); font-size: 10px; color: #b9aaa2; }
.da-total strong { color: white; font-family: "Unbounded"; font-size: 17px; }
.da-selected { max-height: 210px; overflow-y: auto; margin-top: 16px; }
.da-selected div { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 9px; }
.da-selected b { color: var(--clay); font-family: "Unbounded"; font-size: 7px; }
.da-selected span:last-child { color: #ad9e96; }
.copy-status { display: flex; align-items: center; gap: 11px; margin-top: 25px; padding: 13px; background: rgba(255,255,255,.08); }
.copy-status > span { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; color: var(--ink); background: var(--sand); font-size: 11px; }
.copy-status p { margin: 0; color: #ad9e96; font-size: 9px; line-height: 1.45; }
.copy-status strong { display: block; color: white; font-size: 10px; }
.light-copy { color: #c9bbb3; }
.da-frame-panel { position: relative; min-width: 0; background: var(--da-panel); }
.da-frame-head { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: var(--muted); background: var(--da-head); border-bottom: 1px solid var(--line); font-size: 9px; }
.da-frame-head a { color: var(--ink); font-weight: 800; }
.da-frame { width: 100%; height: calc(100% - 46px); min-height: 650px; border: 0; background: white; }
.da-frame:not([src]) { display: none; }
.da-setup { position: absolute; inset: 46px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; color: var(--da-ink); background: var(--da-panel); }
.da-setup[hidden] { display: none; }
.da-logo { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 20px; border-radius: 18px; color: white; background: linear-gradient(145deg, #7d3cff, #4f22b7); font-family: "Unbounded"; font-size: 18px; }
.da-setup strong { font-family: "Unbounded"; font-size: 18px; }
.da-setup p { max-width: 440px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.da-setup code { padding: 10px 13px; border: 1px solid var(--line); color: var(--muted); background: var(--da-head); font-size: 11px; }
.da-setup code b { color: #6d3ad5; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; max-width: calc(100% - 30px); padding: 13px 18px; color: var(--on-dark); background: var(--dark-section); border-radius: 3px; font-size: 11px; font-weight: 700; transform: translate(-50%, 120px); transition: transform .3s; box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); }
.mobile-cart { display: none; }

@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr 46%; }
  .hero-copy { padding-left: 0; }
  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .stream-section { grid-template-columns: 1fr; }
  .stream-copy { max-width: 800px; }
  .overlay-demo { width: min(820px, 100%); justify-self: center; }
  .rules-grid { grid-template-columns: 1fr 1fr; }
  .rules-grid article:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 720px) {
  .site-header { height: 64px; padding: 0 18px; }
  .header-actions .live-link { display: none; }
  .cart-trigger { width: 44px; padding: 0; font-size: 0; border-radius: 50%; }
  .cart-trigger .cart-count { margin: 0; font-size: 10px; }
  .hero { display: flex; flex-direction: column; min-height: auto; padding: 105px 18px 48px; gap: 48px; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(48px, 15vw, 72px); }
  .hero-lead { font-size: 14px; margin: 25px 0; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1; min-width: 150px; padding: 0 14px; }
  .button span { margin-left: 15px; }
  .hero-proof { gap: 25px; margin-top: 38px; }
  .hero-proof strong { font-size: 16px; }
  .hero-visual { width: calc(100% - 35px); margin-left: auto; }
  .hero-visual { height: 500px; width: 100%; }
  .hero-person { width: 100%; right: -2%; bottom: -48px; }
  .hero-shape { width: 82%; right: -4%; }
  .hero-type { left: -6%; top: 7%; font-size: 170px; }
  .portrait-tag { left: 0; bottom: 13px; padding: 10px; }
  .hero-city { right: 0; top: 12%; }
  .now-strip { grid-template-columns: 1fr auto; padding: 20px 18px; gap: 13px; }
  .now-title { grid-column: 1 / -1; grid-row: 1; padding-right: 40px; }
  .now-label { grid-column: 1; grid-row: 2; }
  .now-percent { grid-column: 2; grid-row: 2; }
  .progress-wrap { grid-column: 1 / -1; grid-row: 3; }
  .section { padding: 80px 18px; }
  .section-heading { display: block; margin-bottom: 40px; }
  .section-heading h2 { font-size: 42px; }
  .section-heading > p { margin-top: 26px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
  .step-icon { margin: 30px 0; }
  .task-controls { top: 63px; display: block; margin-left: -18px; margin-right: -18px; padding: 12px 18px; }
  .categories { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .category { white-space: nowrap; }
  .search { width: 100%; margin-top: 10px; }
  .task-grid { grid-template-columns: 1fr; }
  .task-card { min-height: 300px; }
  .tasks-footer { flex-direction: column; align-items: center; gap: 0; }
  .stream-section { padding: 80px 18px; min-height: auto; }
  .stream-copy h2 { font-size: 42px; }
  .stream-features { grid-template-columns: 1fr; }
  .overlay-demo { width: 112%; margin-left: -6%; margin-top: 30px; }
  .challenge-widget { width: 76%; left: 8px; bottom: 8px; padding: 10px; }
  .challenge-widget h3 { margin: 7px 0; font-size: 10px; }
  .qr-mock { width: 58px; right: 8px; bottom: 8px; }
  .manifesto h2 { font-size: 47px; }
  .rules-grid { grid-template-columns: 1fr; }
  .rules-grid article, .rules-grid article + article, .rules-grid article:nth-child(3) { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .rules-grid h3 { margin-top: 20px; }
  footer { padding: 55px 18px 95px; }
  .footer-top { grid-template-columns: 1fr; gap: 35px; padding-bottom: 45px; }
  .footer-links { align-items: flex-start; }
  .footer-bottom { gap: 16px; flex-wrap: wrap; }
.mobile-cart { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: 10px; height: 55px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; color: var(--button-dark-text); background: var(--button-dark-bg); border: 0; border-radius: 4px; box-shadow: 0 12px 35px rgba(36,27,23,.35); font-size: 12px; }
  .mobile-cart[hidden] { display: none; }
  .cart-drawer { padding: 22px 18px; }
  .modal { padding: 35px 20px; }
  .donation-modal { padding: 0; }
  .da-shell { grid-template-columns: 1fr; min-height: 0; max-height: calc(100dvh - 28px); overflow-y: auto; }
  .da-summary { padding: 30px 20px 25px; }
  .da-summary h2 { font-size: 27px; margin: 13px 0 22px; }
  .da-selected { max-height: 130px; }
  .da-frame-panel { min-height: 650px; }
  .donation-modal .modal-close { position: fixed; top: 22px; right: 22px; }
  .modal h2 { font-size: 30px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .editor-modal { width: calc(100vw - 28px); max-width: calc(100vw - 28px); padding-left: 18px; padding-right: 18px; }
  .editor-modal .modal-close { position: sticky; top: 0; right: auto; z-index: 6; float: right; margin: -4px 0 8px 12px; background: var(--paper); }
  .editor-tabs { top: -35px; margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; overflow-x: auto; }
  .editor-stats-row { grid-template-columns: 1fr; gap: 0; }
  .editor-task-toolbar { align-items: stretch; flex-direction: column; }
  .editor-task-toolbar .button { width: 100%; }
  .task-editor-form { padding: 18px; }
  .editor-task-item { grid-template-columns: 42px minmax(0, 1fr) 34px; }
  .editor-task-item button[data-edit-task] { grid-column: 2; justify-self: start; }
  .editor-task-item button.danger { grid-column: 3; grid-row: 1 / 3; }
  .editor-transfer-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
