:root {
  --bg: #fbfbf8;
  --ink: #14151a;
  --muted: #5c5f68;
  --line: #e5e4dd;
  --soft: #f2f1ec;
  --green: #22b869;
  --green-dark: #14894b;
  --error: #b3261e;

  /* app mockup */
  --app-bg: #16171d;
  --app-panel: #1d1f27;
  --app-line: #2b2e3a;
  --app-text: #e8e9ef;
  --app-muted: #8d91a1;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }

.defs { position: absolute; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 22px;
  border: 0; border-radius: 10px;
  background: var(--ink); color: #fff;
  font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: #2c2e37; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-small { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }

/* ---------- Hero ---------- */

.hero { padding-top: 56px; padding-bottom: 40px; text-align: center; }

h1 {
  font-size: clamp(2.7rem, 8.4vw, 5.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.lede {
  max-width: 34em; margin: 24px auto 0;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.5; color: var(--muted);
}

.price-line { margin-top: 20px; font-size: 1.15rem; }

/* ---------- Signup ---------- */

.signup { max-width: 460px; margin: 28px auto 0; }

.signup-row { display: flex; gap: 8px; }

.signup input[type="email"] {
  flex: 1; min-width: 0; height: 50px; padding: 0 16px;
  border: 1px solid #cfcec6; border-radius: 10px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 16px;
}
.signup input[type="email"]::placeholder { color: #9a9ca3; }
.signup input[type="email"]:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }

.signup-msg { min-height: 0; font-size: 14px; color: var(--error); }
.signup-msg:not(:empty) { margin-top: 10px; }
.signup-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

.signup-done {
  max-width: 460px; margin: 28px auto 0; padding: 22px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  text-align: center;
}
.signup-done strong { display: block; font-size: 1.1rem; }
.signup-done p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.signup-done .ask { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); }
.sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.sizes button {
  height: 36px; padding: 0 14px;
  border: 1px solid #cfcec6; border-radius: 999px; background: #fff; color: var(--ink);
  font: inherit; font-size: 14px; cursor: pointer;
}
.sizes button:hover { border-color: var(--ink); }

/* ---------- Product mockup ---------- */

.product { padding-top: 56px; padding-bottom: 24px; }

.stage { position: relative; }

.peek {
  position: absolute; z-index: 2;
  right: 9%; bottom: calc(100% - 12px);
  width: clamp(96px, 14vw, 150px); height: auto;
  overflow: visible;
}

.app {
  position: relative;
  background: var(--app-bg); color: var(--app-text);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 60px -20px rgba(20,21,26,.35), 0 0 0 1px rgba(20,21,26,.9);
  font-size: 13px; line-height: 1.4;
}

.app-bar {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 70px;
  border-bottom: 1px solid var(--app-line);
}
.app-bar .dots { position: absolute; left: 14px; }
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3d4a; }
.app-title { color: #c3c6d2; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 232px; }
.app-main { min-width: 0; padding: 18px 18px 0; }

.tools { display: flex; align-items: center; gap: 8px; }
.find, .tool {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--app-line); background: var(--app-panel);
  white-space: nowrap;
}
.find { flex: 1; min-width: 0; color: var(--app-muted); }
.find svg { width: 14px; height: 14px; flex: none; }
.find span { flex: 1; overflow: hidden; text-overflow: ellipsis; color: var(--app-text); }
.find-count { flex: none; font-style: normal; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.tool b {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--green); color: #0c1a12; font-size: 11px;
}
.tool-go { background: var(--green); border-color: var(--green); color: #0c1a12; font-weight: 650; }

.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  height: 26px; padding: 0 10px; border-radius: 999px;
  display: inline-flex; align-items: center;
  background: #262935; color: #cfd2de; font-family: var(--mono); font-size: 11.5px;
}
.count { margin-left: auto; color: var(--app-muted); font-variant-numeric: tabular-nums; }
.count b { color: var(--app-text); font-weight: 600; }

.grid {
  width: 100%; margin-top: 14px; border-collapse: collapse;
  font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums;
}
.grid th, .grid td {
  padding: 8px 12px; text-align: left; white-space: nowrap;
  border-top: 1px solid var(--app-line);
  overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}
.grid th { color: var(--app-muted); font-weight: 500; background: var(--app-panel); }
.grid td { color: #d5d7e1; }
.grid .num { text-align: right; }
.arrow { color: var(--green); }
.grid mark { padding: 1px 2px; margin: 0 -2px; border-radius: 3px; background: rgba(34,184,105,.28); color: #8ff0bd; }
.grid .hit td { background: rgba(34,184,105,.09); }
.grid .hit mark { background: var(--green); color: #0c1a12; }

.app-side { padding: 18px; border-left: 1px solid var(--app-line); background: var(--app-panel); }
.side-title { color: var(--app-muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.side-col {
  margin-top: 12px; height: 34px; padding: 0 12px; display: flex; align-items: center;
  border: 1px solid var(--app-line); border-radius: 8px; background: var(--app-bg);
  font-family: var(--mono); font-size: 12px;
}
.app-side dl { margin-top: 10px; }
.app-side dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--app-line); }
.app-side dl div:last-child { border-bottom: 0; }
.app-side dt { color: var(--app-muted); }
.app-side dd { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }

.status {
  display: flex; align-items: center;
  height: 32px; padding: 0 18px;
  border-top: 1px solid var(--app-line); background: var(--app-panel);
  color: #b4b7c4; font-size: 12px; font-variant-numeric: tabular-nums;
}
.status span { margin: 0 8px; color: var(--app-muted); }

.caption { margin-top: 14px; text-align: center; font-size: 13px; color: #8a8c93; }

/* ---------- Sections ---------- */

.section { padding-top: 96px; }

h2 {
  max-width: 18em;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.12; letter-spacing: -0.03em; font-weight: 750;
}

h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

.features, .cases {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px; margin-top: 44px;
}
.features article, .cases article { padding-top: 18px; border-top: 1px solid var(--ink); }
.features p, .cases p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.band { margin-top: 96px; background: var(--ink); color: #fff; }
.band-inner { padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; align-items: start; }
.band h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.band p { margin-top: 16px; color: #b9bcc7; font-size: 1.05rem; }

.price { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.price h2 { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.price-big { font-size: clamp(3.5rem, 9vw, 6rem); letter-spacing: -0.05em; line-height: .9; }
.price p { color: var(--muted); font-size: 1.1rem; }

.faq { margin-top: 32px; border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 20px; color: var(--muted); max-width: 40em; }

/* ---------- Final call ---------- */

.final { padding-top: 120px; padding-bottom: 96px; text-align: center; scroll-margin-top: 0; }
.final h2 { margin: 28px auto 0; }
.final .lede { margin-top: 14px; }

.eater { width: min(360px, 100%); height: auto; }
.eater .rows { fill: #c9c8bf; animation: feed 1.4s linear infinite; }
@keyframes feed { to { transform: translateX(60px); } }

/* ---------- Footer ---------- */

.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 24px; padding-bottom: 32px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.footer-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 24px; }
.footer a { text-decoration: underline; text-decoration-color: #c3c2ba; text-underline-offset: 3px; }
.footer a:hover { color: var(--ink); text-decoration-color: currentColor; }
.brand-quiet { font-size: 15px; color: var(--ink); }
.brand-quiet .brand-mark { width: 22px; height: 22px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .features, .cases { grid-template-columns: repeat(2, 1fr); }
  .band-inner { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 36px; }
  .product { padding-top: 48px; }
  .section { padding-top: 72px; }
  .band { margin-top: 72px; }
  .band-inner { padding-top: 56px; padding-bottom: 56px; }
  .final { padding-top: 88px; padding-bottom: 72px; }
  .features, .cases { grid-template-columns: 1fr; gap: 28px; }

  .app { border-radius: 10px; font-size: 12px; }
  .app-main { padding: 14px 12px 0; }
  .status { padding: 0 12px; }
  .tool-hide, .c-date, .c-qty, .find-count { display: none; }
  .count { margin-left: 0; width: 100%; }
  .grid { font-size: 11px; }
  .grid th, .grid td { padding: 7px 8px; max-width: 130px; }
}

@media (max-width: 480px) {
  .signup-row { flex-direction: column; }
  .signup .btn { width: 100%; }
  .c-region { display: none; }
  .tools .tool:not(.tool-on):not(.tool-go) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eater .rows { animation: none; }
}
