/* The public affiliate application, /affiliates/apply (affiliate_views.js).
   A landing page, so it has its own layout on the Marquezee tokens, with
   the marketing site's type (Playfair Display and Inter, self hosted, the
   same files as marketing/src/fonts). */

@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/static/playfair-display-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/static/inter-latin.woff2') format('woff2'); }

.aff {
  --cream: #FDF6EB; --surface: #FFFFFF; --coral: #F36B5B; --orange: #FF8A3D; --ink: #172238; --soft: #536176;
  --line: #EBDDD2; --soft-coral: #FFF0EA; --coral-text: #B8402F;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; font-variant-numeric: lining-nums;
}
.aff *, .aff *::before, .aff *::after { box-sizing: border-box; }
.aff a { color: var(--coral-text); }
.aff :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.aff-top { display: flex; justify-content: center; padding: 20px 16px 0; }
.aff-top img { width: 160px; height: auto; display: block; }

.aff-hero { position: relative; max-width: 1160px; margin: 0 auto; padding: 12px 24px 64px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr); gap: 56px; align-items: start; }
.aff-hero::before { content: ""; position: absolute; z-index: 0; left: -160px; top: 160px; width: 460px; height: 560px; border-radius: 48% 52% 60% 40%; background: radial-gradient(closest-side, rgba(243,107,91,.08), rgba(243,107,91,0)); pointer-events: none; }
.aff-hero > * { position: relative; z-index: 1; }

.aff-eyebrow { margin: 12px 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-text); }
.aff h1 { position: relative; margin: 0 0 18px; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.06; letter-spacing: -0.01em; }
.aff-spark { position: absolute; left: -54px; top: 18px; width: 36px; height: 44px; color: var(--orange); }
.aff-lede { margin: 0 0 32px; max-width: 34em; font-size: 18px; color: var(--soft); }

.aff-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.aff-benefits li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; }
.aff-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--soft-coral); color: var(--coral); display: grid; place-items: center; }
.aff-icon svg { width: 28px; height: 28px; }
.aff-benefits h2 { margin: 0 0 2px; font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.25; }
.aff-benefits p { margin: 0; color: var(--soft); font-size: 15.5px; }

.aff-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(23,34,56,.04), 0 12px 32px rgba(23,34,56,.07); padding: 28px 32px; }
.aff-card h2 { margin: 0 0 6px; font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.2; }
.aff-card > p { margin: 0 0 18px; color: var(--soft); font-size: 15px; }
.aff-alert { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: var(--soft-coral); border: 1px solid #F6C3B9; color: var(--ink); font-size: 15px; }
.aff-field { margin: 0 0 14px; }
.aff-field label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 14.5px; }
.aff-field input, .aff-field textarea { display: block; width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); padding: 10px 14px; border: 1px solid #DCCFC4; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.aff-field textarea { min-height: 96px; resize: vertical; }
.aff-field input::placeholder, .aff-field textarea::placeholder { color: #8A94A3; }
.aff-field input:focus, .aff-field textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(243,107,91,.18); }
.aff-hp { position: absolute; left: -5000px; }
.aff-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 6px; padding: 14px 18px; font: inherit; font-size: 16px; font-weight: 650; color: var(--ink); background: linear-gradient(135deg, var(--coral), var(--orange)); border: 0; border-radius: 10px; cursor: pointer; box-shadow: 0 2px 6px rgba(243,107,91,.28); transition: filter .15s, box-shadow .15s; }
.aff-submit:hover { filter: brightness(1.04); box-shadow: 0 4px 12px rgba(243,107,91,.32); }
.aff-submit svg { width: 18px; height: 18px; }
.aff-signin { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); text-align: center; }
.aff-signin a { font-weight: 600; }

.aff-how { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0)); padding: 56px 24px 72px; }
.aff-how > h2 { margin: 0; text-align: center; font-family: var(--display); font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; }
.aff-how > h2 em { font-style: italic; font-weight: 600; }
.aff-how > p { margin: 6px 0 32px; text-align: center; color: var(--soft); }
.aff-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1160px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.aff-steps li { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px 24px 20px; box-shadow: 0 1px 2px rgba(23,34,56,.03); }
.aff-step-n { position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--soft-coral); color: var(--coral-text); font-weight: 700; font-size: 14px; }
.aff-step-art { width: 76px; height: 76px; margin-top: 14px; }
.aff-steps h3 { margin: 0 0 4px; font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.25; }
.aff-steps p { margin: 0; font-size: 14.5px; color: var(--soft); }

.aff-agree { margin: 4px 0 12px; font-size: 13.5px; color: var(--soft); }
.aff-rules { max-width: 760px; margin: 0 auto; padding: 8px 24px 48px; }
.aff-rules > h2 { margin: 0; font-family: var(--display); font-size: clamp(24px, 3vw, 30px); font-weight: 700; }
.aff-rules > p { margin: 6px 0 16px; color: var(--soft); }
.aff-rules ul { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.55; }
.aff-rules li { margin-bottom: 8px; }
.aff-foot { padding: 0 24px 40px; text-align: center; font-size: 13.5px; color: var(--soft); }

.aff-sent { max-width: 620px; margin: 40px auto 96px; padding: 0 16px; }
.aff-sent .aff-card { text-align: center; padding: 40px 32px; }
.aff-sent .aff-icon { margin: 0 auto 18px; }
.aff-sent h1 { font-size: clamp(30px, 4vw, 40px); }
.aff-sent .aff-lede { margin: 0 auto; }

@media (max-width: 980px) {
  .aff-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 680px; padding-top: 16px; }
  .aff-spark { display: none; }
  .aff-steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 560px) {
  .aff-top { padding-top: 20px; }
  .aff-top img { width: 150px; }
  .aff-hero { padding: 8px 16px 48px; }
  .aff-lede { font-size: 17px; margin-bottom: 26px; }
  .aff-benefits li { grid-template-columns: 52px 1fr; gap: 16px; }
  .aff-icon { width: 52px; height: 52px; }
  .aff-icon svg { width: 24px; height: 24px; }
  .aff-card { padding: 24px 18px; border-radius: 14px; }
  .aff-card h2 { font-size: 25px; }
  .aff-how { padding: 44px 16px 56px; }
  .aff-steps li { grid-template-columns: 60px 1fr; padding: 22px 16px 20px; }
  .aff-step-art { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) { .aff * { transition: none !important; } }
/* The contest's official rules page (/affiliates/contest), after Andres's design package (2026-11-13): a promotional
   top (hero, prize panel, four facts) over a readable rules document with a sticky section list on wide screens and a
   jump list on phones. Every rule stays visible; nothing is behind an accordion except the optional jump list. */
.aff { --peach: #FBE5D4; --paper: #FFFCF7; }
html:has(.ac) { scroll-behavior: smooth; }
.aff-top-split { justify-content: space-between; align-items: center; max-width: 1160px; margin: 0 auto; padding: 20px 32px 0; }
.ac-dash { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink) !important; text-decoration: none; }
.ac-dash:hover { text-decoration: underline; }
.ac-ic { width: 20px; height: 20px; flex: none; color: var(--coral); }
.ac { max-width: 1160px; margin: 0 auto; padding: 0 32px 24px; }
.ac-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 48px 0 40px; }
.ac-hero h1 { margin: 0 0 18px; }
.ac-lede { margin: 0 0 18px; font-size: 18px; line-height: 1.65; color: #34445B; max-width: 620px; }
.ac-date { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; font-size: 15px; }
.ac-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border-radius: 999px; background: var(--peach); color: var(--ink) !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.ac-pill .ac-ic { width: 16px; height: 16px; }
.ac-prizes { background: #FFF8EE; border: 1px solid #F1D8BF; border-radius: 20px; box-shadow: 0 15px 50px rgba(80, 58, 42, .06); padding: 24px 26px; }
.ac-prizes-k, .ac-fact-k { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ac-prizes-k { margin-bottom: 14px; }
.ac-first { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(120deg, #FFF3E5, #FCE0CB); }
.ac-first .ac-ic { width: 60px; height: 60px; stroke-width: 1.4; }
.ac-first p { margin: 0; }
.ac-place { font-family: var(--display); font-size: 22px; font-weight: 700; }
.ac-amount { font-family: var(--display); font-size: 50px; font-weight: 700; line-height: 1; color: var(--coral-text); }
.ac-kind { font-size: 13px; color: var(--soft); }
.ac-rest { list-style: none; margin: 6px 0 0; padding: 0; }
.ac-rest li { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.ac-rest strong { font-family: var(--display); font-size: 23px; }
.ac-note { margin: 14px 0 0; font-size: 13px; font-style: italic; color: var(--soft); }
.ac-facts { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ac-fact { display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.ac-fact .ac-ic { width: 30px; height: 30px; }
.ac-fact-v { margin: 4px 0 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.ac-rules { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.ac-nav { align-self: start; position: sticky; top: 24px; padding: 22px 18px; border: 1px solid #F3E5D6; border-radius: 18px; background: #F8EDDD; }
.ac-nav h2 { margin: 0 0 12px; font-family: var(--display); font-size: 20px; }
.ac-nav ol, .ac-jump ol { list-style: none; margin: 0; padding: 0; }
.ac-nav a, .ac-jump a { display: block; padding: 7px 0; font-size: 13.5px; line-height: 1.35; color: #33425A !important; text-decoration: none; }
.ac-nav a:hover, .ac-jump a:hover { text-decoration: underline; }
.ac-nav a span, .ac-jump a span { margin-right: 8px; font-weight: 700; color: var(--coral-text); }
.ac-doc { min-width: 0; padding: 32px 38px 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.ac-doc > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-family: var(--display); font-size: 34px; line-height: 1.1; }
.ac-doc > h2 .ac-ic { width: 30px; height: 30px; }
.ac-doc-note { margin: 0 0 24px; font-size: 14px; color: var(--soft); }
.ac-jump { display: none; }
.ac-rule { padding: 26px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.ac-rule h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-family: var(--display); font-size: 24px; line-height: 1.25; }
.ac-n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: #FCE3D2; color: var(--coral-text); font-size: 16px; }
.ac-rule ul { margin: 0; padding-left: 68px; }
.ac-rule li { margin: 0 0 9px; font-size: 15.5px; line-height: 1.65; color: #26334B; }
.ac-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 48px 0 40px; padding: 28px 34px; border: 1px solid #F3D8C4; border-radius: 18px; background: var(--peach); }
.ac-cta h2 { margin: 0 0 4px; font-family: var(--display); font-size: 30px; }
.ac-cta p { margin: 0; font-size: 15px; }
.ac-btns { display: flex; gap: 10px; }
.ac-btn { display: inline-flex; justify-content: center; align-items: center; padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ac-primary { background: var(--ink); color: #fff !important; }
.ac-secondary { border: 1px solid var(--ink); background: #FFF9EE; color: var(--ink) !important; }
.ac-btn:hover { filter: brightness(1.08); }
@media (max-width: 960px) {
  .aff-top-split, .ac { padding-left: 24px; padding-right: 24px; }
  .ac-hero { gap: 28px; }
  .ac-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-rules { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
  .ac-doc { padding: 26px 24px 8px; }
  .ac-rule ul { padding-left: 48px; }
  .ac-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
  .aff-top-split, .ac { padding-left: 18px; padding-right: 18px; }
  .aff-top-split img { width: 130px; }
  .ac-dash { font-size: 13px; }
  .ac-hero { display: flex; flex-direction: column; align-items: stretch; padding: 28px 0 28px; }
  .ac-lede { font-size: 16px; }
  .ac-prizes { padding: 18px; border-radius: 16px; }
  .ac-first .ac-ic { width: 46px; height: 46px; }
  .ac-amount { font-size: 42px; }
  .ac-facts { gap: 10px; margin-bottom: 28px; }
  .ac-fact { align-items: flex-start; flex-direction: column; gap: 8px; min-height: 0; padding: 12px; }
  .ac-fact .ac-ic { width: 24px; height: 24px; }
  .ac-fact-v { font-size: 13px; }
  .ac-rules { display: block; padding-top: 28px; }
  .ac-nav { display: none; }
  .ac-doc { padding: 20px 18px 4px; border-radius: 16px; }
  .ac-doc > h2 { font-size: 27px; }
  .ac-jump { display: block; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 11px; background: #FDF9F3; }
  .ac-jump summary { padding: 12px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
  .ac-jump ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 0 14px 10px; }
  .ac-rule { padding: 20px 0; }
  .ac-rule h3 { font-size: 21px; gap: 10px; }
  .ac-n { width: 30px; height: 30px; font-size: 14px; }
  .ac-rule ul { padding-left: 22px; }
  .ac-rule li { font-size: 15px; line-height: 1.6; }
  .ac-cta { margin: 28px 0 32px; padding: 22px 18px; }
  .ac-cta h2 { font-size: 26px; }
  .ac-btns { flex-direction: column; width: 100%; }
  .ac-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html:has(.ac) { scroll-behavior: auto; } }
