:root {
  --brand: #E53834;
  --brand-dark: #AD1C20;
  --brand-deeper: #610E10;
  --brand-shadow: #2E0305;
  --coral: #F6857B;
  --blush: #FEECE8;
  --ink: #19191C;
  --charcoal: #26262B;
  --text: #1c1c1f;
  --muted: #6b6b74;
  --surface: #f7f6f5;
  --card: #ffffff;
  --radius: 20px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--card);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }

section { padding: 88px 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); }
.nav-brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--text); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff !important; font-weight: 700 !important;
  padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(229,56,52,.32);
}
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(246,133,123,.28), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(173,28,32,.55), transparent 60%),
    linear-gradient(150deg, var(--brand-shadow) 0%, var(--brand-deeper) 45%, var(--brand-dark) 100%);
  color: #fff;
  padding: 96px 0 110px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .eyebrow { color: var(--coral); }
.hero p.lede { font-size: 19px; color: rgba(255,255,255,.82); margin: 22px 0 34px; max-width: 54ch; }
.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-proof { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-proof div strong { display: block; font-size: 22px; }
.hero-proof div span { font-size: 13px; color: rgba(255,255,255,.65); }
.hero-icon-wrap { display: flex; justify-content: center; }
.hero-icon {
  width: min(340px, 70vw); border-radius: 22.5%;
  box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
}

.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px; padding: 10px 22px 10px 16px;
  transition: transform .15s ease;
}
.appstore-badge:hover { transform: scale(1.03); text-decoration: none; }
.appstore-badge svg { width: 28px; height: 32px; flex: none; }
.appstore-badge .badge-text small { display: block; font-size: 11px; opacity: .75; line-height: 1.1; }
.appstore-badge .badge-text strong { font-size: 19px; font-weight: 600; line-height: 1.15; }

.btn-secondary {
  display: inline-flex; align-items: center;
  color: #fff; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border: 1px solid rgba(255,255,255,.35); border-radius: 14px;
}
.btn-secondary:hover { background: rgba(255,255,255,.1); text-decoration: none; }

/* ---------- Section headers ---------- */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.alt { background: var(--surface); }

/* ---------- Screenshots / phone mockups ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1000px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .shots { grid-template-columns: 1fr; } }
.shot { margin: 0; }
.shot figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 14px; font-weight: 600; }

.shot-banner {
  background: linear-gradient(180deg, #C3271F 0%, var(--brand) 42%, #F0A79A 100%);
  border-radius: 26px; padding: 30px 26px 0;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  overflow: hidden;
}
.shot-banner .shot-word {
  color: #fff; text-align: center; line-height: 1.05;
  font-size: clamp(30px, 3vw, 40px); font-weight: 900; letter-spacing: -0.01em;
}
.shot-banner .shot-word small {
  display: block; font-size: .48em; font-weight: 800; letter-spacing: .06em; margin-top: 4px;
}
.shot-banner .mock-phone {
  width: 100%; max-width: 270px; margin-bottom: -40px;
  box-shadow: 0 18px 44px rgba(46,3,5,.4);
}

.mock-phone {
  background: var(--ink); border-radius: 34px; padding: 10px;
  box-shadow: 0 24px 60px rgba(25,25,28,.28);
  aspect-ratio: 9 / 18.5; display: flex;
}
.mock-screen {
  background: #fff; border-radius: 26px; flex: 1; overflow: hidden;
  display: flex; flex-direction: column; font-size: 10.5px;
}
.mock-screen.dark { background: var(--ink); color: #fff; }
.mock-status { display: flex; justify-content: space-between; padding: 8px 14px 2px; font-size: 9px; font-weight: 700; color: inherit; opacity: .9; }
.mock-title { font-size: 17px; font-weight: 800; padding: 8px 14px 2px; letter-spacing: -.02em; }
.mock-sub { padding: 0 14px 6px; color: #8a8a92; font-size: 9.5px; }
.mock-search {
  margin: 6px 12px; background: #f1f0f2; border-radius: 9px;
  padding: 6px 10px; color: #9a9aa2; display: flex; align-items: center; gap: 6px;
}
.mock-chips { display: flex; gap: 5px; padding: 6px 12px; flex-wrap: nowrap; overflow: hidden; }
.mock-chip { border: 1px solid #ddd; border-radius: 999px; padding: 3px 9px; white-space: nowrap; color: #444; }
.mock-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mock-card {
  margin: 5px 12px; background: #fff; border: 1px solid #eee; border-radius: 12px;
  padding: 8px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.mock-card .t { font-weight: 700; font-size: 11px; display: flex; justify-content: space-between; align-items: center; }
.mock-card .c { color: #8a8a92; font-size: 9px; margin-top: 2px; line-height: 1.35; }
.mock-card .tags { display: flex; gap: 4px; margin-top: 5px; }
.mock-tag { background: var(--blush); color: var(--brand); border-radius: 999px; padding: 1.5px 7px; font-weight: 700; font-size: 8px; }
.mock-heart { color: var(--brand); font-size: 10px; }
.mock-tabbar {
  margin-top: auto; display: flex; justify-content: space-around;
  border-top: 1px solid #eee; padding: 7px 4px 10px; background: #fff;
  color: #9a9aa2; font-size: 8px; text-align: center; font-weight: 600;
}
.mock-tabbar .on { color: var(--brand); }
.mock-tabbar span { display: block; font-size: 13px; margin-bottom: 1px; }
.mock-prompt-body {
  margin: 6px 12px; background: var(--ink); color: #fff; border-radius: 12px;
  padding: 10px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 9px; line-height: 1.5;
}
.mock-var { background: rgba(229,56,52,.9); border-radius: 4px; padding: 0 4px; font-weight: 700; }
.mock-fill { margin: 5px 12px; }
.mock-fill label { font-size: 8px; color: #8a8a92; display: block; }
.mock-fill .field { background: #f1f0f2; border-radius: 8px; padding: 5px 8px; margin-top: 2px; font-size: 9.5px; }
.mock-run {
  margin: 8px 12px; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; text-align: center; border-radius: 12px; padding: 9px;
  font-weight: 800; font-size: 10.5px; box-shadow: 0 6px 14px rgba(229,56,52,.35);
}
.mock-hero-card {
  margin: 8px 12px; border-radius: 14px; padding: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark), var(--brand-deeper));
  color: #fff;
}
.mock-hero-card .k { font-size: 8px; letter-spacing: 1px; opacity: .8; text-transform: uppercase; }
.mock-hero-card .v { font-weight: 800; font-size: 12px; margin-top: 2px; }
.mock-lesson { display: flex; gap: 8px; align-items: center; margin: 5px 12px; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 8px 10px; }
.mock-lesson .n { width: 20px; height: 20px; border-radius: 999px; background: var(--blush); color: var(--brand); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 9px; flex: none; }
.mock-lesson .lt { font-weight: 700; font-size: 10px; }
.mock-lesson .ls { color: #8a8a92; font-size: 8.5px; }
.mock-detail-hero {
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  color: #fff; padding: 12px 14px 14px; border-radius: 0 0 18px 18px;
}
.mock-detail-hero .cat {
  display: inline-block; background: rgba(255,255,255,.22); border-radius: 999px;
  padding: 2px 8px; font-size: 7.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
}
.mock-detail-hero .dt { font-size: 16px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.mock-detail-hero .dm { font-size: 8.5px; opacity: .85; margin-top: 4px; }
.mock-pills { display: flex; gap: 6px; padding: 8px 12px 2px; }
.mock-pill {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid #ddd; border-radius: 999px; padding: 5px 4px; font-weight: 700; font-size: 9px;
}
.mock-pill.on { border-color: var(--brand); color: var(--brand); }
.mock-pill .dot {
  width: 11px; height: 11px; border-radius: 4px; color: #fff; font-size: 7px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.mock-import-icon {
  width: 62px; height: 62px; border-radius: 999px; margin: 16px auto 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(229,56,52,.35);
}
.mock-center { text-align: center; padding: 0 16px; }
.mock-center .ct { font-size: 14px; font-weight: 800; }
.mock-center .cs { font-size: 9px; color: #8a8a92; margin-top: 3px; line-height: 1.45; }
.mock-steps { margin: 8px 12px; background: #f4f3f5; border-radius: 12px; padding: 8px 10px; }
.mock-step { display: flex; align-items: center; gap: 7px; padding: 3.5px 0; font-size: 9px; font-weight: 600; }
.mock-step .sn {
  width: 15px; height: 15px; border-radius: 5px; background: var(--brand); color: #fff;
  font-size: 8px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.mock-chat-pill {
  margin: 10px auto 0; width: fit-content; background: var(--blush); color: var(--brand);
  border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 9.5px;
}
.mock-chat-input {
  margin: auto 12px 8px; background: #f1f0f2; border-radius: 999px;
  padding: 7px 12px; color: #9a9aa2; font-size: 9.5px; display: flex; justify-content: space-between; align-items: center;
}
.mock-chat-icon {
  width: 56px; height: 56px; border-radius: 999px; margin: 22px auto 8px;
  background: var(--blush); color: var(--brand); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card); border: 1px solid rgba(0,0,0,.07); border-radius: var(--radius);
  padding: 30px 28px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 8px 18px rgba(229,56,52,.3);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid rgba(0,0,0,.07); border-radius: var(--radius); padding: 26px; }
.feature .fi {
  width: 42px; height: 42px; border-radius: 12px; background: var(--blush);
  color: var(--brand); display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ---------- Guides ---------- */
.guides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .guides { grid-template-columns: 1fr; } }
.guide-card {
  display: block; background: var(--card); border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--radius); padding: 26px 28px; color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(25,25,28,.12); text-decoration: none; }
.guide-card .g-tag { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--brand); }
.guide-card h3 { margin: 8px 0 6px; font-size: 18px; }
.guide-card p { color: var(--muted); font-size: 14.5px; }
.guide-card .g-more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--brand); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px; padding: 20px 24px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 16.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--brand); font-weight: 600; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 12px; font-size: 15px; }
.faq .learn-more { font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 15% -20%, rgba(246,133,123,.3), transparent 60%),
    linear-gradient(140deg, var(--brand-dark), var(--brand-deeper) 70%, var(--brand-shadow));
  color: #fff; border-radius: 28px; padding: 72px 40px; text-align: center;
}
.cta-band p { color: rgba(255,255,255,.8); max-width: 52ch; margin: 16px auto 30px; font-size: 17px; }
.cta-band .hero-badges { justify-content: center; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #b9b9c0; padding: 56px 0 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
footer h4 { color: #fff; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
footer ul { list-style: none; }
footer li { margin-bottom: 9px; }
footer a { color: #b9b9c0; }
footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Guide article pages ---------- */
.article-hero { background: linear-gradient(150deg, var(--brand-shadow), var(--brand-deeper) 60%, var(--brand-dark)); color: #fff; padding: 72px 0 60px; }
.article-hero .crumbs { font-size: 13.5px; color: rgba(255,255,255,.65); margin-bottom: 18px; }
.article-hero .crumbs a { color: rgba(255,255,255,.85); }
.article-hero h1 { font-size: clamp(30px, 4.4vw, 46px); max-width: 20ch; }
.article-hero p { color: rgba(255,255,255,.8); margin-top: 16px; max-width: 60ch; font-size: 17px; }
.article { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.article h2 { font-size: 27px; margin: 44px 0 14px; }
.article h3 { font-size: 20px; margin: 30px 0 10px; }
.article p, .article li { font-size: 16.5px; color: #333; }
.article p { margin: 0 0 14px; }
.article ul, .article ol { padding-left: 24px; margin: 14px 0; }
.article li { margin-bottom: 8px; }
.article .tip {
  background: var(--blush); border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 22px 0; font-size: 15.5px;
}
.article .prompt-example {
  background: var(--ink); color: #fff; border-radius: 14px; padding: 18px 20px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px;
  line-height: 1.6; margin: 20px 0; overflow-x: auto;
}
.article .prompt-example .var { color: var(--coral); font-weight: 700; }
.article-cta {
  background: var(--surface); border: 1px solid rgba(0,0,0,.07); border-radius: var(--radius);
  padding: 32px; text-align: center; margin-top: 52px;
}
.article-cta h2 { margin: 0 0 8px; font-size: 24px; }
.article-cta p { color: var(--muted); margin-bottom: 20px; }
.article-cta .appstore-badge { border-color: transparent; }
.related { max-width: 760px; margin: 0 auto; padding: 0 24px 72px; }
.related h2 { font-size: 22px; margin-bottom: 18px; }
