/* ==========================================================================
   LocalWinds — Design System v2
   Concept: "The Current" — a wind-current motif ties the whole site
   together (publishers on one bank, advertisers on the other, a monitored
   current of traffic running between them). Rebuilt to read distinctly
   from generic node/graph affiliate-network templates.
   Display: Space Grotesk (angular, distinct) · Body: Inter (neutral, readable)
   Palette leads with mint + peach + pale-yellow, sky/lavender as support.
   ========================================================================== */

:root{
  /* Ink */
  --ink-900:#1b2440;
  --ink-700:#333d5c;
  --ink-500:#5b6480;
  --ink-300:#8a91a8;

  /* Palette (soft tints) */
  --sky:      #eaf4ff;
  --sky-line: #bfe0ff;
  --sky-ac:   #2f8fd6;

  --lav:      #f1ecfc;
  --lav-line: #d9c9f7;
  --lav-ac:   #8c6fd8;

  --mint:      #e7f9f1;
  --mint-line: #bdead6;
  --mint-ac:   #2fa583;

  --peach:      #fff1e6;
  --peach-line: #ffd9b8;
  --peach-ac:   #e08a45;

  --yellow:      #fff8e2;
  --yellow-line: #f4e2a1;
  --yellow-ac:   #d6a923;

  --surface: #fdfcfb;
  --surface-alt: #f6f4fb;
  --white: #ffffff;

  --shadow-sm: 0 2px 10px rgba(27,36,64,0.05);
  --shadow-md: 0 10px 30px rgba(27,36,64,0.09);
  --shadow-lg: 0 20px 55px rgba(27,36,64,0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 26px;

  --container: 1200px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink-700);
  background:var(--surface);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--ink-900);
  line-height:1.15;
  margin:0 0 .6em;
  letter-spacing:-0.01em;
}
h1{ font-size:clamp(2.3rem,4.4vw,3.6rem); font-weight:700; }
h2{ font-size:clamp(1.7rem,3vw,2.4rem); font-weight:700; }
h3{ font-size:1.25rem; font-weight:600; }
p{ margin:0 0 1em; color:var(--ink-500); }
a{ color:var(--sky-ac); text-decoration:none; }
ul{ padding-left:1.2em; color:var(--ink-500); }
img{ max-width:100%; display:block; }

.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 24px; }
.section{ padding:88px 0; }
.section-tight{ padding:56px 0; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-display); font-size:.76rem; font-weight:600;
  letter-spacing:.1em; text-transform:uppercase; color:var(--peach-ac);
  background:var(--yellow); border-left:3px solid var(--peach-ac);
  padding:6px 14px; border-radius:0 8px 8px 0; margin-bottom:18px;
}
.section-head{ max-width:680px; margin:0 0 48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* Focus states */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .btn:focus-visible{
  outline:3px solid var(--sky-ac); outline-offset:2px; border-radius:6px;
}

/* Buttons — angular, not pill-shaped, to avoid the generic SaaS look */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--font-display); font-weight:600; font-size:.95rem;
  padding:14px 26px; border-radius:10px 4px 10px 4px; border:1.5px solid transparent;
  cursor:pointer; transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translate(2px,-2px); }
.btn-primary{
  background:var(--ink-900); color:#fff; box-shadow:var(--shadow-md);
}
.btn-primary:hover{ background:var(--peach-ac); box-shadow:var(--shadow-lg); }
.btn-secondary{
  background:var(--white); color:var(--ink-900); border-color:var(--ink-900);
  box-shadow:none;
}
.btn-secondary:hover{ background:var(--yellow); }
.btn-ghost{ background:transparent; color:var(--ink-900); border-color:rgba(27,36,64,.14); border-radius:4px 10px 4px 10px; }
.btn-block{ width:100%; }
.btn-sm{ padding:10px 18px; font-size:.85rem; }

/* ---------------- Header ---------------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(253,252,251,.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(27,36,64,.07);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding:16px 24px; max-width:var(--container); margin:0 auto; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; font-size:1.15rem; color:var(--ink-900); }
.brand-mark{ width:34px; height:34px; flex-shrink:0; }
.main-nav{ display:flex; align-items:center; gap:28px; }
.main-nav a{
  font-family:var(--font-display); font-size:.92rem; font-weight:600; color:var(--ink-700);
  position:relative; padding:7px 10px; border-radius:6px; transition:background .18s ease, color .18s ease;
}
.main-nav a:hover{ background:var(--yellow); color:var(--ink-900); }
.main-nav a[aria-current="page"]{ color:var(--ink-900); background:var(--peach); }
.header-actions{ display:flex; align-items:center; gap:14px; }
.header-actions .btn{ padding:10px 20px; }
.link-login{ font-family:var(--font-display); font-weight:600; font-size:.92rem; color:var(--ink-700); }

.nav-toggle{
  display:none; background:none; border:1px solid rgba(27,36,64,.14); border-radius:10px;
  width:44px; height:44px; align-items:center; justify-content:center; cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width:20px; height:2px; background:var(--ink-900); position:relative; transition:.2s;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

@media (max-width:920px){
  .main-nav{
    position:fixed; inset:72px 16px auto 16px; flex-direction:column; align-items:flex-start;
    background:var(--white); border:1px solid rgba(27,36,64,.08); border-radius:var(--radius-md);
    padding:20px; gap:16px; box-shadow:var(--shadow-lg);
    transform:translateY(-12px); opacity:0; pointer-events:none; transition:all .22s ease;
  }
  .main-nav.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav-toggle{ display:flex; }
  .header-actions .btn-secondary{ display:none; }
}

/* ---------------- Hero — "The Current" signature ---------------- */
.hero{
  position:relative; overflow:hidden;
  background:linear-gradient(100deg,var(--mint) 0%, var(--yellow) 45%, var(--peach) 100%);
  padding:88px 0 0;
}
.hero-grid{ display:grid; grid-template-columns:1fr; gap:0; align-items:center; }
.hero-top{ max-width:720px; margin:0 auto; text-align:center; padding:0 24px; }
.hero h1{ margin-bottom:20px; }
.hero-lede{ font-size:1.12rem; max-width:560px; margin-left:auto; margin-right:auto; }
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; margin-top:32px; justify-content:center; }
.hero-visual{ position:relative; margin-top:56px; }
.hero-visual svg{ width:100%; height:auto; display:block; }
.hero-banks{ display:flex; justify-content:space-between; max-width:var(--container); margin:0 auto; padding:0 40px 28px; }
.hero-bank{ font-family:var(--font-display); font-weight:600; font-size:.85rem; color:var(--ink-500); text-transform:uppercase; letter-spacing:.08em; }

@media (max-width:920px){
  .hero-banks{ padding:0 16px 20px; }
  .hero-bank{ font-size:.7rem; }
}

/* Current-flow animation: particles drifting left to right along the ribbon */
.current-path{ fill:none; stroke:url(#currentGrad); stroke-width:3; }
.current-particle{ offset-path:path(var(--wind-path)); animation:drift 7s linear infinite; }
.current-particle.p2{ animation-delay:1.6s; }
.current-particle.p3{ animation-delay:3.2s; }
.current-particle.p4{ animation-delay:4.8s; }
@keyframes drift{ from{ offset-distance:0%; opacity:0; } 6%{ opacity:1; } 94%{ opacity:1; } to{ offset-distance:100%; opacity:0; } }
.checkpoint-ring{ animation:ringpulse 2.6s ease-in-out infinite; transform-origin:center; }
@keyframes ringpulse{ 0%,100%{ opacity:.5; } 50%{ opacity:1; } }

/* ---------------- Cards — left accent bar, not icon-circle+shadow ---------------- */
.card{
  background:var(--white); border:1px solid rgba(27,36,64,.08); border-left:4px solid var(--mint-ac);
  border-radius:0 var(--radius-md) var(--radius-md) 0;
  padding:30px 32px; transition:transform .18s ease, border-color .18s ease, background .18s ease;
  height:100%;
}
.card:hover{ transform:translateX(3px); background:var(--surface-alt); }
.card.accent-sky{ border-left-color:var(--sky-ac); }
.card.accent-lav{ border-left-color:var(--lav-ac); }
.card.accent-peach{ border-left-color:var(--peach-ac); }
.card.accent-yellow{ border-left-color:var(--yellow-ac); }
.card-icon{
  width:44px; height:44px; border-radius:4px 12px 4px 12px; display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.grid{ display:grid; gap:26px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:920px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; } }

.tint-sky{ background:var(--sky); } .tint-lav{ background:var(--lav); }
.tint-mint{ background:var(--mint); } .tint-peach{ background:var(--peach); } .tint-yellow{ background:var(--yellow); }

/* Alternating soft section backgrounds */
.band-sky{ background:linear-gradient(180deg,var(--sky),var(--surface)); }
.band-lav{ background:linear-gradient(180deg,var(--lav),var(--surface)); }
.band-mint{ background:linear-gradient(180deg,var(--mint),var(--surface)); }
.band-peach{ background:linear-gradient(180deg,var(--peach),var(--surface)); }

/* ---------------- Steps ---------------- */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:26px; counter-reset:step; }
@media (max-width:920px){ .steps{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .steps{ grid-template-columns:1fr; } }
.step{ position:relative; padding:28px 22px; background:var(--white); border-radius:0 var(--radius-md) 0 var(--radius-md); border:1px solid rgba(27,36,64,.07); border-top:3px solid var(--peach-ac); }
.step-num{
  font-family:var(--font-display); font-weight:700; font-size:1.6rem; color:var(--peach-ac);
  margin-bottom:10px; display:block;
}

/* ---------------- CTA band ---------------- */
.cta-band{
  background:linear-gradient(120deg,var(--mint-ac),var(--sky-ac) 55%, var(--lav-ac));
  border-radius:4px 32px 4px 32px; padding:56px; color:#fff; text-align:center;
  position:relative; overflow:hidden;
}
.cta-band h2, .cta-band p{ color:#fff; }
.cta-band .btn-secondary{ background:#fff; color:var(--ink-900); }
.cta-band-ctas{ display:flex; justify-content:center; gap:16px; flex-wrap:wrap; margin-top:8px; }

/* ---------------- Forms ---------------- */
.form-card{
  background:var(--white); border:1px solid rgba(27,36,64,.08); border-radius:var(--radius-lg);
  padding:40px; box-shadow:var(--shadow-md);
}
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:680px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:6px; margin-bottom:18px; }
.field.full{ grid-column:1/-1; }
label{ font-family:var(--font-display); font-weight:600; font-size:.86rem; color:var(--ink-900); }
.req{ color:var(--peach-ac); }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=password], select, textarea{
  font-family:var(--font-body); font-size:.95rem; padding:12px 14px; border-radius:12px;
  border:1px solid rgba(27,36,64,.16); background:var(--surface-alt); color:var(--ink-900);
  transition:border-color .18s ease, background .18s ease;
}
input:focus, select:focus, textarea:focus{ border-color:var(--sky-ac); background:#fff; outline:none; }
textarea{ resize:vertical; min-height:110px; }
.checkbox-row{ display:flex; align-items:flex-start; gap:10px; margin:14px 0; font-size:.88rem; color:var(--ink-500); }
.checkbox-row input{ margin-top:4px; }
.hint{ font-size:.8rem; color:var(--ink-300); }
.captcha-box{
  border:1px dashed var(--sky-line); background:var(--sky); border-radius:12px; padding:16px;
  display:flex; align-items:center; gap:12px; font-size:.88rem; color:var(--ink-700); margin:14px 0;
}
.form-msg{ display:none; padding:14px 16px; border-radius:12px; font-size:.9rem; margin-bottom:18px; }
.form-msg.success{ background:var(--mint); color:#155c45; border:1px solid var(--mint-line); }
.form-msg.error{ background:#fdeeee; color:#8a2c2c; border:1px solid #f3caca; }
.form-msg.show{ display:block; }
.field.invalid input, .field.invalid select, .field.invalid textarea{ border-color:#c96060; }
.field-error{ font-size:.78rem; color:#c14545; display:none; }
.field.invalid .field-error{ display:block; }

/* ---------------- Table / FAQ ---------------- */
.faq-item{ border-bottom:1px solid rgba(27,36,64,.09); padding:20px 0; }
.faq-q{
  display:flex; align-items:center; justify-content:space-between; cursor:pointer;
  font-family:var(--font-display); font-weight:600; color:var(--ink-900); gap:16px;
}
.faq-q .chev{ transition:transform .2s ease; flex-shrink:0; }
.faq-item.open .chev{ transform:rotate(180deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-item.open .faq-a{ max-height:400px; padding-top:12px; }

.badge{
  display:inline-flex; align-items:center; gap:6px; font-size:.78rem; font-weight:600;
  padding:5px 12px; border-radius:999px; font-family:var(--font-display);
}
.badge-sky{ background:var(--sky); color:var(--sky-ac); }
.badge-mint{ background:var(--mint); color:var(--mint-ac); }
.badge-peach{ background:var(--peach); color:var(--peach-ac); }

.notice-box{
  background:var(--yellow); border:1px solid var(--yellow-line); border-radius:var(--radius-md);
  padding:22px 26px; font-size:.92rem; color:var(--ink-700); margin:28px 0;
}
.placeholder-tag{
  font-family:var(--font-display); font-size:.72rem; font-weight:700; letter-spacing:.04em;
  background:var(--lav); color:var(--lav-ac); border:1px solid var(--lav-line);
  padding:2px 8px; border-radius:6px; margin-left:6px; vertical-align:middle;
}

/* ---------------- Footer ---------------- */
.site-footer{ background:var(--ink-900); color:#cfd4e6; padding:64px 0 28px; margin-top:40px; }
.site-footer a{ color:#cfd4e6; }
.site-footer a:hover{ color:#fff; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr 1fr; gap:32px; }
@media (max-width:920px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{ color:#fff; font-size:.85rem; text-transform:uppercase; letter-spacing:.07em; margin-bottom:16px; }
.footer-grid ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; font-size:.9rem; }
.footer-brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; color:#fff; font-size:1.1rem; margin-bottom:14px; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  border-top:1px solid rgba(255,255,255,.1); margin-top:48px; padding-top:24px; font-size:.82rem; color:#9aa2bd;
}
.footer-bottom a{ color:#9aa2bd; }

/* ---------------- Utility ---------------- */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.flex{ display:flex; } .items-center{ align-items:center; } .gap-8{ gap:8px; } .gap-16{ gap:16px; }
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

.page-hero{
  padding:64px 0 48px; text-align:center;
  background:linear-gradient(135deg,var(--sky),var(--lav));
}
.page-hero .eyebrow{ margin-left:auto; margin-right:auto; }
.page-hero h1{ max-width:760px; margin-left:auto; margin-right:auto; }
.page-hero p{ max-width:620px; margin:0 auto; }

.skip-link{
  position:absolute; left:-9999px; top:0; background:#fff; color:var(--ink-900);
  padding:12px 18px; z-index:1000; border-radius:8px;
}
.skip-link:focus{ left:12px; top:12px; }

.legal-body h2{ margin-top:2em; }
.legal-body{ max-width:820px; margin:0 auto; }
.legal-toc{ background:var(--surface-alt); border-radius:var(--radius-md); padding:24px 28px; margin-bottom:40px; }
.legal-toc a{ display:block; padding:4px 0; }

table.compare{ width:100%; border-collapse:collapse; font-size:.92rem; }
table.compare th, table.compare td{ text-align:left; padding:12px 14px; border-bottom:1px solid rgba(27,36,64,.08); }
table.compare th{ font-family:var(--font-display); color:var(--ink-900); }

.auth-wrap{ min-height:70vh; display:flex; align-items:center; justify-content:center; padding:64px 24px; background:linear-gradient(135deg,var(--sky),var(--lav) 60%,var(--peach)); }
.auth-card{ background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); padding:44px; width:100%; max-width:440px; }
.auth-tabs{ display:flex; gap:8px; background:var(--surface-alt); padding:6px; border-radius:999px; margin-bottom:28px; }
.auth-tab{ flex:1; text-align:center; padding:10px; border-radius:999px; font-family:var(--font-display); font-weight:600; font-size:.9rem; cursor:pointer; color:var(--ink-500); }
.auth-tab.active{ background:#fff; color:var(--ink-900); box-shadow:var(--shadow-sm); }
.demo-note{ font-size:.8rem; background:var(--yellow); border:1px solid var(--yellow-line); padding:10px 14px; border-radius:10px; margin-bottom:20px; }
.password-wrap{ position:relative; }
.password-toggle{ position:absolute; right:12px; top:50%; transform:translateY(-50%); background:none; border:none; cursor:pointer; color:var(--ink-500); font-size:.8rem; font-family:var(--font-display); font-weight:600; }

.error-404{ min-height:70vh; display:flex; align-items:center; justify-content:center; text-align:center; padding:64px 24px; }
