:root {
  --bg: #fcf8ff;
  --surface: #ffffff;
  --surface-soft: #f4effb;
  --accent: #4648d4;
  --accent-strong: #3739b9;
  --text: #171525;
  --muted: #69657a;
  --border: rgba(70, 72, 212, 0.13);
  --shadow: 0 24px 70px rgba(65, 55, 110, 0.14);
  --soft-shadow: 0 14px 36px rgba(65, 55, 110, 0.09);
  --radius-lg: 34px;
  --radius-md: 24px;
  --container: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(252, 248, 255, 0.96) 0%, #fff 46%, #fcf8ff 100%);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  align-items: center;
  background: rgba(252, 248, 255, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(65, 55, 110, 0.07);
  display: flex;
  justify-content: space-between;
  left: 50%;
  padding: 10px 12px 10px 16px;
  position: fixed;
  top: 18px;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 28px));
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 13px;
  color: #fff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand-mark svg {
  height: 22px;
  width: 22px;
}

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

.nav-links a,
.header-cta {
  transition: color 180ms ease, transform 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.header-cta {
  background: var(--text);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 18px;
}

.header-cta:hover,
.app-store-button:hover {
  transform: translateY(-2px);
}

.hero {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  margin: 0 auto;
  min-height: 820px;
  padding: 150px 0 96px;
  width: var(--container);
}

.hero-copy h1 {
  font-size: clamp(50px, 7vw, 86px);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
  max-width: 780px;
}

.hero-copy p {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.55;
  margin: 28px 0 34px;
  max-width: 620px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.app-store-button {
  align-items: center;
  background: #111020;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(17, 16, 32, 0.18);
  color: #fff;
  display: inline-flex;
  font-size: 22px;
  font-weight: 800;
  gap: 12px;
  line-height: 1;
  padding: 14px 20px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-store-button small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0.76;
}

.apple-icon {
  display: inline-flex;
  height: 28px;
  width: 28px;
}

.hero-visual {
  display: grid;
  justify-items: center;
  position: relative;
}

.hero-visual::before {
  background: linear-gradient(135deg, rgba(70, 72, 212, 0.14), rgba(255, 255, 255, 0));
  border: 1px solid rgba(70, 72, 212, 0.1);
  border-radius: 44px;
  content: "";
  height: 78%;
  position: absolute;
  right: 8%;
  top: 11%;
  transform: rotate(-7deg);
  width: 78%;
}

.phone {
  aspect-ratio: 9 / 19.3;
  background: #111020;
  border: 10px solid #111020;
  border-radius: 44px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  width: min(270px, 72vw);
}

.hero-phone {
  transform: rotate(4deg);
  width: min(350px, 78vw);
}

.phone::before {
  background: #111020;
  border-radius: 0 0 14px 14px;
  content: "";
  height: 24px;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 34%;
  z-index: 2;
}

.phone img {
  background: #fbf8ff;
  border-radius: 34px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.phone.is-missing img {
  display: none;
}

.screen-fallback {
  background:
    radial-gradient(circle at top right, rgba(70, 72, 212, 0.16), transparent 42%),
    linear-gradient(180deg, #fff 0%, #f7f1ff 100%);
  border-radius: 34px;
  display: none;
  height: 100%;
  inset: 0;
  padding: 54px 24px 28px;
  position: absolute;
  width: 100%;
}

.phone.is-missing .screen-fallback {
  display: block;
}

.fallback-top span,
.screen-fallback span,
.payment-list em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.fallback-top strong,
.screen-fallback strong {
  display: block;
  font-size: 44px;
  letter-spacing: 0;
  line-height: 1.05;
  margin-top: 8px;
}

.mini-chart {
  align-items: end;
  display: flex;
  gap: 10px;
  height: 126px;
  margin: 34px 0 28px;
}

.mini-chart i {
  background: linear-gradient(180deg, var(--accent), #9c8cff);
  border-radius: 999px;
  flex: 1;
}

.payment-list {
  display: grid;
  gap: 12px;
}

.payment-list span,
.screen-fallback.list span {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(70, 72, 212, 0.08);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  padding: 14px;
}

.section {
  margin: 0 auto;
  padding: 96px 0;
  width: var(--container);
}

.section-heading {
  margin: 0 auto 44px;
  max-width: 720px;
  text-align: center;
}

.section-heading h2,
.privacy h2,
.final-cta h2 {
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.section-heading p,
.privacy p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.65;
  margin: 18px 0 0;
}

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

.benefit-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
  min-height: 245px;
  padding: 26px;
}

.benefit-card.wide {
  grid-column: span 4;
  min-height: 0;
}

.icon-circle {
  align-items: center;
  background: rgba(70, 72, 212, 0.1);
  border-radius: 18px;
  color: var(--accent);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.icon-circle svg {
  fill: none;
  height: 23px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 23px;
}

.benefit-card h3,
.steps-list h3 {
  font-size: 21px;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 22px 0 10px;
}

.benefit-card p,
.steps-list p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.62;
  margin: 0;
}

.screens {
  width: min(1240px, calc(100% - 28px));
}

.phone-row {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.phone-row .phone:nth-child(2),
.phone-row .phone:nth-child(4) {
  margin-top: 58px;
}

.screen-fallback.compact {
  padding: 56px 20px 24px;
}

.screen-fallback.compact strong {
  font-size: 34px;
}

.pill-line {
  background: rgba(70, 72, 212, 0.16);
  border-radius: 999px;
  height: 18px;
  margin-top: 22px;
  width: 100%;
}

.pill-line.short {
  width: 62%;
}

.screen-fallback.list {
  align-content: start;
  display: none;
  gap: 12px;
}

.phone.is-missing .screen-fallback.list {
  display: grid;
}

.screen-fallback.calendar {
  display: none;
  gap: 8px;
  grid-template-columns: repeat(7, 1fr);
}

.phone.is-missing .screen-fallback.calendar {
  display: grid;
}

.screen-fallback.calendar i {
  aspect-ratio: 1;
  background: rgba(70, 72, 212, 0.1);
  border-radius: 50%;
}

.screen-fallback.calendar .active {
  background: var(--accent);
}

.screen-fallback.detail {
  display: none;
}

.phone.is-missing .screen-fallback.detail {
  display: block;
}

.steps-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-list article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  padding: 32px;
}

.steps-list span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.privacy-panel {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 42px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr 0.9fr;
  padding: clamp(34px, 5vw, 64px);
}

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

.privacy-list li {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid rgba(70, 72, 212, 0.08);
  border-radius: 18px;
  display: flex;
  font-size: 17px;
  font-weight: 800;
  min-height: 58px;
  padding: 16px 18px;
}

.privacy-list li::before {
  background: var(--accent);
  border-radius: 50%;
  content: "";
  height: 8px;
  margin-right: 12px;
  width: 8px;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 860px;
}

.faq-list details {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  list-style: none;
  padding: 22px 26px;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  color: var(--accent);
  content: "+";
  font-size: 24px;
  font-weight: 800;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  margin: 0;
  padding: 0 26px 24px;
}

.final-cta {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 820px;
  padding: 110px 20px 130px;
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 30px;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 30px 0 42px;
  width: var(--container);
}

.site-footer p {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    gap: 34px;
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 132px;
    text-align: center;
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .benefit-grid,
  .steps-list,
  .phone-row,
  .privacy-panel {
    grid-template-columns: 1fr 1fr;
  }

  .benefit-card.wide {
    grid-column: span 2;
  }

  .phone-row .phone {
    justify-self: center;
  }

  .phone-row .phone:nth-child(2),
  .phone-row .phone:nth-child(4) {
    margin-top: 0;
  }

  .privacy-panel {
    align-items: start;
  }
}

@media (max-width: 640px) {
  :root {
    --container: calc(100vw - 28px);
  }

  .site-header {
    left: 14px;
    top: 10px;
    transform: none;
    width: calc(100vw - 28px);
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    border-radius: 12px;
    height: 34px;
    width: 34px;
  }

  .header-cta {
    padding: 10px 14px;
  }

  .hero {
    padding-bottom: 62px;
    padding-top: 112px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 11vw, 46px);
    line-height: 1.04;
    margin-left: auto;
    margin-right: auto;
    max-width: 360px;
  }

  .hero-copy p {
    font-size: 17px;
    max-width: 350px;
  }

  .app-store-button {
    border-radius: 18px;
    font-size: 20px;
    justify-content: center;
    min-width: 220px;
  }

  .hero-phone {
    transform: none;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 30px;
    text-align: left;
  }

  .section-heading h2,
  .privacy h2,
  .final-cta h2 {
    font-size: 36px;
  }

  .section-heading p,
  .privacy p {
    font-size: 16px;
  }

  .benefit-grid,
  .steps-list,
  .phone-row,
  .privacy-panel {
    grid-template-columns: 1fr;
  }

  .benefit-card,
  .steps-list article {
    border-radius: 26px;
    min-height: 0;
    padding: 24px;
  }

  .benefit-card.wide {
    grid-column: auto;
  }

  .phone-row {
    gap: 28px;
  }

  .phone-row .phone {
    width: min(280px, 78vw);
  }

  .privacy-panel {
    border-radius: 30px;
  }

  .faq-list summary {
    font-size: 16px;
    padding: 20px 52px 20px 20px;
  }

  .faq-list p {
    font-size: 15px;
    padding: 0 20px 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
