/* ============================================================
   Daman Creator Program — stylesheet
   Light "Daman" theme: white surfaces, coral/red brand,
   vivid multi-color category tiles.
   ============================================================ */

:root {
  --bg:        #f3f5f9;
  --bg-2:      #eef1f7;
  --bg-3:      #ffffff;
  --surface:   #ffffff;
  --surface-2: #f7f8fc;
  --line:      #e6e9f0;
  --line-2:    #d7dce7;

  --text:      #1a2230;
  --text-dim:  #4d596e;
  --text-mut:  #5d6b7a;
  --err:       #d43442;

  /* brand */
  --red:       #ee4a52;
  --red-2:     #e5333f;
  --coral:     #f76b66;
  --coral-soft:#ffeceb;
  --gold:      #f5a623;

  /* vivid tile gradients (category-tile style) */
  --g-blue:    linear-gradient(135deg, #6aa6f5 0%, #8f7ff0 100%);
  --g-purple:  linear-gradient(135deg, #b06ae6 0%, #8a5fe0 100%);
  --g-coral:   linear-gradient(135deg, #ff8a7a 0%, #f65e63 100%);
  --g-amber:   linear-gradient(135deg, #ffb35c 0%, #ff7e5f 100%);
  --g-pink:    linear-gradient(135deg, #ff8fb3 0%, #f45e8c 100%);
  --g-teal:    linear-gradient(135deg, #4fd1c5 0%, #4a9ef0 100%);

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow:    0 20px 46px -24px rgba(35,50,80,.35);
  --shadow-sm: 0 10px 24px -16px rgba(35,50,80,.35);
  --shadow-red: 0 14px 30px -12px rgba(238,74,82,.5);

  --wrap: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: "Sora", var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.02em; color: var(--text); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.grad {
  background: linear-gradient(100deg, var(--red) 0%, #b06ae6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --_pad: 11px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--_pad);
  border-radius: 999px;
  font: 600 15px/1 var(--font);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s, opacity .2s, color .2s;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { --_pad: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  /* P1-4: deeper coral→red so white text clears WCAG AA (≥4.5:1) across the whole
     gradient. Keeps the Daman coral/red identity, just darker. Marketing CTAs only —
     #submitBtn below overrides this with its own dark design, so Submit is untouched. */
  background: linear-gradient(100deg, #d2333b 0%, #bf1f2b 100%);
  color: #fff; font-weight: 700;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(238,74,82,.6); }
.btn-primary:disabled, .btn-primary[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; filter: saturate(.55); }
.btn-primary:disabled:hover { transform: none; box-shadow: none; }

/* P1-4 (owner-approved): the Submit Application button has its OWN dark design,
   separate from the marketing CTAs. White on this dark navy is ~13:1 (well past AA).
   Validation / disabled-until-complete / loading / idempotency logic is unchanged. */
#submitBtn {
  background: linear-gradient(100deg, #262f42 0%, #141a28 100%);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(16,21,34,.5);
}
#submitBtn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(16,21,34,.6); }
#submitBtn:disabled, #submitBtn[disabled] { opacity: .45; filter: none; box-shadow: none; transform: none; cursor: not-allowed; }
#submitBtn:disabled:hover { transform: none; box-shadow: none; }

/* P1-2: informational notice (e.g. old ?type=traffic links -> traffic is automatic) */
.info-banner { display: block; background: var(--coral-soft); border: 1px solid rgba(238,74,82,.22); color: var(--text); border-radius: 14px; padding: 14px 16px; font-size: 14.5px; line-height: 1.55; margin-bottom: 18px; }
.info-banner b { color: var(--red-2); }

.btn-ghost {
  background: #fff;
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); background: var(--coral-soft); }

.btn-copy {
  background: var(--surface-2); border-color: var(--line-2); color: var(--text-dim);
  padding: 8px 14px; font-size: 14px;
}
.btn-copy:not(:disabled):hover { color: var(--red); border-color: var(--red); }
.btn-copy:disabled { opacity: .5; cursor: not-allowed; }
.btn-copy.done { color: #fff; background: var(--red); border-color: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 19px; flex-shrink: 0; }
.brand-mark { color: var(--red); display: grid; place-items: center; }
.brand-text { color: var(--text); white-space: nowrap; }
.brand-text b { color: var(--red); font-weight: 800; }
.text-link { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.text-link:hover { color: var(--red-2); }

.main-nav { display: flex; gap: 14px; margin-left: 8px; flex-shrink: 0; flex-wrap: nowrap; }
.main-nav a { color: var(--text-dim); font-weight: 500; font-size: 14px; white-space: nowrap; transition: color .18s; position: relative; }
.main-nav a:hover { color: var(--text); }
.main-nav a::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background:var(--red); transition:width .2s var(--ease); }
.main-nav a:hover::after { width:100%; }

.header-cta { display: flex; gap: 10px; margin-left: auto; flex-shrink: 0; }
.header-cta .btn { padding: 9px 15px; font-size: 14px; }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 7px; cursor: pointer; margin-left: auto; }
/* Switch to the hamburger a bit early so the desktop nav never wraps within --wrap (1180px). */
@media (max-width: 1140px) { .main-nav, .header-cta { display: none; } .nav-toggle { display: inline-flex; } }

.mobile-nav { display: flex; flex-direction: column; gap: 4px; padding: 12px 20px 20px; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 8px; color: var(--text-dim); border-radius: 10px; font-weight: 500; }
.mobile-nav a:hover { background: var(--surface-2); color: var(--text); }
.mobile-nav .btn { margin-top: 8px; }
/* P1-4: the primary CTA inside the mobile menu must keep WHITE text — `.mobile-nav a`
   above sets a dark link color that otherwise wins over .btn-primary's white, leaving
   dark text on the red gradient (fails WCAG). White on the darkened gradient = 4.91:1. */
.mobile-nav .btn-primary { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 68px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: 0;
  background:
    radial-gradient(52% 60% at 20% 6%, rgba(247,107,102,.28), transparent 70%),
    radial-gradient(46% 52% at 86% 0%, rgba(176,106,230,.22), transparent 70%),
    radial-gradient(40% 46% at 60% 18%, rgba(106,166,245,.18), transparent 70%);
  filter: blur(4px); pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 700; color: var(--red);
  background: var(--coral-soft); border: 1px solid rgba(238,74,82,.22);
  padding: 7px 14px; border-radius: 999px; letter-spacing: .01em;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(238,74,82,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(238,74,82,0); } }

.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; margin: 20px 0 18px; }
.lead { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--text-dim); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin: 30px 0 34px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.stat-num { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--red); }
.stat-label { font-size: 13px; color: var(--text-mut); max-width: 130px; }

/* hero card */
.hero-card {
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow); position: relative;
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-weight: 700; font-family: var(--font-head); }
.pill { font: 700 11.5px/1 var(--font); color: var(--red); background: var(--coral-soft); border: 1px solid rgba(238,74,82,.24); padding: 6px 10px; border-radius: 999px; }
.tier-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; border-bottom: 1px dashed var(--line);
}
.tier-list li:last-child { border-bottom: none; }
.tier-q { color: var(--text-dim); font-size: 15px; }
.tier-q em { color: var(--text-mut); font-style: normal; font-size: 12.5px; display: block; }
.tier-r { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--text); }
.tier-top { background: var(--coral-soft); border-radius: 12px; padding-inline: 12px; border-bottom: none; }
.tier-top .tier-r { color: var(--red); }
.hero-card-foot { margin-top: 14px; font-size: 12.5px; color: var(--text-mut); }

/* platform strip */
.platform-strip {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line);
}
.platform-strip-label { color: var(--text-mut); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.platform-strip ul { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.platform-strip li { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-weight: 600; font-size: 14.5px; }
.platform-strip li svg { color: var(--red); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 16.5px; }
.kicker { display: inline-block; color: var(--red); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }

/* streams — vivid category tiles */
.stream-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stream-card {
  position: relative; overflow: hidden;
  border: none; border-radius: var(--radius);
  padding: 26px 22px; color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.stream-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stream-card::after {
  content: ""; position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px;
  background: rgba(255,255,255,.14); border-radius: 50%;
}
.stream-card:nth-child(1) { background: var(--g-blue); }
.stream-card:nth-child(2) { background: var(--g-coral); }
.stream-card:nth-child(3) { background: var(--g-purple); }
.stream-card:nth-child(4) { background: var(--g-amber); }
.stream-ico {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  background: rgba(255,255,255,.22); color: #fff; border: 1px solid rgba(255,255,255,.35);
  margin-bottom: 18px; backdrop-filter: blur(2px);
}
.stream-card h3 { position: relative; z-index: 1; color: #fff; font-size: 18px; margin-bottom: 8px; }
.stream-card p { position: relative; z-index: 1; color: rgba(255,255,255,.92); font-size: 14.5px; }

/* reward cards */
.reward-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reward-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 22px; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.reward-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.reward-card.featured { border-color: transparent; background: linear-gradient(160deg, #fff 0%, var(--coral-soft) 100%); box-shadow: 0 22px 48px -24px rgba(238,74,82,.5); outline: 2px solid rgba(238,74,82,.35); }
.reward-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(100deg, var(--coral), var(--red-2)); color: #fff; font: 700 11.5px/1 var(--font); padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-red); }
.reward-amt { font-family: var(--font-head); font-size: 40px; font-weight: 800; color: var(--text); }
.featured .reward-amt { color: var(--red); }
.reward-req { color: var(--text-dim); font-weight: 600; margin: 6px 0 16px; }
.reward-notes { border-top: 1px solid var(--line); padding-top: 14px; }
.reward-notes li { font-size: 13px; color: var(--text-mut); }

.note-box {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 30px;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.note-box svg { color: var(--red); flex: none; margin-top: 2px; }
.note-box p { color: var(--text-dim); font-size: 15px; }
.note-box b { color: var(--text); }

/* traffic */
.traffic-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.traffic-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.traffic-table { width: 100%; border-collapse: collapse; }
.traffic-table th { text-align: left; padding: 16px 22px; font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: linear-gradient(100deg, var(--coral), var(--red-2)); border-bottom: 1px solid var(--line); }
.traffic-table th:last-child, .traffic-table td:last-child { text-align: right; }
.traffic-table td { padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--text-dim); }
.traffic-table tbody tr:last-child td { border-bottom: none; }
.traffic-table td:last-child { font-family: var(--font-head); font-weight: 700; color: var(--text); }
.traffic-table tr:hover td { background: var(--surface-2); }
.traffic-table .peak td { background: var(--coral-soft); }
.traffic-table .peak td:last-child { color: var(--red); }

.traffic-explain h3 { font-size: 20px; margin-bottom: 12px; }
.traffic-explain > p { color: var(--text-dim); margin-bottom: 18px; }
.traffic-explain b { color: var(--text); }
.example { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.example-step { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px; }
.example-step span { color: var(--text-dim); }
.example-step b { font-family: var(--font-head); }
.example-arrow { display: grid; place-items: center; color: var(--red); }
.example-total { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 14px 16px; background: var(--coral-soft); border: 1px solid rgba(238,74,82,.24); border-radius: 12px; }
.example-total b { font-family: var(--font-head); font-size: 20px; color: var(--red); }
.fine { margin-top: 14px; font-size: 13px; color: var(--text-mut); }

/* calculator */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.calc-controls { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 14.5px; color: var(--text); }
.field-hint { font-size: 12.5px; color: var(--text-mut); }
.field input[type="range"] { width: 100%; accent-color: var(--red); }
.field output { color: var(--red); font-weight: 800; font-family: var(--font-head); }
.calc input[type="number"], .calc select, .claim-form input, .claim-form select {
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--text); padding: 12px 14px; font: 500 15px var(--font); width: 100%; transition: border-color .18s, box-shadow .18s, background .18s;
}
.calc input:focus, .calc select:focus, .claim-form input:focus, .claim-form select:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(238,74,82,.14); }

.calc-result { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.calc-line { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.calc-line span { color: var(--text-dim); font-size: 14.5px; }
.calc-line b { font-family: var(--font-head); }
.calc-total { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 16px; background: linear-gradient(100deg, var(--coral), var(--red-2)); border-radius: 12px; box-shadow: var(--shadow-red); }
.calc-total span { font-weight: 700; color: #fff; }
.calc-total b { font-family: var(--font-head); font-size: 26px; color: #fff; }
.calc-note { font-size: 12.5px; color: var(--text-mut); margin: 12px 0 16px; }

/* commission */
.commission-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.commission-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.commission-item:hover { transform: translateY(-4px); }
.commission-item svg { margin: 0 auto 12px; }
.commission-item:nth-child(1) svg { color: #6aa6f5; }
.commission-item:nth-child(2) svg { color: var(--red); }
.commission-item:nth-child(3) svg { color: #b06ae6; }
.commission-item:nth-child(4) svg { color: #f5a623; }
.commission-item:nth-child(5) svg { color: #4fbfae; }
.commission-item h3 { font-size: 15.5px; margin-bottom: 6px; }
.commission-item p { font-size: 13px; color: var(--text-mut); }

.stack-banner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; padding: 22px; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stack-banner span { font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.stack-banner span:nth-child(1) { color: #6aa6f5; }
.stack-banner span:nth-child(3) { color: var(--red); }
.stack-banner span:nth-child(5) { color: #b06ae6; }
.stack-banner span:nth-child(7) { color: #f5a623; }
.stack-banner svg { color: var(--text-mut); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 11px 20px; font-weight: 600; color: var(--text-dim); font-size: 15px; box-shadow: var(--shadow-sm); transition: border-color .18s, color .18s, transform .18s; }
.chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.steps > li { list-style: none; }
.steps > li::marker { content: ""; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-sm); }
.step-n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.steps li:nth-child(1) .step-n { background: var(--g-blue); }
.steps li:nth-child(2) .step-n { background: var(--g-coral); }
.steps li:nth-child(3) .step-n { background: var(--g-purple); }
.steps li:nth-child(4) .step-n { background: var(--g-amber); }
.steps li:nth-child(5) .step-n { background: var(--g-pink); }
.steps h3 { font-size: 16.5px; margin-bottom: 6px; }
.steps p { font-size: 13.5px; color: var(--text-dim); }

/* claim */
.claim-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start; }
.claim-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req { color: var(--red); }
.check { flex-direction: row !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; color: var(--text-dim) !important; font-size: 14px !important; cursor: pointer; }
.check input { width: auto; margin-top: 3px; accent-color: var(--red); flex: none; }
.form-actions { display: flex; gap: 12px; margin-top: 6px; }

.claim-output { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.claim-output-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.claim-output-head h3 { font-size: 18px; }
.ticket-preview {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.7; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; white-space: pre-wrap; word-break: break-word; min-height: 220px; margin: 0;
}
.checklist { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.checklist h4 { font-size: 13.5px; color: var(--text-mut); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.checklist ul { display: flex; flex-wrap: wrap; gap: 8px; }
.checklist li { font-size: 12.5px; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }

/* rules */
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 34px; }
.rules-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.rules-title { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 16px; }
.rules-title.ok { color: #22a06b; }
.rules-title.no { color: var(--red); }
.rule-list li { position: relative; padding: 9px 0 9px 22px; color: var(--text-dim); border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.rule-list li:last-child { border-bottom: none; }
.rule-list li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; box-shadow: var(--shadow-sm); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-family: var(--font-head); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--red); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--text-dim); font-size: 15px; }

/* final cta */
.final-cta { padding: 80px 0; text-align: center; background: radial-gradient(60% 120% at 50% 0%, rgba(247,107,102,.16), transparent 70%); }
.final-cta-inner h2 { font-size: clamp(24px, 3.4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.final-cta-inner p { color: var(--text-dim); font-size: 17px; margin-bottom: 28px; max-width: 560px; margin-inline: auto; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 44px 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; margin-bottom: 16px; }
.footer-brand .brand-mark { color: var(--red); }
.footer-note { color: var(--text-mut); font-size: 13px; max-width: 820px; line-height: 1.8; }
.footer-copy { color: var(--text-mut); font-size: 13px; margin-top: 18px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); background: #fff; border: 1px solid var(--red); color: var(--text); padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, transform .25s var(--ease); z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 480px; }
  .stream-grid, .reward-cards { grid-template-columns: repeat(2, 1fr); }
  .commission-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .traffic-layout, .calc, .claim-layout, .rules-grid { grid-template-columns: 1fr; }
  .claim-output { position: static; }
}
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 30px; }
  .stream-grid, .reward-cards, .commission-grid, .steps, .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-actions .btn { flex: 1; }
  .stack-banner { gap: 8px; }
  .stack-banner span { font-size: 13px; }
}

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

/* ============================================================
   Accessibility helpers
   ============================================================ */
.sr-only {
  position: absolute !important; 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: 12px; top: -60px; z-index: 200;
  background: var(--red); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: 10px; transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; outline: 3px solid rgba(238,74,82,.4); }

/* visible focus for keyboard users across interactive elements */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(238,74,82,.45); outline-offset: 2px; border-radius: 8px;
}

/* ============================================================
   Claim builder — new components
   ============================================================ */
.opt { color: var(--text-mut); font-weight: 500; font-size: 12.5px; }

/* where to submit */
.submit-where { max-width: 900px; margin: 0 auto 26px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-sm); }
.sw-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sw-pending { color: var(--text-dim); font-weight: 600; font-size: 14.5px;
  background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 999px; padding: 8px 14px; }
.sw-link { color: var(--red); font-weight: 700; text-decoration: underline; }
.sw-notes { margin-top: 10px; color: var(--text-dim); font-size: 13.5px; }

/* segmented control */
.seg-group { border: none; padding: 0; margin: 0; min-width: 0; }
.seg-group legend { font-weight: 700; font-size: 14.5px; color: var(--text); margin-bottom: 8px; padding: 0; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.seg-opt { flex: 1 1 auto; min-width: 0; position: relative; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg-opt span { display: block; text-align: center; padding: 10px 14px; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: var(--text-dim); white-space: nowrap; transition: background .18s, color .18s; }
.seg-opt input:checked + span { background: linear-gradient(100deg, var(--coral), var(--red-2)); color: #fff; box-shadow: var(--shadow-red); }
.seg-opt input:focus-visible + span { outline: 3px solid rgba(238,74,82,.45); outline-offset: 2px; }

/* panels */
.app-panel { display: flex; flex-direction: column; gap: 18px; }
.app-panel[hidden] { display: none; }

/* entries */
.entries-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.entries-head h3 { font-size: 17px; }
.entries-count { color: var(--text-mut); font-size: 13px; font-weight: 600; }
.entries { display: flex; flex-direction: column; gap: 14px; }
.entry { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.entry-head { display: flex; align-items: center; justify-content: space-between; }
.entry-title { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--text); }
.entry-remove { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: #fff; border: 1px solid var(--line-2); color: var(--text-dim); cursor: pointer; transition: color .18s, border-color .18s; }
.entry-remove:hover:not(:disabled) { color: var(--red); border-color: var(--red); }
.entry-remove:disabled { opacity: .4; cursor: not-allowed; }
.entry .field input, .entry .field select { background: #fff; }

.btn-add { align-self: flex-start; }

/* derived summary */
.derived { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.derived-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.derived-row span { color: var(--text-dim); font-size: 14px; }
.derived-row b { font-family: var(--font-head); }
.derived-total { border-bottom: none; padding-top: 12px; }
.derived-total span { font-weight: 700; color: var(--text); }
.derived-total b { color: var(--red); font-size: 20px; }
.derived-note { margin-top: 8px; font-size: 12.5px; color: var(--text-mut); }
.milestone-out { margin: 2px 0 0; font-size: 13px; color: var(--red); font-weight: 600; }
.milestone-out:empty { display: none; }

.topup-fields[hidden] { display: none; }

/* field errors */
.field-error { color: var(--err); font-size: 12.5px; font-weight: 600; margin: 2px 0 0; min-height: 0; }
.field-error:empty { display: none; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--err) !important; box-shadow: 0 0 0 3px rgba(212,52,66,.14) !important; }
.check input[aria-invalid="true"] { outline: 2px solid var(--err); }

.form-error-summary { background: #fdecee; border: 1px solid rgba(212,52,66,.35); color: #a5222e;
  border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; font-size: 14px; }
.form-error-summary[hidden] { display: none; }

/* output actions */
.output-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.outdated-banner { display: flex; align-items: center; gap: 8px; background: #fff6e6; border: 1px solid #f0cf8a;
  color: #8a6414; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.outdated-banner[hidden] { display: none; }
.outdated-banner svg { color: #c9971f; flex: none; }
.manual-copy { margin-top: 10px; font-size: 13px; color: var(--text-dim); background: var(--surface-2);
  border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; }
.manual-copy[hidden] { display: none; }

/* ============================================================
   Mobile overflow fixes
   ============================================================ */
/* grid children must be allowed to shrink inside their track */
.form-row > .field, .calc-controls > .field, .hero-grid > *, .claim-layout > * { min-width: 0; }
.field input, .field select, .field textarea { max-width: 100%; }
.ticket-preview { overflow-x: auto; }

@media (max-width: 560px) {
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { flex: 1 1 100%; }
  .output-actions .btn { flex: 1 1 auto; }
  .seg { flex-wrap: nowrap; }
  .seg-opt span { padding: 10px 8px; font-size: 13px; white-space: normal; }
  .claim-form { padding: 20px; }
  .claim-output { padding: 20px; }
  .submit-where { padding: 14px 16px; }
}
@media (max-width: 380px) {
  .wrap { padding-inline: 16px; }
}

/* ============================================================
   Motion / animation (progressive enhancement)
   Active only when JS adds .js-anim to <html>. JS skips that
   entirely under prefers-reduced-motion, so content stays
   visible and static for those users.
   ============================================================ */
.js-anim .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.js-anim .reveal.reveal-left  { transform: translateX(-30px); }
.js-anim .reveal.reveal-right { transform: translateX(30px); }
.js-anim .reveal.reveal-scale { transform: scale(.96); }
.js-anim .reveal.in { opacity: 1; transform: none; }

.js-anim .stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.js-anim .stagger.in > * { opacity: 1; transform: none; }

/* header gains a shadow once the page is scrolled */
.site-header { transition: box-shadow .25s var(--ease), background .25s; }
.site-header.scrolled { box-shadow: 0 12px 30px -22px rgba(20,30,50,.55); }

/* hero ambient motion + entrance */
.js-anim .hero-glow { animation: glowDrift 16s ease-in-out infinite alternate; }
@keyframes glowDrift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(24px,12px,0) scale(1.06); }
}
.js-anim .hero-card { animation: cardIn .8s var(--ease) both, floaty 6.5s ease-in-out 1.1s infinite; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal, .js-anim .stagger > * { opacity: 1 !important; transform: none !important; }
  .js-anim .hero-card, .js-anim .hero-glow, .js-anim .hero-art { animation: none !important; }
}

/* ============================================================
   REDESIGN LAYER — "bright & playful" creator program
   Warm-ivory base, sticker reward icons, big money numbers.
   Overrides earlier rules by cascade order; palette unchanged.
   ============================================================ */
:root {
  --bg:        #fbf6ef;   /* warm ivory */
  --bg-2:      #f5eee3;   /* warm alt band */
  --surface-2: #f7f1e8;
  --line:      #ece3d5;
  --line-2:    #ddd0bd;
  --radius:    20px;
  --radius-sm: 13px;
  --radius-lg: 28px;
  --shadow:    0 22px 50px -26px rgba(60,45,30,.40);
  --shadow-sm: 0 12px 26px -18px rgba(60,45,30,.36);
}

/* playful headings */
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -.025em; }
.grad { background: linear-gradient(100deg, var(--red) 0%, #b06ae6 55%, #6aa6f5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Hero visual (illustration + floating reward tags) ---- */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.hero-art { width: 100%; max-width: 470px; height: auto; filter: drop-shadow(0 24px 34px rgba(60,45,30,.20)); }
.js-anim .hero-art { animation: floaty 6.5s ease-in-out infinite; }
.hero-tag {
  position: absolute; display: flex; flex-direction: column; gap: 1px;
  background: #fff; border: 1px solid var(--line); border-radius: 15px;
  padding: 9px 15px; box-shadow: var(--shadow); text-align: left;
}
.hero-tag i { font-style: normal; font-size: 10.5px; color: var(--text-mut); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.hero-tag b { font-family: var(--font-head); font-size: 19px; color: var(--red); line-height: 1.1; }
.hero-tag-1 { top: 2%; left: -3%; }
.hero-tag-2 { top: 42%; right: -5%; }
.hero-tag-3 { bottom: 4%; left: 4%; }
.hero-tag-2 b { color: #d1701f; }
.hero-tag-3 b { color: #8a4fca; }
.js-anim .hero-tag-1 { animation: floaty 5.5s ease-in-out .2s infinite; }
.js-anim .hero-tag-2 { animation: floaty 6s ease-in-out .8s infinite; }
.js-anim .hero-tag-3 { animation: floaty 5s ease-in-out .5s infinite; }

/* ---- Stream cards → light cards with sticker + accent ---- */
.stream-card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--_a, var(--red));
  color: var(--text); padding: 26px 22px 24px; box-shadow: var(--shadow-sm); overflow: visible;
}
.stream-card::after { display: none; }
/* override earlier per-card gradient backgrounds (higher specificity) */
.stream-grid .stream-card:nth-child(1),
.stream-grid .stream-card:nth-child(2),
.stream-grid .stream-card:nth-child(3),
.stream-grid .stream-card:nth-child(4) { background: #fff; }
.stream-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stream-card h3 { color: var(--text); font-size: 18.5px; margin-bottom: 6px; }
.stream-card p { color: var(--text-dim); font-size: 14.5px; }
.stream-ico {
  display: flex; align-items: flex-end; justify-content: flex-start;
  width: 100%; height: 132px; margin: 0 0 4px; background: none; border: none; border-radius: 0; backdrop-filter: none;
}
.stream-ico img {
  max-height: 132px; max-width: 100%; width: auto; height: auto; object-fit: contain;
  border: none; border-radius: 0; background: none;
  filter: drop-shadow(0 16px 20px rgba(60,45,30,.22));
}
.stream-range {
  display: inline-block; margin-top: 14px; font-family: var(--font-head);
  font-weight: 800; font-size: 13px; padding: 7px 13px; border-radius: 999px;
}
.s-blue   { --_a: #6aa6f5; } .s-amber { --_a: #ff7e5f; }
.s-purple { --_a: #b06ae6; } .s-teal  { --_a: #4fbfae; }
.s-blue   .stream-range { background: #eaf1ff; color: #3f74c9; }
.s-amber  .stream-range { background: #fff0e2; color: #cf6a1c; }
.s-purple .stream-range { background: #f4e9fc; color: #8a4fca; }
.s-teal   .stream-range { background: #e2f7f2; color: #1a9781; }

/* ---- Bigger money numbers ---- */
.reward-amt { font-size: clamp(40px, 5vw, 50px); letter-spacing: -.02em; }
.stat-num { font-size: clamp(26px, 3vw, 32px); }
.calc-total b { font-size: clamp(26px, 3vw, 32px); }
.tier-r { font-size: 22px; }
.traffic-table td:last-child { font-size: 16px; }

/* reward tier cards — a touch more playful */
.reward-card { border-radius: var(--radius); }
.reward-card:hover { transform: translateY(-6px); }
.reward-flag { letter-spacing: .02em; }

/* warm section rhythm */
.section.alt { background: var(--bg-2); }
.hero-glow {
  background:
    radial-gradient(52% 60% at 18% 4%, rgba(247,107,102,.30), transparent 70%),
    radial-gradient(46% 52% at 88% 0%, rgba(176,106,230,.22), transparent 70%),
    radial-gradient(42% 48% at 62% 16%, rgba(106,166,245,.20), transparent 70%),
    radial-gradient(40% 46% at 40% 22%, rgba(79,191,174,.16), transparent 70%);
}

/* chips a bit more playful */
.chip { font-weight: 700; }
.chip:hover { background: var(--coral-soft); }

/* hero tags hide on very small screens to avoid overlap */
@media (max-width: 700px) {
  .hero-visual { min-height: 0; }
  .hero-tag-2 { right: 0; }
  .hero-tag-1 { left: 0; }
}
@media (max-width: 460px) {
  .hero-tag { display: none; }
  .stream-ico { height: 112px; }
  .stream-ico img { max-height: 112px; }
}

/* "What reviewers check" — informational guidance, NOT an interactive task */
.review-checklist[hidden] { display: none; }
.review-intro { font-size: 12.5px; color: var(--text-mut); margin: 0 0 10px; line-height: 1.5; }
.review-list { display: flex; flex-direction: column; gap: 7px; margin-top: 6px; }
.review-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-dim); line-height: 1.4; }
.review-list .review-ic { flex: none; margin-top: 1px; color: #1c8f5a; }

/* prevent reveal offsets from creating horizontal scroll */
html { overflow-x: hidden; }
@media (max-width: 700px) {
  .js-anim .reveal-left, .js-anim .reveal-right { transform: translateY(24px); }
}

/* ============================================================
   Apply page — back link + workflow stepper
   ============================================================ */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-dim); font-weight: 700; font-size: 14.5px;
  margin-bottom: 18px; padding: 8px 15px 8px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  box-shadow: var(--shadow-sm); transition: color .18s, border-color .18s, transform .18s;
}
.back-link:hover { color: var(--red); border-color: var(--red); transform: translateX(-2px); }
.back-link svg { color: currentColor; flex: none; }

.apply-flow {
  list-style: none; margin: 0 auto 26px; padding: 0; max-width: 940px;
  display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: stretch; justify-content: center;
}
.apply-flow li {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px 9px 9px; font-weight: 600; font-size: 14px; color: var(--text-dim);
  box-shadow: var(--shadow-sm);
}
.apply-flow-n {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(100deg, var(--coral), var(--red-2)); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 13px; flex: none;
}
@media (max-width: 560px) { .apply-flow li { width: 100%; } }

/* ============================================================
   Brand logo image (header + footer)
   ============================================================ */
.brand-mark img { height: 30px; width: auto; display: block; }
.footer-brand .brand-mark img { height: 24px; }
@media (max-width: 460px) { .brand-mark img { height: 26px; } }

/* ============================================================
   Member status page + apply-submit result
   ============================================================ */
.status-wrap { max-width: 720px; margin: 0 auto; }
.status-form { max-width: 720px; margin: 0 auto; }
.status-result { max-width: 720px; margin: 22px auto 0; }
.status-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.status-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.status-ticket { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.status-badge { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.st-pending  { background: #fff6e6; color: #8a6414; }
.st-approved { background: #e7f1ff; color: #2c62b8; }
.st-credited { background: #e3f7ee; color: #1c8f5a; }
.st-rejected { background: #fdecee; color: #b5202f; }
.status-amount { font-family: var(--font-head); font-weight: 800; font-size: 40px; color: var(--red); margin: 14px 0 6px; }
.status-amount span { font-size: 15px; font-weight: 600; color: var(--text-mut); }
.status-note { color: var(--text-dim); }
.status-reason { color: var(--text-dim); margin-top: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }

/* apply success block */
.submit-success { max-width: 100%; background: linear-gradient(160deg, #fff, var(--coral-soft)); border: 1px solid rgba(238,74,82,.3); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.submit-success h3 { font-size: 20px; margin-bottom: 8px; }
.submit-success .ticket-big { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--red); margin: 6px 0 4px; letter-spacing: .01em; }
.submit-success p { color: var(--text-dim); }
.submit-success .success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* success — "what happens next" + portal routing (B7 post-pilot UX) */
.submit-success .success-next { text-align: left; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(238,74,82,.22); }
.submit-success .success-next h4 { font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mut); margin-bottom: 10px; text-align: center; }
.submit-success .success-steps { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.submit-success .success-steps li { font-size: 13.5px; color: var(--text-dim); line-height: 1.45; }
.submit-success .success-firsttime { font-size: 13px; color: var(--text-dim); line-height: 1.55; text-align: left; margin: 0 0 14px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* activation support area — quieter than the two primary/secondary CTAs */
.submit-success .success-activate { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(238,74,82,.22); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; }
.submit-success .success-activate-q { font-size: 13px; font-weight: 700; color: var(--text-dim); }
.btn.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.submit-success .success-hint { font-size: 12px; color: var(--text-mut); line-height: 1.5; text-align: center; margin: 12px 0 0; }

/* "Application copy" — compact secondary utility (no large preview card by default) */
.claim-output-note { font-size: 12.5px; color: var(--text-mut); line-height: 1.45; margin: 4px 0 0; }
.record-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.record-label { min-width: 0; }
.record-label h3 { font-size: 16px; }
/* collapsed text lives inside a <details>, so it never occupies a big card */
.record-text { margin-top: 12px; }
.record-text > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-dim); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.record-text > summary::-webkit-details-marker { display: none; }
.record-text > summary::after { content: "+"; font-size: 15px; color: var(--red); line-height: 1; }
.record-text[open] > summary::after { content: "–"; }
.record-text .ticket-preview { margin-top: 12px; min-height: 0; }

/* combined review info — one compact collapsible, informational only */
.review-info { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; }
.review-info > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--text); }
.review-info > summary::-webkit-details-marker { display: none; }
.review-info > summary::after { content: "+"; font-size: 20px; color: var(--red); font-weight: 400; line-height: 1; }
.review-info[open] > summary::after { content: "–"; }
.review-info-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 16px; }
/* inside the collapsible the inner checklists shed their own top border/rule */
.review-info-body .checklist { margin-top: 0; padding-top: 0; border-top: none; }

/* evidence file input */
.evidence-field input[type="file"] { background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 12px; width: 100%; font: 500 14px var(--font); }
.evidence-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.evidence-previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* ============================================================
   B4 — program-week selector, per-post auto-validation, status states
   ============================================================ */

/* status badge now carries a small icon */
.status-badge { display: inline-flex; align-items: center; gap: 6px; }
.status-badge svg { width: 14px; height: 14px; }
.st-review { background: #fff1e0; color: #a4590c; }

/* per-post auto-validation result (apply page) */
.auto-results { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 16px; }
.auto-results h4 { font-family: var(--font-head); font-size: 15px; margin-bottom: 12px; }

.av-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.av-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #fff; border: 1px solid var(--line-2); color: var(--text-dim); }
.av-chip b { font-family: var(--font-head); font-weight: 800; color: var(--text); }
.av-chip.av-valid { background: #e3f7ee; border-color: #bde8d2; color: #1c8f5a; }
.av-chip.av-review { background: #fff1e0; border-color: #f2d6ac; color: #a4590c; }
.av-chip.av-invalid { background: #fdecee; border-color: #f5c6cc; color: #b5202f; }
.av-chip.av-valid b, .av-chip.av-review b, .av-chip.av-invalid b { color: inherit; }

.av-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.av-item { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); border-left-width: 3px; }
.av-item .av-ic { flex: none; display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 8px; }
.av-item .av-ic svg { width: 16px; height: 16px; }
.av-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.av-label { font-size: 13.5px; }
.av-reason { font-size: 12.5px; color: var(--text-mut); }
.av-item.av-valid { border-left-color: #1c8f5a; } .av-item.av-valid .av-ic { background: #e3f7ee; color: #1c8f5a; }
.av-item.av-review { border-left-color: #e2951f; } .av-item.av-review .av-ic { background: #fff1e0; color: #a4590c; }
.av-item.av-invalid { border-left-color: var(--red); } .av-item.av-invalid .av-ic { background: #fdecee; color: #b5202f; }
.av-foot { font-size: 12px; color: var(--text-mut); margin-top: 10px; }
.av-foot.av-disclaimer { border-top: 1px dashed var(--line-2); padding-top: 10px; }

/* receipt-render warning (secondary only) */
.receipt-warning { display: flex; gap: 8px; align-items: flex-start; background: #fff6e6; border: 1px solid #f2d6ac; color: #8a6414; border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; font-size: 13px; }
.receipt-warning svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.success-replay { font-size: 13px; color: var(--text-mut); margin-top: 6px; }

/* submit button loading state */
.btn.is-loading { opacity: .7; pointer-events: none; }

/* status page extras */
.status-note { display: flex; gap: 8px; align-items: flex-start; }
.status-note svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--text-mut); }
.status-week { color: var(--text-dim); font-size: 14px; margin: 4px 0 2px; }
.status-rev { color: var(--text-mut); font-size: 13px; }
.status-sub { font-size: 12.5px; color: var(--text-mut); margin-top: 8px; }
.status-ref { font-size: 13.5px; color: var(--text-dim); margin-top: 8px; word-break: break-word; }
.status-amount.status-amount-est { color: var(--text-dim); }
.status-amount.status-amount-est span { color: var(--text-mut); }
.status-card .av-counts { margin-top: 14px; }
.status-aside { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-dim); }
.status-aside svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--text-mut); }
.status-card .success-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ============================================================
   B4 fixes — recovery/correction banners, authoritative result meta, evidence
   ============================================================ */

/* A flex/inline-flex author rule otherwise overrides the [hidden] attribute,
   leaving "hidden" banners visible (empty). Keep [hidden] authoritative. */
[hidden] { display: none !important; }

/* reload-recovery + correction banners */
.recover-banner, .correction-banner {
  display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap;
  padding: 12px 14px; margin: 0 0 18px; border-radius: var(--radius-sm);
  background: #e7f1ff; border: 1px solid #bcd4f5; color: #28508f; font-size: 13.5px;
}
.recover-banner svg, .correction-banner svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.recover-banner.recover-warn { background: #fff6e6; border-color: #f2d6ac; color: #8a6414; }
.correction-banner.cb-blocked { background: #fdecee; border-color: #f5c6cc; color: #b5202f; }
.recover-banner > span:first-of-type, .correction-banner > span { flex: 1 1 220px; min-width: 0; }
.recover-actions { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.recover-actions .btn { padding: 7px 12px; font-size: 13px; }
.btn-dismiss { background: none; border: none; cursor: pointer; color: inherit; opacity: .7; padding: 4px; line-height: 0; }
.btn-dismiss:hover { opacity: 1; }
.correction-banner b { font-weight: 700; }

/* read-only / locked fields in correction mode */
.claim-form input[readonly], .claim-form input:disabled, .claim-form select:disabled { background: var(--surface-2); color: var(--text-dim); cursor: not-allowed; opacity: .85; }

/* authoritative result meta inside the success box (amounts from backend only) */
.submit-success .result-meta { font-size: 13.5px; color: var(--text-dim); margin-top: 8px; }
.submit-success .result-meta b { color: var(--text); }
.submit-success .result-meta .result-meta-sub { color: var(--text-mut); font-weight: 500; }
.submit-success .result-evidence { font-size: 12.5px; color: var(--text-mut); margin-top: 6px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.submit-success .result-evidence svg { width: 15px; height: 15px; }
.submit-success .result-evidence-warn { color: #8a6414; }

/* evidence previews (figure + caption) */
.evidence-previews { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.ev-thumb { width: 84px; margin: 0; }
.ev-thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.ev-thumb figcaption { font-size: 11px; color: var(--text-mut); margin-top: 4px; word-break: break-word; line-height: 1.3; }
.ev-preview-note { width: 100%; font-size: 12px; color: var(--text-mut); margin-top: 2px; }

/* ============================================================
   B7 post-pilot mobile polish — hero stats, publish-on, content pills
   Placed last so it wins the cascade over earlier .stat-num overrides.
   Desktop layout is untouched (rules live inside max-width queries).
   ============================================================ */
@media (max-width: 560px) {
  /* 4 — hero stats: three equal columns on one row */
  .hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; align-items: start;
  }
  .hero-stats .stat { min-width: 0; text-align: center; }
  .hero-stats .stat-num { font-size: clamp(19px, 5.4vw, 26px); line-height: 1.1; }
  .hero-stats .stat-label { font-size: 11px; max-width: none; line-height: 1.3; margin-top: 4px; }

  /* 5 — "Publish on": centered heading + centered platform list */
  .platform-strip { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .platform-strip ul { justify-content: center; gap: 10px 16px; }
  .platform-strip li { justify-content: center; }

  /* 2 — "Application record" head: title on its own line, actions in a row below */
  .output-record .record-row { flex-wrap: wrap; gap: 10px; }
  .output-record .output-actions { width: 100%; display: flex; gap: 10px; }
  .output-record .output-actions .btn { flex: 1 1 0; justify-content: center; }

  /* 6 — "What you can post": compact 3-up grid, last row stays centered */
  .chips { gap: 8px; }
  .chip {
    flex: 0 0 calc(33.333% - 8px); min-height: 42px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 9px 6px; font-size: 11.5px; line-height: 1.25; border-radius: 12px;
    hyphens: auto; overflow-wrap: anywhere;
  }
  .chip:hover { transform: none; }
}

/* very narrow phones — drop content pills to two columns before they cramp */
@media (max-width: 360px) {
  .hero-stats { gap: 7px; }
  .hero-stats .stat-num { font-size: clamp(17px, 5.2vw, 20px); }
  .hero-stats .stat-label { font-size: 10.5px; }
  .chip { flex-basis: calc(50% - 6px); font-size: 12px; }
}
