/* ============================================================
   Cardexa Pro — base layer
   Tokens, reset, atmosphere, header, footer, buttons, fields.
   Shared by index.html, apply.html and every legal page.
   ============================================================ */

:root{
  --bg:#050608;
  --surface:#0b0e13;
  --text:#fff;
  --text-2:rgba(255,255,255,.66);
  --text-3:rgba(255,255,255,.58);
  --hairline:rgba(255,255,255,.11);
  --panel:rgba(255,255,255,.025);
  --accent:#397bff;
  --accent-press:#2f6ae6;   /* button fill: white text needs 4.5:1, #397bff gives 3.85 */
  --accent-deep:#2a5fd0;
  --accent-soft:rgba(57,123,255,.12);
  --link:#9dbdff;

  /* Status ramp. Each state is one hue at three jobs: text, hairline, fill.
     Text values are measured on the tinted fill over #050608 — the lowest
     is 10.9:1, so any of them is safe on the page background too. */
  --pos:#7ee0a8;
  --pos-text:#bfe6cf;
  --pos-line:rgba(126,224,168,.30);
  --pos-fill:rgba(126,224,168,.08);
  --warn:#ffbe78;
  --warn-text:#ffd9a8;
  --warn-line:rgba(255,190,120,.30);
  --warn-fill:rgba(255,190,120,.07);
  --neg:#ff9d9d;
  --neg-text:#ffb3b3;
  --neg-line:rgba(255,140,140,.40);
  --neg-fill:rgba(255,140,140,.08);
  --font-display:'Schibsted Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-body:'Instrument Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color-scheme:dark;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.22) #000}
html.lenis{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto}
body{
  background:var(--bg);color:var(--text);
  font:400 16px/1.6 var(--font-body);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg,video,canvas{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
:focus-visible,.is-focus-ring{outline:2px solid rgba(255,255,255,.65);outline-offset:3px;border-radius:4px}
::selection{background:rgba(57,123,255,.28)}

.container{max-width:1140px;margin-inline:auto;padding-inline:clamp(20px,4vw,40px)}
.skip{position:absolute;left:-9999px;top:0;z-index:200;background:#fff;color:#000;padding:12px 18px;border-radius:0 0 10px 0}
.skip:focus{left:0}

/* ---------- Atmosphere ---------- */
.vignette{
  position:fixed;inset:0;z-index:70;pointer-events:none;
  background:radial-gradient(130% 105% at 50% 42%,transparent 60%,rgba(0,0,0,.38) 100%);
}

/* ---------- Header ---------- */
.nav{
  position:fixed;inset-inline:0;top:0;z-index:80;
  padding-block:18px;
  background:transparent;border-bottom:1px solid transparent;
  transition:background .35s ease,border-color .35s ease;
}
.nav.is-scrolled{
  background:rgba(0,0,0,.78);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-bottom-color:var(--hairline);
  padding-block:12px;
}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:inline-flex;align-items:center;min-height:44px;gap:10px;z-index:60}
.brand svg{flex:none}
.brand span{font:600 17px/1 var(--font-display);letter-spacing:-.01em}
.nav-links{display:none;align-items:center;gap:30px;list-style:none}
.nav-links a{display:inline-flex;align-items:center;min-height:44px;font-size:15px;color:var(--text-2);transition:color .18s ease}
.nav-links a:hover,.nav-links a.is-hover{color:#fff}
.nav .nav-cta{display:none}
.menu-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;background:none;border:0;color:#fff;cursor:pointer;z-index:60;
}
@media(min-width:960px){
  .nav-links{display:flex}
  .nav .nav-cta{display:inline-flex}
  .menu-btn{display:none}
}

.mobile-menu{
  position:fixed;inset:0;z-index:75;background:rgba(0,0,0,.96);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;
  opacity:0;visibility:hidden;transition:opacity .28s ease,visibility .28s ease;
}
.mobile-menu.is-open{opacity:1;visibility:visible}
.mobile-menu a:not(.btn){font:500 21px/1 var(--font-display);color:var(--text-2);padding:13px;transition:color .18s ease}
.mobile-menu a:not(.btn):hover{color:#fff}
.mobile-menu .btn{margin-top:22px}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font:500 15px/1 var(--font-body);
  border-radius:999px;padding:12px 22px;min-height:44px;
  /* The UA gives a bare <button> `buttonface` — rgb(107,107,107) under
     color-scheme:dark. .btn-ghost declared no background, so it shipped as a
     solid grey pill on every legal page. Every variant starts from here. */
  background:transparent;border:1px solid transparent;cursor:pointer;
  transition:background .2s ease,border-color .2s ease,color .2s ease,transform .15s ease,box-shadow .2s ease;
  will-change:transform;
}
.btn:active,.btn.is-active{transform:scale(.97)}
.btn-primary{background:var(--accent-press);color:#fff;box-shadow:0 8px 24px -10px rgba(57,123,255,.7)}
.btn-primary:hover,.btn-primary.is-hover{background:var(--accent-deep);transform:translateY(-1px);box-shadow:0 12px 30px -10px rgba(57,123,255,.85)}
.btn-ghost{border-color:rgba(255,255,255,.22);color:var(--text)}
.btn-ghost:hover,.btn-ghost.is-hover{border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.05)}
.btn[disabled]{opacity:.55;cursor:not-allowed;transform:none;box-shadow:none}
.btn.is-loading{pointer-events:none;opacity:.85}
.btn.is-loading::before{
  content:"";flex:none;width:14px;height:14px;border-radius:50%;
  border:2px solid rgba(255,255,255,.35);border-top-color:#fff;
  animation:btn-spin .7s linear infinite;
}
@keyframes btn-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){
  .btn.is-loading::before{animation:none;border-top-color:rgba(255,255,255,.9)}
}

/* Embedded third-party form: hold the space and say it is loading. */
.embed-loading{
  display:flex;align-items:center;justify-content:center;gap:12px;
  min-height:420px;border:1px solid var(--hairline);border-radius:12px;
  background:var(--panel);color:var(--text-3);font-size:15px;
}
.embed-loading::before{
  content:"";width:15px;height:15px;border-radius:50%;
  border:2px solid rgba(255,255,255,.2);border-top-color:rgba(255,255,255,.7);
  animation:btn-spin .8s linear infinite;
}
@media(prefers-reduced-motion:reduce){.embed-loading::before{animation:none}}
.btn-lg{padding:15px 30px;font-size:16px}

/* ---------- Section furniture ---------- */
.section{
  padding-block:clamp(84px,10vw,132px);
  border-top:1px solid var(--hairline);
  scroll-margin-top:74px;position:relative;background:#000;
}
.kicker{
  display:inline-flex;align-items:center;gap:12px;
  font-size:12px;font-weight:500;letter-spacing:.17em;text-transform:uppercase;
  color:var(--text-3);margin-bottom:16px;
}
.kicker::before{content:"";width:22px;height:1px;background:rgba(255,255,255,.34)}
h2{font:700 clamp(28px,3.6vw,42px)/1.14 var(--font-display);letter-spacing:-.02em;text-wrap:balance}
h3{font:600 17px/1.35 var(--font-body);letter-spacing:-.01em}
.section-head{margin-bottom:clamp(38px,5vw,60px);max-width:44em}
.lead{font-size:17px;line-height:1.72;color:var(--text-2);margin-top:18px}
.note{font-size:13px;line-height:1.65;color:var(--text-3)}

/* ---------- Fields ---------- */
.field label{display:block;font-size:13px;font-weight:500;color:var(--text-2);margin-bottom:7px}
.field label small{color:var(--text-3);font-weight:400}
.field input,.field select,.field textarea{
  width:100%;color:#fff;font:400 15px/1.4 var(--font-body);
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.15);border-radius:10px;
  padding:12px 14px;transition:border-color .2s ease,background .2s ease;
}
.field textarea{min-height:118px;resize:vertical}
.field input::placeholder,.field textarea::placeholder{color:rgba(255,255,255,.42)}
.field input:focus,.field select:focus,.field textarea:focus,
.field.is-focus input,.field.is-focus select,.field.is-focus textarea{
  outline:none;border-color:rgba(57,123,255,.7);background:rgba(57,123,255,.06);
}
.field select{
  appearance:none;-webkit-appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23ffffff99' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;padding-right:40px;
}
.field select:invalid{color:rgba(255,255,255,.42)}
.field.invalid input,.field.invalid select,.field.invalid textarea{border-color:rgba(255,140,140,.75)}
.err{display:none;font-size:12px;color:var(--neg);margin-top:6px}
.field.invalid .err{display:block}
.honey{position:absolute;left:-6000px;top:-6000px}

/* ---------- Footer ---------- */
footer{border-top:1px solid var(--hairline);padding:64px 0 36px;position:relative;background:#000}
.footer-grid{display:grid;gap:40px;margin-bottom:44px}
@media(min-width:820px){.footer-grid{grid-template-columns:2fr 1fr 1fr 1fr;gap:48px}}
.footer-brand .brand{margin-bottom:14px}
/* Footer tagline slot. Empty on purpose: "From Commission to Card." was
   removed 2026-08-01 because the product no longer leads with commissions.
   The rule stays because the slot comes back with the new positioning. */
.footer-tag{font:500 15px/1.4 var(--font-display);color:var(--text-2);margin-bottom:12px}
.footer-brand p{font-size:15px;color:var(--text-3);max-width:26em}
.footer-col h3{font-size:12px;font-weight:500;letter-spacing:.15em;text-transform:uppercase;color:var(--text-3);margin-bottom:16px}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:2px}
.footer-col a{display:inline-flex;align-items:center;min-height:44px;font-size:15px;color:var(--text-2);transition:color .18s ease}
.footer-col a:hover{color:#fff}
.footer-legal{
  font-size:12px;line-height:1.7;color:var(--text-3);
  max-width:78ch;margin-bottom:26px;padding-top:26px;border-top:1px solid var(--hairline);
}
.footer-bottom{
  display:flex;flex-wrap:wrap;gap:12px 26px;justify-content:space-between;
  padding-top:24px;border-top:1px solid var(--hairline);font-size:13px;color:var(--text-3);
}

/* ---------- Cookie consent ---------- */
.cookie{
  position:fixed;left:16px;right:16px;bottom:16px;z-index:90;
  display:none;gap:18px;align-items:center;flex-wrap:wrap;
  max-width:720px;margin-inline:auto;
  padding:18px 20px;border:1px solid var(--hairline);border-radius:16px;
  background:rgba(10,12,16,.94);
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
  box-shadow:0 24px 60px -28px rgba(0,0,0,.95);
}
.cookie.is-open{display:flex}
.cookie p{font-size:13px;line-height:1.6;color:var(--text-2);flex:1 1 300px}
.cookie a{color:#fff;text-decoration:underline;text-underline-offset:2px}
.cookie-actions{display:flex;gap:10px;flex:0 0 auto}
.cookie .btn{padding:12px 20px;font-size:13px;min-height:44px}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.01ms !important;animation-duration:.01ms !important}
}
