:root {
  --cream: #fff7f2;
  --soft: #fbf7ff;
  --surface: #ffffff;
  --ink: #2f2c38;
  --body: #4a4a56;
  --muted: #5e5b68;
  --faint: #8a8694;
  --line: #ece7f3;
  --lavender: #c7b6ff;
  --lavender-deep: #6a56c8;
  --periwinkle: #a7b8ff;
  --blush: #ffc7d7;
  --teal: #b7e3db;
  --teal-deep: #2f8f82;
  --shadow: 0 8px 24px rgba(74, 74, 86, 0.08);
  --shadow-lg: 0 28px 70px rgba(74, 74, 86, 0.14);
  --radius: 20px;
  --header: 72px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input {
  font: inherit;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.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;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(255, 247, 242, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner,
.nav,
.brand,
.footer-grid,
.hero-actions,
.plan-price,
.habit-row,
.check-row,
.day-item,
.luma-actions,
.notify-form,
.store-row {
  display: flex;
  align-items: center;
}

.header-inner {
  justify-content: space-between;
  gap: 20px;
}

.brand {
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  gap: 22px;
}

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

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.btn-primary,
.nav a.btn-primary,
.legal a.btn-primary {
  background: var(--lavender);
  color: var(--ink);
}

.btn-primary:hover {
  filter: brightness(0.97);
}

.btn-secondary {
  background: transparent;
  border-color: #ddd6ea;
  color: var(--ink);
}

.btn:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
.faq-item button:focus-visible,
.nav-toggle:focus-visible,
.notify-form input:focus-visible {
  outline: 3px solid #8fa8f7;
  outline-offset: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 28px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.hero::before {
  width: 560px;
  height: 560px;
  right: -80px;
  top: -180px;
  background: radial-gradient(circle, rgba(199, 182, 255, 0.55), transparent 68%);
}

.hero::after {
  width: 420px;
  height: 420px;
  left: -120px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(183, 227, 219, 0.5), transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lavender-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
.phone-name,
.brand,
.plan-name {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
}

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

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.fine {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.stage {
  display: grid;
  place-items: center;
  min-height: 640px;
}

.phone {
  width: 320px;
  height: 660px;
  padding: 10px;
  border-radius: 40px;
  background: linear-gradient(180deg, #2a3148, #171a26);
  box-shadow: var(--shadow-lg);
}

.screen {
  height: 100%;
  background: var(--cream);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.status {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.screen-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 8px 16px 0;
}

.hello {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.phone-name {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.phone-date {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-card,
.luma-chip {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.mini-card {
  padding: 12px 12px 6px;
}

.mini-label,
.section-kicker {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-item {
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #f3eef8;
  font-size: 13px;
  color: var(--ink);
}

.day-item:first-of-type {
  border-top: 0;
}

.day-item time {
  width: 46px;
  color: var(--lavender-deep);
  font-size: 12px;
  font-weight: 600;
}

.habit-row,
.check-row {
  gap: 8px;
  margin: 10px 0 0;
}

.pill,
.stat {
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.pill {
  padding: 7px 10px;
  font-size: 12px;
  color: var(--ink);
}

.pill.is-done {
  background: #e7f7f3;
  color: #1d6b60;
}

.check-row {
  margin-top: 10px;
}

.stat {
  flex: 1;
  padding: 10px 12px;
  border-radius: 16px;
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  color: var(--ink);
  font-size: 13px;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.dots {
  color: var(--lavender-deep);
  letter-spacing: 2px;
}

.luma-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  color: var(--ink);
  font-size: 13px;
}

.luma-chip svg {
  width: 18px;
  height: 18px;
  color: var(--lavender-deep);
  flex: none;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: auto;
  padding: 8px 6px 12px;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
}

.tabs span {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--faint);
  font-size: 10px;
}

.tabs svg {
  width: 18px;
  height: 18px;
}

.tabs .is-on {
  color: var(--lavender-deep);
}

.section {
  padding: 84px 0;
}

.section-soft {
  background: var(--soft);
}

.section h2,
.legal h1,
.cta h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
}

.section-intro {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid,
.steps,
.plan-grid,
.faq-list {
  margin-top: 36px;
}

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

.feature,
.step,
.plan,
.faq-item,
.note,
.chat {
  background: var(--surface);
  border: 1px solid rgba(236, 231, 243, 0.9);
  box-shadow: var(--shadow);
}

.feature,
.step,
.plan {
  border-radius: var(--radius);
  padding: 22px;
}

.feature h3,
.step h3,
.plan h3,
.chat h3 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.feature p,
.step p,
.plan p,
.note p,
.chat p,
.legal p,
.legal li {
  margin: 0;
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--soft);
  color: var(--lavender-deep);
}

.icon svg,
.bubble svg {
  width: 22px;
  height: 22px;
}

.icon-teal {
  background: #eef8f6;
  color: var(--teal-deep);
}

.icon-blush {
  background: #fff1f5;
  color: #c45b78;
}

.icon-blue {
  background: #eef2ff;
  color: #4d66c8;
}

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

.step-no {
  color: var(--lavender-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.luma {
  background:
    radial-gradient(500px 240px at 90% 0%, rgba(143, 178, 255, 0.18), transparent 60%),
    #1e2230;
  color: #c4c1ce;
}

.luma h2,
.luma .section-intro,
.luma .section-kicker {
  color: #f6f4fa;
}

.luma .section-intro {
  color: #c4c1ce;
}

.luma .section-kicker {
  color: #b794ff;
}

.luma-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.chat .btn {
  cursor: default;
  pointer-events: none;
}

.chat {
  background: #232737;
  border-color: #353b50;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.bubble {
  max-width: 92%;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.45;
}

.bubble-user {
  margin-left: auto;
  background: #2b3042;
  color: #f6f4fa;
}

.bubble-luma {
  background: #171b28;
  color: #f6f4fa;
  border: 1px solid #353b50;
}

.luma-actions {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.luma .btn-primary {
  background: #b794ff;
}

.luma .btn-secondary {
  border-color: #353b50;
  color: #f6f4fa;
}

.note {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 28px;
  border-radius: 24px;
}

.note ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.note li + li {
  margin-top: 8px;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: stretch;
}

.plan-featured {
  background: var(--surface);
  border-color: #c7b6ff;
  box-shadow: 0 12px 32px rgba(106, 86, 200, 0.12);
}

.plan h3.plan-name {
  margin-top: 0;
  font-size: 32px;
}

.plan-flag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--lavender-deep);
  font-size: 12px;
  font-weight: 600;
}

.plan-price {
  gap: 8px;
  align-items: baseline;
  margin: 8px 0 14px;
  color: var(--ink);
}

.plan-price strong {
  font-family: var(--serif);
  font-size: 42px;
  letter-spacing: -0.03em;
}

.plan ul {
  margin: 0;
  padding-left: 18px;
}

.plan li + li {
  margin-top: 8px;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
}

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

.faq-item button {
  width: 100%;
  min-height: 60px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 600;
  cursor: pointer;
}

.faq-item button::after {
  content: "+";
  color: var(--lavender-deep);
  font-size: 22px;
  line-height: 1;
}

.faq-item button[aria-expanded="true"]::after {
  content: "–";
}

.faq-panel {
  padding: 0 18px 16px;
  color: var(--muted);
}

.cta {
  padding: 0 0 88px;
}

.cta-box {
  padding: 40px;
  border-radius: 28px;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(255, 199, 215, 0.45), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
}

.notify-form {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.notify-form input {
  flex: 1 1 240px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
}

.form-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status.is-error {
  color: #a14b62;
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  justify-content: space-between;
  gap: 18px 28px;
  align-items: flex-start;
}

.footer-brand p,
.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

.footer-brand p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-width: 560px;
  justify-content: flex-end;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.legal {
  padding: 36px 0 80px;
}

.legal-wrap {
  width: min(760px, calc(100% - 40px));
}

.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.legal-updated {
  margin-top: 10px;
  color: var(--faint);
}

.legal h2 {
  margin: 32px 0 8px;
  font-size: 22px;
}

.legal p + p,
.legal ul,
.legal ol {
  margin-top: 10px;
}

.legal ul,
.legal ol {
  padding-left: 20px;
  color: var(--muted);
}

.legal a {
  color: var(--lavender-deep);
}

@media (max-width: 980px) {
  .feature-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .luma-grid,
  .note,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .stage {
    min-height: 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(var(--header) - 8px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 8px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links {
    justify-content: flex-start;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .phone {
    width: 280px;
    height: 590px;
  }

  .cta-box {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
