:root {
  --ink: #151514;
  --muted: #62584e;
  --paper: #fbf1dc;
  --paper-soft: #fff8eb;
  --brown: #9a6a43;
  --brown-deep: #5b3424;
  --brown-light: #d5b084;
  --sage: #b9d2bf;
  --blue: #b7d2df;
  --rose: #e7ad9f;
  --green: #24493b;
  --line: rgba(21, 21, 20, 0.14);
  --shadow: 0 24px 60px rgba(55, 40, 27, 0.17);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

button,
input,
textarea {
  font: inherit;
}

.page {
  min-height: 100vh;
  background-image: url("assets/landing-hero-temple-calm-v1.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: clamp(10px, 1.6vw, 20px);
  padding: clamp(12px, 2vw, 24px) clamp(18px, 3.5vw, 44px) clamp(28px, 4vw, 52px);
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero::before {
  background-image: url("assets/landing-hero-temple-calm-v1.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(251, 241, 220, 0.84) 0%, rgba(251, 241, 220, 0.62) 32%, rgba(251, 241, 220, 0.16) 58%, rgba(251, 241, 220, 0) 100%),
    linear-gradient(180deg, rgba(251, 241, 220, 0.28) 0%, rgba(251, 241, 220, 0) 30%, rgba(66, 44, 29, 0.12) 100%);
}

.topbar,
.bottom-strip {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  width: clamp(210px, 24vw, 340px);
}

.logo-link img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(clamp(8px, 1.15vw, 15px));
}

.top-link,
.bottom-strip span,
.badge {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-link {
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 248, 235, 0.72);
  box-shadow: 0 10px 34px rgba(55, 40, 27, 0.08);
  cursor: pointer;
  transform: translateY(-7px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(100%, 810px);
  max-width: 54vw;
  margin: 0;
  padding: clamp(14px, 1.6vw, 26px) 0 clamp(6px, 1vw, 16px);
  text-align: left;
}

.badge {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 9px 14px;
  border: 1px solid rgba(91, 52, 36, 0.2);
  border-radius: 999px;
  color: var(--brown-deep);
  background: rgba(255, 248, 235, 0.66);
  box-shadow: 0 8px 26px rgba(55, 40, 27, 0.07);
}

.badge.small {
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  max-width: 820px;
  font-size: clamp(54px, 5.45vw, 86px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

.lede,
.partner-note {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(21px, 1.82vw, 28px);
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}

.partner-note {
  max-width: 410px;
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 750;
  line-height: 1.38;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  width: 100%;
  max-width: 410px;
  min-width: 0;
  margin-top: 0;
  padding: 0 34px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--paper-soft);
  background: var(--ink);
  box-shadow: 0 16px 38px rgba(55, 40, 27, 0.2);
  cursor: pointer;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 24px;
  letter-spacing: 0;
  font-weight: 900;
}

.lower-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(330px, 410px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(28px, 4.8vw, 72px);
  width: 100%;
  margin: 0;
}

.partner-action {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 132px;
}

.benefit-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  grid-auto-rows: 1fr;
  align-items: stretch;
  align-content: stretch;
  justify-content: end;
  gap: 10px;
  justify-self: end;
  max-width: 960px;
  width: min(100%, 960px);
  height: 100%;
  margin: 0;
  transform: none;
}

.benefit-card {
  height: 100%;
  min-height: 132px;
  padding: 14px 16px 15px;
  border: 1px solid rgba(21, 21, 20, 0.18);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.64);
  box-shadow: 0 18px 46px rgba(55, 40, 27, 0.11);
  backdrop-filter: blur(10px);
}

.benefit-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--brown-deep);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.benefit-card p {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 1.55vw, 25px);
  line-height: 1.08;
}

.costs {
  background: rgba(255, 248, 235, 0.7);
}

.calm {
  background: rgba(185, 210, 191, 0.64);
}

.clarity {
  color: var(--ink);
  background: rgba(251, 241, 220, 0.58);
}

.clarity span {
  color: var(--brown-deep);
}

.bottom-strip {
  display: none;
  position: relative;
  z-index: 1;
  justify-content: center;
  padding-top: 10px;
  border-top: 1px solid rgba(21, 21, 20, 0.22);
  text-align: center;
}

.bottom-strip span {
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 18px;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 20, 0.42);
}

.waitlist-card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: clamp(24px, 4vw, 36px);
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper-soft);
  box-shadow: 0 28px 90px rgba(21, 21, 20, 0.24);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.waitlist-card h2 {
  max-width: 430px;
  margin: 0 0 22px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 400;
  line-height: 0.92;
}

.waitlist-form {
  display: grid;
  gap: 13px;
}

.waitlist-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.waitlist-form input,
.waitlist-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffef8;
}

.waitlist-form input:focus,
.waitlist-form textarea:focus {
  outline: 2px solid rgba(154, 106, 67, 0.25);
  border-color: var(--brown);
}

.submit-button {
  min-height: 52px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--paper-soft);
  background: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.form-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.privacy-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hidden-frame {
  display: none;
}

.modal-open {
  overflow: hidden;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 20px;
}

.legal-logo {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-page h1 {
  margin-bottom: 28px;
  font-size: clamp(48px, 7vw, 82px);
}

.legal-page p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.legal-page a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1240px) {
  .page {
    background-position: 64% center;
    background-size: auto 103%;
  }

  .hero::before {
    background-position: 64% center;
    background-size: auto 103%;
  }

  .lower-row {
    grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
    gap: clamp(18px, 2.8vw, 34px);
  }

  .partner-action,
  .benefit-card {
    min-height: 122px;
  }

  .cta {
    padding: 0 24px;
    font-size: 22px;
  }

  .benefit-card {
    padding: 13px 14px 14px;
  }

  .benefit-card span {
    font-size: 11px;
  }

  .benefit-card p {
    font-size: clamp(18px, 1.58vw, 22px);
  }
}

@media (max-width: 1060px) {
  .hero {
    align-content: start;
    gap: clamp(14px, 2.2vw, 22px);
    padding: clamp(14px, 2.4vw, 26px) clamp(24px, 5vw, 48px) clamp(36px, 5vw, 56px);
  }

  .page {
    background-position: 66% center;
    background-size: cover;
  }

  .hero::before {
    background-position: 66% center;
    background-size: cover;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(251, 241, 220, 0.92) 0%, rgba(251, 241, 220, 0.76) 58%, rgba(251, 241, 220, 0.2) 100%),
      linear-gradient(180deg, rgba(251, 241, 220, 0.22) 0%, rgba(251, 241, 220, 0.02) 56%, rgba(66, 44, 29, 0.12) 100%);
  }

  .hero-copy {
    justify-self: center;
    align-self: center;
    width: min(100%, 900px);
    max-width: 900px;
    padding-top: clamp(10px, 3vh, 32px);
    text-align: center;
  }

  .badge {
    margin-inline: auto;
  }

  h1 {
    max-width: 880px;
    margin-inline: auto;
    font-size: clamp(52px, 7vw, 74px);
  }

  .lede {
    max-width: 780px;
    margin-inline: auto;
  }

  .lower-row {
    grid-template-columns: 1fr;
    justify-self: center;
    gap: 14px;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
  }

  .partner-action {
    min-height: auto;
    align-items: center;
    gap: 14px;
    text-align: center;
  }

  .partner-note {
    max-width: 780px;
  }

  .cta {
    max-width: 520px;
  }

  .benefit-row {
    position: relative;
    left: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    max-width: 820px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    transform: none;
  }

  .benefit-card {
    height: auto;
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .hero {
    gap: 10px;
    padding-bottom: 34px;
  }

  .hero-copy,
  .lower-row,
  .benefit-row {
    max-width: 720px;
  }

  .hero-copy {
    padding-top: 6px;
  }

  h1 {
    max-width: 760px;
    font-size: clamp(44px, 6.2vw, 58px);
  }

  .lede {
    margin-top: 12px;
    font-size: clamp(18px, 2.2vw, 21px);
  }

  .lower-row {
    gap: 10px;
  }

  .partner-action {
    gap: 10px;
  }

  .partner-note {
    font-size: 14px;
  }

  .cta {
    min-height: 52px;
  }

  .benefit-row {
    gap: 9px;
  }

  .benefit-card {
    padding: 12px 14px 13px;
  }

  .benefit-card p {
    font-size: 18px;
    line-height: 1.06;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
    background-color: var(--paper);
    background-image: url("assets/landing-hero-temple-calm-v1.png");
    background-position: 88% top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }

  .page {
    overflow-x: hidden;
    background: transparent;
  }

  .hero {
    display: block;
    min-height: 100svh;
    padding: 18px 18px 26px;
    overflow: visible;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(251, 241, 220, 0.34) 0%, rgba(251, 241, 220, 0.66) 28%, rgba(251, 241, 220, 0.62) 70%, rgba(251, 241, 220, 0.14) 100%),
      linear-gradient(90deg, rgba(251, 241, 220, 0.86) 0%, rgba(251, 241, 220, 0.54) 58%, rgba(251, 241, 220, 0.14) 100%);
  }

  .topbar,
  .bottom-strip {
    align-items: center;
    flex-direction: column;
    justify-content: center;
  }

  .top-link {
    display: none;
  }

  .logo-link {
    width: min(72vw, 282px);
    margin-inline: auto;
  }

  .logo-link img {
    transform: translateY(4px);
  }

  .hero::before {
    display: none;
  }

  .hero-copy {
    width: 100%;
    max-width: 372px;
    min-width: 0;
    margin: 28px auto 0;
    padding: 0;
    text-align: center;
  }

  .badge {
    margin: 0 auto 13px;
    padding: 8px 12px;
    max-width: 100%;
    font-size: 11px;
    white-space: normal;
    text-align: center;
  }

  h1 {
    width: 100%;
    max-width: 372px;
    margin-inline: auto;
    font-size: clamp(40px, 10vw, 46px);
    line-height: 0.96;
    overflow-wrap: normal;
  }

  .lede {
    max-width: 368px;
    margin: 14px auto 0;
    font-size: 19px;
    line-height: 1.18;
  }

  .lower-row {
    display: grid;
    width: 100%;
    max-width: 372px;
    margin: 24px auto 0;
    gap: 12px;
    justify-items: center;
  }

  .partner-action {
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
  }

  .partner-note {
    max-width: 360px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.32;
  }

  .cta {
    width: 100%;
    max-width: 372px;
    min-height: 54px;
    min-width: 0;
    padding: 0 18px;
    font-size: 23px;
  }

  .benefit-row {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    justify-content: center;
    max-width: 372px;
    justify-self: center;
    justify-items: center;
    gap: 9px;
    margin-top: 0;
  }

  .benefit-card {
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 14px 14px 15px;
    background: rgba(255, 248, 235, 0.76);
    backdrop-filter: blur(12px);
  }

  .benefit-card span {
    margin-bottom: 7px;
    font-size: 11px;
  }

  .benefit-card p {
    font-size: 20px;
    line-height: 1.08;
  }

  .calm {
    background: rgba(185, 210, 191, 0.74);
  }
}

@media (max-width: 420px) {
  .hero {
    padding: 16px 14px 24px;
  }

  .logo-link {
    width: min(70vw, 258px);
  }

  .hero-copy {
    max-width: 100%;
    margin-top: 24px;
  }

  .badge {
    font-size: 10.5px;
  }

  h1 {
    max-width: 350px;
    font-size: clamp(38px, 9.8vw, 41px);
    line-height: 0.98;
  }

  .lede {
    max-width: 344px;
    font-size: 18px;
  }

  .lower-row,
  .benefit-row {
    max-width: 100%;
  }

  .partner-note {
    max-width: 344px;
    font-size: 13px;
  }

  .cta {
    font-size: 22px;
  }

  .benefit-card p {
    font-size: 19px;
  }
}
