/* aiplay-my.com — structured affiliate information hub
   Design system: UI UX Pro Max (pattern Hero + Features + CTA; Minimalism and Swiss style; Rubik + Nunito Sans;
   gold primary, green call to action, navy foreground). Interaction rules: Emil Kowalski's animate skill.
   Light page ground, white content cards, navy header, hero and footer. */

@font-face { font-family: "Rubik"; src: url("/assets/fonts/rubik-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/assets/fonts/nunito-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --surface-3: #fafbfd;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #5b6b82;
  --navy: #0f172a;
  --navy-2: #16213a;
  --navy-3: #1f2d4a;
  --navy-line: #2b3a57;
  --on-navy: #f1f5f9;
  --on-navy-2: #cbd5e1;
  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-soft: #fff4dc;
  --gold-ink: #92400e;
  --green: #15803d;
  --green-hover: #166534;
  --green-soft: #ecfdf3;
  --green-ink: #166534;
  --red: #b91c1c;
  --red-soft: #fef2f2;
  --link: #1d4ed8;
  --link-hover: #1e40af;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1240px;
  --read: 780px;
  --side: 340px;
  --header: 72px;
  --font-display: "Rubik", "Segoe UI", Arial, sans-serif;
  --font-text: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 220ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 24px); }
body { margin: 0; background: var(--bg); color: var(--ink-2); font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--ink); letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
p + p { margin-top: 0.9em; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; transition: color var(--t-hover) ease; }
a:hover { color: var(--link-hover); }
strong { color: var(--ink); font-weight: 700; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 400; background: var(--gold); color: var(--ink); font-weight: 700; padding: 12px 18px; border-radius: var(--radius-sm); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-bright); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease, box-shadow var(--t-hover) ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-secondary { background: transparent; color: var(--on-navy); border-color: var(--navy-line); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--green-hover); color: #fff; box-shadow: var(--shadow-md); }
  .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: var(--on-navy-2); }
  .btn-light:hover { border-color: var(--ink-2); color: var(--ink); }
}

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 90; background: var(--navy); color: var(--on-navy); box-shadow: 0 1px 0 var(--navy-line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header); }
.site-brand { flex: none; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.site-brand img { height: 42px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 3px; padding-left: 12px; border-left: 1px solid var(--navy-line); line-height: 1.05; }
.brand-site { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; letter-spacing: -0.01em; }
.brand-tag { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-navy-2); }
.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.primary-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-sm); color: var(--on-navy-2); font-weight: 600; text-decoration: none; white-space: nowrap; transition: color var(--t-hover) ease, background-color var(--t-hover) ease; }
.primary-nav a[aria-current="page"] { color: #fff; }
.primary-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--gold); }
.primary-nav .nav-cta { margin-left: 12px; padding: 0 20px; color: #fff; }
.primary-nav .nav-cta::after { display: none; }
.menu-toggle { display: none; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--navy-line); color: var(--on-navy); font-weight: 600; transition: background-color var(--t-hover) ease; }
.menu-toggle svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .primary-nav a:not(.nav-cta):hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
  .menu-toggle:hover { background: rgba(255, 255, 255, 0.07); }
}
.disclosure { background: var(--gold-soft); color: var(--gold-ink); border-top: 1px solid #f6e3b4; }
.disclosure-inner { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; font-size: 0.9rem; line-height: 1.5; }
.disclosure svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.disclosure strong { color: inherit; }
.disclosure a { color: inherit; font-weight: 700; }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: var(--on-navy); padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); gap: 56px; align-items: start; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 20px; max-width: 20ch; }
.hero .intro-copy { max-width: 62ch; color: var(--on-navy-2); font-size: 1.125rem; line-height: 1.65; }
.hero .intro-copy strong { color: #fff; }
.hero .intro-copy a { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-row { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 0.9rem; color: var(--on-navy-2); }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 18px; height: 18px; color: var(--gold-bright); flex: none; }
.intro-qualifier { margin-top: 22px; font-size: 0.9rem; color: var(--on-navy-2); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 0.9rem; color: var(--on-navy-2); }
.breadcrumb a { color: #fff; text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { opacity: 0.6; }
.hero-article .hero-copy { max-width: none; }
.hero-article h1 { max-width: 24ch; }
.hero-article .intro-copy { max-width: 66ch; }

/* at a glance card */
.glance { background: var(--surface); color: var(--ink-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 24px 24px 20px; }
.glance-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.glance-head h2 { font-size: 1.3rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.badge svg { width: 14px; height: 14px; }
.facts { margin: 0; display: grid; }
.facts > div { display: grid; grid-template-columns: 128px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; color: var(--ink); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.check-col { padding: 14px; border-radius: var(--radius-sm); }
.check-col h3 { font-family: var(--font-text); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.check-col h3 svg { width: 16px; height: 16px; }
.check-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.9rem; line-height: 1.45; }
.check-col li { padding-left: 14px; position: relative; }
.check-col li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; }
.check-ok { background: var(--green-soft); }
.check-ok h3 { color: var(--green-ink); }
.check-ok li::before { background: var(--green); }
.check-no { background: var(--red-soft); }
.check-no h3 { color: var(--red); }
.check-no li::before { background: var(--red); }
.glance-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.glance-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--muted); }

/* ---------- guide cards ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head .kicker { color: var(--gold-ink); margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.section-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.section-link:hover { text-decoration: underline; }
.section-link svg { width: 16px; height: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--ink-2); text-decoration: none; transition: transform var(--t-ui) var(--ease-out), box-shadow var(--t-ui) ease, border-color var(--t-ui) ease; }
.guide-card:active { transform: scale(0.99); }
.guide-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.guide-icon svg { width: 22px; height: 22px; }
.guide-card strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.guide-card p { font-size: 0.95rem; color: var(--muted); }
.guide-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--link); }
.guide-more svg { width: 16px; height: 16px; transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .guide-card:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow-md); color: var(--ink-2); }
  .guide-card:hover .guide-more svg { transform: translateX(3px); }
}

/* ---------- article and sidebar ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: 40px; align-items: start; padding: 8px 0 72px; }
.reading { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 40px 44px 48px; font-size: 1.0625rem; line-height: 1.7; }
.reading > p { max-width: 72ch; }
.reading p + p { margin-top: 1em; }
.reading h2 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem); margin: 2.4em 0 0.7em; padding-bottom: 12px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 24px); }
.reading h2:first-of-type { margin-top: 0; }
.reading h3 { font-size: 1.2rem; margin: 1.8em 0 0.5em; scroll-margin-top: calc(var(--header) + 24px); }
.reading ul, .reading ol { margin: 0 0 1em; padding-left: 1.3em; }
.reading li + li { margin-top: 0.4em; }
.reading h2:target, .reading h3:target { color: var(--gold-ink); }
.toc-inline { margin: 0 0 32px; padding: 18px 20px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 0.95rem; line-height: 1.8; }
.toc-inline p { max-width: none; }
.toc-inline strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 600; }
.toc-inline a { text-decoration: none; font-weight: 600; }
.toc-inline a:hover { text-decoration: underline; }
.evidence-figure { margin: 24px 0 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.evidence-image { position: relative; }
.evidence-figure img { width: 100%; height: auto; }
.figure-flag { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 999px; background: var(--surface); color: var(--gold-ink); font-size: 0.8rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.evidence-figure figcaption { padding: 12px 16px; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.table-scroll { width: 100%; overflow-x: auto; margin: 20px 0 28px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; text-align: left; font-size: 0.95rem; line-height: 1.55; }
.table-scroll th { background: var(--surface-2); color: var(--ink); font-family: var(--font-display); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.table-scroll td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.table-scroll tbody tr:last-child td { border-bottom: 0; }
.table-scroll tbody tr:nth-child(even) td { background: var(--surface-3); }
.table-scroll td::before { display: none; }
.callout { margin: 24px 0; padding: 18px 20px; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); }
.callout p { max-width: none; }
.faq { display: grid; gap: 10px; margin-top: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); border-radius: var(--radius-sm); transition: background-color var(--t-hover) ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform var(--t-ui) var(--ease-out); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.faq-body { padding: 14px 18px 18px; animation: fade var(--t-ui) ease; }
.faq-body p { max-width: none; }
@media (hover: hover) and (pointer: fine) { .faq-item summary:hover { background: var(--surface-3); } }
.aside-stack { position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 16px; }
.aside-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); font-size: 0.95rem; }
.aside-card h2, .aside-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.aside-card p { color: var(--muted); }
.aside-card p + p { margin-top: 0.6em; }
.aside-textlink { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; text-decoration: none; }
.aside-textlink:hover { text-decoration: underline; }
.aside-cta { background: var(--navy); color: var(--on-navy-2); border-color: var(--navy); }
.aside-cta h2 { color: #fff; }
.aside-cta p { color: var(--on-navy-2); }
.aside-cta .btn { margin-top: 14px; }
.aside-cta .btn + .btn { margin-top: 8px; }
.aside-cta .btn-secondary { color: #fff; }

/* ---------- closing call to action ---------- */
.cta-band { background: var(--navy); color: var(--on-navy-2); padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 8px; }
.cta-band p { max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-2); color: var(--on-navy-2); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; padding: 48px 0 32px; }
.footer-brand .site-brand { margin-bottom: 14px; }
.footer-brand .site-brand img { height: 44px; }
.footer-kicker { color: var(--gold-bright); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.footer-brand p { max-width: 48ch; font-size: 0.95rem; }
.footer-brand a { color: #fff; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-col { display: grid; align-content: start; gap: 2px; }
.footer-heading { color: #fff; font-family: var(--font-display); font-weight: 600; margin-bottom: 8px; }
.footer-col a { display: inline-block; min-height: 36px; padding-top: 6px; color: var(--on-navy-2); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 18px 0 26px; border-top: 1px solid var(--navy-line); font-size: 0.85rem; }
.footer-bottom .footer-cookie-link { margin-left: auto; }
.footer-cookie-link { min-height: 40px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--navy-line); color: var(--on-navy); font-size: 0.85rem; font-weight: 600; transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease; }
.footer-cookie-link:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--on-navy-2); }

/* ---------- privacy and 404 ---------- */
.privacy-shell { padding: 48px 0 72px; }
.privacy-shell h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); margin-bottom: 24px; max-width: 780px; }
.privacy-reading { max-width: 820px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 36px 40px 44px; line-height: 1.7; }
.reading .privacy-language > h2 { font-size: 1.6rem; margin: 2em 0 0.8em; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.reading .privacy-language:first-of-type > h2 { margin-top: 1.4em; }
.privacy-language h3 { font-size: 1.15rem; margin: 1.6em 0 0.5em; scroll-margin-top: calc(var(--header) + 24px); }
.not-found { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; min-height: 60vh; padding: 56px 0; }
.not-found h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.not-found p { color: var(--muted); max-width: 52ch; }
.button-internal { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); background: var(--green); color: #fff; font-family: var(--font-display); font-weight: 600; text-decoration: none; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button-internal:active { transform: scale(0.97); }
.button-internal:hover { background: var(--green-hover); color: #fff; }

/* ---------- floating controls ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.1rem; font-weight: 700; box-shadow: var(--shadow-md); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.to-top:active { transform: scale(0.95); }
.to-top:hover { background: var(--navy-3); }
.cookie-panel { position: fixed; left: 50%; bottom: 16px; z-index: 150; transform: translateX(-50%); width: min(800px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.cookie-panel .cookie-message { min-width: 0; }
.cookie-panel .cookie-message strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.cookie-panel .cookie-message p { font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.cookie-panel .cookie-message p + p { margin-top: 6px; }
.cookie-actions { display: flex; flex: 0 0 160px; flex-direction: column; gap: 8px; }
.cookie-actions button { min-height: 42px; padding: 0 12px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.88rem; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.cookie-actions button:active { transform: scale(0.97); }
.cookie-accept { background: var(--green); color: #fff; }
.cookie-accept:hover { background: var(--green-hover); }
.cookie-reject { background: var(--surface-2); color: var(--ink); }
.cookie-close { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.cookie-panel:not(.cookie-disabled) .cookie-close { display: none; }
.cookie-panel.cookie-disabled .cookie-accept, .cookie-panel.cookie-disabled .cookie-reject { display: none; }
.cookie-panel.cookie-disabled .cookie-actions { flex-basis: 120px; }

@keyframes fade { from { opacity: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .site-brand img { height: 38px; }
  .primary-nav a { padding: 0 10px; font-size: 0.95rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr); gap: 32px; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .aside-stack { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside-stack > .aside-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px max(24px, calc((100% - var(--max)) / 2)) 16px; background: var(--navy); border-bottom: 1px solid var(--navy-line); box-shadow: var(--shadow-lg); }
  .js .primary-nav:not(.is-open) { display: none; }
  .primary-nav a { min-height: 48px; padding: 0 14px; font-size: 1.05rem; }
  .primary-nav a[aria-current="page"]::after { display: none; }
  .primary-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.07); }
  .primary-nav .nav-cta { margin: 10px 0 0; justify-content: center; }
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .glance { max-width: 640px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid > :last-child { grid-column: 1 / -1; }
  .reading { padding: 28px 24px 36px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .site-brand img { height: 34px; }
  .brand-site { font-size: 0.95rem; }
  .menu-toggle span { display: none; }
  .disclosure-inner { font-size: 0.85rem; }
  .hero h1 { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .hero .intro-copy { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .glance { padding: 18px 16px 16px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .checks { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .card-grid { grid-template-columns: 1fr; gap: 14px; }
  .card-grid > :last-child { grid-column: auto; }
  .reading { padding: 24px 18px 32px; font-size: 1rem; }
  .reading h2 { margin-top: 2em; }
  .toc-inline { padding: 14px 16px; }
  .table-scroll { overflow: visible; border: 0; }
  .table-scroll table { min-width: 0; }
  .table-scroll thead { display: none; }
  .table-scroll tbody, .table-scroll tr, .table-scroll td { display: block; }
  .table-scroll tr { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 0; }
  .table-scroll tr + tr { margin-top: 10px; }
  .table-scroll td { border-bottom: 0; padding: 8px 14px; }
  .table-scroll tbody tr:nth-child(even) td { background: transparent; }
  .table-scroll td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.8rem; font-weight: 700; margin-bottom: 2px; }
  .aside-stack { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 0; }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom .footer-cookie-link { margin-left: 0; }
  .cookie-panel { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .cookie-actions { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; }
  .cookie-actions button { flex: 1 1 120px; }
  .privacy-reading { padding: 24px 18px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
  .site-header, .site-footer, .menu-toggle, .to-top, .cookie-panel, .aside-stack, .cta-band, .disclosure { display: none !important; }
  body { background: #fff; }
  .hero { background: #fff; color: #111; }
  .hero h1 { color: #111; }
  .reading { border: 0; box-shadow: none; padding: 0; }
  .article-grid { display: block; }
  .faq-item { break-inside: avoid; }
  details:not([open]) > .faq-body { display: block; }
}

/* ---- Guide content components (steps, chips, stats, verified note, aside lists) ---- */
.verified { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 28px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-3); font-size: 0.9rem; color: var(--muted); line-height: 1.5; max-width: none; }
.verified svg { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 2px; }
.reading .steps { list-style: none; counter-reset: step; margin: 0 0 1.6em; padding: 0; }
.steps li { position: relative; padding: 0 0 0 54px; min-height: 40px; }
.reading .steps li + li { margin-top: 16px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--gold-bright); font-family: var(--font-display); font-weight: 700; font-size: 1rem; display: grid; place-items: center; }
.steps li strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 2px; }
.reading .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-3); font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.reading .chips li + li { margin-top: 0; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 1.6em; }
.stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-3); }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.2; color: var(--navy); }
.stat span { font-size: 0.85rem; color: var(--muted); }
.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aside-list a { font-weight: 600; text-decoration: none; }
.aside-list a:hover { text-decoration: underline; }
.aside-fine { margin-top: 12px; font-size: 0.8rem; color: var(--on-navy-2); }
.aside-soft { background: var(--gold-soft); border-color: #f1dcab; }
.aside-soft p { color: var(--ink-2); }
.glance .btn-block { margin-top: 18px; }
.card-grid.six > :last-child { grid-column: auto; }
.reading .table-scroll + .table-scroll { margin-top: 16px; }
@media (max-width: 1100px) { .card-grid.six > :last-child { grid-column: auto; } }
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps li { padding-left: 48px; } .steps li::before { width: 34px; height: 34px; font-size: 0.95rem; } }

/* ---- Icons, logo grids and icon cards used in the guide content ---- */
.ico { width: 22px; height: 22px; flex: none; }
.td-ico { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.td-ico .ico { width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--gold-soft); color: var(--gold-ink); }
.stat .ico { width: 24px; height: 24px; color: var(--gold-ink); margin-bottom: 8px; }
.reading .cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 1.6em; padding: 0; }
.cat-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-3); }
.cat-card .ico { width: 42px; height: 42px; padding: 9px; border-radius: 10px; background: var(--navy); color: var(--gold-bright); }
.cat-card strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.02rem; margin-bottom: 2px; }
.cat-card span { display: block; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.contact-row .cat-card .ico { background: var(--green); color: #fff; }
.reading .icon-list { list-style: none; margin: 0 0 1.6em; padding: 0; display: grid; gap: 10px; }
.reading .icon-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-3); }
.icon-list .ico { width: 36px; height: 36px; padding: 8px; border-radius: 9px; background: var(--gold-soft); color: var(--gold-ink); margin-top: 1px; }
.icon-list strong { color: var(--ink); }
.reading .logo-grid { list-style: none; margin: 0 0 1.6em; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.reading .logo-grid li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.logo-grid img { width: 36px; height: 36px; border-radius: 8px; flex: none; border: 1px solid var(--line); }
.reading .logo-grid.compact { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.reading .logo-grid.compact li { padding: 0; justify-content: center; border: 0; background: transparent; }
.logo-grid.compact img { width: 48px; height: 48px; border-radius: 10px; }
.aside-logo { height: 34px; width: auto; display: block; margin-bottom: 12px; }
.cta-logo { height: 46px; width: auto; display: block; margin-bottom: 14px; }
.glance-logo { height: 28px; width: auto; display: block; margin-bottom: 8px; }
@media (max-width: 900px) { .reading .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .reading .cat-grid { grid-template-columns: 1fr; } .cta-logo { height: 40px; } }

/* ---- Call-to-action hierarchy: one dominant primary button, quiet secondary actions ---- */
.hero-actions .btn-primary, .cta-actions .btn-primary { min-height: 54px; padding: 0 30px; font-size: 1.05rem; box-shadow: 0 8px 22px rgba(21, 128, 61, 0.38); }
.hero-actions .btn-secondary, .cta-actions .btn-light, .aside-cta .btn-secondary { background: transparent; border-color: transparent; color: var(--on-navy-2); font-weight: 600; box-shadow: none; }
.hero-actions .btn-secondary::after, .cta-actions .btn-light::after { content: "\2192"; font-weight: 400; margin-left: 2px; }
@media (hover: hover) and (pointer: fine) {
  .hero-actions .btn-primary:hover, .cta-actions .btn-primary:hover { box-shadow: 0 10px 26px rgba(21, 128, 61, 0.45); transform: translateY(-1px); }
  .hero-actions .btn-secondary:hover, .cta-actions .btn-light:hover, .aside-cta .btn-secondary:hover { color: #fff; background: rgba(255, 255, 255, 0.06); border-color: transparent; text-decoration: underline; text-underline-offset: 5px; }
}
@media (prefers-reduced-motion: reduce) { .hero-actions .btn-primary:hover, .cta-actions .btn-primary:hover { transform: none; } }

/* ---- Gradient surfaces and primary-button motion ---- */
.hero, .cta-band, .aside-cta { background-image: radial-gradient(900px 520px at 92% -10%, rgba(55, 209, 245, 0.16), transparent 60%), radial-gradient(640px 440px at -6% 112%, rgba(245, 158, 11, 0.12), transparent 60%); }
.btn-primary { position: relative; overflow: hidden; isolation: isolate; background-color: var(--green); background-image: linear-gradient(135deg, #25b062 0%, #15803d 52%, #10692f 100%); background-size: 170% 100%; background-position: 0% 0%; transition: background-position var(--t-ui) var(--ease-out), box-shadow var(--t-hover) var(--ease-out), transform var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out); }
.btn-primary > * { position: relative; z-index: 1; }
.hero-actions .btn-primary::before, .cta-actions .btn-primary::before, .aside-cta .btn-primary::before { content: ""; position: absolute; top: -30%; bottom: -30%; left: 0; width: 40%; background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.32) 50%, transparent 100%); transform: translateX(-230%) skewX(-20deg); animation: cta-shine 6s var(--ease-in-out) infinite; pointer-events: none; }
@keyframes cta-shine { 0%, 78% { transform: translateX(-230%) skewX(-20deg); } 100% { transform: translateX(430%) skewX(-20deg); } }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background-position: 100% 0%; background-color: var(--green-hover); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-actions .btn-primary::before, .cta-actions .btn-primary::before, .aside-cta .btn-primary::before { animation: none; }
}

/* ---- Mobile sticky join bar (shown by site.js between the hero and the page's own join band) ---- */
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 10px 0 14px; padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; background: rgba(15, 23, 42, 0.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.28); transform: translateY(110%); transition: transform var(--t-ui) var(--ease-out); }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { flex: 1 1 auto; min-height: 42px; font-size: 0.95rem; letter-spacing: 0.04em; box-shadow: none; }
  .sticky-cta .btn::before { display: none; }
  .sticky-cta-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--navy-line); background: transparent; color: var(--on-navy-2); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out); }
  .sticky-cta-close:active { transform: scale(0.97); }
  .sticky-cta.is-visible ~ .to-top { bottom: calc(56px + 16px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---- Footer copyright line ---- */
.footer-copy { padding: 14px 0 20px; font-size: 0.8rem; color: var(--on-navy-2); opacity: 0.85; }
.footer-copy span { display: inline-block; }
