/* Public marketing and authentication pages. Signed-in app styles stay in app.css. */

.public-page {
  --pub-ink: #f6f1e7;
  --pub-max: 1180px;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(196, 98, 45, 0.16), transparent 55%),
    var(--paper);
}

.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;
}

.public-page .site-header {
  background: rgba(244, 239, 230, 0.92);
  border-bottom-color: rgba(20, 48, 40, 0.12);
}
.public-page .logo { font-family: var(--serif); font-size: 1.2rem; letter-spacing: -0.03em; }
.public-page .mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 42% 58% 48% 52%;
  box-shadow: inset 0 0 0 1px rgba(231, 194, 122, 0.4);
}
.public-page .nav a {
  font-size: 0.98rem;
  font-weight: 500;
}
.public-page .nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--copper);
}
.public-page .btn {
  min-height: 46px;
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.public-page .btn:hover { transform: translateY(-1px); }
.public-page .btn:focus-visible,
.public-page a:focus-visible,
.public-page summary:focus-visible,
.public-page button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.public-page .btn-primary { box-shadow: 0 10px 24px rgba(196, 98, 45, 0.28); }
.public-page .btn-light { font-weight: 650; }

.pub-hero {
  position: relative;
  color: var(--pub-ink);
  overflow: hidden;
  background: #08120f;
}
.pub-hero .container { position: relative; z-index: 1; }
.hero-home { min-height: 0; }
.hero-home .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 2.5rem;
  align-items: center;
  padding: 4.2rem 0 4.6rem;
}
.pub-hero h1 {
  font-size: clamp(3.1rem, 6.4vw, 5.7rem);
  max-width: 11ch;
  color: #f7f2ea;
}
.pub-hero .lede {
  margin-top: 1.15rem;
  max-width: 38rem;
  font-size: 1.22rem;
  line-height: 1.55;
  color: rgba(246, 241, 231, 0.88);
}
.pub-hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.7rem; }
.hero-home::before,
.hero-path::before,
.hero-learn::before,
.hero-rewards::before,
.hero-faq::before,
.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-home::before {
  background-image:
    linear-gradient(100deg, rgba(8, 18, 15, 0.94) 0%, rgba(8, 18, 15, 0.78) 46%, rgba(8, 18, 15, 0.42) 100%),
    url("../img/bg-atlas.856d70b0a973.jpg");
}
.hero-path::before {
  background-image:
    linear-gradient(100deg, rgba(8, 18, 15, 0.92) 0%, rgba(13, 31, 26, 0.72) 100%),
    url("../img/bg-studio.69b0546d77ba.jpg");
}
.hero-learn::before {
  background-image:
    linear-gradient(100deg, rgba(8, 18, 15, 0.93) 0%, rgba(20, 48, 40, 0.55) 100%),
    url("../img/bg-field.7f3d030edafc.jpg");
}
.hero-rewards::before {
  background-image:
    linear-gradient(115deg, rgba(8, 18, 15, 0.9) 8%, rgba(90, 42, 18, 0.55) 100%),
    url("../img/bg-abstract.a57612892b66.jpg");
}
.hero-faq::before {
  background-image:
    linear-gradient(120deg, rgba(8, 18, 15, 0.94), rgba(20, 48, 40, 0.82)),
    url("../img/bg-atlas.856d70b0a973.jpg");
  background-position: center, 70% 40%;
}
.pub-hero::after,
.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern.4865f359bf2c.svg");
  opacity: 0.45;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; padding: 4.4rem 0 3.6rem; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { max-width: 40rem; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}
.orb-a { width: 180px; height: 180px; right: 8%; top: 12%; background: rgba(196, 98, 45, 0.55); animation: drift 16s ease-in-out infinite alternate; }
.orb-b { width: 90px; height: 90px; right: 28%; bottom: 10%; background: rgba(231, 194, 122, 0.35); animation: drift 11s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-18px, 14px, 0); }
}

.device {
  background: rgba(255, 253, 248, 0.96);
  color: var(--ink);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  max-width: 100%;
}
.device-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  background: #143028;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.device-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e7c27a; display: block; }
.device-bar i:nth-child(2) { background: #c4622d; }
.device-bar i:nth-child(3) { background: #8eab9e; }
.device-bar em { margin-left: auto; font-style: normal; letter-spacing: 0.08em; }
.device-body { padding: 1.15rem 1.15rem 1.25rem; display: grid; gap: 0.85rem; }
.device-kicker { color: var(--copper); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; }
.device h3 { font-size: clamp(1.5rem, 2vw, 2rem); margin: 0; }
.meter { height: 8px; border-radius: 99px; background: #e7e0d2; overflow: hidden; }
.meter span { display: block; height: 100%; width: 64%; background: linear-gradient(90deg, var(--forest), var(--copper)); }
.lesson-bits { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 0.7rem; }
.bit {
  border-radius: 16px;
  padding: 0.8rem;
  background: #f4efe6;
  min-height: 92px;
}
.bit strong, .bit span { display: block; }
.bit span { color: var(--muted); font-size: 0.92rem; margin-top: 0.25rem; }
.bit.video {
  background:
    linear-gradient(160deg, rgba(8, 18, 15, 0.78), rgba(8, 18, 15, 0.82)),
    url("../img/bg-studio.69b0546d77ba.jpg") center/cover;
  color: white;
}
.bit.video span { color: rgba(255, 255, 255, 0.82); }
.quiz-line { display: flex; justify-content: space-between; gap: 0.6rem; padding-top: 0.2rem; font-size: 0.98rem; }
.reward-chip {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  background: var(--forest);
  color: var(--gold);
  border-radius: 16px;
  padding: 0.85rem 1rem;
}
.reward-chip b { font-family: var(--serif); font-size: 1.6rem; color: white; font-weight: 560; }
.preview-note { margin-top: 0.7rem; color: rgba(246, 241, 231, 0.75); font-size: 0.92rem; }

.proof-band {
  background: #fffdf8;
  border-bottom: 1px solid var(--line);
}
.proof-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 1fr;
  gap: 1.2rem;
  padding: 1.6rem 0;
  align-items: stretch;
}
.proof-figure strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.proof-figure span, .proof-copy p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.45; }
.method-row, .tier-names { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.chip {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: var(--paper-deep);
  font-size: 0.95rem;
}
.chip-forest { background: var(--forest); color: var(--gold); }

.pub-section { padding: 4.6rem 0; }
.pub-section h2 { max-width: 18ch; }
.section-intro { max-width: 42rem; margin-top: 0.9rem; font-size: 1.12rem; line-height: 1.6; color: var(--ink-soft); }
.band-ink { background: var(--forest-2); color: var(--pub-ink); position: relative; overflow: hidden; }
.band-ink .section-intro, .band-ink .muted { color: rgba(246, 241, 231, 0.78); }
.band-sand { background: linear-gradient(180deg, rgba(231, 224, 210, 0.65), rgba(244, 239, 230, 0)); }
.band-paper {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(244, 239, 230, 0.92)),
    url("../img/pattern.4865f359bf2c.svg");
}

.journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.journey article {
  background: rgba(255, 253, 248, 0.06);
  border: 1px solid rgba(246, 241, 231, 0.14);
  border-radius: 22px;
  padding: 1.15rem 1.15rem 1.25rem;
  min-height: 180px;
}
.journey em {
  font-family: var(--serif);
  font-style: normal;
  font-size: 1.8rem;
  color: var(--gold);
  display: block;
}
.journey h3 { margin: 0.45rem 0 0.4rem; font-size: 1.45rem; }
.journey p { color: rgba(246, 241, 231, 0.78); font-size: 1.02rem; line-height: 1.5; }
.journey.on-light article { background: #fffdf8; border-color: var(--line); color: var(--ink); }
.journey.on-light em { color: var(--copper); }
.journey.on-light h3 { color: var(--ink); }
.journey.on-light p { color: var(--ink-soft); }
.journey.quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-visual .stamps span { background: rgba(255, 253, 248, 0.1); border: 1px dashed rgba(231, 194, 122, 0.7); }
.auth-form .eyebrow { margin: 0.4rem 0 0; }
.captcha-row { display: flex; align-items: center; gap: 0.8rem; margin: 0.35rem 0 0.55rem; }
.captcha-row img { display: block; border-radius: 12px; border: 1px solid rgba(22, 24, 29, 0.14); background: #fffdf8; }
.captcha-row a { color: var(--forest); font-weight: 650; }
.section-link { margin-top: 1.4rem; }

.subject-mosaic {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-auto-rows: minmax(170px, auto);
  gap: 0.8rem;
}
.subject-tile {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 1.2rem;
  color: #f6f1e7;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #143028 center/cover no-repeat;
}
.subject-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 15, 0.05), rgba(8, 18, 15, 0.78));
}
.subject-tile > * { position: relative; z-index: 1; }
.subject-tile:first-child {
  grid-row: span 2;
  min-height: 360px;
  background-image: url("../img/bg-field.7f3d030edafc.jpg");
}
.subject-mosaic.is-dense .subject-tile:first-child {
  grid-row: auto;
  min-height: 200px;
}
.subject-tile:nth-child(2) { background: linear-gradient(160deg, #1d3a32, #0d1f1a); }
.subject-tile:nth-child(3) { background: linear-gradient(160deg, #c4622d, #6e3014); }
.subject-tile:nth-child(4) { background-image: linear-gradient(160deg, rgba(20, 48, 40, 0.45), rgba(8, 18, 15, 0.72)), url("../img/bg-studio.69b0546d77ba.jpg"); }
.subject-tile:nth-child(5) { background: linear-gradient(160deg, #8c5a3c, #143028); }
.subject-tile:nth-child(6) { background: linear-gradient(160deg, #2f6a56, #143028); }
.subject-tile h3 { margin: 0; font-size: clamp(1.5rem, 2vw, 2.2rem); }
.subject-tile p { margin-top: 0.4rem; color: rgba(246, 241, 231, 0.86); font-size: 1.02rem; }
.subject-index { font-family: var(--serif); color: var(--gold); margin-bottom: auto; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.2rem;
  align-items: center;
}
.split.reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.format-list { display: grid; gap: 0.9rem; margin-top: 1.2rem; }
.format-list article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  background: white;
  border-radius: 20px;
  padding: 0.75rem;
  border: 1px solid var(--line);
}
.format-swatch { height: 78px; border-radius: 14px; }
.format-swatch.video { background: linear-gradient(145deg, #143028, #c4622d); }
.format-swatch.read { background: linear-gradient(145deg, #e7c27a, #fffdf8 70%); }
.format-swatch.image { background: linear-gradient(145deg, #2f6a56, #d7e4dc); }
.format-list h3 { margin: 0 0 0.25rem; font-size: 1.3rem; }

.earn-layout {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 0.85rem;
}
.earn-card {
  border-radius: 26px;
  padding: 1.4rem;
  background: white;
  border: 1px solid var(--line);
}
.earn-card.lead {
  background:
    linear-gradient(165deg, rgba(8, 18, 15, 0.78), rgba(8, 18, 15, 0.55)),
    url("../img/bg-atlas.856d70b0a973.jpg") center/cover;
  color: white;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.earn-card.lead p { color: rgba(246, 241, 231, 0.86); margin-top: 0.55rem; font-size: 1.06rem; }
.earn-stack { display: grid; gap: 0.85rem; }
.earn-card h3 { margin: 0.35rem 0 0; font-size: 1.7rem; }
.earn-card p { margin-top: 0.45rem; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.5; }
.numeral { font-family: var(--serif); color: var(--copper); font-size: 1.1rem; }

.ledger {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 1.2rem;
  margin-top: 1.6rem;
  align-items: stretch;
}
.ledger-copy { font-size: 1.08rem; line-height: 1.6; color: var(--ink-soft); display: grid; gap: 0.8rem; }
.ledger-sheet {
  background: #fffdf8;
  border-radius: 28px;
  padding: 1.3rem 1.3rem 1.1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.ledger-sheet h3 { margin: 0 0 0.8rem; font-size: 1.5rem; }
.ledger-sheet dl { margin: 0; display: grid; gap: 0.55rem; }
.ledger-sheet div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.45rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.ledger-sheet dt { color: var(--muted); }
.ledger-sheet .net { border-bottom: 0; font-size: 1.25rem; }
.ledger-sheet .net dd { font-family: var(--serif); font-size: 1.8rem; }
.fine { margin-top: 0.8rem; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

.referral-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(8, 18, 15, 0.88), rgba(20, 48, 40, 0.72)),
    url("../img/bg-abstract.a57612892b66.jpg") center/cover;
  color: white;
  border-radius: 32px;
  padding: 1.8rem;
  overflow: hidden;
}
.referral-panel h2 { color: white; }
.referral-panel p { margin-top: 0.8rem; color: rgba(246, 241, 231, 0.84); font-size: 1.08rem; }
.stamps { display: grid; gap: 0.65rem; }
.stamps span {
  background: rgba(255, 253, 248, 0.1);
  border: 1px dashed rgba(231, 194, 122, 0.7);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
}
.stamps b { color: var(--gold); margin-right: 0.4rem; }

.faq-layout { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 2rem; align-items: start; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0;
}
.band-ink .faq-list details { border-bottom-color: rgba(246, 241, 231, 0.16); }
.faq-list summary {
  cursor: pointer;
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 0.9rem 1.6rem 0.9rem 0;
  list-style: none;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.85rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--copper);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p, .faq-list details li { font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft); }
.faq-list details p { margin: 0 0 0.95rem; }
.band-ink .faq-list details p { color: rgba(246, 241, 231, 0.8); }

.closing {
  margin-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: var(--forest);
  color: white;
  border-radius: 28px;
  padding: 1.5rem 1.5rem;
}
.closing h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 18ch; }
.closing p { margin-top: 0.45rem; color: rgba(246, 241, 231, 0.8); }

.catalogue-grid { display: grid; gap: 0.8rem; margin-top: 1.2rem; }
.catalogue-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  background: white;
  border-radius: 22px;
  padding: 0.75rem;
  border: 1px solid var(--line);
}
.catalogue-thumb {
  width: 100%;
  height: 84px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--cover-a, #1d3a32), var(--cover-b, #c4622d));
}
.catalogue-thumb.thumb-fallback {
  display: grid;
  align-content: end;
  padding: 0.45rem;
  color: #f6f1e7;
  overflow: hidden;
}
.catalogue-thumb.thumb-fallback span {
  font-size: 0.75rem;
  line-height: 1.2;
}
.catalogue-row h3 { margin: 0; font-size: 1.25rem; }
.catalogue-row p { margin-top: 0.3rem; color: var(--muted); }
.empty-catalogue {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  background: white;
  border-radius: 28px;
  padding: 1rem;
  border: 1px solid var(--line);
  margin-top: 1.2rem;
}
.empty-catalogue img { width: 100%; height: auto; border-radius: 20px; }
.empty-catalogue h3 { margin: 0 0 0.45rem; font-size: 1.8rem; }

.rule-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1rem; margin-top: 1.4rem; }
.rule-card, .prose-card {
  background: white;
  border-radius: 24px;
  padding: 1.25rem;
  border: 1px solid var(--line);
}
.rule-card h3, .prose-card h3 { margin: 0 0 0.45rem; font-size: 1.45rem; }
.prose-card p, .rule-card p, .story p { font-size: 1.06rem; line-height: 1.6; color: var(--ink-soft); margin-top: 0.55rem; }
.story { max-width: 46rem; }
.story ol { margin: 1rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.55rem; font-size: 1.06rem; line-height: 1.5; }
.tier-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.3rem; }
.tier-rail article {
  background: #fffdf8;
  border-top: 4px solid var(--copper);
  border-radius: 18px;
  padding: 1rem;
  min-height: 160px;
}
.tier-rail h3 { margin: 0.2rem 0 0.4rem; font-size: 1.35rem; }
.tier-rail p { color: var(--ink-soft); font-size: 0.98rem; }

.task-mock {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  margin-top: 1.4rem;
}
.task-screen, .task-status {
  border-radius: 24px;
  padding: 1.2rem;
  background: white;
  border: 1px solid var(--line);
}
.task-screen { background: #102820; color: white; }
.task-screen p { color: rgba(246, 241, 231, 0.82); margin-top: 0.55rem; }
.status-row { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.pill { border-radius: 999px; padding: 0.2rem 0.55rem; background: #efe4c4; color: #143028; font-size: 0.88rem; }
.pill.wait { background: #f0d2c4; }
.pill.ok { background: #d7e4dc; }

.balance-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1.3rem; }
.balance-split article { background: white; border-radius: 22px; padding: 1.1rem; border: 1px solid var(--line); min-height: 180px; }
.balance-split h3 { margin: 0 0 0.4rem; font-size: 1.35rem; }
.balance-split p { color: var(--ink-soft); }

.pub-footer {
  background: #08120f;
  color: rgba(246, 241, 231, 0.82);
  padding: 3.2rem 0 1.2rem;
  margin-top: 0;
}
.pub-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.8rem;
}
.pub-footer h2 { font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-family: var(--sans); font-weight: 650; margin: 0 0 0.8rem; }
.pub-footer a { color: #f6f1e7; text-decoration: none; }
.pub-footer a:hover { color: var(--gold); }
.pub-footer .logo { color: white; }
.footer-links { display: grid; gap: 0.45rem; }
.footer-links a, .footer-links p { font-size: 1.02rem; }
.brand-blurb { margin-top: 0.8rem; max-width: 28rem; line-height: 1.55; }
.socials { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 231, 0.25);
  color: white;
}
.socials a:hover, .socials a:focus-visible { background: var(--copper); border-color: var(--copper); color: white; }
.socials svg { width: 18px; height: 18px; display: block; }
.legal-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(246, 241, 231, 0.14);
  font-size: 0.95rem;
}
.mark-line { width: 72px; height: 8px; margin-top: 1rem; border-radius: 99px; background: linear-gradient(90deg, var(--copper), var(--gold)); }

.auth-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  min-height: calc(100vh - 78px);
  background: #08120f;
}
.auth-visual {
  position: relative;
  color: white;
  overflow: hidden;
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
}
.auth-visual::before {
  background-image:
    linear-gradient(180deg, rgba(8, 18, 15, 0.25), rgba(8, 18, 15, 0.88)),
    url("../img/bg-studio.69b0546d77ba.jpg");
}
.auth-visual .container, .auth-visual .visual-copy { position: relative; z-index: 1; max-width: 34rem; }
.auth-visual h2 { font-size: clamp(2.3rem, 4vw, 3.6rem); max-width: 12ch; }
.auth-visual p { margin-top: 0.8rem; font-size: 1.1rem; color: rgba(246, 241, 231, 0.88); }
.auth-panel {
  background: var(--paper);
  padding: 2rem 1.3rem 2.6rem;
  display: flex;
  justify-content: center;
}
.auth-card {
  width: min(520px, 100%);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: clamp(2.2rem, 4vw, 3.15rem); }
.auth-card .lede { margin: 0.55rem 0 1rem; color: var(--ink-soft); font-size: 1.05rem; }
.auth-form { display: grid; gap: 0.85rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.field label { display: block; font-weight: 600; font-size: 1rem; }
.auth-form input, .auth-form select, .auth-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  min-height: 52px;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(22, 24, 29, 0.18);
  background: white;
  font-size: 1.05rem;
}
.auth-form input:focus, .auth-form select:focus {
  outline: 3px solid rgba(196, 98, 45, 0.35);
  border-color: var(--copper);
}
.password-field { position: relative; margin-top: 0.35rem; }
.password-field input { margin-top: 0; padding-right: 5.2rem; }
.ghost-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--forest);
  font-weight: 650;
  min-width: 48px;
  min-height: 44px;
  cursor: pointer;
}
.check { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 1.02rem; }
.check input { width: 1.15rem; min-height: 1.15rem; margin-top: 0.2rem; }
.hint, .auth-form .errorlist { margin: 0.3rem 0 0; }
.hint { color: var(--muted); font-size: 0.95rem; }
.auth-form .errorlist, .alert-error { color: var(--danger); padding-left: 0; list-style: none; }
.alert { border-radius: 14px; padding: 0.75rem 0.85rem; margin-bottom: 0.8rem; background: #efe4c4; }
.alert-error, .alert-warning { background: #f8e4e0; }
.alert-success { background: #dcebe3; }
.auth-links { display: flex; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.4rem; }
.auth-links a { color: var(--forest); font-weight: 650; }
.span-2 { grid-column: 1 / -1; }
.public-page .auth-shell { padding: 2rem 1rem 3rem; }
.public-page .auth-shell .auth-card { margin: 0 auto; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-home .hero-layout,
  .split,
  .split.reverse,
  .earn-layout,
  .ledger,
  .referral-panel,
  .faq-layout,
  .proof-grid,
  .task-mock,
  .rule-grid,
  .empty-catalogue,
  .auth-split,
  .pub-footer .footer-grid,
  .balance-split,
  .tier-rail,
  .journey,
  .journey.quad,
  .subject-mosaic {
    grid-template-columns: 1fr;
  }
  .subject-tile:first-child { grid-row: auto; min-height: 220px; }
  .tier-rail { grid-template-columns: 1fr 1fr; }
  .balance-split { grid-template-columns: 1fr; }
  .hero-home .hero-layout, .page-hero .container { padding: 2.4rem 0 2.2rem; }
  .pub-hero h1 { max-width: none; }
  .pub-section { padding: 3rem 0; }
  .catalogue-row { grid-template-columns: 72px minmax(0, 1fr); }
  .catalogue-thumb { height: 54px; }
  .catalogue-row .btn { grid-column: 1 / -1; justify-self: start; }
  .auth-visual { order: 2; min-height: 280px; padding: 1.6rem 1.1rem 1.8rem; }
  .auth-panel { order: 1; padding: 1.2rem 0.8rem 1.6rem; }
  .public-page .nav { display: none; }
  .public-page .nav.open {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    order: 5;
    margin: 0;
    background: rgba(255, 253, 248, 0.96);
    border-radius: 16px;
    padding: 0.3rem 0.8rem 0.6rem;
  }
  .closing { align-items: flex-start; }
  .lesson-bits { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .form-grid, .format-list article, .tier-rail { grid-template-columns: 1fr; }
  .hero-actions .btn, .closing .btn, .auth-form .btn { width: 100%; }
  .legal-bar { flex-direction: column; }
  .device-bar em { letter-spacing: 0; }
  .reward-chip { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .js .reveal { animation: none; opacity: 1; transform: none; }
  .public-page .btn { transition: none; }
}
