:root {
  --midnight: #0f172a;
  --slate: #334155;
  --cloud: #f8fafc;
  --silver: #cbd5e1;
  --white: #ffffff;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #ef4444;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cloud);
  color: var(--midnight);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
.hero,
.signal,
.section-band,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 132px;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--slate);
  font-size: 15px;
  font-weight: 600;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav [aria-current="page"] {
  color: var(--midnight);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero {
  min-height: calc(100vh - 152px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 72px;
  padding: 48px 0 72px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 10px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 24px 0 32px;
  color: var(--slate);
  font-size: 22px;
  line-height: 1.45;
}

.waitlist {
  max-width: 500px;
}

.waitlist label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 10px;
}

input,
button {
  height: 48px;
  border-radius: 8px;
  font: inherit;
  letter-spacing: 0;
}

input {
  width: 100%;
  border: 1px solid var(--silver);
  background: var(--white);
  color: var(--midnight);
  padding: 0 14px;
}

input:focus {
  outline: 3px solid rgba(16, 185, 129, 0.24);
  border-color: var(--emerald);
}

button {
  border: 0;
  background: var(--midnight);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  background: var(--midnight);
  color: var(--white);
  padding: 0 18px;
  font-weight: 700;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--silver);
  border-radius: 8px;
  background: var(--white);
  color: var(--midnight);
  font: inherit;
  letter-spacing: 0;
  padding: 12px 14px;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

.link-button {
  height: auto;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.form-message {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--slate);
  font-size: 14px;
}

.form-message.error {
  color: var(--rose);
}

.app-preview {
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  padding: 22px;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--slate);
  font-size: 14px;
  font-weight: 700;
}

.preview-top img {
  width: 42px;
  height: 42px;
}

.streak {
  display: grid;
  gap: 4px;
  margin: 34px 0 18px;
}

.streak-number {
  font-size: 68px;
  line-height: 0.95;
  font-weight: 800;
}

.progress-line {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--emerald);
}

.app-preview ul {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--slate);
}

.app-preview li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}

.app-preview li span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}

.app-preview li:first-child span {
  background: var(--emerald);
}

.app-preview li:last-child span {
  background: var(--rose);
}

.signal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 56px;
}

.signal article {
  display: grid;
  gap: 8px;
  min-height: 112px;
  border: 1px solid var(--silver);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
}

.signal strong {
  font-size: 18px;
}

.signal span {
  color: var(--slate);
  line-height: 1.45;
}

.section-band {
  padding: 64px 0;
  border-top: 1px solid var(--silver);
}

.page-hero {
  max-width: 860px;
  padding-top: 84px;
}

.page-hero h1 {
  max-width: 760px;
  font-size: 54px;
}

.page-hero p:last-child {
  max-width: 720px;
  color: var(--slate);
  font-size: 21px;
  line-height: 1.5;
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-head p,
.about-copy p {
  color: var(--slate);
  font-size: 18px;
  line-height: 1.55;
}

h2,
h3,
p {
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
}

h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 56px;
}

.about-copy {
  display: grid;
  gap: 16px;
}

.about-copy p {
  margin: 0;
}

.taxonomy-grid,
.product-grid,
.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.taxonomy-grid article,
.product-card,
.page-card {
  border: 1px solid var(--silver);
  border-radius: 8px;
  background: var(--white);
  padding: 20px;
}

.taxonomy-grid.single {
  grid-template-columns: 1fr;
}

.page-card {
  display: grid;
  gap: 8px;
  min-height: 120px;
}

a.page-card {
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

a.page-card:hover {
  border-color: var(--midnight);
  transform: translateY(-1px);
}

.page-card strong {
  font-size: 20px;
}

.page-card span {
  color: var(--slate);
  line-height: 1.5;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list.roomy {
  gap: 12px;
  margin-top: 18px;
}

.category-list {
  display: grid;
  gap: 16px;
}

.category-card {
  border: 1px solid var(--silver);
  border-radius: 8px;
  background: var(--white);
  padding: 20px;
}

.category-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.category-card-head h3 {
  margin: 0;
}

.category-card-head span {
  color: var(--slate);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.chip {
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--slate);
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
}

.product-card {
  display: grid;
  gap: 16px;
}

.product-card p {
  min-height: 48px;
  margin: 0;
  color: var(--slate);
  line-height: 1.5;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.product-price {
  color: var(--midnight);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.product-card button {
  width: 100%;
}

.checkout-message {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--slate);
  font-weight: 600;
}

.checkout-message.error {
  color: var(--rose);
}

.payment-panel {
  display: grid;
  gap: 16px;
  max-width: 640px;
  margin-top: 18px;
  border: 1px solid var(--silver);
  border-radius: 8px;
  background: var(--white);
  padding: 20px;
}

.payment-panel[hidden] {
  display: none;
}

.payment-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.payment-head .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
}

.payment-head strong {
  font-size: 22px;
  white-space: nowrap;
}

.payment-panel label {
  font-weight: 700;
}

#payment-element {
  min-height: 92px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.72);
  padding: 20px;
}

.age-gate[hidden] {
  display: none;
}

.age-dialog {
  width: min(520px, 100%);
  border: 1px solid var(--silver);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
  padding: 28px;
}

.age-dialog h2 {
  margin-bottom: 14px;
}

.age-dialog p:not(.eyebrow) {
  color: var(--slate);
  line-height: 1.55;
}

.age-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.age-actions a {
  color: var(--slate);
  font-weight: 700;
}

.admin-page {
  display: grid;
  gap: 24px;
}

.admin-head,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.admin-head {
  align-items: center;
}

.admin-login,
.admin-form,
.admin-panel {
  border: 1px solid var(--silver);
  border-radius: 8px;
  background: var(--white);
  padding: 20px;
}

.admin-login {
  max-width: 520px;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.check-row {
  display: flex !important;
  align-items: center;
  grid-template-columns: auto 1fr;
}

.check-row input {
  width: auto;
  height: auto;
}

.admin-panel {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

td > span {
  display: block;
  color: var(--slate);
  margin-top: 4px;
}

td input,
td textarea {
  min-width: 170px;
  margin-bottom: 8px;
}

td button {
  width: 100%;
  margin-bottom: 8px;
}

footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--silver);
  color: var(--slate);
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header,
  .hero,
  .signal,
  .section-band,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 0 44px;
  }

  h1 {
    font-size: 44px;
  }

  .lede {
    font-size: 19px;
  }

  .signal,
  .about,
  .taxonomy-grid,
  .product-grid,
  .page-grid,
  .admin-head,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .about {
    gap: 24px;
  }

  h2 {
    font-size: 30px;
  }

  .page-hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}
