:root {
  --red: #f50535;
  --red-dark: #c40029;
  --ink: #1c1c1e;
  --muted: #636366;
  --line: #e5e5ea;
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --radius: 18px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Top bar ---------- */
.topbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand .mark {
  width: 26px;
  height: 26px;
  display: block;
}

.topbar nav a {
  color: var(--muted);
  font-size: 15px;
  margin-left: 22px;
}

.topbar nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 8px 0 18px;
}

.hero-copy .lead {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 30ch;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 14px;
}

.features li {
  position: relative;
  padding-left: 32px;
  font-size: 17px;
  color: var(--ink);
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
}

.store-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 13px;
  min-width: 178px;
  text-decoration: none;
}

.store-badge .store-ico {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex: 0 0 auto;
}

.store-badge .store-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  text-align: left;
}

.store-badge .store-txt small {
  font-size: 11px;
  letter-spacing: 0.02em;
}

.store-badge .store-txt strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-badge.is-disabled {
  opacity: 0.45;
  filter: grayscale(1);
  cursor: not-allowed;
  pointer-events: none;
}

.cta-note {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 999px;
  margin: 16px 0 0;
}

/* ---------- Phone mockup ---------- */
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 2000px;
}

.glow {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 620px;
  height: 620px;
  background: radial-gradient(
    circle,
    rgba(245, 5, 53, 0.18) 0%,
    rgba(245, 5, 53, 0.06) 38%,
    rgba(245, 5, 53, 0) 70%
  );
  z-index: 0;
  pointer-events: none;
}

.phone {
  position: relative;
  z-index: 1;
  width: 320px;
  background: #0b0b0d;
  border-radius: 52px;
  padding: 11px;
  box-shadow:
    0 50px 90px -30px rgba(20, 0, 6, 0.45),
    0 18px 40px -20px rgba(0, 0, 0, 0.35),
    inset 0 0 0 2px #2c2c30,
    inset 0 0 0 5px #050506;
  transform: rotateY(-22deg) rotateX(6deg) rotate(1.5deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.phone:hover {
  transform: rotateY(-12deg) rotateX(3deg) rotate(0.5deg);
}

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: #0b0b0d;
}

.phone::before {
  top: 120px;
  height: 34px;
  box-shadow: 0 56px 0 #0b0b0d;
}

.phone::after {
  top: 96px;
  right: -3px;
  left: auto;
  width: 3px;
  height: 56px;
  border-radius: 0 3px 3px 0;
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 42px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
}

.footer-inner nav a {
  color: var(--muted);
  margin-left: 22px;
}

.footer-inner nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.legal .back {
  display: inline-block;
  font-size: 15px;
  margin: 8px 0 28px;
}

.legal h1 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.legal .updated {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 36px;
}

.legal h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 38px 0 10px;
}

.legal p,
.legal li {
  color: #2b2b2e;
  font-size: 17px;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal .toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 8px;
}

.legal .toc strong {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.legal .toc a {
  color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 56px;
  }

  .hero-copy .lead {
    max-width: none;
  }

  .features {
    text-align: left;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .store-badges {
    justify-content: center;
  }

  .hero-art {
    order: -1;
    margin-bottom: 24px;
  }

  .phone {
    width: 260px;
    transform: rotateY(-12deg) rotateX(4deg);
  }

  .glow {
    right: 50%;
    transform: translate(50%, -50%);
    width: 420px;
    height: 420px;
  }

  .topbar nav {
    display: none;
  }
}
