/* ---------- design tokens (mirrors the app palette) ---------- */
:root {
  --cream-50: #fefcf8;
  --cream-100: #faf5e9;
  --cream-200: #f3ebde;
  --cream-300: #e6d9c4;
  --sage-100: #dce6e0;
  --sage-500: #7a9b8a;
  --sage-700: #56766a;
  --sage-900: #3a4f44;
  --terracotta-500: #d28a66;
  --terracotta-700: #7e4736;
  --butter-500: #f0d670;
  --ink-500: #6f6f6f;
  --ink-700: #4a4a4a;
  --ink-900: #2a2a2a;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(42, 42, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(42, 42, 42, 0.08);
  --shadow-lg: 0 24px 48px rgba(42, 42, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-sans:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    sans-serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
iframe {
  display: block;
  max-width: 100%;
}
button {
  font-family: inherit;
  cursor: pointer;
}
a {
  color: var(--sage-700);
  text-decoration: none;
}
a:hover {
  color: var(--sage-900);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.mobile-only {
  display: none;
}
@media (max-width: 640px) {
  .mobile-only {
    display: inline;
  }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(254, 252, 248, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--cream-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink-900);
}
.logo-emoji {
  font-size: 22px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-700);
}
.nav-links a:hover {
  color: var(--ink-900);
}
.nav-cta {
  background: var(--sage-500);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--sage-700);
  color: var(--white);
}
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.btn-primary {
  background: var(--sage-500);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--sage-700);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--cream-300);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--ink-900);
  border-color: var(--sage-500);
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--sage-700);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink-900);
}
.hero-title .accent {
  color: var(--sage-700);
  font-style: italic;
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-700);
  margin: 0 0 32px;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-fineprint {
  font-size: 13px;
  color: var(--ink-500);
  margin: 0;
}

/* ---------- phone frame ---------- */
.phone-frame {
  position: relative;
  width: 320px;
  height: 660px;
  border-radius: 44px;
  background: #1a1a1a;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}
.phone-frame-hero {
  transform: rotate(-3deg);
}
.phone-frame-demo {
  width: 360px;
  height: 740px;
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--cream-50);
  position: relative;
}
.phone-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.phone-screen-preview {
  padding: 40px 16px 16px;
}
.preview-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.preview-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--ink-500);
  padding: 0 4px;
}
.preview-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-200);
}
.preview-card-warm {
  background: #fdf6ec;
  border-color: #f3e2c2;
}
.preview-emoji {
  font-size: 20px;
  line-height: 1;
}
.preview-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.preview-body {
  font-size: 11px;
  color: var(--ink-500);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .hero {
    padding: 48px 0 64px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    display: flex;
    justify-content: center;
  }
  .phone-frame-hero {
    transform: none;
  }
}

/* ---------- social proof band ---------- */
.social {
  background: var(--sage-100);
  padding: 32px 0;
  text-align: center;
}
.social-text {
  font-size: 17px;
  color: var(--sage-900);
  margin: 0;
  line-height: 1.6;
}
.social-dim {
  color: var(--sage-700);
  font-weight: 400;
}

/* ---------- section header ---------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink-900);
}
.section-sub {
  font-size: 17px;
  color: var(--ink-700);
  margin: 0;
}

/* ---------- demo section ---------- */
.demo {
  padding: 96px 0;
  background: var(--cream-100);
}
.demo-frame {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.demo-tips h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--sage-700);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 16px;
}
.demo-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-tips li {
  padding-left: 20px;
  position: relative;
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.55;
}
.demo-tips li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-500);
}
.demo-tips strong {
  color: var(--ink-900);
  font-weight: 700;
}
@media (max-width: 900px) {
  .demo {
    padding: 64px 0;
  }
  .demo-frame {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- features ---------- */
.features {
  padding: 96px 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .features {
    padding: 64px 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--cream-200);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-emoji {
  font-size: 32px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 15px;
  color: var(--ink-700);
  margin: 0;
  line-height: 1.55;
}

/* ---------- waitlist ---------- */
.waitlist {
  padding: 96px 0;
  background: var(--cream-100);
}
.waitlist-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  border: 1px solid var(--cream-200);
  box-shadow: var(--shadow-md);
}
.waitlist-card h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.waitlist-card p {
  font-size: 16px;
  color: var(--ink-700);
  margin: 0 0 32px;
  line-height: 1.55;
}
.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}
.waitlist-form input {
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-300);
  background: var(--cream-50);
  font-size: 15px;
  color: var(--ink-900);
  font-family: inherit;
}
.waitlist-form input:focus {
  outline: none;
  border-color: var(--sage-500);
  box-shadow: 0 0 0 3px rgba(122, 155, 138, 0.15);
}
.waitlist-form button {
  border: 0;
  white-space: nowrap;
  padding: 14px 20px;
}
.waitlist-status {
  min-height: 24px;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--sage-700);
  font-weight: 500;
}
.waitlist-status.error {
  color: var(--terracotta-700);
}
@media (max-width: 640px) {
  .waitlist-card {
    padding: 40px 24px;
  }
  .waitlist-form {
    flex-direction: column;
  }
}

/* ---------- footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--cream-200);
  background: var(--cream-50);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-500);
}
.footer-meta a {
  color: var(--ink-700);
}
@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
