.aff-page {
  --aff-night: #0a192b;
  --aff-navy: #153354;
  --aff-cyan: #a4e9ff;
  --aff-surface: #f0f6fa;
  --aff-muted: #486078;
  --aff-line: #d7e3ed;
  color: var(--aff-night);
}

.aff-page :focus-visible { outline-color: #287fbd; }

.aff-header { border-bottom: 1px solid var(--aff-line); }
.aff-header-inner, .aff-header nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}
.aff-header-inner { min-height: 76px; justify-content: space-between; }
.aff-header nav { font-size: .88rem; font-weight: 800; }
.aff-header-anchor:hover, .aff-text-link:hover { text-decoration: underline; text-underline-offset: .23em; }
.aff-login { color: var(--aff-navy); border-color: var(--aff-line); min-height: 42px; }
.aff-login:hover { background: var(--aff-surface); }

.aff-hero {
  color: white;
  background: radial-gradient(ellipse at 76% -20%, #20496f, transparent 60%), var(--aff-night);
}
.aff-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(35px, 5.5vw, 88px);
  padding-block: clamp(64px, 8vw, 120px);
}
.aff-hero-copy > * { animation: aff-enter .55s ease-out both; }
.aff-hero-copy h1 { animation-delay: .07s; }
.aff-hero-copy .aff-lead { animation-delay: .14s; }
.aff-hero-copy .aff-actions, .aff-hero-copy .aff-note { animation-delay: .21s; }
.aff-program {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  color: var(--aff-cyan);
  background: #a4e9ff0e;
  border: 1px solid #a4e9ff48;
  border-radius: 100vw;
  font-size: .81rem;
  font-weight: 800;
}
.aff-program::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.aff-hero h1 {
  font-size: clamp(3rem, 5.2vw, 5.3rem);
  line-height: .99;
  letter-spacing: -.075em;
  text-wrap: initial;
  margin-block: 21px 20px;
}
.aff-hero h1 em { display: block; font-style: normal; color: var(--aff-cyan); }
.aff-lead { color: #d6e5f2; font-size: clamp(1.03rem, 1.45vw, 1.21rem); max-width: 43ch; }
.aff-lead strong { color: white; }
.aff-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 22px; margin-block: 27px 14px; }
.aff-primary { color: var(--aff-night); background: var(--aff-cyan); min-height: 52px; border-radius: 12px; padding-inline: 19px; }
.aff-primary:hover { background: #d8f6ff; }
.aff-primary span { font-size: 1.3em; }
.aff-hero-link { color: white; font-weight: 800; font-size: .86rem; }
.aff-hero-link:hover { color: var(--aff-cyan); }
.aff-note { max-width: 50ch; color: #b9cfe0; font-size: .81rem; }
.aff-hero :focus-visible, .aff-join :focus-visible { outline-color: var(--aff-cyan); }
.aff-visual {
  position: relative;
  isolation: isolate;
  margin-block-end: 20px;
  animation: aff-enter .65s .18s ease-out both;
}
.aff-visual img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid #a4e9ff45;
  box-shadow: 0 22px 80px #030d1c75;
}
.aff-commission {
  position: absolute;
  right: max(14px, 7%);
  bottom: -22px;
  display: grid;
  padding: 15px clamp(17px, 2.5vw, 26px) 16px;
  border: 1px solid #a4e9ff7a;
  background: #102c46;
  border-radius: 16px;
  box-shadow: 0 10px 32px #02091670;
  animation: aff-accent .85s .55s ease-out both;
}
.aff-commission strong { color: var(--aff-cyan); font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -.065em; }
.aff-commission span { color: #d6e5f2; font-size: .78rem; font-weight: 800; margin-top: 4px; }

.aff-steps, .aff-products, .aff-tools, .aff-faq { padding-block: clamp(58px, 7vw, 102px); }
.aff-step-grid, .aff-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.aff-step-grid { list-style: none; padding: 0; margin: 28px 0 0; }
.aff-step-grid li { padding: 20px 0 0; border-top: 2px solid var(--aff-line); }
.aff-step-number {
  display: inline-grid;
  place-items: center;
  width: 37px;
  height: 37px;
  margin-bottom: 14px;
  border-radius: 10px;
  color: #235a85;
  background: var(--aff-surface);
  font-weight: 800;
  font-size: .84rem;
}
.aff-step-grid h3 { font-size: 1.22rem; }
.aff-step-grid p { margin-top: 8px; max-width: 35ch; color: var(--aff-muted); }

.aff-products { background: var(--aff-surface); }
.aff-section-heading { display: grid; grid-template-columns: 1.16fr .84fr; align-items: end; gap: 22px 45px; margin-bottom: 30px; }
.aff-section-heading p { color: var(--aff-muted); max-width: 43ch; }
.aff-product { background: white; border: 1px solid var(--aff-line); border-radius: 18px; }
.aff-product a { height: 100%; display: flex; flex-direction: column; border-radius: inherit; }
.aff-product img { width: 100%; border-radius: 17px 17px 0 0; background: #dde8ef; }
.aff-product-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px clamp(13px, 2vw, 22px) 19px;
}
.aff-product-body p { color: #356182; font-size: .77rem; font-weight: 800; margin-bottom: 4px; }
.aff-product-body h3 { font-size: 1.18rem; text-wrap: initial; }
.aff-product-body > span { display: grid; place-items: center; flex: none; width: 33px; height: 33px; border-radius: 50%; background: var(--aff-surface); color: var(--aff-navy); }
.aff-product a:hover .aff-product-body > span, .aff-product a:focus-visible .aff-product-body > span { background: var(--aff-cyan); }
.aff-text-link { display: inline-flex; align-items: center; gap: 8px; color: #225f8a; font-weight: 800; margin-top: 20px; padding-block: 6px; }

.aff-tools {
  color: white;
  background: radial-gradient(ellipse at 95% 18%, #1d456a, transparent 70%), var(--aff-night);
}
.aff-tools-grid, .aff-faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(30px, 7vw, 110px); }
.aff-tools h2 { max-width: 13ch; }
.aff-tools p { margin-top: 15px; color: #ccdeef; max-width: 39ch; }
.aff-tools dl { display: grid; gap: 10px; margin: 0; }
.aff-tools dl > div { padding: 15px 18px; background: #ffffff0d; border: 1px solid #a4e9ff33; border-radius: 13px; }
.aff-tools dt { font-weight: 800; color: var(--aff-cyan); }
.aff-tools dd { color: #dbe9f6; margin: 3px 0 0; font-size: .93rem; }

.aff-faq-list { border-top: 1px solid var(--aff-line); }
.aff-faq-list details { border-bottom: 1px solid var(--aff-line); }
.aff-faq-list summary { display: flex; list-style: none; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px; font-weight: 800; }
.aff-faq-list summary::-webkit-details-marker { display: none; }
.aff-faq-list summary::after { content: ""; width: 9px; height: 9px; margin-right: 7px; border: solid #225f8a; border-width: 0 2px 2px 0; transform: rotate(45deg); flex: none; }
.aff-faq-list details[open] summary::after { transform: rotate(225deg); }
.aff-faq-list details p { padding: 0 27px 16px 4px; color: var(--aff-muted); }

.aff-join { padding-block: 0 52px; }
.aff-join-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: clamp(25px, 5vw, 56px);
  border-radius: 22px;
  background: var(--aff-navy);
  color: white;
}
.aff-join h2 { font-size: clamp(1.95rem, 3.4vw, 3.1rem); }
.aff-join p { margin-top: 9px; color: #d8e8f6; }
.aff-footer { border-top: 1px solid var(--aff-line); }

@keyframes aff-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes aff-accent { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 870px) {
  .aff-hero-grid { grid-template-columns: 1fr; padding-block: 52px 62px; }
  .aff-hero h1 { font-size: clamp(3rem, 8vw, 5rem); }
  .aff-visual { width: min(100%, 610px); }
  .aff-faq-grid, .aff-section-heading { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .aff-header-inner { min-height: 65px; }
  .aff-header .brand { width: min(38%, 142px); }
  .aff-header-anchor { display: none; }
  .aff-login { padding-inline: 10px; font-size: .8rem; }
  .aff-step-grid, .aff-product-grid, .aff-tools-grid { grid-template-columns: 1fr; }
  .aff-product-grid { gap: 16px; }
  .aff-product { max-width: 420px; }
  .aff-tools h2 { max-width: 17ch; }
  .aff-hero h1 { font-size: clamp(2.65rem, 10vw, 3.75rem); margin-block: 17px; }
  .aff-visual img { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .aff-page *, .aff-page *::before, .aff-page *::after { animation: none !important; transition: none !important; }
}
