:root {
  --bg: #f9eef1;
  --surface: #ffffff;
  --text: #1f1d1a;
  --muted: #7a746d;
  --line: #e8d8dc;
  --accent: #7B1E3A;
  --accent-hover: #5E162C;
  --button: #7B1E3A;
  --button-text: #fff;

  --font-size-logo: 68px;
  --font-weight-logo: 300;
  --letter-gap: 0.18em;

  --stroke-width: 4px;
  --branch-length: 22px;
  --branch-angle: 50deg;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  min-height: 100vh;
}

.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 24px 48px;
  text-align: center;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: var(--letter-gap);
  color: var(--text);
  font-size: var(--font-size-logo);
  font-weight: var(--font-weight-logo);
  line-height: 1;
  padding-bottom: 52px;
  margin-bottom: 8px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wordmark > span {
  display: inline-block;
}

.roots-t-wrap {
  position: relative;
  display: inline-block;
  min-width: 0.7em;
  line-height: 1;
}

.roots-t-char {
  display: inline-block;
}

.root-branch {
  position: absolute;
  left: 50%;
  top: calc(100% - 0.2em);
  width: var(--branch-length);
  height: var(--stroke-width);
  background: currentColor;
}

.root-branch--left {
  transform-origin: right center;
  transform: translateX(-100%) rotate(calc(-1 * var(--branch-angle)));
}

.root-branch--right {
  transform-origin: left center;
  transform: rotate(var(--branch-angle));
}

h1 {
  margin: 16px 0 8px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.subtext {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 29, 26, 0.3);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border: none;
  border-radius: 24px;
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 380px;
  margin: 24px;
  position: relative;
}

.modal h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.modal > p {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 4px;
}

.modal-close:hover {
  color: var(--text);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.waitlist-form input {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.waitlist-form input:focus {
  border-color: var(--accent);
}

.waitlist-form input::placeholder {
  color: var(--muted);
}

.waitlist-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.t-mark {
  display: inline-block;
  height: 1.15em;
  width: auto;
  vertical-align: -0.28em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: 0.2s ease;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--button-text);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.section {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid #e8dede;
  border-radius: 20px;
  padding: 28px 24px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.footer {
  padding: 0 24px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 800px) {
  .section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 72px;
  }

  .wordmark {
    font-size: 52px;
  }
}
