:root {
  --ink: #1d2b3a;
  --ink-soft: #4a5a68;
  --muted: #6b7a86;
  --cream: #fcf9f1;
  --cream-deep: #f3eee3;
  --surface: #fffcf7;
  --teal: #3d7f86;
  --teal-soft: #7fb1b4;
  --border: color-mix(in srgb, var(--ink) 12%, transparent);
  --shadow: 0 18px 40px color-mix(in srgb, var(--ink) 10%, transparent);
  font-family: Nunito, ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; }
body.has-bg { background: transparent; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Full-bleed watercolor hero plane */
.page-bg {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: min(92vh, 920px);
  overflow: hidden;
  pointer-events: none;
}

.page-bg picture,
.page-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(252 249 241 / 0.18) 0%, transparent 32%, rgb(252 249 241 / 0.35) 72%, var(--cream) 100%),
    linear-gradient(90deg, rgb(252 249 241 / 0.42) 0%, rgb(252 249 241 / 0.12) 38%, transparent 62%);
}

.has-bg > :not(.page-bg):not(.waitlist-modal) { position: relative; z-index: 1; }

/* Interior pages: softer wash so long copy stays readable */
body.interior .page-bg {
  height: min(78vh, 780px);
}

body.interior .page-bg::after {
  background:
    linear-gradient(180deg, rgb(252 249 241 / 0.42) 0%, rgb(252 249 241 / 0.22) 38%, rgb(252 249 241 / 0.72) 78%, var(--cream) 100%),
    linear-gradient(90deg, rgb(252 249 241 / 0.5) 0%, rgb(252 249 241 / 0.18) 45%, transparent 70%);
}

/* Header */
.site-header,
header {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.brand-mark {
  width: min(152px, 36vw);
  height: auto;
}

.logo {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--teal);
  color: white;
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-weight: 700;
  color: var(--ink-soft);
}

.site-nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 750;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn.ghost,
.button.secondary {
  border-color: color-mix(in srgb, var(--ink) 18%, transparent);
  background: rgb(255 252 247 / 0.72);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn.ghost:hover,
.button.secondary:hover {
  background: white;
}

.btn.solid,
.button {
  background: var(--teal);
  color: white;
}

.btn.solid:hover,
.button:hover {
  background: color-mix(in srgb, var(--teal) 88%, black);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: rgb(255 252 247 / 0.8);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  gap: 4px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgb(255 252 247 / 0.94);
  backdrop-filter: blur(10px);
}

.mobile-nav:not([hidden]) {
  display: grid;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.mobile-nav a:hover { background: var(--cream-deep); }

/* Hero */
.hero {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: min(72vh, 720px);
  margin: 12px auto 0;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.78fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding-bottom: 48px;
}

.hero-copy {
  max-width: 560px;
  animation: rise-in 0.7s ease both;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5.4vw, 3.85rem);
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.65;
  font-weight: 600;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  position: relative;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge img {
  width: auto;
  height: 40px;
  display: block;
}

.store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.store-badge:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Waitlist modal */
body.waitlist-open {
  overflow: hidden;
}

.waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.waitlist-modal[hidden] {
  display: none !important;
}

.waitlist-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(29 43 58 / 0.28);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.waitlist-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 28px;
  background: var(--surface);
  padding: 32px 28px 28px;
  box-shadow: 0 30px 70px color-mix(in srgb, var(--ink) 18%, transparent);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.waitlist-modal.is-open .waitlist-backdrop {
  opacity: 1;
}

.waitlist-modal.is-open .waitlist-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.waitlist-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.waitlist-close:hover {
  background: var(--cream-deep);
  color: var(--ink);
}

.waitlist-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.waitlist-dialog h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
}

.waitlist-copy {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 600;
}

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

.waitlist-form input[type="email"] {
  width: 100%;
  border: 1.5px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: 16px;
  background: white;
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--teal-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal-soft) 28%, transparent);
}

.waitlist-form .btn {
  width: 100%;
  padding: 13px 16px;
}

.waitlist-form .btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.waitlist-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.waitlist-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 650;
}

.waitlist-status[data-kind="ok"] {
  color: var(--teal);
}

.waitlist-status[data-kind="error"] {
  color: #9a4a3c;
}

/* Phone screenshot frame */
.phone {
  margin: 0;
  justify-self: end;
  width: min(100%, 320px);
  animation: rise-in 0.85s 0.12s ease both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .phone {
    animation: none;
  }
}

.phone-bezel {
  position: relative;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, #2a3542, #111820);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgb(255 255 255 / 0.12);
}

.phone-island {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 2;
  width: 92px;
  height: 22px;
  border-radius: 99px;
  background: #0b1016;
  transform: translateX(-50%);
}

.phone-screen {
  overflow: hidden;
  border-radius: 32px;
  background: var(--cream);
  aspect-ratio: 780 / 1696;
}

.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* How it works */
.how {
  width: min(980px, calc(100% - 40px));
  margin: 56px auto 0;
  text-align: center;
}

.how h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.wave-rule {
  width: 72px;
  height: 10px;
  margin: 14px auto 40px;
  background:
    radial-gradient(circle at 10px 5px, var(--teal-soft) 0 4px, transparent 5px),
    radial-gradient(circle at 36px 5px, var(--teal-soft) 0 4px, transparent 5px),
    radial-gradient(circle at 62px 5px, var(--teal-soft) 0 4px, transparent 5px);
  opacity: 0.9;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-steps li {
  position: relative;
  padding: 8px 28px;
}

.how-steps li + li::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 0;
  border-left: 1.5px dashed color-mix(in srgb, var(--teal-soft) 55%, transparent);
}

.how-icon {
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
}

.how-steps h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.how-steps p {
  color: var(--muted);
  font-weight: 600;
}

/* Features */
.features {
  width: min(1180px, calc(100% - 40px));
  margin: 72px auto 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.feature-grid article {
  border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: 24px;
  background: var(--surface);
  padding: 22px 18px 24px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 5%, transparent);
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--teal-soft) 22%, white);
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 800;
}

.feature-grid h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-grid p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
}

.about {
  width: min(680px, calc(100% - 40px));
  margin: 88px auto 0;
  text-align: center;
}

.about h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.about p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 600;
}

/* Footer */
.site-footer,
footer {
  margin-top: 88px;
  padding: 56px 0 28px;
  background: var(--cream-deep);
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.footer-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--teal-soft) 25%, white);
  font-size: 1rem;
}

.footer-grid h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
}

.footer-grid p {
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-grid a {
  color: var(--teal);
  font-weight: 750;
}

.footer-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-legal {
  display: flex;
  gap: 18px;
}

.footer-legal a:hover,
footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer {
  text-align: center;
}

.site-footer {
  text-align: left;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, var(--teal-soft) 80%, transparent);
}

/* Interior content pages */
.page {
  width: min(860px, calc(100% - 40px));
  margin: 24px auto 0;
}

.page-wide {
  width: min(1100px, calc(100% - 40px));
}

.page-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  text-wrap: balance;
}

.page-intro {
  max-width: 42rem;
  margin: 0 0 40px;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.65;
  font-weight: 600;
}

.page-section {
  margin: 0 0 40px;
  padding: 28px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.page-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
}

.page-section p,
.page-section li {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 600;
}

.page-section p + p {
  margin-top: 12px;
}

.page-section ul {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

.page-section li {
  margin-bottom: 8px;
}

.step-cards {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 24px;
  background: var(--surface);
  padding: 22px 22px 24px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 4%, transparent);
}

.step-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.step-card p {
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.55;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}

.use-case-card {
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 24px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 4%, transparent);
}

.use-case-card h2 {
  margin: 10px 0 10px;
  font-size: 1.25rem;
}

.use-case-card p {
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.55;
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.home-links {
  display: grid;
  width: min(1100px, calc(100% - 40px));
  margin: 64px auto 0;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-links a {
  display: block;
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 22px;
  background: rgb(255 252 247 / 0.88);
  padding: 22px 20px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 4%, transparent);
  transition: transform 0.15s ease, background 0.15s ease;
}

.home-links a:hover {
  transform: translateY(-2px);
  background: white;
}

.home-links h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.how h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.home-more {
  margin-top: 28px;
  text-align: center;
  font-weight: 750;
}

.home-more a {
  color: var(--teal);
}

.home-more a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page a {
  color: var(--teal);
  font-weight: 750;
}

.page a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page .btn {
  color: inherit;
  font-weight: 750;
  text-decoration: none;
}

.page .btn.solid {
  color: white;
}

.page .btn:hover {
  text-decoration: none;
}

@media (max-width: 860px) {
  .use-case-grid,
  .home-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page,
  .page-wide {
    width: calc(100% - 28px);
  }
}

/* Legal pages */
.legal {
  width: min(680px, calc(100% - 40px));
  margin: 40px auto 80px;
}

.legal h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .site-nav { display: none; }
  .header-actions { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 18px;
    text-align: center;
  }

  .hero-copy {
    max-width: 36rem;
    margin: 0 auto;
  }

  .lede { margin-inline: auto; }
  .store-badges { justify-content: center; }

  .phone {
    justify-self: center;
    width: min(100%, 280px);
  }

  .page-bg {
    height: min(70vh, 640px);
  }

  body.interior .page-bg {
    height: min(58vh, 520px);
  }

  .page-bg::after {
    background:
      linear-gradient(180deg, rgb(252 249 241 / 0.35) 0%, rgb(252 249 241 / 0.2) 45%, var(--cream) 100%);
  }

  body.interior .page-bg::after {
    background:
      linear-gradient(180deg, rgb(252 249 241 / 0.5) 0%, rgb(252 249 241 / 0.35) 40%, var(--cream) 100%);
  }

  .how-steps { grid-template-columns: 1fr; gap: 28px; }
  .how-steps li + li::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header,
  header { width: calc(100% - 28px); }
}

/* Share / join deep-link landing */
.join-page {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 28px 20px;
}

.join-page .page-bg {
  height: 100%;
  position: fixed;
}

.join-page .page-bg::after {
  background:
    linear-gradient(180deg, rgb(252 249 241 / 0.28) 0%, rgb(252 249 241 / 0.55) 48%, var(--cream) 100%),
    linear-gradient(90deg, rgb(252 249 241 / 0.4) 0%, transparent 55%);
}

.join-card {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 40px 32px 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 92%, white);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.join-mark {
  width: min(200px, 72%);
  height: auto;
  margin: 0 auto 8px;
}

.join-card h1 {
  margin: 12px 0 10px;
  font-size: clamp(1.65rem, 5vw, 2rem);
}

.join-card p {
  margin: 0 auto 22px;
  max-width: 28ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.join-cta {
  display: flex;
  width: 100%;
  margin-top: 10px;
  padding: 14px 18px;
  font-size: 1rem;
  border-radius: 16px;
}

.join-card .btn.ghost {
  background: color-mix(in srgb, var(--surface) 70%, white);
  border-color: color-mix(in srgb, var(--ink) 16%, transparent);
}

.join-card small {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}
