:root {
  --bg:            #FAF4EE;
  --bg-warm:       #F3E9DF;
  --surface:       #FFFFFF;
  --ink:           #2C1F1A;
  --ink-soft:      #7A5C54;
  --line:          #E8DDD6;
  --coral:         #E8634A;
  --coral-dark:    #C44A32;
  --coral-tint:    #FBE9E5;
  --leaf:          #2ACE79;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn--sm  { padding: 9px 18px; font-size: 14px; }
.btn--lg  { padding: 16px 32px; font-size: 16px; }

.btn--solid {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
  box-shadow: 0 8px 22px rgba(232,99,74,0.28);
}
.btn--solid:hover { background: var(--coral-dark); border-color: var(--coral-dark); transform: translateY(-1px); }
.btn--solid.is-done { background: var(--leaf); border-color: var(--leaf); box-shadow: none; }

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--ink); background: rgba(44,31,26,0.06); }

.btn--outline {
  background: transparent;
  color: var(--coral-dark);
  border-color: var(--coral);
}
.btn--outline:hover { background: var(--coral-tint); }
.btn--outline.is-done { background: var(--leaf); border-color: var(--leaf); color: #fff; }

.btn__arrow { flex-shrink: 0; transition: transform .15s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-tint);
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  color: var(--ink-soft);
}
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 6px; margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-dark);
  background: var(--coral-tint);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero__title em { color: var(--coral); font-style: italic; }
.hero__sub {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.hero__or {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 0 2px;
}
.waitform {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.waitform input {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  outline: none;
  transition: border-color .15s ease;
  min-width: 0;
  width: 220px;
}
.waitform input:focus { border-color: var(--coral); }
.waitform input::placeholder { color: #b7a59c; }
.waitform__note {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Phone mock ---------- */
.hero__art {
  display: flex;
  justify-content: center;
  position: relative;
}
.phone {
  position: relative;
  width: 280px;
  background: #1b1411;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(44,31,26,0.32), 0 0 0 1px rgba(0,0,0,0.06);
  transform: rotate(-2deg);
  z-index: 1;
}
.phone__notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px;
  background: #1b1411;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone__screen {
  background: var(--bg);
  border-radius: 34px;
  padding: 38px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 540px;
}
.phone__glow {
  position: absolute;
  inset: 20% 10%;
  background: radial-gradient(ellipse at 50% 60%, rgba(232,99,74,0.22), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px;
}
.appbar__title { font-family: var(--serif); font-weight: 500; font-size: 18px; }
.appbar__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }

.ecard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(44,31,26,0.04);
}
.ecard--plan { border-color: rgba(232,99,74,0.22); }
.ecard--ghost { background: transparent; box-shadow: none; border-style: dashed; }
.ecard__row { display: flex; align-items: center; gap: 9px; }
.ecard__icon { font-size: 18px; }
.ecard__title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.ecard__title.soft { font-weight: 500; color: var(--ink-soft); }
.ecard__meta { font-size: 12px; color: var(--ink-soft); }
.ecard__tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 600;
  color: var(--coral-dark);
  background: var(--coral-tint);
  padding: 3px 10px; border-radius: 999px;
}
.ecard__pills { display: flex; gap: 6px; margin-top: 2px; }
.ecard__pill {
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-soft);
}
.ecard__pill--on { background: var(--coral); color: #fff; border-color: var(--coral); }
.ecard__avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}

.phone__install {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.phone__install-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--coral-tint);
  color: var(--coral-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- Install hint ---------- */
.install-hint {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.install-hint__inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 26px;
}
.install-hint__icon { font-size: 26px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.install-hint__inner strong { display: block; font-size: 16px; margin-bottom: 4px; }
.install-hint__inner p { font-size: 15px; color: var(--ink-soft); }
.install-hint__inner a { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Access gate ---------- */
.access-gate,
.access-unlocked { margin-top: 4px; }

.gate__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.gate__form { margin-bottom: 12px; }
.gate__input-wrap {
  display: flex;
  gap: 8px;
  max-width: 400px;
}
.gate__input-wrap input {
  flex: 1;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 13px 20px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  letter-spacing: 0.12em;
}
.gate__input-wrap input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-tint);
}
.gate__input-wrap input::placeholder { letter-spacing: 0; color: #b7a59c; }
.gate__error {
  font-size: 14px;
  color: var(--coral-dark);
  min-height: 20px;
  margin-top: 8px;
  padding-left: 4px;
}
.gate__none {
  font-size: 14px;
  color: var(--ink-soft);
}
.gate__none a {
  color: var(--coral-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Unlocked state */
@keyframes unlockReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.unlocked--animate {
  animation: unlockReveal 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.unlocked__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1a7a45;
  background: #e6f7ee;
  border: 1px solid #a8e6c3;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.unlocked__sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 36ch;
  margin-bottom: 20px;
}
.install-steps {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}
.install-step {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.install-step__n {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--coral-tint);
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.install-step strong { color: var(--ink); }
.gate__lock-again {
  margin-top: 18px;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.7;
}
.gate__lock-again:hover { opacity: 1; }

/* ---------- Idea ---------- */
.idea {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}
.idea__lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.idea__lead em { color: var(--coral); }
.idea__body {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto;
}
.idea__body strong { color: var(--ink); font-weight: 600; }

/* ---------- Features ---------- */
.features {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.section-head {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.section-head--center { text-align: center; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 28px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(44,31,26,0.08);
}
.feature__num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--coral);
}
.feature h3 {
  font-size: 21px;
  font-weight: 700;
  margin: 14px 0 8px;
  letter-spacing: -0.01em;
}
.feature p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }

/* ---------- How ---------- */
.how {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 24px;
}
.steps {
  max-width: var(--maxw);
  margin: 0 auto;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step { text-align: center; padding: 0 8px; }
.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 16px;
}
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 16px; max-width: 30ch; margin: 0 auto; }

/* ---------- Final CTA ---------- */
.cta {
  max-width: 720px;
  margin: 0 auto;
  padding: 90px 24px;
  text-align: center;
}
.cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.cta p { font-size: 18px; color: var(--ink-soft); margin-bottom: 32px; }
.waitform--center { margin: 0 auto; max-width: 460px; }
.waitform--center input { flex: 1; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 24px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
}
.footer__note { font-size: 14px; color: var(--ink-soft); }
.footer__note a { color: var(--coral-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 40px; }
  .hero__art { order: -1; }
  .phone { width: 250px; transform: rotate(0); }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .hero__or { display: none; }
  .waitform { flex-direction: column; width: 100%; }
  .waitform input { width: 100%; }
  .cta__actions { flex-direction: column; }
  .waitform--inline { flex-direction: column; }
  .waitform--inline input { width: 100%; }
  .nav__actions .btn--ghost { display: none; }
  .install-hint__inner { flex-direction: column; }
}
