/* iAscend Ambassador Program — shared stylesheet for /join/ and /login/
   Built to the Modern Shaman / Egypt 2027 page system (Oct 2026 readability pass):
   near-black ink, warm stone text, one gold, Cormorant Garamond headlines, Jost body.
   Nothing reader-facing renders under 16px; body copy is 19px+. */

:root {
  --gold: #cfaa65;
  --gold-faint: rgba(207,170,101,0.06);
  --gold-border: rgba(207,170,101,0.25);
  --gold-border-strong: rgba(207,170,101,0.6);
  --ink: #080807;
  --ink-dark: rgba(8,8,7,0.98);
  --ink-soft: #1A1710;
  --stone: #fbf7f0;
  --copy: #ece6da;
  --copy-soft: #cfc8ba;
  --smoke: #7A7468;
  --error: #e0907c;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', sans-serif;
  --gold-gradient: linear-gradient(to top, #9f7844, #a37d47, #a8814a, #ac864d, #b08b50, #b59054, #bb9657, #c09b5b, #c8a360, #cfaa65, #d7b26b, #deba70);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  background: var(--ink); color: var(--stone);
  font-family: var(--sans); font-weight: 400; font-size: 1.2rem; line-height: 1.8;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--gold); }
strong { font-weight: 500; color: var(--stone); }

/* ---- Nav ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 3rem;
  background: rgba(8,8,7,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--gold-border);
}
.nav-lockup { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.nav-lockup img { height: 34px; width: auto; display: block; }
.nav-lockup span { font-family: 'Marcellus', var(--serif); font-size: 1.25rem; color: var(--stone); letter-spacing: 0.02em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-link {
  font-family: var(--sans); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--stone); text-decoration: none; opacity: 0.75; transition: opacity 0.2s, color 0.2s;
}
.nav-link:hover { opacity: 1; color: var(--gold); }
.nav-cta {
  font-family: var(--sans); font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); border: 0.5px solid var(--gold-border); background: none;
  padding: 0.5rem 1.25rem; text-decoration: none; transition: all 0.25s; cursor: pointer; white-space: nowrap;
}
.nav-cta:hover { background-image: var(--gold-gradient); color: var(--ink); border-color: transparent; }

/* ---- Type ---- */
h1 {
  font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 300; line-height: 1.08; color: var(--stone); margin-bottom: 2rem;
}
h1 em { font-style: italic; color: var(--gold); }
h2 {
  font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 300; color: var(--stone); line-height: 1.12; margin-bottom: 1.75rem;
}
h2 em { font-style: italic; color: var(--gold); }
h3 {
  font-family: var(--serif); font-size: 1.75rem; font-weight: 400;
  color: var(--stone); line-height: 1.25; margin-bottom: 0.75rem;
}
p { color: var(--copy); margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }
.soft { color: var(--copy-soft); }
.lede { font-size: 1.35rem; line-height: 1.7; color: var(--copy); }
.emph {
  font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 400;
  line-height: 1.35; color: var(--stone); margin: 2.25rem 0 0; padding-left: 1.5rem;
  border-left: 1px solid var(--gold);
}
.emph em { font-style: italic; color: var(--gold); }

.section-head {
  font-size: 1rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  color: var(--gold); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-head::before { content: ''; flex: 0 0 28px; height: 0.5px; background: var(--gold); }
.section-head::after { content: ''; flex: 1; height: 0.5px; background: rgba(207,170,101,0.3); }
.section-head-center { justify-content: center; }
.section-head-center::before, .section-head-center::after { flex: 0 0 28px; background: var(--gold); }
.gold-line { width: 40px; height: 0.5px; background: var(--gold); margin: 1.25rem 0; }
.gold-line-center { margin: 1.5rem auto; }

/* ---- Layout ---- */
section { padding: 7rem 3rem; }
section.alt { background: var(--ink-dark); border-top: 0.5px solid rgba(207,170,101,0.1); border-bottom: 0.5px solid rgba(207,170,101,0.1); }
.inner { max-width: 780px; margin: 0 auto; }
.inner-wide { max-width: 980px; margin: 0 auto; }
.center { text-align: center; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.85s ease, transform 0.85s ease; }
.reveal.on { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Buttons ---- */
.btn-gold {
  display: inline-block; font-family: var(--sans); font-size: 1.125rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
  background-image: var(--gold-gradient); color: var(--ink);
  padding: 1.1rem 2.75rem; text-decoration: none; border: none; cursor: pointer;
  transition: opacity 0.25s;
}
.btn-gold:hover { opacity: 0.88; }
.btn-gold:disabled { opacity: 0.55; cursor: wait; }
.btn-ghost {
  display: inline-block; font-family: var(--sans); font-size: 1.125rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
  border: 0.5px solid var(--gold-border); color: var(--gold); background: none;
  padding: 1.1rem 2.75rem; text-decoration: none; cursor: pointer; transition: all 0.25s;
}
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-faint); }
.btn-text {
  display: inline-block; font-family: var(--sans); font-size: 1rem; letter-spacing: 0.08em;
  color: var(--copy-soft); text-decoration: none; background: none; border: none; cursor: pointer;
  border-bottom: 0.5px solid var(--gold-border); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
}
.btn-text:hover { color: var(--gold); border-bottom-color: var(--gold); }
.cta-under { font-size: 1.2rem; color: var(--copy-soft); line-height: 1.7; margin: 1rem auto 0; }
.cta-under a { color: var(--gold); text-decoration: none; border-bottom: 0.5px solid var(--gold-border); }
.cta-under a:hover { border-bottom-color: var(--gold); }

/* ---- Hero ---- */
#hero { min-height: 92vh; display: flex; align-items: center; padding: 9rem 3rem 6rem; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 100% 80% at 50% 35%, rgba(207,170,101,0.06) 0%, transparent 65%), var(--ink); }
.hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  font-size: 1rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--gold);
  display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-bottom: 2rem;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; display: block; width: 28px; height: 0.5px; background: var(--gold); }
.hero-lockup { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin: 0 auto 2.25rem; }
.hero-lockup img { height: 84px; width: auto; display: block; }
.hero-body { font-size: 1.25rem; line-height: 1.8; color: var(--copy); max-width: 720px; margin: 0 auto 1.1rem; }
.hero-free { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); margin: 1.75rem 0 1.5rem; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

/* ---- Cards ---- */
.card {
  padding: 2.25rem 2.25rem; border: 0.5px solid var(--gold-border);
  background: rgba(207,170,101,0.025); transition: border-color 0.3s, background 0.3s;
}
.card:hover { border-color: var(--gold-border-strong); background: rgba(207,170,101,0.045); }
.card-accent { border-top: 2px solid var(--gold); }
.card h3 { margin-bottom: 0.9rem; }
.card p { color: var(--copy-soft); margin-bottom: 0.85rem; }
.card p:last-child { margin-bottom: 0; }
.card .kicker { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--gold); margin-bottom: 0.75rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.card-note { margin-top: 2rem; text-align: center; color: var(--copy-soft); }

/* ---- Lists ---- */
.plain-list { list-style: none; margin: 0 0 1.5rem; }
.plain-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.7rem; color: var(--copy); }
.plain-list li::before { content: ''; position: absolute; left: 0; top: 0.95em; width: 12px; height: 0.5px; background: var(--gold); }

/* ---- Commission table ---- */
.ctable { width: 100%; border-collapse: collapse; margin-top: 2.5rem; border-top: 2px solid var(--gold); }
.ctable th {
  font-family: var(--sans); font-size: 1.05rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); text-align: left; padding: 1.1rem 1rem; border-bottom: 0.5px solid var(--gold-border);
}
.ctable td { padding: 1.2rem 1rem; border-bottom: 0.5px solid rgba(207,170,101,0.15); font-size: 1.25rem; color: var(--copy); vertical-align: middle; }
.ctable td.num, .ctable th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctable td.commission { font-family: var(--serif); font-size: 1.9rem; color: var(--gold); line-height: 1; }
.ctable tr:hover td { background: rgba(207,170,101,0.03); }
.ctable .mlabel { display: none; }

.bignums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.bignum { border: 0.5px solid var(--gold-border); border-top: 2px solid var(--gold); padding: 2.25rem 1.5rem; text-align: center; background: rgba(207,170,101,0.03); }
.bignum .who { font-size: 1rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--gold); margin-bottom: 0.9rem; }
.bignum .amt { font-family: var(--serif); font-size: clamp(2.6rem, 4.5vw, 3.6rem); font-weight: 300; color: var(--stone); line-height: 1; }
.qualifier { margin-top: 2.25rem; max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.qualifier p { color: var(--copy-soft); font-size: 1.2rem; line-height: 1.75; }

/* ---- Accordion ---- */
.acc { border-top: 0.5px solid var(--gold-border); margin-top: 2.5rem; }
.acc-item { border-bottom: 0.5px solid var(--gold-border); }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 1.5rem 0.25rem; color: var(--stone);
  font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.3;
  transition: color 0.2s;
}
.acc-btn:hover, .acc-btn[aria-expanded="true"] { color: var(--gold); }
.acc-btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.acc-icon { flex: 0 0 auto; width: 1.6rem; height: 1.6rem; position: relative; }
.acc-icon::before, .acc-icon::after { content: ''; position: absolute; background: var(--gold); top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.3s; }
.acc-icon::before { width: 1.1rem; height: 1px; }
.acc-icon::after { width: 1px; height: 1.1rem; }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-panel { height: 0; overflow: hidden; transition: height 0.35s ease; }
.acc-panel[data-open="true"] { height: auto; }
.acc-body { padding: 0 0.25rem 1.75rem; max-width: 680px; }
.acc-body p { color: var(--copy-soft); margin-bottom: 0.9rem; }
.acc-body p:last-child { margin-bottom: 0; }
.acc-body .stack p { margin-bottom: 0.15rem; }
.acc-body .stack p:last-child { margin-bottom: 0; }
.acc-body ul { list-style: none; margin: 0.25rem 0 0.75rem; }
.acc-body li { color: var(--copy-soft); padding-left: 1.5rem; position: relative; margin-bottom: 0.4rem; }
.acc-body li::before { content: ''; position: absolute; left: 0; top: 0.95em; width: 10px; height: 0.5px; background: var(--gold); }
.acc-body li strong { color: var(--gold); font-weight: 500; }
.faq .acc-btn { font-family: var(--sans); font-size: 1.4rem; font-weight: 500; }

/* ---- Audience ---- */
.stack-lines { margin: 2rem 0; }
.stack-lines p { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.4; color: var(--stone); margin-bottom: 0.2rem; }
.stack-lines p:last-child { color: var(--gold); font-style: italic; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.75rem; }
.step { padding: 2rem 1.5rem; border: 0.5px solid var(--gold-border); background: rgba(207,170,101,0.025); }
.step .num { font-family: var(--serif); font-size: 2.4rem; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 0.9rem; }
.step h3 { font-family: var(--sans); font-size: 1.15rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--stone); margin-bottom: 0.75rem; }
.step p { color: var(--copy-soft); font-size: 1.2rem; line-height: 1.7; }
.journey { margin-top: 2.5rem; text-align: center; font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--gold); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.9rem; }
.journey span::after { content: ''; display: inline-block; width: 18px; height: 0.5px; background: var(--gold-border-strong); margin-left: 0.9rem; vertical-align: middle; }
.journey span:last-child::after { display: none; }

/* ---- Form ---- */
#join { scroll-margin-top: 5rem; }
.form-shell { max-width: 640px; margin: 2.75rem auto 0; border: 0.5px solid var(--gold-border); border-top: 2px solid var(--gold); padding: 3rem 2.75rem; background: rgba(207,170,101,0.03); }
.form-title { font-family: var(--serif); font-size: 2rem; font-weight: 400; color: var(--stone); text-align: center; margin-bottom: 0.4rem; }
.form-sub { text-align: center; color: var(--copy-soft); font-size: 1.2rem; margin-bottom: 2.25rem; }
.field { margin-bottom: 1.6rem; }
.field > label, .field .lbl { display: block; font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--gold); margin-bottom: 0.6rem; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field select {
  width: 100%; font-family: var(--sans); font-size: 1.2rem; font-weight: 400; color: var(--stone);
  background: var(--ink); border: 0.5px solid var(--gold-border); padding: 0.95rem 1rem; border-radius: 0; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 1.35rem, calc(100% - 15px) 1.35rem; background-size: 7px 7px, 7px 7px; background-repeat: no-repeat; padding-right: 2.9rem;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field .hint { margin-top: 0.5rem; font-size: 1.125rem; line-height: 1.6; color: var(--copy-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; font-size: 1.125rem; line-height: 1.4; color: var(--copy); border: 0.5px solid var(--gold-border);
  padding: 0.6rem 1rem; cursor: pointer; transition: all 0.2s; user-select: none;
}
.chip input:checked + span { background: var(--gold-faint); border-color: var(--gold); color: var(--gold); }
.chip input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-shell .btn-gold { width: 100%; margin-top: 0.5rem; }
.form-note { margin-top: 1.25rem; text-align: center; font-size: 1.125rem; line-height: 1.65; color: var(--copy-soft); }
.form-note a { color: var(--gold); text-decoration: none; border-bottom: 0.5px solid var(--gold-border); }
.msg { margin-bottom: 1.5rem; padding: 1rem 1.1rem; border: 0.5px solid; font-size: 1.15rem; line-height: 1.6; }
.msg.err { border-color: rgba(224,144,124,0.5); color: var(--error); background: rgba(224,144,124,0.06); }
.msg.ok { border-color: var(--gold-border); color: var(--copy); background: var(--gold-faint); }
.done { text-align: center; }
.done .mark { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; margin-bottom: 1rem; }
.done h3 { font-size: 2rem; margin-bottom: 1rem; }
.done p { color: var(--copy); }
.done .btn-gold, .done .btn-ghost { width: auto; margin-top: 1.5rem; }
.done .links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---- Closing ---- */
#closing { text-align: center; }
#closing .lines p { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.4; color: var(--stone); margin-bottom: 0.25rem; }

/* ---- Footer ---- */
footer { background: var(--ink-dark); border-top: 0.5px solid var(--gold-border); padding: 3rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; margin-bottom: 2.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
.footer-link { font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copy-soft); text-decoration: none; opacity: 0.8; transition: opacity 0.2s, color 0.2s; }
.footer-link:hover { opacity: 1; color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; border-top: 0.5px solid rgba(207,170,101,0.1); padding-top: 2rem; }
.footer-copy { font-size: 1rem; color: var(--copy-soft); opacity: 0.7; }

/* ---- Login page ---- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 8rem 1.5rem 5rem; position: relative; }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 480px; border: 0.5px solid var(--gold-border); border-top: 2px solid var(--gold); padding: 3rem 2.5rem; background: rgba(8,8,7,0.9); }
.auth-card h1 { font-size: 2.4rem; margin-bottom: 0.5rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--copy-soft); font-size: 1.2rem; margin-bottom: 2rem; }
.auth-card .btn-gold { width: 100%; }
.auth-links { margin-top: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }

/* ---- Mobile ---- */
@media (max-width: 1100px) { .nav-links { display: none; } }
@media (max-width: 860px) {
  nav { padding: 0.85rem 1.25rem; }
  .nav-lockup img { height: 30px; }
  .nav-lockup span { font-size: 1.1rem; }
  .nav-cta { font-size: 0.9rem; padding: 0.45rem 0.9rem; }
  section, #hero { padding: 5rem 1.25rem; }
  #hero { padding-top: 7.5rem; min-height: 0; }
  .two-col, .steps, .bignums { grid-template-columns: 1fr; }
  .form-shell { padding: 2.25rem 1.4rem; }
  .auth-card { padding: 2.25rem 1.5rem; }
  footer { padding: 2.5rem 1.25rem; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .emph { padding-left: 1rem; }
  /* commission table becomes stacked rows */
  .ctable thead { display: none; }
  .ctable, .ctable tbody, .ctable tr, .ctable td { display: block; width: 100%; }
  .ctable tr { padding: 1.1rem 0; border-bottom: 0.5px solid rgba(207,170,101,0.18); }
  .ctable td { border: none; padding: 0.2rem 0; text-align: left; }
  .ctable td.num { text-align: left; }
  .ctable td.program { font-family: var(--serif); font-size: 1.55rem; color: var(--stone); margin-bottom: 0.35rem; }
  .ctable .mlabel { display: inline-block; min-width: 9.5rem; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copy-soft); }
  .ctable td.commission { font-size: 1.7rem; display: flex; align-items: baseline; gap: 0.5rem; }
  .ctable td.commission .mlabel { font-family: var(--sans); color: var(--copy-soft); }
}
@media (max-width: 560px) {
  .hero-lockup img { height: 64px; }
  .btn-gold, .btn-ghost { padding: 1.05rem 1.5rem; width: 100%; }
  .nav-cta { display: none; }
  .journey { font-size: 0.95rem; }
}
