:root {
  --graphite: #171713;
  --graphite-2: #24221d;
  --graphite-3: #343126;
  --ivory: #f8f1e4;
  --ivory-2: #f2eadb;
  --sand: #ddcfb8;
  --gold: #a9823b;
  --gold-2: #c8a66a;
  --bronze: #7a5630;
  --sage: #435448;
  --sage-2: #62715f;
  --sage-deep: #25362d;
  --mist: #ebe4d6;
  --danger: #9d352d;
  --line: rgba(36, 34, 29, .12);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #17251d; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  background:
    radial-gradient(circle at 16% -8%, rgba(67,84,72,.52), transparent 34rem),
    radial-gradient(circle at 92% 4%, rgba(169,130,59,.20), transparent 28rem),
    linear-gradient(135deg, #17251d 0%, #18231b 54%, #302718 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(248,241,228,.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,166,106,.026) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.15));
}

a { color: inherit; text-decoration: none; }
.auth-shell {
  min-height: calc(100vh - 28px);
  width: calc(100vw - 32px);
  margin: 14px auto;
  display: grid;
  place-items: center;
  position: relative;
}
.auth-panel {
  width: min(760px, calc(100vw - 32px));
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(200,166,106,.28);
  box-shadow: 0 18px 70px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.10);
}
.green-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(200,166,106,.24), transparent 24rem),
    linear-gradient(135deg, var(--sage-deep) 0%, var(--sage) 62%, #334436 100%);
  color: var(--ivory);
  border-bottom: 1px solid rgba(200,166,106,.34);
}
.green-header::after {
  content: "";
  display: block;
  width: 96px;
  height: 2px;
  border-radius: 999px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--gold-2), rgba(248,241,228,.42), transparent);
}
.compact-header { padding: clamp(18px, 4vw, 30px) clamp(22px, 6vw, 40px); }
.bronze-card {
  position: relative;
  overflow: hidden;
  border-left: 6px solid var(--gold-2);
  background:
    radial-gradient(circle at 88% 0%, rgba(200,166,106,.22), transparent 18rem),
    linear-gradient(135deg, #6f4a27 0%, var(--bronze) 56%, #4f361f 100%);
  color: var(--ivory);
}
.bronze-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--sage), var(--gold-2), var(--bronze));
}
.gate-card { padding: clamp(24px, 6vw, 42px); }
.simplia-mark {
  width: 146px;
  height: auto;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.14));
}
.eyebrow {
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .83rem;
  font-weight: 900;
  margin: 0 0 10px;
}
.eyebrow.dark { color: var(--bronze); }
h1, h2, h3 { font-family: "Manrope", "Inter", sans-serif; margin: 0 0 8px; letter-spacing: -.035em; }
h1 { color: var(--ivory); font-size: clamp(2rem, 5vw, 3.65rem); line-height: .94; font-weight: 300; letter-spacing: -.062em; text-shadow: 0 2px 18px rgba(0,0,0,.16); }
h2 { color: var(--graphite); font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.05; }
.gate-form { margin-top: 0; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 10px; align-items: stretch; }
input, button, select, textarea { font: inherit; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(248,241,228,.24);
  border-radius: 13px;
  padding: 12px 14px;
  background: rgba(255,250,240,.96);
  color: var(--graphite);
  outline: none;
  min-height: 52px;
  font-weight: 850;
  letter-spacing: .08em;
  text-align: center;
}
select, textarea { letter-spacing: 0; text-align: left; font-weight: 750; }
textarea { min-height: 94px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(200,166,106,.86); box-shadow: 0 0 0 4px rgba(200,166,106,.14); }
button,
.download-button {
  border: 0;
  border-radius: 13px;
  padding: 12px 16px;
  min-height: 52px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #ead7b6, var(--gold-2));
  color: #2d2015;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(36,24,14,.24);
}
button:hover,
.download-button:hover { filter: brightness(1.04); transform: translateY(-1px); }
.download-button.secondary { background: rgba(17,31,24,.88); color: var(--ivory); box-shadow: none; border: 1px solid rgba(248,241,228,.13); }
.notice {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: rgba(248,241,228,.86);
  font-weight: 800;
}
.notice:empty { display: none; }
.request-link,
.session-time {
  display: inline-flex;
  justify-self: center;
  margin-top: 8px;
  color: rgba(248,241,228,.72);
  border-bottom: 1px solid rgba(200,166,106,.34);
  font-size: .82rem;
  font-weight: 850;
}
.request-link:hover { color: var(--ivory); }
.session-time { border-bottom: 0; margin-top: 0; }
.request-form { display: grid; gap: 10px; }
.sent-copy { margin: 0 0 12px; color: rgba(248,241,228,.84); line-height: 1.5; }
.request-id { margin: 0 0 16px; color: rgba(248,241,228,.58); font-size: .82rem; font-weight: 800; }
.docs-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 22px auto 46px;
  position: relative;
  display: grid;
  gap: 14px;
}
.docs-panel { width: 100%; }
.docs-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(22px, 5vw, 54px);
  align-items: end;
  padding: clamp(24px, 5vw, 44px);
}
.hero-note {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(248,241,228,.82);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.55;
}
.header-actions { display: grid; gap: 12px; align-self: center; }
.download-actions { display: grid; gap: 11px; }
.card {
  background: linear-gradient(180deg, rgba(247,239,224,.98), rgba(229,218,198,.97));
  color: var(--graphite);
  border: 1px solid rgba(169,130,59,.24);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 18px 70px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.5);
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
ol { margin: 16px 0 0; padding-left: 21px; }
li { color: rgba(23,23,19,.72); line-height: 1.52; }
li + li { margin-top: 8px; }
.note {
  margin: 16px 0 0;
  padding: 12px 13px;
  border-radius: 13px;
  background: rgba(169,130,59,.11);
  border: 1px solid rgba(169,130,59,.16);
  color: rgba(23,23,19,.68);
  line-height: 1.48;
  font-size: .92rem;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(169,130,59,.13);
  color: var(--bronze);
  border: 1px solid rgba(169,130,59,.18);
  font-size: .78rem;
  font-weight: 850;
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(23,23,19,.05);
  border: 1px solid rgba(36,34,29,.10);
}
.shot-button {
  appearance: none;
  width: 100%;
  min-height: 0;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: zoom-in;
}
.shot-button:hover { filter: none; transform: none; }
.shot-button:focus-visible { outline: 4px solid rgba(200,166,106,.42); outline-offset: -4px; }
figure img,
.lightbox-frame img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--graphite);
}
figcaption {
  padding: 10px 12px 12px;
  color: rgba(23,23,19,.66);
  font-size: .86rem;
  line-height: 1.4;
}
.compact-card { padding: 19px 22px; }
.plain-list { margin: 10px 0 0; padding-left: 18px; }
body.lightbox-open { overflow: hidden; }
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background: rgba(10, 12, 9, .82);
  backdrop-filter: blur(10px);
}
.lightbox-frame {
  width: min(1180px, 96vw);
  max-height: 92vh;
  overflow: auto;
  margin: 0;
  border-radius: 20px;
  background: rgba(248,241,228,.98);
  border: 1px solid rgba(200,166,106,.28);
  box-shadow: 0 28px 110px rgba(0,0,0,.52);
}
.lightbox-frame img { background: var(--graphite); }
.lightbox-frame figcaption {
  color: rgba(23,23,19,.72);
  font-weight: 800;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  background: rgba(248,241,228,.94);
  color: var(--graphite);
  font-size: 1.55rem;
  line-height: 1;
  z-index: 60;
}

@media (max-width: 880px) {
  .docs-header, .content-grid, .shot-grid { grid-template-columns: 1fr; }
  .header-actions { align-self: stretch; }
}

@media (max-width: 560px) {
  .auth-shell { width: min(100vw - 18px, 760px); margin: 9px auto; }
  .auth-panel, .card { border-radius: 18px; }
  .code-row { grid-template-columns: 1fr; }
  .docs-shell { width: min(100vw - 18px, 1180px); margin-top: 12px; }
  .simplia-mark { width: 124px; }
  .section-head { align-items: flex-start; flex-direction: column; }
}
