:root {
  color-scheme: light;
  --bg: #f6f4f1;
  --card: #ffffff;
  --ink: #12161c;
  --muted: #5c6672;
  --line: #e6e1da;
  --accent: #e8462f;
  --accent-dark: #c93420;
  --accent-soft: #fdece8;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18, 22, 28, .05), 0 16px 40px rgba(18, 22, 28, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.wrap.narrow { width: min(760px, calc(100% - 40px)); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 244, 241, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 66px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 17px; font-weight: 900; font-style: italic;
}
.nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* hero */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; background: var(--accent-soft); color: var(--accent-dark);
  font-size: 12.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -1.6px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 0 0 28px; font-size: 17.5px; color: var(--muted); max-width: 520px; }

/* download */
.download-block { display: grid; gap: 10px; justify-items: start; }
.btn-download {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 30px; border: 0; border-radius: 16px;
  background: var(--accent); color: #fff; font-size: 17.5px; font-weight: 800; font-family: inherit;
  cursor: pointer; box-shadow: 0 12px 26px rgba(232, 70, 47, .28);
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
}
.btn-download svg { width: 22px; height: 22px; }
.btn-download:hover { background: var(--accent-dark); }
.btn-download:active { transform: translateY(1px); }
.btn-download[data-state="pending"] { background: #c9c2b8; box-shadow: none; cursor: not-allowed; }
.meta { margin: 0; font-size: 14px; color: var(--muted); }
.meta.err { color: var(--accent-dark); }
.chips { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 22px 0 0; }
.chips li {
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
}

/* phone mockup */
.hero-art { display: grid; place-items: center; }
.phone {
  width: 268px; height: 548px; border-radius: 38px; background: #14181f;
  padding: 12px; box-shadow: 0 30px 70px rgba(18, 22, 28, .22); position: relative;
  transform: rotate(2deg);
}
.phone-notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 8px; border-radius: 99px; background: #2a3140;
}
.phone-screen {
  height: 100%; border-radius: 28px; background: linear-gradient(170deg, #fff 0%, #fff 55%, #fdece8 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px;
}
.phone-logo { font-size: 34px; font-weight: 900; letter-spacing: -1.4px; font-style: italic; color: var(--ink); margin-bottom: 8px; }
.phone-line { height: 10px; border-radius: 99px; background: #eee8e1; }
.w90 { width: 90%; } .w70 { width: 70%; } .w60 { width: 60%; }
.phone-btn {
  margin-top: 16px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 800;
  padding: 11px 26px; border-radius: 12px;
}

/* sections */
.section { padding: 64px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.8px; }
.section-head p { margin: 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .ico { font-size: 24px; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }


.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.steps .num {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent-dark); display: grid; place-items: center; font-weight: 900; font-size: 17px;
}
.steps h3 { margin: 0 0 4px; font-size: 16.5px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }
code { background: #f1ece5; padding: 2px 6px; border-radius: 6px; font-size: .92em; }

.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15.5px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-weight: 800; color: var(--muted); }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }

.cta { padding: 56px 0; }
.cta-inner {
  background: var(--ink); color: #fff; border-radius: 24px; padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.6px; }
.cta p { margin: 0; color: #b9c0c9; }

.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px;
  font-size: 14.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50;
}
.toast.show { opacity: 1; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .phone { width: 220px; height: 448px; transform: none; }
  .cards { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 620px) {
  .hero { padding: 40px 0 36px; }
  .cta-inner { padding: 28px; }
  .btn-download { width: 100%; justify-content: center; }
  .download-block { justify-items: stretch; }
}
