/*
 | WannaSEO Affiliates: the public pages on the store's host (/affiliates, /legal/affiliate-terms, /with/<name>;
 | resources/views/store/affiliates*.blade.php). Built on the landing kit (landing.css, lp- classes, the site tokens);
 | this sheet only adds what the kit has no piece for, every class starting with afx-.
 | Design: wannaseo_marketing assets/affiliates/design/affiliates-page-mockup.html.
 */

/* Hero scene: the link card (no amounts in it) */
.afx-scene .lp-scene-bg { background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 55%), linear-gradient(140deg, rgba(111,178,255,.25), rgba(46,229,157,.18)); }
.afx-scene .lp-main { left: 7%; top: 10%; width: 74%; height: auto; }
.afx-scene .afx-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f1f4fa; border-bottom: 1px solid #e6ebf3; }
.afx-scene .afx-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d3dae6; }
.afx-scene .afx-bar i:first-child { background: #ff6b6b; } .afx-scene .afx-bar i:nth-child(2) { background: #ffc94a; } .afx-scene .afx-bar i:nth-child(3) { background: #2ee59d; }
.afx-scene .afx-bar span { margin-left: 10px; flex: 1; height: 16px; border-radius: 8px; background: #fff; font-size: 10px; color: #5b6577; line-height: 16px; padding: 0 8px; overflow: hidden; white-space: nowrap; }
.afx-scene .afx-pg { padding: 16px 18px 18px; }
.afx-lnk-lbl { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #5b6577; }
.afx-lnk { margin-top: 6px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #f6f8fc; border: 1px solid #e3e9f4;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; font-weight: 700; color: #0b1736; min-width: 0; }
.afx-lnk span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afx-lnk em { margin-left: auto; font-style: normal; font-family: inherit; font-size: 11px; font-weight: 900; color: #fff; background: #0a6cff; padding: 4px 9px; border-radius: 7px; flex: none; }
.afx-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.afx-subs span { font-size: 11px; font-weight: 800; color: #0057d9; background: #e7f0ff; padding: 4px 8px; border-radius: 6px; }
.afx-mini-qr { display: flex; gap: 12px; align-items: center; margin-top: 12px; font-size: 11.5px; font-weight: 700; color: #4a5878; }
.afx-mini-qr svg { width: 54px; height: 54px; flex: none; border: 1px solid #e3e9f4; border-radius: 8px; padding: 4px; background: #fff; }
.afx-scene .lp-chip svg { color: #12b981; }
.afx-scene .lp-chip-tr { top: 2%; right: 0; } .afx-scene .lp-chip-ml { top: 70%; left: -2%; } .afx-scene .lp-chip-bl { bottom: 2%; left: 24%; }
.afx-scene .lp-scene-shell { width: 38%; bottom: -4%; right: -3%; }
.afx-scene .lp-scene-shell .wsm { width: 100% !important; border-radius: 50%; background: radial-gradient(circle at 50% 56%, #f5f8fe 0 58%, rgba(245,248,254,0) 59%); }
.lp-alt { align-self: center; font-size: 15px; font-weight: 700; color: #cfe0ff; text-decoration: underline; text-underline-offset: 3px; }
.lp-cta-note { margin: 12px 0 0; font-size: 13.5px; color: #9fb0d2; }

/* What you'd recommend */
.afx-prods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.afx-prod { background: #fff; border: 1px solid #e6ebf3; border-radius: 18px; padding: 20px 22px; display: grid; gap: 4px; align-content: start; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.afx-prod:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -30px rgba(11,23,54,.45); }
.afx-prod small { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--acc-ink, #0057d9); }
.afx-prod b { font-size: 19px; font-weight: 800; color: var(--navy, #0b1736); line-height: 1.25; }
.afx-prod .afx-price { font-size: 26px; font-weight: 900; color: var(--navy, #0b1736); letter-spacing: -.02em; margin-top: 4px; }
.afx-prod .afx-price span { font-size: 14px; font-weight: 700; color: var(--muted, #5b6577); letter-spacing: 0; }
.afx-prod p { font-size: 14.5px; color: var(--muted, #5b6577); line-height: 1.5; margin: 0; }
.afx-note { margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: #e3f8ef; color: #065f46; font-size: 15px; font-weight: 600; line-height: 1.55; }
.afx-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.afx-note a { color: #065f46; text-decoration: underline; }

/* Tiers table: the kit's table, stacked per row on a phone */
.afx-tiers thead th b { display: block; font-size: 30px; letter-spacing: -.02em; margin-top: 2px; }
.afx-tiers tbody th { font-size: 14px; font-weight: 900; color: var(--navy, #0b1736); background: #fbfcfe; width: 18%; }
.afx-tiers td small { display: block; color: var(--muted, #5b6577); font-size: 13.5px; margin-top: 4px; }

/* The money rules */
.afx-money { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.afx-money div { background: #fff; border: 1px solid #e6ebf3; border-radius: 18px; padding: 20px; text-align: center; }
.afx-money b { display: block; font-size: 30px; font-weight: 900; color: var(--acc-ink, #0057d9); letter-spacing: -.02em; line-height: 1.1; }
.afx-money span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--muted, #5b6577); line-height: 1.45; }
.afx-money-note { margin: 18px auto 0; max-width: 820px; text-align: center; font-size: 14px; color: var(--muted, #5b6577); line-height: 1.6; }

/* Steps with icons */
.afx-steps .lp-step-art { color: var(--acc, #0a6cff); }
.afx-steps .lp-step-art svg { width: 52px; height: 52px; }
.afx-steps .lp-step h3 { margin: 18px 0 0; font-size: 18px; font-weight: 800; color: var(--navy, #0b1736); }

/* Who and where */
.afx-boxes .lp-box h3 { margin-top: 0; }
.afx-boxes .lp-ico { margin-bottom: 16px; }
.afx-boxes .lp-ticks li { font-size: 15.5px; }
.afx-ticks-no li svg { background: #c2363d !important; }
.afx-map { margin-top: 16px; display: grid; gap: 8px; }
.afx-map div { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14.5px; }
.afx-map code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; background: #f6f8fc; border: 1px solid #e3e9f4; padding: 2px 7px; border-radius: 6px; color: var(--navy, #0b1736); white-space: nowrap; }

/* Disclosure box */
.afx-disc { margin-top: 26px; border-radius: 20px; padding: 26px 28px; background: #fff; border: 1px solid #e3e9f4; border-left: 5px solid var(--acc, #0a6cff); }
.afx-disc h3 { font-size: 19px; font-weight: 800; color: var(--navy, #0b1736); margin: 0; }
.afx-disc .afx-line { margin-top: 12px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; font-size: 15.5px; }
.afx-disc .afx-line span { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--acc-ink, #0057d9); padding-top: 3px; }
.afx-disc .afx-line q { quotes: "\201C" "\201D"; color: var(--navy, #0b1736); font-weight: 600; }
.afx-disc .afx-strike { margin-top: 16px; font-size: 14.5px; color: var(--muted, #5b6577); }
.afx-disc a { color: var(--acc-ink, #0057d9); }

/* FAQ side and final call: Shell on the pale disc */
.lp-faq-side .wsm { margin-top: 18px; }
.lp-final .wsm { justify-self: center; border-radius: 50%; background: radial-gradient(circle at 50% 56%, #f5f8fe 0 58%, rgba(245,248,254,0) 59%); }
.lp-final .lp-alt { color: #e2ecff; }
.lp-final p { margin: 14px 0 0; font-size: 18px; color: #d6e2fb; }

/* /with/<name> */
.afx-quote { margin: 22px 0 0; padding: 18px 22px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #e4ebf8; font-size: 17px; line-height: 1.6; max-width: 620px; }
.afx-quote footer { margin-top: 8px; font-size: 14px; font-weight: 800; color: #b8f5dc; background: none; border: 0; }
.afx-code { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; padding: 12px 16px; border-radius: 14px; border: 2px dashed #6fb2ff; color: #dfe6f5; font-size: 15px; }
.afx-code b { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 22px; letter-spacing: .06em; color: #fff; }
.afx-disclosure { margin-top: 16px; font-size: 13.5px; color: #9fb0d2; max-width: 620px; }
.afx-with-card { background: #fff; border-radius: 22px; padding: 28px; color: #0b1736; box-shadow: 0 30px 60px -28px rgba(11,23,54,.45); }
.afx-with-card h2 { margin: 0; font-size: 22px; font-weight: 800; color: #0b1736; }
.afx-with-card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.afx-with-card li { display: flex; gap: 10px; font-size: 15px; color: #2b3445; }
.afx-with-card li svg { width: 20px; height: 20px; flex: none; color: #fff; background: #12b981; border-radius: 50%; padding: 4px; margin-top: 2px; }

/* The terms page */
.afx-terms h2 { font-size: 18px; font-weight: 800; color: var(--navy, #0b1736); margin: 30px 0 8px; }
.afx-terms h2:first-child { margin-top: 0; }
.afx-terms p, .afx-terms li { font-size: 15px; color: var(--muted, #5b6577); line-height: 1.65; }
.afx-terms p { margin: 0; }
.afx-terms p + p { margin-top: 10px; }
.afx-terms ul { margin: 8px 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.afx-terms b { color: var(--navy, #0b1736); }
.afx-terms a { color: var(--brand-text, #0057d9); font-weight: 700; }
.afx-todo { margin-top: 10px !important; padding: 8px 12px; border-radius: 10px; background: #fffbea; border: 1px dashed #d9bf55; color: #6b5310 !important; font-size: 14px !important; }
.afx-draft { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6b5310; background: #fff3c4; border: 1px dashed #d9bf55; padding: 3px 9px; border-radius: 999px; vertical-align: middle; }
.afx-draft-note { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: #fffbea; border: 1px solid #f1e3a6; color: #6b5310; font-size: 14px; }

@media (max-width: 1000px) {
  .afx-money { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .afx-scene .lp-chip { font-size: 11px; padding: 7px 9px; }
  .afx-scene .lp-chip-ml, .afx-scene .lp-chip-bl { display: none; }
  .afx-scene .lp-main { left: 0; width: 72%; top: 12%; }
  .afx-lnk { font-size: 11.5px; } .afx-lnk em { padding: 3px 7px; }
  .afx-mini-qr { display: none; }
  .afx-scene .lp-scene-shell { width: 34%; right: -4%; bottom: -2%; }
  .afx-money { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afx-money div:last-child { grid-column: 1 / -1; }
  .afx-money b { font-size: 24px; }
  .afx-disc { padding: 20px 18px; } .afx-disc .afx-line { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  /* Tiers: each row becomes a block, the three tiers stacked inside it with their names. */
  .afx-tiers thead { display: none; }
  .afx-tiers, .afx-tiers tbody, .afx-tiers tr, .afx-tiers th, .afx-tiers td { display: block; width: 100%; }
  .afx-tiers tbody th { width: 100%; padding: 14px 16px 8px; background: #f6f8fc; }
  .afx-tiers td { padding: 8px 16px; border-bottom: 0; }
  .afx-tiers td::before { content: attr(data-t); display: block; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--acc-ink, #0057d9); }
  .afx-tiers tr { border-bottom: 1px solid #e3e9f4; padding-bottom: 8px; }
  .afx-with-card { padding: 22px 18px; }
  .afx-quote { font-size: 16px; padding: 14px 16px; }
}
