/* IG Loyalty OS, partner site
   Palette derived from the metal membership card: cool graphite grounds,
   warm paper text (continuity with igloyaltyos.com), cadet accent,
   brass reserved exclusively for tier marks. */

:root{
  --ink:#0E1113;
  --ink-2:#14181B;
  --ink-3:#1A2025;
  --rule:rgba(236,229,216,.13);
  --rule-strong:rgba(236,229,216,.28);
  --paper:#ECE5D8;
  --muted:#8B949B;
  --muted-dim:#858E95;
  --cadet:#7FA9BE;
  --cadet-deep:#3F6076;
  --brass:#C9A96E;
  --measure:34rem;
  --pad:clamp(1.5rem,5vw,4.5rem);
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:'Archivo',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size:clamp(1rem,.96rem + .2vw,1.0625rem);
  line-height:1.65;
  font-weight:380;
  -webkit-font-smoothing:antialiased;
}

/* ---------- type ---------- */

h1,h2,h3{
  font-family:'Bodoni Moda',Didot,'Times New Roman',serif;
  font-weight:500;
  line-height:1.05;
  text-wrap:balance;
  margin:0;
  letter-spacing:-.01em;
}

h1{font-size:clamp(2.5rem,1.6rem + 4.4vw,5.25rem)}
h2{font-size:clamp(1.9rem,1.4rem + 2.2vw,3.1rem);margin-bottom:.9rem}
h3{font-size:clamp(1.2rem,1.1rem + .5vw,1.45rem);margin-bottom:.5rem}

p{margin:0 0 1.15em}
p:last-child{margin-bottom:0}

a{color:var(--cadet);text-decoration:none;border-bottom:1px solid rgba(127,169,190,.35)}
a:hover{border-bottom-color:var(--cadet)}

strong{font-weight:600;color:#F7F2E8}

.eyebrow{
  font-family:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  font-size:.6875rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--muted-dim);
  margin:0 0 1.4rem;
  display:block;
}

.lede{
  font-size:clamp(1.1rem,1.02rem + .4vw,1.3rem);
  color:#D8D0C2;
  line-height:1.55;
}

.fig{
  font-family:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum";
}

/* ---------- shell ---------- */

.wrap{max-width:76rem;margin:0 auto;padding-inline:var(--pad)}
.prose{max-width:var(--measure)}

.masthead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:1.5rem;
  padding-block:1.5rem;
  border-bottom:1px solid var(--rule);
  flex-wrap:wrap;
}

.mark{
  font-family:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  font-size:.75rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--paper);
  border-bottom:0;
}
.mark:hover{color:var(--cadet)}

.masthead nav{
  font-family:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  font-size:.6875rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  display:flex;
  gap:1.75rem;
}
.masthead nav a{color:var(--muted);border-bottom:0}
.masthead nav a:hover,.masthead nav a[aria-current]{color:var(--paper)}

section{padding-block:clamp(3.5rem,8vw,7rem)}
section + section{border-top:1px solid var(--rule)}

footer{
  border-top:1px solid var(--rule);
  padding-block:2.5rem 3.5rem;
  color:var(--muted-dim);
  font-size:.8125rem;
}
footer a{color:var(--muted)}

/* ---------- the fork (index) ---------- */

.fork-hero{padding-block:clamp(3.5rem,10vw,8rem) clamp(2.5rem,5vw,4rem)}

.doors{
  display:grid;
  grid-template-columns:1fr;
  border-top:1px solid var(--rule-strong);
}

@media(min-width:56rem){
  .doors{grid-template-columns:1fr 1fr}
  .doors .door + .door{border-left:1px solid var(--rule)}
}

.door{
  display:block;
  border-bottom:1px solid var(--rule);
  padding:clamp(2rem,4vw,3.25rem) 0;
  color:inherit;
  position:relative;
  transition:background .3s ease,padding-left .3s ease;
  padding-inline:clamp(1rem,2vw,2rem);
  border-left:0;
}
.door:hover,.door:focus-visible{
  background:var(--ink-2);
  outline:none;
}
.door:focus-visible{box-shadow:inset 0 0 0 1px var(--cadet)}

.door .door-k{
  font-family:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  font-size:.6875rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--muted-dim);
  display:block;
  margin-bottom:1.1rem;
}
.door h2{margin-bottom:.6rem}
.door p{color:var(--muted);max-width:26rem;margin-bottom:1.5rem}
.door .go{
  font-family:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  font-size:.75rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--cadet);
  display:inline-flex;
  align-items:center;
  gap:.6rem;
}
.door .go::after{content:"→";transition:transform .3s ease;display:inline-block}
.door:hover .go::after{transform:translateX(.35rem)}

/* ---------- tiers / structured lists ---------- */

.tiers{
  display:grid;
  gap:0;
  border-top:1px solid var(--rule);
  margin-top:2.5rem;
}
.tier{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:1.5rem clamp(1.25rem,3vw,2.75rem);
  padding-block:1.75rem;
  border-bottom:1px solid var(--rule);
  align-items:start;
}
@media(min-width:44rem){
  .tier{grid-template-columns:5.5rem 1fr}
}
.tier-k{
  font-family:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  font-size:.75rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--brass);
  font-variant-numeric:tabular-nums;
  padding-top:.35rem;
}
.tier-b p{color:var(--muted);max-width:38rem}
.tier-b p:last-child{margin-bottom:0}

/* ---------- exchange (two-column supply/receive) ---------- */

.exchange{
  display:grid;
  gap:0;
  border-top:1px solid var(--rule);
  margin-top:2.5rem;
}
@media(min-width:52rem){
  .exchange{grid-template-columns:1fr 1fr}
  .exchange > div + div{border-left:1px solid var(--rule)}
}
.exchange > div{
  padding:2rem clamp(0rem,2vw,2rem) 2rem 0;
  border-bottom:1px solid var(--rule);
}
@media(min-width:52rem){
  .exchange > div + div{padding-left:clamp(1.5rem,3vw,2.75rem);padding-right:0}
}
.exchange ul{list-style:none;margin:0;padding:0}
.exchange li{
  padding-block:.6rem;
  color:var(--muted);
  border-bottom:1px solid var(--rule);
  display:flex;
  gap:.85rem;
  align-items:baseline;
}
.exchange li:last-child{border-bottom:0}
.exchange li::before{
  content:"";
  color:var(--cadet-deep);
  font-family:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  flex:none;
}

/* ---------- pull quote ---------- */

.pull{
  font-family:'Bodoni Moda',Didot,serif;
  font-size:clamp(1.5rem,1.1rem + 1.9vw,2.5rem);
  line-height:1.2;
  color:var(--paper);
  max-width:30rem;
  margin:0;
  text-wrap:balance;
}
.pull cite{
  display:block;
  font-family:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  font-size:.6875rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted-dim);
  font-style:normal;
  margin-top:1.5rem;
}

/* ---------- candour block ---------- */

.candour{
  background:var(--ink-2);
  border:1px solid var(--rule);
  padding:clamp(1.75rem,4vw,3rem);
}
.candour h2{margin-bottom:1rem}
.candour p{color:var(--muted)}
.candour .prose{max-width:38rem}

/* ---------- form ---------- */

.form-grid{display:grid;gap:1.6rem;max-width:38rem;margin-top:2.5rem}
@media(min-width:40rem){
  .form-grid .row2{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem}
}
.field label{
  display:block;
  font-family:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  font-size:.6875rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:.55rem;
}
.field input,.field textarea,.field select{
  width:100%;
  background:transparent;
  border:0;
  border-bottom:1px solid var(--rule-strong);
  color:var(--paper);
  font-family:inherit;
  font-size:1rem;
  padding:.6rem 0;
  border-radius:0;
  transition:border-color .2s ease;
}
.field textarea{resize:vertical;min-height:6rem;line-height:1.6}
.field input:focus,.field textarea:focus,.field select:focus{
  outline:none;
  border-bottom-color:var(--cadet);
}
.field input::placeholder,.field textarea::placeholder{color:var(--muted-dim)}
.field select{appearance:none;cursor:pointer}
.field select option{background:var(--ink-2);color:var(--paper)}

.consent{
  display:flex;
  gap:.85rem;
  align-items:flex-start;
  font-size:.8125rem;
  color:var(--muted);
  line-height:1.5;
}
.consent input{
  flex:none;
  width:1rem;height:1rem;
  margin-top:.2rem;
  accent-color:var(--cadet-deep);
}

button[type=submit]{
  font-family:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  font-size:.75rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  background:var(--cadet-deep);
  color:#FFFFFF;
  border:0;
  padding:1.15rem 2.25rem;
  cursor:pointer;
  justify-self:start;
  transition:background .2s ease;
}
button[type=submit]:hover{background:#4E7590}
button[type=submit]:focus-visible{outline:2px solid var(--cadet);outline-offset:3px}

.hp{position:absolute;left:-9999px}

/* ---------- misc ---------- */

.legal{max-width:44rem}
.legal h2{font-size:clamp(1.25rem,1.1rem + .7vw,1.6rem);margin-top:2.5rem}
.legal p,.legal li{color:var(--muted)}
.legal ul{padding-left:1.15rem}
.legal li{margin-bottom:.5rem}

@media(prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
}

/* Display headings use hard breaks for desktop line control.
   Below ~544px those forced lines can exceed the viewport, so let them wrap. */
h1,h2{overflow-wrap:break-word}
@media(max-width:34rem){
  h1 br,.door h2 br{display:none}
}

/* ---------- consent bar ---------- */

.consent-bar{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:50;
  background:var(--ink-2);
  border-top:1px solid var(--rule-strong);
  padding:1.1rem var(--pad);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.25rem 2rem;
  flex-wrap:wrap;
}
.consent-bar p{
  margin:0;
  color:var(--muted);
  font-size:.8125rem;
  line-height:1.5;
  max-width:46rem;
}
.consent-actions{display:flex;gap:.75rem;flex:none}
.consent-bar button{
  font-family:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  font-size:.6875rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  padding:.8rem 1.5rem;
  border:1px solid var(--cadet-deep);
  background:var(--cadet-deep);
  color:#FFFFFF;
  cursor:pointer;
  transition:background .2s ease;
}
.consent-bar button:hover{background:#4E7590}
.consent-bar button.ghost{background:transparent;color:var(--muted);border-color:var(--rule-strong)}
.consent-bar button.ghost:hover{background:transparent;color:var(--paper);border-color:var(--muted)}
.consent-bar button:focus-visible{outline:2px solid var(--cadet);outline-offset:2px}
