:root {
  --bg: #0a0a0b;
  --card: #1c1c1e;
  --card-2: #242426;
  --text: #ffffff;
  --text-secondary: #9a9aa0;
  --gradient-start: #c759eb;
  --gradient-end: #736bf2;
  --accent: #9966f2;
  --green: #34d058;
  --doc-width: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ HERO / LANDING ============ */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 24px;
}

.hero-copy { max-width: 600px; z-index: 2; }

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  display: block;
}
.brand-name { font-size: 21px; font-weight: 700; }

.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.hero .subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: #c4c4c8;
  max-width: 520px;
  margin: 0 0 36px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid #2c2c2e;
  border-radius: 12px;
  padding: 12px 20px;
  transition: border-color .15s ease, transform .15s ease;
}
.store-badge:hover { text-decoration: none; border-color: #4a4a4e; transform: translateY(-1px); }
.store-badge svg { width: 28px; height: 28px; fill: #fff; }
.store-badge .small { font-size: 11px; color: #c4c4c8; line-height: 1; display: block; margin-bottom: 3px; }
.store-badge .big { font-size: 20px; font-weight: 600; color: #fff; line-height: 1; }

.hero-links {
  margin-top: 44px;
  font-size: 15px;
  color: var(--text-secondary);
}
.hero-links a { color: var(--text-secondary); }
.hero-links a:hover { color: #fff; }
.hero-links .dot { margin: 0 10px; }

/* ============ PHONE MOCKUPS ============ */

.phones {
  position: relative;
  height: 640px;
  z-index: 1;
}

.phone {
  position: absolute;
  width: 300px;
  height: 620px;
  background: #0e0e10;
  border-radius: 44px;
  border: 2px solid #2a2a2d;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  padding: 12px;
}

.phone .screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #050506;
  border-radius: 34px;
  overflow: hidden;
  padding: 0;
}

.phone-solo {
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
}

/* Slides: cross-faded screens inside the one phone. */
.slide {
  position: absolute;
  inset: 0;
  padding: 14px 18px;
  opacity: 0;
  transition: opacity .55s ease;
}
.slide.is-active { opacity: 1; z-index: 2; }

/* Brand screen */
.slide-brand { display: flex; flex-direction: column; }
.brand-screen {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px;
}
.brand-icon {
  width: 132px; height: 132px;
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(124, 58, 237, .4);
  transform: scale(.84);
  opacity: 0;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .6s ease;
}
.brand-word {
  font-size: 30px; font-weight: 800; letter-spacing: -.02em;
  opacity: 0; transform: translateY(8px);
  transition: opacity .6s ease .12s, transform .6s ease .12s;
}
.slide-brand.is-active .brand-icon { transform: scale(1); opacity: 1; }
.slide-brand.is-active .brand-word { opacity: 1; transform: none; }

.notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 26px;
  background: #050506;
  border-radius: 14px;
  z-index: 5;
}

.statusbar {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #fff;
  font-weight: 600;
  padding: 2px 4px 0;
}
.statusbar .icons { letter-spacing: 2px; }

.screen-title { text-align: center; font-size: 14px; font-weight: 600; margin: 14px 0 12px; }

.ring-avatar {
  width: 108px; height: 108px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}
.ring-avatar .inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #16161a;
  display: flex; align-items: center; justify-content: center;
}
.ring-avatar svg { width: 46px; height: 46px; fill: #fff; opacity: .9; }
.ring-avatar .avatar-video {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-top: 4px;
}
.score .label { font-size: 9px; letter-spacing: .08em; color: var(--text-secondary); text-transform: uppercase; }
.score .value { font-size: 26px; font-weight: 800; margin: 1px 0 5px; }
.score .value .delta { font-size: 11px; font-weight: 700; color: var(--green); margin-left: 5px; }
.score .bar { height: 4px; border-radius: 3px; background: #2a2a2e; overflow: hidden; }
.score .bar > span {
  display: block; height: 100%; width: 0;
  background: var(--green); border-radius: 3px;
  transition: width .9s cubic-bezier(.22, 1, .36, 1);
}

/* Each score card starts hidden and slides in when the report "loads". */
.score { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.score.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .score { opacity: 1; transform: none; transition: none; }
  .score .bar > span { transition: none; }
}

.share-btn {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  height: 46px;
  border-radius: 23px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}

/* back phone: task list */
.tasks-title { font-size: 18px; font-weight: 800; margin: 16px 0 14px; }
.task {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: #c4c4c8;
  padding: 11px 0;
  border-bottom: 1px solid #1c1c20;
}
.task .check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #3a3a40; flex: none;
}
.task.done { color: #5a5a60; text-decoration: line-through; }
.task.done .check { background: var(--accent); border-color: var(--accent); }

/* Today's Plan rows load in one by one. */
.task { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.task.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .task { opacity: 1; transform: none; transition: none; }
  .brand-icon, .brand-word { opacity: 1; transform: none; transition: none; }
}

/* ============ LEGAL DOCS ============ */

.doc-wrap { max-width: var(--doc-width); margin: 0 auto; padding: 48px 24px 90px; }

header.site { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
header.site .logo { width: 40px; height: 40px; }
header.site .brand-name { font-size: 20px; }

.back { display: inline-block; margin-bottom: 26px; color: var(--text-secondary); font-size: 15px; }
.back:hover { color: #fff; }

.doc-wrap h1 { font-size: clamp(32px, 6vw, 46px); font-weight: 800; line-height: 1.1; margin: 0 0 8px; }
.updated { color: var(--text-secondary); font-size: 15px; margin: 0 0 8px; }
.rule { border: none; border-top: 1px solid #25252a; margin: 28px 0; }

.doc-wrap h2 { font-size: 22px; font-weight: 700; margin: 32px 0 6px; }
.doc-wrap h3 { font-size: 17px; font-weight: 600; margin: 20px 0 4px; color: #ededf0; }
.doc-wrap p, .doc-wrap li { color: #cfcfd4; font-size: 17px; }
.doc-wrap ul { padding-left: 22px; }
.doc-wrap li { margin-bottom: 7px; }

footer.site {
  margin-top: 52px; padding-top: 26px;
  border-top: 1px solid #25252a;
  color: var(--text-secondary); font-size: 14px;
}
footer.site a { color: var(--text-secondary); }
footer.site a:hover { color: #fff; }

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  /* Single column, and flatten hero-copy so the CTA can drop below the phone graphic. */
  .hero-inner { display: flex; flex-direction: column; padding: 40px 28px; gap: 0; }
  .hero-copy { display: contents; }
  .phones { order: 1; height: 560px; margin-top: 4px; transform: scale(.92); transform-origin: top center; }
  .hero-cta { order: 2; margin-top: 32px; }
  .phone-back { display: none; }
  .phone-front { left: 50%; margin-left: -150px; transform: rotate(0deg); }
}

@media (max-width: 480px) {
  .phones { height: 520px; }
  .hero h1 { font-size: 34px; }
}
