/* ===== Design tokens ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f5fb;
  --surface: #ffffff;
  --text: #1a1830;
  --text-soft: #55516e;
  --border: #e7e4f2;
  --brand: #5b5bd6;
  --brand-2: #c05bd6;
  --brand-soft: #efeefc;
  --shadow: 0 20px 60px -20px rgba(43, 33, 90, 0.25);
  --radius: 18px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100e1c;
    --bg-alt: #17142a;
    --surface: #1a1730;
    --text: #f2f0ff;
    --text-soft: #a7a2c7;
    --border: #2a2648;
    --brand: #8a8af5;
    --brand-2: #d17ee6;
    --brand-soft: #211d3d;
    --shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
img { max-width: 100%; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

.grad-text {
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 700; color: var(--brand); margin: 0 0 0.8em;
}
.eyebrow.center { margin-top: 0; }

.lede { font-size: 1.15rem; color: var(--text-soft); max-width: 34em; }
.section-lede { font-size: 1.1rem; color: var(--text-soft); max-width: 40em; margin: 0 auto 2.5rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-store {
  background: #111; color: #fff; padding: 10px 20px;
}
@media (prefers-color-scheme: dark) { .btn-store { background: #fff; color: #111; } }
.btn-store .store-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.btn-store .store-txt small { font-size: 0.66rem; opacity: 0.85; }
.btn-store .store-txt strong { font-size: 1.05rem; font-weight: 700; }
.btn-store-lg { padding: 14px 26px; }
.btn-secondary { background: var(--brand-soft); color: var(--brand); }
.btn-ghost { border-color: var(--border); color: var(--text); padding: 9px 18px; }
.btn-ghost:hover { background: var(--brand-soft); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-mark { display: inline-flex; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--text-soft); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }
.nav .btn { color: var(--text); }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
}

/* ===== Hero ===== */
.hero { padding: clamp(48px, 8vw, 96px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy { max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.sub-note { font-size: 0.9rem; color: var(--text-soft); margin: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ===== Hero visual: device + timeline mockup ===== */
.hero-visual { position: relative; display: flex; justify-content: center; }
.glow {
  position: absolute; inset: -10% -5% -10% -5%; z-index: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 40%, transparent), transparent);
  filter: blur(40px); opacity: 0.5;
}
.device {
  position: relative; z-index: 1;
  width: min(560px, 94vw); aspect-ratio: 1194 / 801;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow); padding: 10px;
}
.app-shot {
  display: block; width: 100%; height: 100%;
  object-fit: cover; border-radius: 11px;
}

/* ===== Sections ===== */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }

/* ===== AI conversation showcase ===== */
.lede em { font-style: italic; color: var(--text); }
.convo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; margin-top: 12px; }
@media (max-width: 900px) { .convo-grid { grid-template-columns: 1fr; } }

.convo, .prose-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.convo-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); margin-bottom: 6px; }
.convo-title em { text-transform: none; letter-spacing: 0; }

.bubble {
  max-width: 88%; padding: 12px 16px; border-radius: 18px;
  font-size: 0.98rem; line-height: 1.5;
}
.bubble.user {
  align-self: flex-end; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border-bottom-right-radius: 6px;
}
.bubble.ai {
  align-self: flex-start; background: var(--brand-soft); color: var(--text);
  border-bottom-left-radius: 6px;
}
.bubble.saving {
  background: transparent; border: 1px dashed var(--border); color: var(--text-soft);
  font-size: 0.88rem; align-self: center; border-radius: 999px; padding: 8px 18px; margin-top: 4px;
}

.prose-sample {
  margin: 0; padding: 20px 22px; flex: 1;
  background: var(--bg-alt); border-left: 3px solid var(--brand); border-radius: 10px;
  font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; line-height: 1.7;
}
.prose-sample p { margin: 0 0 1em; }
.prose-sample p:last-child { margin-bottom: 0; }
.prose-tag { font-size: 0.82rem; color: var(--text-soft); display: flex; align-items: center; gap: 8px; }
.prose-tag::before { content: "✦"; color: var(--brand); }

/* ===== Feature cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 12px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px; background: var(--brand-soft);
}
.card h3 { margin-bottom: 0.35em; }
.card p { margin: 0; color: var(--text-soft); }

/* ===== Steps ===== */
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.step { flex: 1; min-width: 220px; max-width: 300px; text-align: center; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.step p { color: var(--text-soft); margin: 0; }
.step-line { flex: 0 0 40px; height: 2px; margin-top: 22px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); opacity: 0.4; align-self: flex-start; }
@media (max-width: 720px) { .step-line { display: none; } }

/* ===== Quotes ===== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.quote p { font-size: 1.05rem; margin: 0 0 18px; }
.quote footer { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-soft); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* ===== Final CTA ===== */
.final-cta { background: linear-gradient(160deg, var(--brand-soft), var(--bg)); }
.final-cta .btn-store { margin-top: 8px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0; background: var(--bg-alt); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand p { margin: 4px 0 0; color: var(--text-soft); font-size: 0.9rem; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { color: var(--text-soft); text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--text); }
.copyright { width: 100%; margin: 8px 0 0; color: var(--text-soft); font-size: 0.85rem; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
