:root{
  --gold:#FCBF15;
  --gold-dark:#C89008;
  --gold-light:#FFD757;
  --bg:#f7f0e3;
  --surface:rgba(255,251,245,.92);
  --surface-soft:rgba(255,247,236,.96);
  --border:rgba(113,85,37,.16);
  --text:#24180d;
  --text-body:#4f3a25;
  --text-muted:#756044;
  --scrim:rgba(15,10,7,.68);
  --scrim-soft:rgba(15,10,7,.56);
  --scrim-border:rgba(255,244,232,.14);
  --scrim-text:#fff8ef;
  --scrim-muted:rgba(255,244,232,.8);
  --liquid-alpha:1;
  --liquid-alpha-soft:1;
  --liquid-blur:0px;
  --liquid-shift:0px;
  --liquid-highlight:.18;
  --display:'Fraunces',Georgia,serif;
  --sans:'Manrope',system-ui,sans-serif;
  --max-w:1220px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--sans);
  background:var(--bg);
  color:var(--text);
  color-scheme:light;
  position:relative;
  isolation:isolate;
}

a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}

body::before{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:url('img/world-bg.png') center top/100% auto repeat-y;
}

body::after{
  content:none;
}

.page-shell{
  position:relative;
  min-height:100vh;
  background:transparent;
  z-index:2;
}

.page-shell::before{
  content:none;
}

.nav{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px clamp(20px,4vw,40px);
  background:rgba(250,245,236,.88);
  border-bottom:1px solid rgba(113,85,37,.12);
}

.nav-brand{
  font-family:var(--display);
  font-size:28px;
  font-weight:700;
  color:var(--text);
  letter-spacing:-.03em;
}

.nav-brand em{font-style:normal;color:var(--gold)}

.nav-pages{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.nav-pages a{
  padding:0;
  border-radius:0;
  font-size:14px;
  font-weight:700;
  color:var(--text-body);
  background:transparent;
  border:0;
  border-bottom:2px solid transparent;
  line-height:1.2;
  padding-bottom:3px;
}

.nav-pages a.is-active{
  color:var(--gold-dark);
  border-bottom-color:var(--gold);
}

.nav-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:50px;
  padding:0 18px;
  border-radius:16px;
  border:1px solid rgba(200,144,8,.22);
  background:linear-gradient(135deg,#ffe18e 0%,#ffd757 18%,#fcbf15 58%,#e2a100 100%);
  color:#111;
  font-size:14px;
  font-weight:800;
  box-shadow:0 12px 28px rgba(200,144,8,.22), inset 0 1px 0 rgba(255,255,255,.5);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.nav-cta:hover{
  transform:translateY(-1px);
  filter:saturate(1.02);
  box-shadow:0 16px 34px rgba(200,144,8,.26), inset 0 1px 0 rgba(255,255,255,.58);
}

.page{
  width:min(100%,var(--max-w));
  margin:0 auto;
  padding:40px clamp(20px,4vw,40px) 52px;
}

.page-hero{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
  gap:34px;
  align-items:stretch;
}

.page-copy,.page-visual{
  border:1px solid var(--border);
  border-radius:28px;
  box-shadow:0 30px 80px rgba(82,56,19,.12), inset 0 1px 0 rgba(255,255,255,.7);
  font-family:var(--sans);
}

.page-copy{
  padding:34px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:linear-gradient(180deg,var(--scrim) 0%,var(--scrim-soft) 100%);
  border-color:var(--scrim-border);
  color:var(--scrim-text);
}

.page-visual{
  background:rgba(15,10,7,.34);
  border-color:rgba(255,244,232,.1);
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
  color:var(--gold-light);
  font-size:12px;
  font-weight:800;
  letter-spacing:1.8px;
  text-transform:uppercase;
}

.eyebrow::before{
  content:'';
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--gold);
}

h1{
  margin:0 0 18px;
  font-family:var(--display);
  font-size:clamp(42px,5vw,72px);
  line-height:1.02;
  letter-spacing:-.04em;
  font-weight:700;
}

h1 em{
  font-style:normal;
  color:var(--gold);
}

.lede{
  margin:0;
  font-size:19px;
  line-height:1.7;
  color:var(--scrim-muted);
}

.subtext{
  margin:18px 0 0;
  font-size:16px;
  line-height:1.7;
  color:rgba(255,244,232,.72);
}

.emotion-strip{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:26px;
}

.emotion-card{
  padding:16px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(16,11,8,.58) 0%,rgba(16,11,8,.44) 100%);
  border:1px solid rgba(255,244,232,.1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72), 0 10px 24px rgba(82,56,19,.05);
}

.emotion-card strong{
  display:block;
  margin-bottom:5px;
  font-size:15px;
  color:var(--scrim-text);
  text-shadow:0 1px 14px rgba(0,0,0,.28);
}

.emotion-card span{
  display:block;
  font-size:14px;
  line-height:1.55;
  color:var(--scrim-muted);
}

.action-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin-top:28px;
}

.btn-primary,.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:54px;
  padding:0 20px;
  border-radius:16px;
  font-size:15px;
  font-weight:800;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.btn-primary{
  border:1px solid rgba(200,144,8,.22);
  background:linear-gradient(135deg,#ffe18e 0%,#ffd757 18%,#fcbf15 58%,#e2a100 100%);
  color:#111;
  box-shadow:0 16px 34px rgba(200,144,8,.22), inset 0 1px 0 rgba(255,255,255,.52);
}

.btn-secondary{
  color:var(--text);
  background:linear-gradient(180deg,rgba(255,255,255,.9) 0%,rgba(255,247,236,.94) 100%);
  border:1px solid rgba(113,85,37,.16);
  box-shadow:0 10px 24px rgba(82,56,19,.08), inset 0 1px 0 rgba(255,255,255,.68);
}

.btn-primary:hover,.btn-secondary:hover{
  transform:translateY(-1px);
}

.btn-primary:hover{
  box-shadow:0 20px 40px rgba(200,144,8,.28), inset 0 1px 0 rgba(255,255,255,.56);
}

.btn-secondary:hover{
  border-color:rgba(113,85,37,.24);
  box-shadow:0 16px 30px rgba(82,56,19,.1), inset 0 1px 0 rgba(255,255,255,.74);
}

.ios-download{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:54px;
  padding:0 18px;
  border-radius:16px;
  border:1px solid rgba(36,24,13,.1);
  background:linear-gradient(180deg,rgba(32,32,32,.96) 0%,rgba(12,12,12,.96) 100%);
  color:#fff7ee;
  box-shadow:0 16px 30px rgba(18,18,18,.2), inset 0 1px 0 rgba(255,255,255,.12);
  transition:transform .18s ease, box-shadow .18s ease;
}

.ios-download:hover{
  transform:translateY(-1px);
  box-shadow:0 20px 36px rgba(18,18,18,.24), inset 0 1px 0 rgba(255,255,255,.16);
}

.ios-download-copy{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.ios-download-copy small{
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,247,238,.72);
}

.ios-download-copy strong{
  font-size:15px;
  font-weight:800;
  color:#fff7ee;
}

.ios-download-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:10px;
  background:#111;
  font-size:15px;
}

.page-visual{
  overflow:hidden;
}

.page-visual img{
  width:100%;
  height:100%;
  min-height:320px;
  object-fit:cover;
}

.visual-caption{
  padding:18px 20px 22px;
  border-top:1px solid rgba(255,244,232,.1);
  color:var(--scrim-muted);
  font-size:14px;
  line-height:1.6;
  background:rgba(15,10,7,.72);
}

.page-hero-featured-visual{
  grid-template-columns:1fr;
  justify-items:center;
}

.page-hero-featured-visual .page-copy{
  width:100%;
  max-width:920px;
  margin:0 auto;
}

.page-hero-featured-visual .page-visual-featured{
  width:100%;
  max-width:100%;
  margin:0 auto;
  background:rgba(15,10,7,.46);
}

.page-hero-featured-visual .page-visual-featured img{
  width:100%;
  height:auto;
  min-height:0;
  max-height:none;
  object-fit:contain;
  object-position:top center;
  background:rgba(12,8,6,.2);
}

.page-hero-featured-visual .visual-caption{
  text-align:left;
}

.support-grid{
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
  gap:24px;
  margin-top:24px;
}

.compound-explainer{
  margin-top:24px;
  padding:26px;
  border-radius:24px;
  background:linear-gradient(180deg,var(--scrim) 0%,var(--scrim-soft) 100%);
  border:1px solid var(--scrim-border);
  font-family:var(--sans);
}

.compound-explainer h2{
  margin:0 0 12px;
  font-family:var(--display);
  font-size:32px;
  line-height:1.08;
  color:var(--scrim-text);
  text-shadow:0 2px 18px rgba(0,0,0,.26);
}

.compound-explainer p{
  margin:0;
  color:var(--scrim-muted);
  font-size:16px;
  line-height:1.7;
}

.compound-basics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}

.compound-basic{
  padding:16px 18px;
  border-radius:18px;
  background:rgba(15,10,7,.48);
  border:1px solid rgba(255,244,232,.1);
}

.compound-basic strong{
  display:block;
  margin-bottom:5px;
  font-size:15px;
  color:var(--scrim-text);
}

.compound-basic span{
  display:block;
  font-size:14px;
  line-height:1.6;
  color:var(--scrim-muted);
}

.compound-types{
  margin-top:24px;
  padding:26px;
  border-radius:24px;
  background:linear-gradient(180deg,var(--scrim) 0%,var(--scrim-soft) 100%);
  border:1px solid var(--scrim-border);
  box-shadow:0 24px 52px rgba(82,56,19,.08), inset 0 1px 0 rgba(255,255,255,.74);
}

.compound-types h2{
  margin:0 0 12px;
  font-family:var(--display);
  font-size:32px;
  line-height:1.08;
  color:var(--scrim-text);
  text-shadow:0 2px 18px rgba(0,0,0,.26);
}

.compound-types p{
  margin:0;
  color:var(--scrim-muted);
  font-size:16px;
  line-height:1.7;
}

.compound-type-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}

.compound-type{
  padding:16px 18px;
  border-radius:18px;
  background:rgba(15,10,7,.48);
  border:1px solid rgba(255,244,232,.1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.68);
}

.compound-type strong{
  display:block;
  margin-bottom:5px;
  font-size:15px;
  color:var(--scrim-text);
}

.compound-type span{
  display:block;
  color:var(--scrim-muted);
  font-size:14px;
  line-height:1.6;
}

.panel{
  padding:26px;
  border-radius:24px;
  background:linear-gradient(180deg,var(--scrim) 0%,var(--scrim-soft) 100%);
  border:1px solid var(--scrim-border);
  box-shadow:0 24px 52px rgba(82,56,19,.08), inset 0 1px 0 rgba(255,255,255,.74);
  font-family:var(--sans);
}

.panel h2{
  margin:0 0 14px;
  font-family:var(--display);
  font-size:28px;
  line-height:1.1;
  color:var(--scrim-text);
  text-shadow:0 2px 18px rgba(0,0,0,.24);
}

.panel p{
  margin:0;
  color:var(--scrim-muted);
  line-height:1.7;
}

.reasons,.examples{
  display:grid;
  gap:12px;
  margin-top:18px;
}

.reason,.example{
  padding:16px 18px;
  border-radius:18px;
  background:rgba(15,10,7,.48);
  border:1px solid rgba(255,244,232,.1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.68);
}

.reason strong,.example strong{
  display:block;
  margin-bottom:5px;
  font-size:15px;
  color:var(--scrim-text);
}

.reason span,.example span{
  display:block;
  color:var(--scrim-muted);
  font-size:14px;
  line-height:1.6;
}

.journey-footer{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid rgba(113,85,37,.1);
}

.journey-step{
  color:var(--text-muted);
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.page-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.bottom-next{
  margin-top:28px;
  padding:28px;
  border-radius:24px;
  background:linear-gradient(180deg,var(--scrim) 0%,var(--scrim-soft) 100%);
  border:1px solid var(--scrim-border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  box-shadow:0 28px 60px rgba(82,56,19,.1), inset 0 1px 0 rgba(255,255,255,.74);
  font-family:var(--sans);
}

.bottom-next-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.example-visual-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:24px;
}

.app-shot-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  margin-top:24px;
}

.app-shot-grid.compact-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.mobile-shot-grid{
  display:none;
}

.app-shot-card{
  overflow:hidden;
  border-radius:26px;
  background:linear-gradient(180deg,var(--scrim) 0%,var(--scrim-soft) 100%);
  border:1px solid var(--scrim-border);
  box-shadow:0 26px 60px rgba(82,56,19,.1), inset 0 1px 0 rgba(255,255,255,.72);
  font-family:var(--sans);
}

.app-shot-card.is-featured{
  grid-column:1 / -1;
}

.app-shot-frame{
  padding:18px 18px 8px;
  background:
    radial-gradient(circle at top,rgba(255,255,255,.62) 0%,rgba(255,247,236,.35) 65%,transparent 100%);
}

.app-shot-frame img{
  width:100%;
  height:auto;
  max-height:900px;
  object-fit:contain;
  display:block;
  margin:0 auto;
  border-radius:24px;
  box-shadow:0 18px 40px rgba(52,36,10,.12);
}

.app-shot-frame video{
  width:min(100%,420px);
  height:auto;
  max-height:900px;
  display:block;
  margin:0 auto;
  border-radius:24px;
  background:#111;
  box-shadow:0 18px 40px rgba(52,36,10,.16);
}

.app-shot-copy{
  padding:0 20px 22px;
}

.app-shot-copy strong{
  display:block;
  margin-bottom:6px;
  font-size:18px;
  color:var(--scrim-text);
  text-shadow:0 1px 14px rgba(0,0,0,.22);
}

.app-shot-copy span{
  display:block;
  color:var(--scrim-muted);
  font-size:14px;
  line-height:1.65;
}

.app-shot-card.compact{
  border-radius:22px;
}

.app-shot-card.compact .app-shot-frame{
  padding:12px 12px 6px;
}

.app-shot-card.compact .app-shot-frame img{
  max-height:260px;
  border-radius:18px;
}

.app-shot-pair{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.app-shot-pair img{
  width:100%;
}

.app-shot-card.compact .app-shot-copy{
  padding:0 14px 16px;
}

.app-shot-card.compact .app-shot-copy strong{
  font-size:15px;
}

.app-shot-card.compact .app-shot-copy span{
  font-size:13px;
  line-height:1.5;
}

@media (max-width: 560px){
  .app-shot-pair{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .app-shot-card.compact .app-shot-frame img{
    max-height:180px;
  }
}

.example-visual-card{
  overflow:hidden;
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,255,255,.48) 0%,rgba(255,247,236,.38) 100%);
  border:1px solid var(--border);
  box-shadow:0 26px 60px rgba(82,56,19,.1), inset 0 1px 0 rgba(255,255,255,.72);
}

.example-visual-card img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}

.example-visual-copy{
  padding:18px 20px 20px;
}

.example-visual-copy strong{
  display:block;
  margin-bottom:6px;
  font-size:18px;
  color:var(--text);
}

.example-visual-copy span{
  display:block;
  color:var(--text-muted);
  font-size:14px;
  line-height:1.6;
}

.bottom-next-copy strong{
  display:block;
  margin-bottom:6px;
  font-family:var(--display);
  font-size:32px;
  line-height:1.08;
  color:var(--scrim-text);
  letter-spacing:-.03em;
  text-shadow:0 2px 18px rgba(0,0,0,.24);
}

.bottom-next-copy span{
  display:block;
  max-width:700px;
  color:var(--scrim-muted);
  font-size:15px;
  line-height:1.6;
}

.footer{
  width:min(100%,var(--max-w));
  margin:0 auto;
  padding:18px clamp(20px,4vw,40px) 34px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  color:#4f3a25;
  font-size:14px;
  position:relative;
  z-index:2;
  font-family:var(--sans);
  border-top:1px solid rgba(113,85,37,.2);
}

.footer-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.footer a{
  color:#a06f12;
  font-weight:700;
}
.footer a:hover{
  color:#24180d;
  text-decoration:underline;
}

@media (max-width: 980px){
  .page-hero,.support-grid,.compound-basics,.example-visual-grid,.compound-type-grid{
    grid-template-columns:1fr;
  }

  .app-shot-grid.compact-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 720px){
  .desktop-shot-grid{
    display:none;
  }

  .mobile-shot-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
  }

  .mobile-shot-grid .app-shot-card{
    width:100%;
  }

  .mobile-shot-grid .app-shot-frame{
    padding:16px 16px 8px;
  }

  .mobile-shot-grid .app-shot-frame img{
    width:min(100%,420px);
    max-height:none;
    border-radius:22px;
  }

  .mobile-shot-grid .app-shot-copy{
    padding:0 18px 20px;
  }

  .mobile-shot-grid .app-shot-copy strong{
    font-size:17px;
  }

  .mobile-shot-grid .app-shot-copy span{
    font-size:14px;
    line-height:1.6;
  }

  .nav{
    flex-wrap:wrap;
    align-items:center;
    gap:10px 14px;
    padding:12px 16px;
  }

  .nav-brand{
    font-size:22px;
  }

  .nav-pages{
    width:100%;
    gap:12px 14px;
    order:3;
  }

  .nav-pages a{
    font-size:13px;
  }

  .nav .nav-cta{
    width:auto;
    min-height:40px;
    margin-left:auto;
    padding:0 14px;
    border-radius:14px;
    font-size:13px;
  }

  .emotion-strip{
    grid-template-columns:1fr;
  }

  .page-copy,.panel{
    padding:22px;
  }

  .app-shot-grid,
  .app-shot-grid.compact-grid{
    grid-template-columns:1fr;
  }

  .btn-primary,.btn-secondary,.ios-download{
    width:100%;
    justify-content:center;
  }

  .journey-footer{
    flex-direction:column;
    align-items:flex-end;
  }

  .bottom-next{
    flex-direction:column;
    align-items:flex-start;
  }

  .bottom-next-actions{
    width:100%;
    justify-content:stretch;
  }
}


/* Rotating examples rail (replaces the static "More Compound types" card) */
.ex-rail{margin:0}
.ex-rail-label{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--gold-light);margin-bottom:18px}
.ex-rail-label::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 4px rgba(252,191,21,.18)}
.ex-chips{display:flex;flex-direction:column;gap:12px;max-width:640px}
.ex-chip{padding:15px 20px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);color:var(--scrim-muted);font-size:15.5px;line-height:1.5;will-change:opacity,transform;transition:opacity .45s ease, transform .45s ease}
.ex-chip strong{color:var(--scrim-text);font-weight:800;margin-right:8px}

/* support-grid single column after removing Relevant examples */
.support-grid{grid-template-columns:minmax(0,1fr)}


/* Scroll-darkening nav (consistent with homepage) */
.nav{transition:background .25s ease,border-color .25s ease}
.nav-brand{transition:color .25s ease}
.nav.scrolled{background:rgba(10,10,10,.88);border-bottom-color:rgba(255,255,255,.08)}
.nav.scrolled .nav-brand{color:#fff}
.nav.scrolled .nav-pages a{color:rgba(255,255,255,.82)}
.nav.scrolled .nav-pages a:hover{color:#fff}
.nav.scrolled .nav-pages a.is-active{color:var(--gold);border-bottom-color:var(--gold)}

/* iOS App Store button in nav */
.nav-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.nav-ios{display:inline-flex;align-items:center;gap:7px;min-height:50px;padding:0 14px;border-radius:16px;border:1px solid rgba(36,24,13,.25);background:rgba(255,255,255,.45);color:#24180d;font-size:13px;font-weight:800;text-decoration:none;transition:color .25s ease,border-color .25s ease,background .25s ease}
.nav-ios svg{width:14px;height:17px;fill:currentColor}
.nav-ios:hover{border-color:rgba(36,24,13,.45)}
.nav.scrolled .nav-ios{border-color:rgba(255,255,255,.32);background:rgba(255,255,255,.08);color:#fff}
@media(max-width:720px){
  .nav-actions{margin-left:auto;order:2;gap:8px}
  .nav .nav-cta{margin-left:0}
  .nav-ios{min-height:40px;padding:0 12px;font-size:12px;border-radius:14px}
}
