/* ==========================================================================
   MONEGAI — design system
   Lifted from the landing page: near-black ground, champagne gold, hairline
   rules, wide-tracked micro labels, and a serif italic for the spoken line.
   Dark only, matching the invitation screen. No webfonts are downloaded.
   ========================================================================== */

:root {
  --background: #050505;
  --surface: #0a0a0b;
  --text: #e9e6df;
  --muted: #999b9c;
  --faint: rgba(233, 230, 223, 0.42);
  --gold: #b7a47b;
  --gold-dim: rgba(183, 164, 123, 0.5);
  --line: rgba(226, 230, 232, 0.36);
  --line-soft: rgba(226, 230, 232, 0.13);

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;

  --wide: min(1180px, 90vw);
  --narrow: min(720px, 90vw);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --arrive: 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

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

html {
  color-scheme: dark;
  background: var(--background);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 72% 22%, rgba(170, 174, 177, 0.1), transparent 38%),
    radial-gradient(ellipse at 42% 100%, rgba(82, 85, 88, 0.12), transparent 55%),
    var(--background);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gold);
  color: #050505;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 250ms var(--ease), opacity 250ms var(--ease);
}
a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- type ---- */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(34px, 5vw, 64px);
}
h2 {
  font-size: clamp(24px, 3.4vw, 38px);
}
h3 {
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1em;
}

.eyebrow,
.ai-head {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.lede {
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.68;
}

.dim {
  color: var(--faint);
  font-size: 14px;
  line-height: 1.66;
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
}

code {
  font-family: var(--sans);
  font-size: 0.92em;
  color: var(--gold);
  letter-spacing: 0.02em;
}

hr.rule {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 0;
}

/* ---- layout ---- */
.wrap {
  width: var(--wide);
  margin: 0 auto;
}
.wrap-narrow {
  width: var(--narrow);
  margin: 0 auto;
}

section {
  padding: clamp(64px, 9vw, 128px) 0;
}
section + section {
  border-top: 1px solid var(--line-soft);
}

.shell {
  position: relative;
  isolation: isolate;
}

/* ---- top bar ---- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.masthead-in {
  width: var(--wide);
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}
.brand img {
  height: 22px;
  width: auto;
}
.brand span {
  color: var(--gold);
}

@media (max-width: 900px) {
  .masthead-in {
    gap: 16px;
  }
}

/* ---- buttons ---- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--text);
  font: 500 11px var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 250ms var(--ease), border-color 250ms var(--ease),
    background 250ms var(--ease);
}
.btn:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(183, 164, 123, 0.06);
}
.btn.gold {
  border-color: var(--gold);
  color: var(--gold);
}
.btn.gold:hover {
  background: rgba(183, 164, 123, 0.12);
}
.btn.ghost {
  color: var(--muted);
  border-color: var(--line-soft);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.3;
  pointer-events: none;
}

/* ---- cards ---- */
.grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--line-soft);
}
.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid > .card {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.card {
  padding: 34px 30px;
  background: none;
  transition: background 350ms var(--ease);
}
.card:hover {
  background: rgba(233, 230, 223, 0.02);
}
.card h3 {
  color: var(--text);
  margin: 0 0 14px;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.card .idx {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

/* ---- panel: a hairline box, not glass ---- */
.panel {
  padding: 30px;
  border: 1px solid var(--line-soft);
  background: rgba(233, 230, 223, 0.015);
}

/* ---- key/value rows ---- */
.rows {
  border-top: 1px solid var(--line-soft);
}
.rows > div {
  display: flex;
  gap: 20px;
  align-items: baseline;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.rows .k {
  color: var(--muted);
}
.rows .v {
  color: var(--text);
  text-align: right;
}

/* ---- feature list ---- */
.defs > article {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 22px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-soft);
}
.defs .no {
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  padding-top: 5px;
}
.defs h3 {
  color: var(--text);
  margin: 0 0 10px;
  font-size: 18px;
}
.defs p {
  margin: 0;
  max-width: 74ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.72;
}
.defs .note {
  margin-top: 10px;
  color: var(--faint);
  font-size: 13px;
}
@media (max-width: 620px) {
  .defs > article {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---- screenshot ---- */
.shot {
  margin: 0;
}
.shot-img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
}
.shot figcaption {
  max-width: 62ch;
  margin: 16px auto 0;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

/* ---- table ---- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
}
table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
th {
  color: var(--gold);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
td {
  color: var(--muted);
}
td:first-child {
  color: var(--text);
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
caption {
  padding: 0 0 14px;
  color: var(--faint);
  font-size: 13px;
  text-align: left;
}
.yes {
  color: var(--gold);
}
.no {
  color: rgba(233, 230, 223, 0.3);
}

/* ---- download packages ---- */
.pkg {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  border: 1px solid var(--line-soft);
  transition: border-color 350ms var(--ease), background 350ms var(--ease);
}
.pkg[data-state="ready"] {
  border-color: var(--gold-dim);
}
.pkg[data-state="missing"] {
  opacity: 0.62;
}
.pkg h3 {
  color: var(--text);
  margin: 0;
  font-size: 18px;
}
.pkg .meta {
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.pkg .status {
  font-size: 13px;
}

/* ---- forms ---- */
label.fld {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
label.fld > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
input,
textarea,
select {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: 300 15px var(--sans);
  outline: none;
  transition: border-color 250ms var(--ease);
}
input:focus,
textarea:focus,
select:focus {
  border-bottom-color: var(--gold);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--gold);
}
::placeholder {
  color: rgba(233, 230, 223, 0.3);
}

/* ---- notices ---- */
.notice {
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}
.notice.ok {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.notice.warn {
  border-color: rgba(183, 164, 123, 0.22);
  color: var(--muted);
}
.notice[hidden] {
  display: none;
}

/* ---- gate ---- */
.gate {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gate-card {
  width: min(420px, 90vw);
  text-align: center;
}
.gate-card h1 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 0.4em;
}
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
  text-align: left;
}
.gate-msg {
  min-height: 18px;
  color: var(--gold);
  font-size: 13px;
}
.lock {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 26px;
}
#private[hidden],
#gate[hidden] {
  display: none;
}
.session-note {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}


/* ---- reveal ----
   Gated behind .js so a visitor without scripting sees the whole page. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 99;
  padding: 10px 16px;
  border: 1px solid var(--gold);
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
/* ---- page title accent, mirroring the landing page's italic line ---- */
.serif.accent {
  margin: 14px 0 0;
  color: #aaa9a5;
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.3;
}
