:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #eef3ff;
  --text: #141821;
  --muted: #596273;
  --line: #d9e0ea;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --rose: #d9468a;
  --green: #16a34a;
  --shadow: 0 18px 44px rgba(25, 39, 68, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(247, 248, 251, 0.88);
  border-bottom: 1px solid rgba(217, 224, 234, 0.76);
  backdrop-filter: blur(14px);
}

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

.brand img {
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.20);
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-weight: 700;
}

nav a,
footer a {
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  color: var(--primary);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 40px) 48px;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
  padding: clamp(34px, 6vw, 72px) 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 720px;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.24);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.phone-wrap {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.phone {
  width: min(360px, 100%);
  aspect-ratio: 9 / 17;
  padding: 22px;
  border: 1px solid #cad4e3;
  border-radius: 34px;
  background:
    linear-gradient(180deg, #fff 0%, #f9fbff 72%, #eef4ff 100%);
  box-shadow: var(--shadow);
}

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

.phone-top span:last-child {
  color: var(--primary);
  font-size: 14px;
}

.week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.week span,
.week strong {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 8px;
  background: #eef2f8;
  color: var(--muted);
  font-size: 13px;
}

.week strong {
  background: var(--primary);
  color: #fff;
}

.progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 96px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface-strong);
}

.progress span {
  color: var(--muted);
  font-weight: 800;
}

.progress strong {
  color: var(--rose);
  font-size: 36px;
}

.habit {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.habit > span {
  width: 28px;
  height: 28px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  flex: 0 0 auto;
}

.habit.done > span {
  background: var(--green);
  border-color: var(--green);
}

.habit strong,
.habit small {
  display: block;
}

.habit small {
  color: var(--muted);
  margin-top: 3px;
}

.section {
  padding: 42px 0;
}

.section-heading {
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-grid p,
.premium-band p {
  color: var(--muted);
}

.premium-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 36px 0 8px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  background: #111827;
  color: #fff;
}

.premium-band p {
  max-width: 760px;
  margin-bottom: 0;
  color: #d7deea;
}

footer {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 5vw, 40px) 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .phone-wrap {
    justify-content: flex-start;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  nav {
    gap: 14px;
    font-size: 14px;
  }

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

  .button {
    width: 100%;
  }

  .phone {
    width: 100%;
    padding: 18px;
    border-radius: 26px;
  }

  .week span,
  .week strong {
    min-height: 44px;
  }
}
