:root {
  --accent: #a40000;
  --accent-hover: #c41212;
  --bg: #ffffff;
  --bg-alt: #f6f4f2;
  --text: #1d1b1a;
  --muted: #5f5955;
  --line: #e4e0dc;
  --card: #ffffff;
  --code-bg: #1e1c1b;
  --code-text: #f3efe9;
  --shadow: 0 10px 30px rgba(40, 20, 10, .12);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ff6b5e;
    --accent-hover: #ff8a7f;
    --bg: #161413;
    --bg-alt: #1f1c1b;
    --text: #eeeae6;
    --muted: #aaa29b;
    --line: #34302d;
    --card: #221f1d;
    --code-bg: #0e0d0c;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.35rem; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
@media (max-width: 640px) { .nav a.opt { display: none; } .nav { gap: 16px; } }

/* buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--accent);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ghost { color: var(--accent); }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.small { font-size: .9rem; color: var(--muted); }

/* hero */
.hero { padding: 64px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-art { position: relative; min-height: 520px; }
.phone {
  position: absolute; right: 0; top: 0; width: 250px;
  border: 10px solid #111; border-radius: 34px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
  aspect-ratio: 390 / 760;
}
.phone img { width: 100%; }
.label-card {
  position: absolute; left: -10px; bottom: 30px; width: 225px; z-index: 2;
  background: #c79a64; padding: 18px; border-radius: 6px;
  transform: rotate(-4deg); box-shadow: var(--shadow);
}
.label-card img { border-radius: 2px; }
.scan-line {
  position: absolute; left: 200px; bottom: 170px; width: 110px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: rotate(-28deg); opacity: .8;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 470px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone { width: 210px; right: 0; }
  .label-card { width: 190px; left: 0; bottom: 10px; }
  .scan-line { display: none; }
}

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.feature .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: 14px;
}
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.shots figure { margin: 0; }
.shots .frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shots .frame .bar { height: 22px; background: #e9e6e3; display: flex; gap: 6px; align-items: center; padding-left: 10px; }
.shots .frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9c4bf; }
.shots figcaption { margin-top: 10px; font-size: .95rem; color: var(--muted); text-align: center; }
.shots .wide { grid-column: span 2; }
.shots .phone-shot .frame { max-width: 230px; margin: 0 auto; border: 8px solid #111; border-radius: 26px; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } .shots .wide { grid-column: auto; } }

/* install */
.install { display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: start; margin-top: 30px; }
.code {
  position: relative; background: var(--code-bg); color: var(--code-text); border-radius: 12px;
  padding: 20px 22px; overflow-x: auto; font: 14.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.code pre { margin: 0; white-space: pre; }
.code .c { color: #9c958e; }
.copy {
  position: absolute; top: 10px; right: 10px; background: #3a3532; color: #fff; border: 0;
  border-radius: 7px; padding: 6px 12px; font: 600 13px system-ui, sans-serif; cursor: pointer;
}
.copy:hover { background: var(--accent); }
.install ol { padding-left: 1.2em; margin: 0; }
.install li { margin-bottom: .6em; }
@media (max-width: 860px) { .install { grid-template-columns: 1fr; } }

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 30px; margin-top: 30px; padding: 0; list-style: none; }
.facts li { padding-left: 30px; position: relative; }
.facts li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 780px; margin: 30px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* story */
.story { display: grid; grid-template-columns: 160px 1fr; gap: 30px; align-items: center; max-width: 820px; margin: 0 auto; }
.story img { width: 160px; }
@media (max-width: 600px) { .story { grid-template-columns: 1fr; text-align: center; } .story img { margin: 0 auto; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; font-size: .95rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* simple pages */
.page { padding: 60px 0 80px; max-width: 720px; }

@media (prefers-color-scheme: dark) {
  .btn-primary, .btn-primary:hover { color: #1a0d0b; }
  .phone, .shots .phone-shot .frame { border-color: #3a3634; }
}
