:root {
  --bg: #0b0d12;
  --bg-2: #12161f;
  --panel: #161b26;
  --line: #2a3344;
  --text: #e8edf5;
  --muted: #8b95a8;
  --gold: #e8b86d;
  --green: #3ecf8e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --tap: 3rem;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
}

button,
a {
  font: inherit;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  border-radius: 0.28rem;
  background:
    linear-gradient(135deg, transparent 48%, var(--green) 48% 52%, transparent 52%),
    linear-gradient(#1b2433, #1b2433);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Buttons ---------- */

.btn-primary,
.btn-outline,
.btn-ghost,
.choice {
  min-height: var(--tap);
  border-radius: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  text-align: center;
}

.btn-primary {
  background: var(--green);
  color: #062315;
  border: 0;
}

.btn-outline {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost {
  width: 100%;
  padding: 0.8rem 1rem;
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

.btn-block {
  width: 100%;
}

/* ---------- Invite ---------- */

.invite {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 1.1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
}

.invite-bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(232, 184, 109, 0.16), transparent 45%),
    radial-gradient(ellipse at 90% 80%, rgba(62, 207, 142, 0.12), transparent 40%);
  pointer-events: none;
}

.invite-nav,
.legal {
  position: relative;
}

.invite-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.invite-card {
  position: relative;
  max-width: 30rem;
  width: 100%;
  margin: 1.25rem auto;
  padding: 1.5rem 1.2rem;
  background: rgba(18, 22, 31, 0.86);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  align-self: center;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 600;
  margin: 0 0 0.7rem;
}

.invite-card h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 7vw, 2.4rem);
  font-weight: 650;
  line-height: 1.15;
  margin: 0 0 0.8rem;
}

.lede {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 1.4rem;
}

.lede em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  margin: 0 0 1.4rem;
}

.meta div {
  margin: 0;
}

.meta dt {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.meta dd {
  margin: 0;
  font-weight: 500;
}

.fine-print,
.legal {
  color: var(--muted);
  font-size: 0.8rem;
}

.fine-print {
  text-align: center;
  margin: 0.85rem 0 0;
}

.legal {
  text-align: center;
  margin: 0;
}

/* ---------- Pad shell ---------- */

.pad {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.pad-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 22, 31, 0.92);
  backdrop-filter: blur(10px);
}

.pad-id {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.pad-main {
  flex: 1;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

/* ---------- Cards ---------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem 1rem;
}

.card h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.2;
  margin: 0 0 0.9rem;
}

.card-alt {
  background: transparent;
  border-style: dashed;
  padding: 0.6rem;
}

.alt-body {
  padding: 0.75rem 0.5rem 0.25rem;
}

.alt-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 650;
  margin: 0 0 0.8rem;
}

.alt-body .schedule {
  margin-bottom: 1rem;
}

/* ---------- Schedule ---------- */

.schedule {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: 0.7rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.step:first-child {
  border-top: 0;
  padding-top: 0;
}

.step:last-child {
  padding-bottom: 0;
}

.step-time {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
  padding-top: 0.2rem;
}

.step-title {
  font-weight: 600;
  line-height: 1.3;
}

.step-detail {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.step-key .step-time,
.step-key .step-title {
  color: var(--green);
}

/* ---------- Question ---------- */

.choices {
  display: grid;
  gap: 0.55rem;
}

.choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.8rem 0.95rem;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

.choice[aria-pressed="true"] {
  border-color: var(--green);
  background: rgba(62, 207, 142, 0.1);
}

.answer-note {
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ---------- Sticky actions ---------- */

.action-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  border-top: 1px solid var(--line);
  background: rgba(11, 13, 18, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
}

.action-bar-inner {
  max-width: 30rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

@media (max-width: 360px) {
  .step {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .action-bar-inner {
    grid-template-columns: 1fr;
  }
}
