:root {
  color-scheme: dark;
  --page-bg: #06070a;
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --muted-text: rgba(245, 244, 239, 0.72);
  --button-text: #0c0f10;
  --page-padding: clamp(1.25rem, 2vw, 2rem);
  --display-font: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --body-font: "Newsreader", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(185, 255, 79, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(76, 255, 198, 0.08), transparent 28%),
    linear-gradient(180deg, #0b0d11 0%, #06070a 100%);
  color: #f5f4ef;
  font-family: var(--body-font);
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
}

.shell {
  width: min(1100px, calc(100% - (var(--page-padding) * 2)));
  margin: 0 auto;
  padding: clamp(2rem, 3vw, 3rem) 0 4rem;
}

.shell--home {
  display: grid;
  gap: 2rem;
  align-content: center;
}

.shell--tenant {
  display: grid;
  gap: 1.5rem;
}

.shell--thank-you {
  display: grid;
  align-content: center;
  min-height: 100vh;
}

.masthead,
.tenant-hero,
.panel,
.consent-banner,
.info-card {
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: rgba(9, 10, 14, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: var(--panel-shadow);
}

.masthead,
.tenant-hero {
  padding: clamp(1.75rem, 3vw, 3rem);
}

.tenant-hero {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 0.9fr);
}

.tenant-hero__meta {
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.eyebrow,
.meta-kicker,
.panel__eyebrow,
.consent-banner__eyebrow,
.info-card__label {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--display-font);
  font-size: 0.78rem;
  color: var(--wf-eyebrow, #b9ff4f);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
  font-family: var(--display-font);
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.6rem);
  max-width: 13ch;
}

h1 span {
  color: var(--wf-accent, #b9ff4f);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

h3 {
  font-size: 1.4rem;
}

.lede,
.panel__note,
.info-card p,
.embed-shell__placeholder p,
.meta-value,
.consent-banner__status,
.context-list dd,
.tenant-hero__meta p:last-child {
  color: var(--muted-text);
}

.lede,
.panel__note {
  max-width: 60ch;
  font-size: 1.15rem;
  line-height: 1.55;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button,
.text-link {
  font-family: var(--display-font);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--wf-accent, #b9ff4f);
  color: var(--button-text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, border-color 120ms ease;
}

.button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.button--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f5f4ef;
}

.home-grid,
.panel-grid {
  display: grid;
  gap: 1rem;
}

.home-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.info-card,
.panel,
.consent-banner {
  padding: 1.25rem;
}

.panel__header {
  margin-bottom: 1rem;
}

.native-form {
  display: grid;
  gap: 1rem;
}

.native-form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.native-form__actions {
  display: grid;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.field__label {
  font-family: var(--display-font);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.field__helper {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.95rem;
}

.field input,
.field select {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: #f5f4ef;
  font: inherit;
}

.field input::placeholder {
  color: rgba(245, 244, 239, 0.48);
}

.field select option {
  color: #111111;
}

.field--checkbox input {
  width: 1.1rem;
  min-height: 1.1rem;
  margin-top: 0.15rem;
}

.form-errors {
  padding: 1rem 1rem 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 123, 123, 0.36);
  background: rgba(151, 36, 36, 0.18);
}

.form-errors__title {
  margin: 0 0 0.45rem;
  font-family: var(--display-font);
  color: #ffb1b1;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #ffd7d7;
}

.embed-shell {
  min-height: 280px;
  padding: 1rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(185, 255, 79, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(185, 255, 79, 0.24);
}

.embed-shell__placeholder {
  display: grid;
  gap: 0.8rem;
}

.embed-shell__eyebrow {
  margin: 0;
  font-family: var(--display-font);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--wf-accent, #b9ff4f);
}

.context-list {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.context-list dt {
  margin: 0 0 0.35rem;
  font-family: var(--display-font);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.context-list dd,
.meta-value {
  margin: 0;
  font-size: 1rem;
}

.consent-banner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.consent-banner__copy p {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.text-link {
  color: #f5f4ef;
  opacity: 0.82;
}

body[data-consent-state="accepted"] .consent-banner {
  border-color: rgba(185, 255, 79, 0.35);
}

body[data-consent-state="rejected"] .consent-banner {
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
  .tenant-hero,
  .home-grid,
  .panel-grid,
  .consent-banner {
    grid-template-columns: 1fr;
  }

  .native-form__grid {
    grid-template-columns: 1fr;
  }

  .consent-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1.2rem, 100%);
    padding-bottom: 2.5rem;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .button,
  .text-link {
    width: 100%;
  }

  .consent-banner__actions {
    width: 100%;
  }
}
