:root {
  --bg: #fbfafc;
  --surface: #ffffff;
  --ink: #211f2a;
  --muted: #686274;
  --soft: #f1edf8;
  --line: #e6e0ef;
  --primary: #6a4cb3;
  --primary-strong: #56399d;
  --accent: #e58f6a;
  --ok: #2f9d78;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(106, 76, 179, 0.22);
}

.button.secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 24px 0 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  margin: 24px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.phone {
  width: min(330px, 82vw);
  min-height: 620px;
  border-radius: 36px;
  padding: 18px;
  background: #201d2b;
  box-shadow: 0 36px 90px rgba(33, 31, 42, 0.22);
}

.screen {
  min-height: 584px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fbf9ff 0%, #f5f1fb 100%);
  padding: 22px;
  overflow: hidden;
}

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

.tiny-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: #efe8fa;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.routine-card,
.metric-card {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(106, 76, 179, 0.12);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 12px 28px rgba(68, 52, 96, 0.08);
}

.routine-card strong,
.metric-card strong {
  display: block;
  margin-bottom: 8px;
}

.progress {
  height: 9px;
  border-radius: 999px;
  background: #ebe5f3;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.photo-strip span {
  display: block;
  aspect-ratio: 1;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(106, 76, 179, 0.18), rgba(229, 143, 106, 0.18)),
    repeating-linear-gradient(45deg, #f8f4ff 0 8px, #efe8f7 8px 16px);
}

.section {
  padding: 76px 0;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.section-intro {
  max-width: 680px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 14px 34px rgba(44, 36, 64, 0.06);
}

.icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--primary);
  font-size: 21px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.beta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border-radius: 24px;
  background: #211f2a;
  color: #ffffff;
  padding: 30px;
}

.beta p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-page {
  padding: 34px 0 70px;
}

.legal-card {
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: clamp(24px, 4vw, 46px);
}

.legal-card h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.legal-card h2 {
  margin-top: 34px;
  font-size: 22px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.notice {
  margin: 22px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff5ed;
  color: #73513d;
  border: 1px solid #f2d8c7;
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 28px, 680px);
  }

  .nav {
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 12px;
  }

  .hero-visual {
    min-height: auto;
  }

  .phone {
    min-height: 520px;
  }

  .screen {
    min-height: 484px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .beta {
    grid-template-columns: 1fr;
  }
}
