/* UseReferralCode - one stylesheet, mobile first. Palette: #f5c500 #bfbfbe #ffffff #2a2b2f */
:root {
  --yellow: #f5c500;
  --yellow-soft: #fff4bf;
  --grey: #bfbfbe;
  --white: #ffffff;
  --ink: #2a2b2f;
  --ink-2: #45464b;
  --muted: #5f6066;
  --paper: #f5f5f3;
  --radius: 16px;
  --shadow: 4px 4px 0 var(--ink);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--yellow); }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 900; }
h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 850; margin-top: 1.6em; }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.hl { background: linear-gradient(transparent 58%, var(--yellow) 58%); padding: 0 .08em; }

/* ---------- header ---------- */
.top { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { color: var(--white); text-decoration: none; font-weight: 900; font-size: 21px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.brand-dot { width: 30px; height: 30px; border-radius: 9px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-size: 18px; font-weight: 900; }
.brand b { color: var(--yellow); }
.nav { margin-left: auto; display: none; gap: 4px; }
.nav a { color: var(--white); text-decoration: none; font-weight: 650; font-size: 15px; padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.nav a:hover, .nav a.is-active { background: var(--ink-2); }
.nav a.nav-cta { background: var(--yellow); color: var(--ink); }
.menu-btn { margin-left: auto; background: var(--yellow); color: var(--ink); border: 0; border-radius: 10px; font: 700 15px var(--font); padding: 9px 14px; cursor: pointer; }
.mobile-menu { background: var(--ink); border-top: 1px solid var(--ink-2); padding: 8px 16px 16px; }
.mobile-menu a { display: block; color: var(--white); text-decoration: none; font-weight: 650; padding: 10px 4px; border-bottom: 1px solid var(--ink-2); }
@media (min-width: 1120px) { .nav { display: flex; } .menu-btn, .mobile-menu { display: none !important; } }

/* ---------- language switch ---------- */
.lang { position: relative; flex: none; }
.lang summary { list-style: none; cursor: pointer; white-space: nowrap; color: var(--white); font-weight: 800; font-size: 14px; padding: 8px 10px; border: 1px solid var(--ink-2); border-radius: 10px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::marker { content: ""; }
.lang summary::after { content: " \25BE"; }
.lang[open] summary { background: var(--ink-2); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--white); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 190px; z-index: 6; display: grid; }
.lang-menu a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 15px; }
.lang-menu a b { width: 26px; font-size: 13px; color: var(--muted); }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--yellow-soft); }
@media (max-width: 1119px) { .lang { margin-left: auto; } }
@media (min-width: 1120px) { .lang { margin-left: 4px; } }

/* ---------- breadcrumb ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--grey); }
.crumbs a { color: var(--muted); }

/* ---------- logos ---------- */
.logo { display: inline-grid; place-items: center; flex: none; width: var(--s, 48px); height: var(--s, 48px); border-radius: 12px; background: var(--white); border: 2px solid var(--ink); overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); font: 850 18px/1.2 var(--font); padding: 16px 22px; text-decoration: none; cursor: pointer; transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-big { font-size: clamp(20px, 3vw, 26px); padding: 20px 28px; width: 100%; }
.btn-dark { background: var(--ink); color: var(--yellow); }
.btn-ghost { background: var(--white); }

/* ---------- home hero ---------- */
.hero { background: var(--ink); color: var(--white); padding: 44px 0 56px; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { font-size: clamp(18px, 2.4vw, 22px); color: #e4e4e2; max-width: 40ch; }
.search { position: relative; max-width: 620px; margin-top: 24px; }
.search input { width: 100%; font: 600 19px var(--font); padding: 18px 20px; border-radius: 14px; border: 3px solid var(--yellow); background: var(--white); color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow); z-index: 4; max-height: 420px; overflow: auto; }
.results a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; }
.results li.is-sel a, .results a:hover { background: var(--yellow-soft); }
.results .r-name { font-weight: 750; }
.results .r-get { margin-left: auto; font-weight: 800; font-size: 15px; text-align: right; }
.results .r-empty { padding: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips a { color: var(--white); text-decoration: none; border: 1px solid var(--ink-2); background: var(--ink-2); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 600; }
.chips a:hover { border-color: var(--yellow); }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.stats div { font-size: 15px; color: #d6d6d4; }
.stats b { display: block; font-size: 32px; font-weight: 900; color: var(--yellow); line-height: 1.1; }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--paper); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }

/* ---------- bonus cards (the big-number grid) ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-decoration: none; color: var(--ink); transition: transform .08s, box-shadow .08s; }
.card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.card-top { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; }
.card-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.card-get { font-size: 26px; font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.card-go { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: 15px; }
.card-go span { background: var(--yellow); border-radius: 8px; padding: 4px 10px; }

/* ---------- category tiles ---------- */
.tiles { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: block; border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; text-decoration: none; background: var(--white); }
.tile:hover { background: var(--yellow); }
.tile b { display: block; font-size: 19px; font-weight: 850; line-height: 1.2; }
.tile span { font-size: 14px; color: var(--muted); }
.tile:hover span { color: var(--ink); }

/* ---------- A-Z ---------- */
.az { columns: 1; column-gap: 24px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 620px) { .az { columns: 2; } }
@media (min-width: 980px) { .az { columns: 3; } }
.az li { break-inside: avoid; }
.az a { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; text-decoration: none; }
.az a:hover { background: var(--yellow-soft); }
.az .az-name { font-weight: 750; }
.az .az-get { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--muted); text-align: right; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 820px) { .steps-row { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; padding: 18px 18px 18px 78px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); min-height: 78px; font-size: 18px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 46px; height: 46px; border-radius: 12px; background: var(--yellow); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 24px; }
.steps li b { display: block; font-size: 19px; }

/* ---------- program page ---------- */
.p-head { display: flex; align-items: center; gap: 16px; margin: 18px 0 8px; }
.p-head h1 { margin: 0; font-size: clamp(28px, 5vw, 46px); }
.p-summary { font-size: 19px; color: var(--ink-2); max-width: 62ch; }
.bonus { background: var(--ink); color: var(--white); border-radius: 22px; padding: 26px 20px; margin: 20px 0 8px; display: grid; gap: 22px; }
@media (min-width: 860px) { .bonus { grid-template-columns: 1.1fr 1fr; padding: 34px; align-items: center; } }
.bonus-label { font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.bonus-get { font-size: clamp(40px, 8vw, 76px); font-weight: 900; line-height: 1.02; letter-spacing: -0.035em; margin: 6px 0 10px; }
.bonus-note { color: #d6d6d4; font-size: 16px; margin: 0; }
.claim { background: var(--white); color: var(--ink); border-radius: 18px; padding: 20px; display: grid; gap: 14px; }
.claim-label { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.code-box { display: flex; align-items: stretch; border: 3px dashed var(--ink); border-radius: 14px; overflow: hidden; }
.code-box code { flex: 1; min-width: 0; font: 800 clamp(17px, 5.4vw, 34px)/1.1 var(--mono); padding: 16px 12px; letter-spacing: .02em; white-space: nowrap; overflow-x: auto; display: flex; align-items: center; }
.code-box code.long { font-size: clamp(15px, 4.4vw, 30px); }
.copy { flex: none; border: 0; border-left: 3px dashed var(--ink); background: var(--yellow); color: var(--ink); font: 900 17px var(--font); padding: 0 14px; cursor: pointer; min-width: 92px; }
.copy.is-done { background: var(--ink); color: var(--yellow); }
.claim-small { font-size: 14px; color: var(--muted); margin: 0; }
.claim-small a { color: var(--muted); }
.p-body { display: grid; gap: 32px; padding: 20px 0 56px; }
@media (min-width: 980px) { .p-body { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.split { display: grid; gap: 14px; margin: 14px 0; }
@media (min-width: 620px) { .split { grid-template-columns: 1fr 1fr; } }
.split div { border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px 18px; }
.split div:first-child { background: var(--yellow-soft); }
.split b { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.split span { font-size: 19px; font-weight: 800; line-height: 1.3; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 0 0 1em; }
.prose th, .prose td { border: 1px solid var(--grey); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper); }
.faq details { border: 2px solid var(--ink); border-radius: 14px; margin-bottom: 10px; background: var(--white); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; padding: 14px 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 18px 14px; }
.side { position: sticky; top: 84px; display: grid; gap: 16px; }
.side-box { border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; background: var(--white); box-shadow: var(--shadow); }
.side-box h3 { margin-bottom: 10px; }
.side-get { font-size: 28px; font-weight: 900; line-height: 1.1; margin: 4px 0 14px; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; }
.byline { font-size: 15px; color: var(--muted); border-top: 2px solid var(--ink); padding-top: 14px; margin-top: 28px; }

/* ---------- rows (category + best) ---------- */
.rows { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px; background: var(--white); text-decoration: none; }
.row:hover { background: var(--yellow-soft); }
.row-name { font-weight: 850; font-size: 20px; }
.row-get { grid-column: 1 / -1; font-size: clamp(24px, 4vw, 32px); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.row-go { grid-column: 1 / -1; font-weight: 800; font-size: 15px; }
.row-go span { background: var(--yellow); border-radius: 8px; padding: 4px 10px; }
@media (min-width: 760px) {
  .row { grid-template-columns: auto 200px 1fr auto; padding: 18px 22px; }
  .row-get, .row-go { grid-column: auto; }
  .row-go { justify-self: end; }
}
.rank { position: relative; }
.rank-n { position: absolute; left: -10px; top: -10px; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-weight: 900; z-index: 1; }

/* ---------- page head (category/best/about) ---------- */
.page-head { padding: 8px 0 8px; }
.page-head .lead { font-size: 19px; color: var(--ink-2); max-width: 62ch; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #d6d6d4; padding: 44px 0 28px; font-size: 15px; margin-top: 0; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { color: var(--yellow); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-grid > div:first-child { grid-column: auto; } }
.foot h4 { color: var(--yellow); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-note { border-top: 1px solid var(--ink-2); margin-top: 32px; padding-top: 18px; font-size: 13px; color: #a9aaad; }
.foot-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 0; }
.foot-badges a { display: inline-flex; line-height: 0; }
.foot-badges img { height: 24px; width: auto; opacity: .9; }
.foot-badges a:hover img { opacity: 1; }
