/* ============================================================
   AiBT — Beyond Bible Translation
   Theme reference: twftw.org (Montserrat / #FFCF01 / #333132)
   ============================================================ */

:root{
  /* exact colours lifted from assets/logo.svg */
  --brand:#FFD001;        /* logo yellow, used site-wide */
  --brand-dark:#E0B800;   /* same yellow, darkened for hover states */
  --blue:#31408F;         /* logo blue  */
  --blue-dark:#26326F;
  --cream:#FDFAF1;        /* logo background */
  --ink:#333132;
  --ink-soft:#5A5758;
  --ink-mute:#807C7E;
  --grey:#F1F0F1;
  --grey-line:#E2E0E1;
  --white:#fff;
  --dark:#333132;
  --dark-2:#232122;

  --wrap:1600px;
  --gut:clamp(20px,5vw,48px);
  --sect-y:clamp(64px,9vw,120px);
  --hdr-h:108px;

  --r:4px;
  --r-lg:8px;
  --shadow:0 2px 4px rgba(51,49,50,.04), 0 12px 28px rgba(51,49,50,.07);
  --shadow-lift:0 4px 8px rgba(51,49,50,.06), 0 22px 44px rgba(51,49,50,.13);
  --ease:cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:calc(var(--hdr-h) + 16px)}
body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,Helvetica,sans-serif;
  font-size:17px;
  line-height:1.72;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg{max-width:100%}
h1,h2,h3,h4{margin:0; font-weight:800; line-height:1.08; letter-spacing:-.015em}
p{margin:0 0 1.1em}
p:last-child{margin-bottom:0}
ul,ol{margin:0; padding:0; list-style:none}
a{color:inherit; text-decoration:none}
.sprite{position:absolute; width:0; height:0; overflow:hidden}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.wrap{width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gut)}

.skip-link{
  position:absolute; top:-64px; left:16px; z-index:200;
  background:var(--brand); color:var(--ink);
  padding:10px 18px; border-radius:var(--r); font-weight:700; font-size:14px;
  transition:top .2s var(--ease);
}
.skip-link:focus{top:12px}

:focus-visible{outline:3px solid var(--brand); outline-offset:3px; border-radius:2px}

/* ---------- type helpers ---------- */
.eyebrow{
  margin:0 0 18px;
  font-size:12px; font-weight:700; letter-spacing:.18em; text-transform:uppercase;
  color:var(--ink-mute);
  display:flex; align-items:center; gap:12px;
}
.eyebrow::before{content:""; width:34px; height:3px; background:var(--brand); flex:none}
.eyebrow-light{color:rgba(255,255,255,.72)}
.eyebrow-ink{color:var(--ink)}
.eyebrow-ink::before{background:var(--ink)}
/* keeps the label a single flex item so inline spans don't inherit the flex gap */
.eyebrow-label{display:block}

/* "AiBT" is always cased exactly like this — never let a text-transform touch it */
.nocaps{text-transform:none}

h1{font-size:clamp(2.7rem,7.6vw,5.2rem); text-transform:uppercase; letter-spacing:-.025em}
h2{font-size:clamp(1.85rem,3.9vw,3rem); text-transform:uppercase}
h3{font-size:1.06rem; letter-spacing:0; line-height:1.3}

.prose{color:var(--ink-soft); max-width:62ch}
.prose + .prose{margin-top:0}
.lead-strong{color:var(--ink); font-weight:600}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:14px 28px;
  font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  border-radius:var(--r); border:2px solid transparent;
  transition:transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  will-change:transform;
}
.btn-brand{background:var(--brand); color:var(--ink); border-color:var(--brand)}
/* Hover flips yellow -> blue. The label flips with it: --ink on the blue is
   1.39:1, so keeping the dark text would make the button unreadable. */
.btn-brand:hover{background:var(--blue); color:var(--cream); border-color:var(--blue); transform:translateY(-2px)}
.btn-ghost{background:transparent; color:var(--white); border-color:rgba(255,255,255,.45)}
.btn-ghost:hover{background:var(--white); color:var(--ink); border-color:var(--white); transform:translateY(-2px)}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid transparent;
  transition:box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-stuck{border-bottom-color:var(--grey-line); box-shadow:0 6px 24px rgba(51,49,50,.07)}
/* The same look, but set by the page rather than by scrolling — main.js only
   manages is-stuck, so it never takes this one away at the top of the page.
   For pages with no hero, where the header should be separated from the start. */
.site-header.is-solid{border-bottom-color:var(--grey-line); box-shadow:0 6px 24px rgba(51,49,50,.07)}
.header-inner{display:flex; align-items:center; gap:24px; height:var(--hdr-h)}

.brand{display:flex; align-items:center; gap:12px; margin-right:auto}
/* Full horizontal lockup: cube, the cycling 'immersed' wordmark and the
   TWFTW line are all inside the SVG, so no HTML text is repeated here.
   Its CSS keyframes animate inside an <img>; scripts and external fonts do
   not load in that context, which is why the file names local fallbacks. */
.brand-logo{flex:none; display:block; line-height:0}
.brand-logo img{display:block; width:auto; height:105px}

.primary-nav{display:flex; align-items:center; gap:24px}
.primary-nav ul{display:flex; align-items:center; gap:clamp(16px,1.8vw,26px); min-width:0}
.primary-nav a{
  position:relative; font-size:13.5px; font-weight:600; color:var(--ink); white-space:nowrap;
  padding-block:6px;
}
.primary-nav ul a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:3px;
  background:var(--brand); transform:scaleX(0); transform-origin:left;
  transition:transform .22s var(--ease);
}
.primary-nav ul a:hover::after,
.primary-nav ul a.is-active::after{transform:scaleX(1)}
.nav-cta{padding:11px 20px}

/* ---------- header auth cluster ---------- */
.nav-divider{
  width:1px; height:22px; flex:none;
  background:linear-gradient(var(--grey-line), var(--grey-line)) center/1px 22px no-repeat;
  opacity:.9;
}
.nav-auth{display:flex; align-items:center; gap:6px; flex:none}
.nav-auth form{margin:0}

/* quiet text link paired with a loud pill — the contrast is the whole point */
.nav-account{
  font-size:13px; font-weight:600; color:var(--ink-soft); white-space:nowrap;
  padding:10px 14px; border-radius:var(--r);
  transition:color .2s var(--ease), background-color .2s var(--ease);
}
.nav-account:hover{color:var(--ink); background:var(--grey)}

/* The page you are on, marked the way the section links mark theirs: the brand
   bar underneath. .nav-account sits outside .primary-nav ul, so the rule up
   there does not reach it. The bar is inset by the link's own padding, so it
   underlines the words rather than the whole pill. */
.nav-account.is-active{position:relative; color:var(--ink); font-weight:700}
.nav-account.is-active::after{
  content:""; position:absolute; left:14px; right:14px; bottom:4px; height:3px;
  background:var(--brand);
}

/* The user manual: a round book icon just before My account, with its name
   on hover. Yellow when it is the page you are on, like the brand bar. */
.nav-manual{
  position:relative; display:grid; place-items:center; flex:none;
  width:40px; height:40px; border-radius:50%; color:var(--ink);
  background:var(--grey); margin-right:4px;
  transition:background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.nav-manual svg{width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round}
.nav-manual:hover{background:var(--brand); transform:translateY(-1px)}
.nav-manual.is-active{background:var(--brand)}
.nav-manual-tip{
  position:absolute; top:calc(100% + 8px); left:50%; transform:translate(-50%,-4px);
  background:var(--ink); color:var(--white); font-size:11.5px; font-weight:600; white-space:nowrap;
  padding:5px 10px; border-radius:6px; pointer-events:none;
  opacity:0; visibility:hidden; transition:opacity .15s, transform .15s, visibility .15s;
}
.nav-manual:hover .nav-manual-tip, .nav-manual:focus-visible .nav-manual-tip{opacity:1; visibility:visible; transform:translate(-50%,0)}

.nav-auth .btn{
  font-size:12px; letter-spacing:.09em; padding:12px 20px;
  border-radius:6px; white-space:nowrap;
  box-shadow:0 3px 10px rgba(255,207,1,.42);
}
.nav-auth .btn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(49,64,143,.45);
}
.btn-arrow{
  width:15px; height:15px; flex:none;
  fill:none; stroke:currentColor; stroke-width:2.2;
  stroke-linecap:round; stroke-linejoin:round;
  transition:transform .22s var(--ease);
}
.nav-auth .btn:hover .btn-arrow{transform:translateX(3px)}

.nav-toggle{
  display:none; order:3;
  width:44px; height:44px; padding:0;
  background:var(--grey); border:0; border-radius:var(--r); cursor:pointer;
}
.nav-toggle-bars{display:grid; gap:5px; justify-items:center}
.nav-toggle-bars i{
  display:block; width:20px; height:2px; background:var(--ink); border-radius:2px;
  transition:transform .22s var(--ease), opacity .18s var(--ease);
}
.nav-toggle[aria-expanded="true"] i:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] i:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] i:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative; isolation:isolate;
  min-height:min(74vh,620px);
  display:flex; align-items:center;
  padding-block:clamp(52px,7vw,84px);
  background:var(--dark); color:var(--white);
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(255,207,1,.20) 0%, rgba(255,207,1,0) 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(255,207,1,.09) 0%, rgba(255,207,1,0) 60%),
    linear-gradient(160deg,#3B3839 0%,#2A2829 60%,#211F20 100%);
}
.hero-bg::after{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size:72px 72px;
  mask-image:radial-gradient(80% 70% at 30% 40%, #000 0%, transparent 78%);
  -webkit-mask-image:radial-gradient(80% 70% at 30% 40%, #000 0%, transparent 78%);
}
/* Animation canvas sits above the gradient backdrop but below the copy. */
.hero-anim{
  position:absolute; inset:0; width:100%; height:100%;
  display:block; pointer-events:none; z-index:1;
}
.hero-inner{position:relative; z-index:2; max-width:1180px}
.hero h1{margin-bottom:26px}
.hero h1::after{
  content:""; display:block; width:96px; height:8px;
  background:var(--brand); margin-top:28px;
}
.hero-sub{
  font-size:clamp(1.05rem,2.1vw,1.5rem); font-weight:600;
  color:var(--brand); margin-bottom:22px; letter-spacing:-.005em;
}
.hero-lead{
  font-size:clamp(1rem,1.6vw,1.16rem);
  color:rgba(255,255,255,.8); max-width:60ch; margin-bottom:38px;
}
.hero-actions{display:flex; flex-wrap:wrap; gap:14px}

.scroll-cue{
  z-index:2;
  position:absolute; left:50%; bottom:28px; translate:-50% 0;
  width:26px; height:42px; border:2px solid rgba(255,255,255,.35); border-radius:14px;
  display:grid; place-items:start center; padding-top:7px;
}
.scroll-cue span{
  width:4px; height:8px; border-radius:2px; background:var(--brand);
  animation:cue 1.7s var(--ease) infinite;
}
@keyframes cue{0%,100%{transform:translateY(0); opacity:1} 55%{transform:translateY(12px); opacity:.15}}

/* ============================================================
   SECTIONS
   ============================================================ */
.section{padding-block:var(--sect-y)}
.section-grey{background:var(--grey)}
.section-brand{background:var(--brand); color:var(--ink)}
.section-dark{background:var(--dark); color:var(--white)}
.section-dark .prose{color:rgba(255,255,255,.76)}

.grid-2{display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:clamp(32px,6vw,80px)}
.grid-2-align{align-items:start}

.section-head{max-width:780px; margin-bottom:clamp(38px,5vw,58px)}
.section-head h2{margin-bottom:22px}
.section-head-lead{font-size:1.03rem}
.section-head-lead + .section-head-lead{margin-top:-.3em}
.section-head-center{margin-inline:auto; text-align:center}
.section-head-center .eyebrow{justify-content:center}
.section-head-center .prose{margin-inline:auto}

/* ---------- core list ---------- */
.core-list{display:grid; gap:2px; background:var(--grey-line); border-radius:var(--r-lg); overflow:hidden}
.core-list li{
  display:flex; gap:22px; align-items:flex-start;
  background:var(--white); padding:26px clamp(20px,3vw,32px);
  transition:background-color .2s var(--ease);
}
.core-list li:hover{background:#FFFDF3}
.core-num{
  font-size:13px; font-weight:800; letter-spacing:.06em; color:var(--brand);
  background:var(--blue); border-radius:var(--r);
  padding:6px 10px; flex:none; line-height:1;
}
.core-list h3{margin-bottom:6px}
.core-list p{font-size:.94rem; color:var(--ink-soft); line-height:1.62}

/* ---------- tag grid ---------- */
.tag-grid{
  display:grid; gap:14px;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
}
/* Even rows: 8 tags as 4 + 4 (then 2 + 2 + 2 + 2). auto-fill left the
   home page with 5 on top and 3 below. */
/* grid-auto-rows:1fr makes every row as tall as the tallest one, so a tag
   whose text wraps to two lines no longer leaves the other row shorter. */
.tag-grid-4{grid-template-columns:repeat(4,1fr); grid-auto-rows:1fr}
@media (max-width:1000px){ .tag-grid-4{grid-template-columns:repeat(2,1fr)} }
.tag-grid li{
  display:flex; align-items:center; gap:14px;
  padding:18px 22px;
  background:var(--white);
  border:1px solid var(--grey-line);
  border-left:4px solid var(--blue);
  border-radius:var(--r);
  font-size:.97rem; font-weight:600;
  transition:transform .2s var(--ease), box-shadow .2s var(--ease);
}
.tag-grid li:hover{transform:translateY(-3px); box-shadow:var(--shadow)}
.tag-grid svg{
  width:19px; height:19px; flex:none;
  fill:none; stroke:var(--brand); stroke-width:3.4;
  stroke-linecap:round; stroke-linejoin:round;
}
.tag-grid-dark li{
  background:rgba(255,255,255,.045);
  border-color:rgba(255,255,255,.12);
  border-left-color:var(--brand);
  color:var(--white);
}
.tag-grid-dark li:hover{background:rgba(255,255,255,.08); box-shadow:none}
.tag-grid-dark svg{stroke:var(--brand)}

/* ---------- callout ---------- */
.callout{
  margin-top:clamp(34px,4.5vw,52px);
  padding:clamp(28px,4vw,46px);
  background:var(--grey); border-radius:var(--r-lg);
  border-top:6px solid var(--brand);
  max-width:920px;
}
.callout p{color:var(--ink-soft)}
.callout-strong{
  margin-top:1.1em; margin-bottom:0;
  font-size:clamp(1.05rem,1.9vw,1.3rem); font-weight:700; line-height:1.45;
  color:var(--ink) !important;
}

.closing-note{
  margin-top:clamp(30px,4vw,46px);
  max-width:78ch;
  font-size:1.03rem; color:rgba(255,255,255,.76);
  padding-left:22px; border-left:4px solid var(--brand);
}

/* ---------- card grid ---------- */
.card-grid{
  display:grid; gap:clamp(16px,2vw,24px);
  grid-template-columns:repeat(auto-fit,minmax(290px,1fr));
}
/* Even rows: 6 cards as 3 + 3 (then 2 + 2 + 2). auto-fit gave 4 + 2. */
.card-grid-3{grid-template-columns:repeat(3,1fr)}
@media (max-width:1000px){ .card-grid-3{grid-template-columns:repeat(2,1fr)} }
@media (max-width:680px){ .card-grid-3{grid-template-columns:1fr} }
.card{
  position:relative; overflow:hidden;
  padding:clamp(26px,3vw,36px);
  background:var(--white);
  border:1px solid var(--grey-line); border-radius:var(--r-lg);
  transition:transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.card::before{
  content:""; position:absolute; inset:0 0 auto 0; height:5px;
  background:var(--brand); transform:scaleX(0); transform-origin:left;
  transition:transform .3s var(--ease);
}
.card:hover{transform:translateY(-6px); box-shadow:var(--shadow-lift); border-color:transparent}
.card:hover::before{transform:scaleX(1)}
.card-icon{
  display:grid; place-items:center;
  width:54px; height:54px; margin-bottom:22px;
  background:var(--blue); border-radius:var(--r);
}
.card-icon svg{
  width:27px; height:27px;
  fill:var(--brand); stroke:var(--brand); stroke-width:1.85;
  stroke-linecap:round; stroke-linejoin:round;
}
/* Interior marks (the 'i', the tick) are styled inline in the sprite itself:
   <use> clones into a shadow tree that CSS selectors cannot reach. */
.card h3{font-size:1.16rem; margin-bottom:10px}
.card p{font-size:.95rem; color:var(--ink-soft); line-height:1.66; margin:0}

/* ---------- decide list ---------- */
.decide-list{margin:22px 0 26px; display:grid; gap:10px}
.decide-list li{
  position:relative; padding-left:30px;
  font-weight:600; font-size:.99rem;
}
.decide-list li::before{
  content:""; position:absolute; left:0; top:.62em;
  width:11px; height:11px; background:var(--brand); border-radius:2px;
}

/* ---------- testimony slider ---------- */
/* Three cards visible at a time. Built on scroll-snap rather than transform
   maths: the browser handles the paging, it stays swipeable on touch, and it
   degrades to a plain scroller if the JS never runs. */
#testimony .section-head h2{color:var(--blue)}

.testimony-slider{position:relative}

.testimony-track{
  display:grid; grid-auto-flow:column;
  grid-auto-columns:calc((100% - (2 * var(--slide-gap))) / 3);
  --slide-gap:clamp(18px,2.4vw,26px);
  gap:var(--slide-gap);
  /* Fewer cards than columns: centre them instead of leaving a gap on the
     right. 'safe' so that once they do overflow it falls back to start -
     plain centring would push the first card out of reach of scrollLeft 0. */
  justify-content:safe center;
  overflow-x:auto; scroll-snap-type:x mandatory;
  /* smoothness is decided per-call in main.js: declaring it here made CSS
     win over the scrollTo() behavior option and the scroll never settled */
  padding-bottom:6px;
  scrollbar-width:none;
}
.testimony-track::-webkit-scrollbar{display:none}
.testimony-track:focus-visible{outline:3px solid var(--blue); outline-offset:6px; border-radius:var(--r)}

.testimony-card{
  margin:0; display:flex; flex-direction:column;
  scroll-snap-align:start;
  background:var(--cream); border-radius:var(--r-lg);
  border-top:5px solid var(--blue);
  padding:clamp(24px,2.6vw,32px);
  box-shadow:0 2px 4px rgba(51,49,50,.06), 0 14px 30px rgba(51,49,50,.10);
}
.testimony-card blockquote{margin:0 0 22px; position:relative; padding-top:38px; flex:1}
.testimony-card blockquote::before{
  content:"“";
  position:absolute; top:-16px; left:-4px;
  font-size:86px; line-height:1; font-weight:800;
  color:var(--blue); opacity:.22;
}
.testimony-card blockquote p{
  font-size:1rem; font-weight:400; line-height:1.66; color:var(--ink); margin:0;
}
.testimony-card figcaption{
  display:flex; align-items:center; gap:14px;
  padding-top:18px; border-top:2px solid rgba(49,64,143,.20);
}
/* Logo-only attribution: nothing to sit beside, so centre it. */
.testimony-card figcaption.is-centered{justify-content:center}
/* Organisation / region mark beside the name. Decorative: the organisation
   is already named in the text next to it, so alt is empty. */
.testimony-logo{width:46px; height:46px; flex:none; object-fit:contain}
.testimony-who{display:flex; flex-direction:column; gap:4px; min-width:0}
.testimony-card cite{font-style:normal; font-weight:800; font-size:1.02rem; color:var(--blue)}
.testimony-card figcaption span{font-size:.85rem; font-weight:600; color:var(--ink-soft); line-height:1.5}

/* Three across is only sensible while the cards stay readable. Below that
   show two, then one - the paging maths follows automatically because it
   measures the rendered card width. */
@media (max-width:1000px){
  .testimony-track{grid-auto-columns:calc((100% - var(--slide-gap)) / 2)}
}
@media (max-width:680px){
  .testimony-track{grid-auto-columns:88%}
}

/* ---------- slider controls ---------- */
.slider-controls{
  display:flex; align-items:center; justify-content:center; gap:18px;
  margin-top:clamp(22px,2.6vw,30px);
}
/* A display value on the element beats the browser's [hidden]{display:none},
   so the JS setting .hidden had no effect without this. */
.slider-controls[hidden]{display:none}
.slider-btn{
  width:44px; height:44px; flex:none; padding:0; cursor:pointer;
  display:grid; place-items:center;
  background:var(--cream); color:var(--blue);
  border:2px solid var(--blue); border-radius:50%;
  transition:background-color .18s var(--ease), color .18s var(--ease), opacity .18s var(--ease);
}
.slider-btn svg{width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2.4;
  stroke-linecap:round; stroke-linejoin:round}
.slider-btn:hover{background:var(--blue); color:var(--cream)}
.slider-btn[disabled]{opacity:.35; cursor:default}
.slider-btn[disabled]:hover{background:var(--cream); color:var(--blue)}

.slider-dots{display:flex; align-items:center; gap:9px}
.slider-dots button{
  width:10px; height:10px; padding:0; cursor:pointer;
  border:0; border-radius:50%; background:rgba(49,64,143,.30);
  transition:background-color .18s var(--ease), transform .18s var(--ease);
}
.slider-dots button[aria-current="true"]{background:var(--blue); transform:scale(1.35)}

/* ---------- pull quote ---------- */
.pull-quote{
  margin:0; position:relative;
  padding:clamp(34px,4.5vw,52px);
  background:var(--dark); color:var(--white); border-radius:var(--r-lg);
  box-shadow:var(--shadow);
}
.pull-quote p{
  font-size:clamp(1.15rem,2.3vw,1.6rem);
  font-weight:400; line-height:1.5; color:rgba(255,255,255,.72);
  margin-bottom:.55em;
}
.pull-quote p:last-child{margin-bottom:0}
.pull-quote strong{color:var(--brand); font-weight:800}
.quote-icon{
  display:grid; place-items:center;
  width:52px; height:52px; margin-bottom:26px;
  background:var(--brand); border-radius:var(--r);
}
.quote-icon svg{
  width:27px; height:27px;
  fill:none; stroke:var(--ink); stroke-width:1.9;
  stroke-linecap:round; stroke-linejoin:round;
}

/* ---------- steps ---------- */
.section-future{position:relative; isolation:isolate}
.section-future::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:radial-gradient(70% 60% at 50% 0%, rgba(255,207,1,.14) 0%, rgba(255,207,1,0) 62%);
}
.steps{
  display:grid; gap:clamp(20px,3vw,32px);
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  margin-bottom:clamp(40px,5vw,64px);
}
.steps li{padding-top:24px}
.step-rule{display:block; width:100%; height:5px; background:rgba(255,255,255,.14); margin-bottom:22px; position:relative}
.step-rule::after{
  content:""; position:absolute; inset:0 auto 0 0; width:38%;
  background:var(--brand);
}
.steps h3{
  font-size:clamp(1.25rem,2.4vw,1.75rem); text-transform:uppercase;
  color:var(--white); margin-bottom:8px;
}
.steps p{color:rgba(255,255,255,.66); font-size:1rem; margin:0}

.statement{
  position:relative;
  max-width:900px; margin-inline:auto; text-align:center;
  padding:clamp(30px,4vw,44px) clamp(24px,4vw,52px);
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--r-lg);
  font-size:clamp(1.05rem,2vw,1.35rem); font-weight:600; line-height:1.55;
  color:var(--white);
}
/* Stacked logo above the closing line, on a lightly frosted plate so it reads
   as a panel rather than floating on the band. */
.statement-mark{
  display:block; width:fit-content; margin:0 auto 24px;
 /* padding:18px 26px; border-radius:var(--r-lg);*/
 /* background:rgba(253,250,241,.10);*/
  
 /* border:1px solid rgba(255,255,255,.14);*/
}
.statement-mark img{display:block; width:150px; height:auto}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background:var(--dark-2); color:rgba(255,255,255,.7);
  border-top:1px solid rgba(255,255,255,.1);
}
.footer-bottom-inner{
  display:grid; grid-template-columns:minmax(0,1fr) auto;
  align-items:center; gap:26px 32px;
  padding-block:clamp(28px,3.6vw,44px);
}

.footer-legal{
  display:flex; flex-wrap:wrap; align-items:center;
  gap:10px clamp(16px,1.9vw,25px);
  font-size:.81rem;
}
.footer-legal li{color:rgba(255,255,255,.52)}
.footer-legal a{color:rgba(255,255,255,.72); transition:color .18s var(--ease)}
.footer-legal a:hover{color:var(--brand)}

.footer-partners{
  display:flex; flex-wrap:wrap; align-items:center;
  gap:clamp(20px,2.6vw,36px);
  justify-self:end;
}
/* the supplied mark is the dark-text version, so it sits on a white plate
   rather than directly on the dark bar, where its wordmark would vanish */
.footer-partners a{
  display:block;
  background:var(--white); border-radius:var(--r);
  padding:11px 18px;
  transition:transform .18s var(--ease), box-shadow .18s var(--ease);
}
.footer-partners a:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(0,0,0,.35);
}
.footer-partners img{display:block; width:auto; height:clamp(32px,3.2vw,42px)}

/* ============================================================
   AUTH PAGES (login / sign-up)
   ============================================================ */
.auth-body{background:var(--dark)}
.auth-shell{
  position:relative; isolation:isolate;
  min-height:100dvh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:22px; padding:clamp(28px,6vw,64px) var(--gut);
}
.auth-bg{
  position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(255,207,1,.20) 0%, rgba(255,207,1,0) 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(255,207,1,.09) 0%, rgba(255,207,1,0) 60%),
    linear-gradient(160deg,#3B3839 0%,#2A2829 60%,#211F20 100%);
}

.auth-card{
  width:100%; max-width:480px;
  background:var(--white); color:var(--ink);
  border-radius:var(--r-lg); border-top:6px solid var(--brand);
  padding:clamp(28px,4vw,44px);
  box-shadow:0 24px 60px rgba(0,0,0,.4);
}

/*
 * The logo spans the card's content width on sign-in and sign-up, so its left
 * and right edges line up with the title and the fields. aibt-logo-horizontal.svg draws inside a 1160x420 canvas
 * but the artwork only covers x 56-1071, y 100-355, so the box below is cut to
 * the artwork's shape (1015:255) and the image is scaled up and shifted so the
 * empty margins fall outside it. Without the crop, "full width" still left the
 * visible logo small, with a band of white above and below it.
 */
.auth-brand{display:block; margin:4px 0 28px}
.auth-brand .brand-logo{position:relative; overflow:hidden; aspect-ratio:1015/255}
.auth-brand .brand-logo img{
  position:absolute; max-width:none; height:auto;
  width:114.29%;             /* 1160 / 1015 */
  left:-5.52%;               /* 56px of canvas, as a share of the box width */
  top:-39.2%;                /* 100px of canvas, as a share of the box height */
}
.auth-title{
  /* One size for Sign in, Sign up and Reset your password, small enough that
     the longest of them stays on one line inside the card. */
  font-size:clamp(1.15rem,5.2vw,1.55rem); text-transform:uppercase; margin-bottom:10px;
  white-space:nowrap;
}
.auth-intro{color:var(--ink-soft); font-size:.94rem; margin-bottom:26px}

.auth-form{display:grid; gap:18px; margin-bottom:22px}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.field{display:grid; gap:7px; min-width:0}
.field label{font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase}
.field-optional{font-weight:600; letter-spacing:.04em; color:var(--ink-mute); text-transform:none}
.field input{
  width:100%; padding:13px 15px;
  font:inherit; font-size:.95rem; color:var(--ink);
  background:var(--white);
  border:2px solid var(--grey-line); border-radius:var(--r);
  transition:border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus{
  outline:none; border-color:var(--brand);
  box-shadow:0 0 0 4px rgba(255,207,1,.28);
}
.field-hint{font-size:.78rem; color:var(--ink-mute); margin:0}
.field-msg{font-size:.78rem; font-weight:600; color:#B3261E; margin:0}
.field.has-error input{border-color:#B3261E}
.field.has-error input:focus{box-shadow:0 0 0 4px rgba(179,38,30,.18)}

.btn-block{width:100%}

.alert{
  border-radius:var(--r); padding:14px 16px; margin-bottom:20px;
  font-size:.88rem; font-weight:600;
}
.alert p{margin:0}
.alert p + p{margin-top:6px}
.alert-error{background:#FDECEA; color:#8C1D18; border-left:4px solid #B3261E}
.alert-ok{background:#FFF8D6; color:#5A4A00; border-left:4px solid var(--brand)}

.auth-alt{font-size:.88rem; color:var(--ink-soft); margin:0; text-align:center}
.auth-alt a{font-weight:700; border-bottom:2px solid var(--brand)}
.auth-back{margin:0; font-size:.84rem}
.auth-back a{color:rgba(255,255,255,.62); transition:color .18s var(--ease)}
.auth-back a:hover{color:var(--brand)}

/* ---------- account page ---------- */
/* No hero here, so the content starts close under the header instead of the
   full section spacing the marketing pages use. */
.account-main{padding-top:clamp(28px,3.5vw,48px)}
.account-title{
  font-size:clamp(1.7rem,3.6vw,2.6rem); text-transform:uppercase; margin-bottom:34px;
}
.account-facts{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:2px; margin:0 0 clamp(30px,4vw,46px);
  background:var(--grey-line); border-radius:var(--r-lg); overflow:hidden;
}
.account-facts > div{background:var(--white); padding:22px 24px}
.account-facts dt{
  font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--ink-mute); margin-bottom:7px;
}
.account-facts dd{margin:0; font-size:1.02rem; font-weight:600; word-break:break-word}
.account-facts .muted{font-weight:400; color:var(--ink-mute)}

/* Their own name and password: two quiet rows that open in place. The facts
   above keep their bottom margin, so these tuck up under them. */
.acc-settings{display:flex; flex-direction:column; gap:10px; margin:calc(-1 * clamp(18px,2.6vw,30px)) 0 clamp(30px,4vw,46px)}
.acc-ok{margin:0; padding:12px 16px; border-radius:var(--r-lg); background:#e6f5ec; color:#14603a;
  font-weight:600; font-size:.95rem}
.acc-form{background:var(--white); border:1px solid var(--grey-line); border-radius:var(--r-lg)}
.acc-form summary{cursor:pointer; list-style:none; padding:16px 22px; font-size:12px; font-weight:800;
  letter-spacing:.14em; text-transform:uppercase; display:flex; align-items:center; justify-content:space-between}
.acc-form summary::-webkit-details-marker{display:none}
.acc-form summary::after{content:"+"; font-size:18px; font-weight:600; line-height:1; color:var(--ink-mute)}
.acc-form[open] summary::after{content:"−"}
.acc-form summary:focus-visible{outline:2px solid currentColor; outline-offset:2px}
.acc-form form{padding:4px 22px 22px; display:flex; flex-direction:column; gap:16px; align-items:flex-start}
.acc-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px 18px; width:100%}
.acc-field{display:flex; flex-direction:column; gap:6px; font-size:11px; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color:var(--ink-mute)}
.acc-wide{grid-column:1 / -1; max-width:420px}
.acc-field input{font:inherit; font-size:1rem; font-weight:500; letter-spacing:0; text-transform:none; color:inherit;
  padding:11px 13px; border:1.5px solid var(--grey-line); border-radius:8px; background:var(--white); width:100%}
.acc-field input:focus{outline:none; border-color:currentColor}
.acc-hint{font-size:12px; font-weight:500; letter-spacing:0; text-transform:none}
.acc-err{margin:0; font-size:12.5px; font-weight:600; letter-spacing:0; text-transform:none; color:#b3261e}
.acc-btn{font:inherit; font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase;
  padding:12px 22px; border:none; border-radius:8px; background:#2b3ea1; color:#fff; cursor:pointer}
.acc-btn:hover{filter:brightness(1.08)}
.acc-btn.ghost{background:var(--white); color:inherit; border:1.5px solid var(--grey-line)}
.acc-btn.ghost:hover{filter:none; border-color:currentColor}

/* The pencil beside NAME, and the popup it opens. */
.acc-dt{display:flex; align-items:center; gap:8px}
.acc-edit{display:inline-grid; place-items:center; width:26px; height:26px; margin:-5px 0; padding:0;
  border:none; border-radius:6px; background:transparent; color:var(--ink-mute); cursor:pointer}
.acc-edit:hover{background:var(--grey-line); color:inherit}
.acc-edit:focus-visible{outline:2px solid currentColor; outline-offset:1px}
.acc-dialog{width:min(520px, calc(100vw - 32px)); padding:0; border:none; border-radius:var(--r-lg);
  box-shadow:0 24px 60px rgba(20,24,40,.28); color:inherit}
.acc-dialog::backdrop{background:rgba(20,24,40,.45)}
.acc-dialog form{padding:26px 26px 22px; display:flex; flex-direction:column; gap:16px}
.acc-dialog-title{margin:0; font-size:1.2rem; text-transform:uppercase; letter-spacing:.02em}
.acc-dialog-lede{margin:-8px 0 0; font-size:.92rem; color:var(--ink-mute)}
.acc-dialog-actions{display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; margin-top:4px}
.acc-dialog .acc-wide{max-width:none}
/* EMAIL / CHANGE PASSWORD: the password shares the email's label. */
.acc-slash{font-weight:500; opacity:.6}
.account-facts dt.acc-dt{white-space:nowrap; gap:6px; flex-wrap:wrap}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal{opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease)}
.reveal.is-in{opacity:1; transform:none}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1340px){
  .primary-nav{gap:16px}
  .nav-auth{gap:12px}
}

/* nav collapses earlier than the content grids — eight items (Pricing added) need the room */
@media (max-width:1439px){
  .nav-toggle{display:grid; place-items:center}
  .nav-divider{display:none}
  .primary-nav{
    position:fixed; inset:var(--hdr-h) 0 auto 0;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--white);
    border-top:1px solid var(--grey-line);
    box-shadow:0 20px 40px rgba(51,49,50,.14);
    padding:10px var(--gut) 26px;
    max-height:calc(100dvh - var(--hdr-h));
    overflow-y:auto;
    clip-path:inset(0 0 100% 0);
    opacity:0; visibility:hidden;
    transition:clip-path .32s var(--ease), opacity .22s var(--ease), visibility .32s;
  }
  .primary-nav.is-open{clip-path:inset(0 0 0 0); opacity:1; visibility:visible}
  .primary-nav ul{flex-direction:column; align-items:stretch; gap:0}
  .primary-nav ul li + li{border-top:1px solid var(--grey-line)}
  .primary-nav ul a{display:block; padding:15px 0; font-size:15px}
  .primary-nav ul a::after{display:none}
  .primary-nav ul a.is-active{color:var(--brand-dark)}
  .nav-auth{
    flex-direction:column; align-items:stretch; gap:10px;
    margin-top:20px; padding-top:18px; border-top:1px solid var(--grey-line);
  }
  .nav-account{text-align:center; padding:13px 0; border-bottom:0}
  .nav-auth .btn{width:100%; font-size:13px; padding:15px 20px}
  .nav-account{background:var(--grey)}
  .nav-cta{margin-top:0; width:100%}
}

@media (max-width:900px){
  .grid-2{grid-template-columns:1fr}
  .footer-bottom-inner{grid-template-columns:1fr; gap:28px}
  .footer-partners{justify-self:start}
}

@media (max-width:640px){
  body{font-size:16px}
  .hero{min-height:auto}
  .hero h1::after{width:70px; height:6px; margin-top:22px}
  .scroll-cue{display:none}
  .tag-grid{grid-template-columns:1fr}
  .core-list li{gap:16px; padding:22px 18px}
  .footer-legal{gap:10px 20px; font-size:.82rem}
  .field-row{grid-template-columns:1fr}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important}
  .reveal{opacity:1; transform:none}
}

@media print{
  .site-header,.scroll-cue,.hero-actions,.nav-toggle{display:none !important}
  .hero,.section-dark,.site-footer{background:#fff !important; color:#000 !important}
  .reveal{opacity:1; transform:none}
}
