:root {
  color-scheme: light;
  --paper: #fbf7ee;
  --paper-2: #f1eee4;
  --surface: #fffdf8;
  --ink: #151b18;
  --muted: #58625c;
  --soft: #7d857f;
  --line: rgba(21, 27, 24, 0.14);
  --line-strong: rgba(21, 27, 24, 0.24);
  --mint: #77ddbe;
  --mint-soft: #e4f8ee;
  --coral: #ff9a75;
  --coral-soft: #ffe8dd;
  --butter: #ffd96a;
  --butter-soft: #fff3bf;
  --teal: #173f38;
  --teal-2: #0d2f2a;
  --sky: #cfeaf0;
  --shadow: 0 28px 80px rgba(20, 24, 21, 0.14);
  --clay-shadow: 0 8px 0 rgba(21, 27, 24, 0.08), 0 24px 54px rgba(21, 27, 24, 0.08);
  --site-width: 1080px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 217, 106, 0.24), transparent 26rem),
    radial-gradient(circle at 92% 36%, rgba(119, 221, 190, 0.18), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a { color: inherit; }

h1,
h2,
h3,
p { margin-top: 0; }

.site-header,
.hero-inner,
.section,
.site-footer {
  width: min(var(--site-width), calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 0;
}

.home-page .site-header {
  position: absolute;
  top: 18px;
  right: 0;
  left: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(9, 24, 21, 0.24);
  color: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.home-page .site-header nav a { color: rgba(255, 255, 255, 0.82); }
nav a:hover { color: var(--ink); }
.home-page .site-header nav a:hover { color: #fff; }

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 88svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--teal-2);
}

.hero-backdrop,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-backdrop {
  background: url("/assets/hero-diorama.jpg") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 18, 16, 0.82) 0%, rgba(10, 18, 16, 0.58) 36%, rgba(10, 18, 16, 0.18) 68%, rgba(10, 18, 16, 0.48) 100%),
    linear-gradient(180deg, rgba(10, 18, 16, 0.18) 0%, rgba(10, 18, 16, 0.1) 48%, rgba(10, 18, 16, 0.72) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  align-items: end;
  gap: 44px;
  min-height: inherit;
  padding: clamp(112px, 16svh, 154px) 0 44px;
}

.hero-copy {
  max-width: 610px;
  padding-bottom: clamp(34px, 8svh, 82px);
  color: #fff;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.home-page .hero .eyebrow {
  color: var(--butter);
}

.hero h1 {
  margin-bottom: 14px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(68px, 12vw, 142px);
  line-height: 0.82;
  font-weight: 700;
}

.lede {
  max-width: 480px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.18;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.actions.compact {
  align-items: stretch;
  margin-top: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(21, 27, 24, 0.15);
}

.button.primary {
  background: var(--mint);
}

.button.secondary {
  background: var(--surface);
}

.button.glass {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  backdrop-filter: blur(12px);
}

.hero-note {
  max-width: 380px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 750;
}

.subtitle-stage {
  position: relative;
  min-height: 260px;
}

.subtitle-stack {
  position: absolute;
  right: 0;
  bottom: clamp(16px, 4svh, 48px);
  width: min(520px, 100%);
  text-align: center;
}

.subtitle-stack p {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(4, 10, 9, 0.82);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.subtitle-stack p:first-child {
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 950;
}

.subtitle-stack p + p {
  margin-top: 5px;
  color: #c9fbe9;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 850;
}

.lookup-popover {
  position: absolute;
  right: 28px;
  bottom: clamp(126px, 18svh, 170px);
  width: min(238px, calc(100% - 28px));
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(251, 247, 238, 0.82);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(1.2);
}

.lookup-popover::after {
  content: "";
  position: absolute;
  right: 36px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(251, 247, 238, 0.82);
  transform: rotate(45deg);
}

.term,
.meaning {
  display: block;
}

.term {
  font-size: 19px;
  font-weight: 950;
}

.meaning {
  margin-top: 3px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.section {
  padding: 88px 0 0;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 28px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section h2,
.legal-card h1 {
  margin-bottom: 12px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5.3vw, 66px);
  line-height: 0.95;
  font-weight: 700;
}

.section h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.12;
}

.section p,
.bento-card p,
.price-card li,
.faq p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.section-heading > p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  font-size: 18px;
}

.centered > p:last-child {
  margin-right: auto;
  margin-left: auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(190px, auto);
  gap: 14px;
}

.bento-card,
.price-card,
.faq details,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--clay-shadow);
}

.bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  padding: 22px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.bento-card.wide {
  grid-column: span 2;
}

.bento-card.tall {
  grid-row: span 2;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border: 1px solid rgba(21, 27, 24, 0.12);
  border-radius: 8px;
  background: #fff;
  color: var(--teal);
  font-weight: 950;
  box-shadow: inset 0 -5px 0 rgba(21, 27, 24, 0.05);
}

.bento-card h3,
.bento-card p {
  margin-bottom: 0;
}

.mint-card {
  background: linear-gradient(145deg, var(--mint-soft), rgba(255, 253, 248, 0.92));
}

.coral-card {
  background: linear-gradient(145deg, var(--coral-soft), rgba(255, 253, 248, 0.92));
}

.butter-card {
  background: linear-gradient(145deg, var(--butter-soft), rgba(255, 253, 248, 0.94));
}

.dark-card {
  background:
    radial-gradient(circle at 80% 14%, rgba(119, 221, 190, 0.16), transparent 12rem),
    var(--teal-2);
  color: #fff;
}

.dark-card .card-icon {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: var(--butter);
}

.dark-card p {
  color: rgba(255, 255, 255, 0.76);
}

.privacy-strip {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 32px;
  align-items: start;
}

.privacy-strip > p {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(207, 234, 240, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 28px;
}

.premium-card {
  border-color: rgba(23, 63, 56, 0.28);
  background:
    linear-gradient(155deg, rgba(119, 221, 190, 0.28), rgba(255, 253, 248, 0.92) 48%, rgba(255, 217, 106, 0.28)),
    var(--surface);
}

.price {
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: 56px;
  line-height: 1;
  font-weight: 950;
}

.price span {
  color: var(--muted);
  font-size: 18px;
}

.price-note,
.microcopy {
  color: var(--soft);
  font-size: 14px;
  font-weight: 780;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 28px;
}

.price-card li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: inset 0 -3px 0 rgba(21, 27, 24, 0.1);
}

.price-card li::after {
  content: "";
  position: absolute;
  top: calc(0.45em + 4px);
  left: 5px;
  width: 6px;
  height: 3px;
  border-bottom: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  transform: rotate(-45deg);
}

.price-card > .button {
  margin-top: auto;
}

.price-card .actions .button {
  flex: 1;
}

.microcopy {
  margin: 12px 0 0;
}

.faq {
  max-width: 800px;
}

.faq .section-heading {
  margin-bottom: 20px;
}

.faq details {
  box-shadow: none;
}

.faq details + details {
  margin-top: 10px;
}

.faq summary {
  cursor: pointer;
  padding: 18px;
  font-weight: 900;
}

.faq details p {
  margin: 0;
  padding: 0 18px 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 78px 0 34px;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer span {
  color: var(--muted);
}

.legal-main {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 76px;
}

.legal-card {
  padding: 34px;
  background: rgba(255, 253, 248, 0.9);
}

.legal-card h1 {
  font-size: 48px;
  line-height: 1.04;
}

.legal-card h2 {
  margin-top: 32px;
  margin-bottom: 8px;
  font: 900 22px/1.18 Inter, ui-sans-serif, system-ui, sans-serif;
}

.updated {
  color: var(--soft);
  font-weight: 800;
}

@media (max-width: 920px) {
  .home-page .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-inner,
  .privacy-strip,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(10, 18, 16, 0.76) 0%, rgba(10, 18, 16, 0.44) 44%, rgba(10, 18, 16, 0.76) 100%),
      linear-gradient(90deg, rgba(10, 18, 16, 0.54), rgba(10, 18, 16, 0.14));
  }

  .hero-copy {
    padding-bottom: 20px;
  }

  .subtitle-stage {
    min-height: 230px;
  }

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

  .bento-card.tall {
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  body { font-size: 15px; }

  .site-header,
  .hero-inner,
  .section,
  .site-footer,
  .legal-main {
    width: min(100% - 24px, var(--site-width));
  }

  .home-page .site-header {
    top: 12px;
    padding: 9px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 11px;
  }

  nav a {
    font-size: 13px;
  }

  .hero {
    min-height: 94svh;
  }

  .hero-backdrop {
    background-position: 58% center;
  }

  .hero-inner {
    gap: 14px;
    padding-top: 132px;
    padding-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(56px, 17vw, 72px);
  }

  .lede {
    font-size: 19px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 22px;
  }

  .button {
    width: 100%;
  }

  .hero-note {
    font-size: 13px;
  }

  .subtitle-stage {
    min-height: 210px;
  }

  .lookup-popover {
    right: 8px;
    bottom: 116px;
    width: min(230px, calc(100% - 8px));
  }

  .subtitle-stack {
    right: 0;
    bottom: 10px;
  }

  .subtitle-stack p:first-child {
    font-size: 17px;
  }

  .section {
    padding-top: 68px;
  }

  .section h2 {
    font-size: 40px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card.wide {
    grid-column: auto;
  }

  .privacy-strip {
    gap: 16px;
  }

  .price-card {
    min-height: 0;
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
    padding-top: 62px;
  }
}
