/* ────────────────────────────────────────────────────────────
   PersonaliMe marketing site
   Brand colors and typography mirror the Flutter app exactly.
   ──────────────────────────────────────────────────────────── */

:root {
  --violet: #9B7FF4;
  --teal:   #2EC4B6;
  --sage:   #7BC47A;
  --navy:   #1A1F3A;
  --white:  #FFFFFF;
  --light-grey: #F4F4F8;
  --muted:  #6B7280;
  --border: #E5E7EB;

  --gradient: linear-gradient(135deg, var(--violet), var(--teal));
  --shadow-sm: 0 2px 6px rgba(26, 31, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 31, 58, 0.08);
  --shadow-lg: 0 18px 48px rgba(26, 31, 58, 0.18);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Gradient text token — used for the heroic phrase + accents. */
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Eyebrow chips ────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(155, 127, 244, 0.12);
  color: var(--violet);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.eyebrow--light {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet);
}
.eyebrow--light .eyebrow__dot { background: var(--white); }
.eyebrow--inline { margin-bottom: 14px; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
}
.nav__brand:hover { text-decoration: none; }
.nav__logo {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--gradient);
  display: grid;
  place-items: center;
}
.nav__logo-text {
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.nav__wordmark {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}
.nav__links a {
  color: var(--muted);
}
.nav__links a:hover {
  color: var(--navy);
  text-decoration: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.pill--coming {
  background: rgba(46, 196, 182, 0.12);
  color: var(--teal);
}
.pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(46, 196, 182, 0.06); }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(155, 127, 244, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 14px 30px rgba(155, 127, 244, 0.45);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(26, 31, 58, 0.18);
}
.btn--ghost:hover {
  border-color: var(--navy);
}
.btn--app-store {
  background: var(--navy);
  color: var(--white);
  padding: 10px 22px 10px 18px;
}
.btn--app-store .btn__icon {
  width: 26px; height: 26px;
  flex-shrink: 0;
}
.btn--app-store .btn__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.btn--app-store .btn__copy small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0.78;
}
.btn--app-store .btn__copy strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* ── Section heads (shared) ──────────────────────────────── */
.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin: 0 0 12px;
}
.section-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 28px 120px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(46, 196, 182, 0.10), transparent 60%),
    radial-gradient(100% 100% at 0% 100%, rgba(155, 127, 244, 0.12), transparent 55%),
    var(--white);
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
  z-index: 0;
}
.hero__blob--violet {
  top: -120px; right: -100px;
  width: 360px; height: 360px;
  background: rgba(155, 127, 244, 0.4);
}
.hero__blob--teal {
  bottom: -120px; left: -120px;
  width: 320px; height: 320px;
  background: rgba(46, 196, 182, 0.35);
}
.hero__content,
.hero__device {
  position: relative;
  z-index: 1;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero__headline {
  font-size: clamp(44px, 6.6vw, 76px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1.8px;
  margin: 18px 0 22px;
}
.hero__sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.65;
  margin: 0 0 28px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.hero__caption {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin: 0;
}

/* ── Hero device mockup ───────────────────────────────────── */
.hero__device {
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 290px;
  aspect-ratio: 9 / 19;
  background: var(--navy);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 30px 80px rgba(26, 31, 58, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone__notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #000;
  border-radius: 16px;
  z-index: 2;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: var(--navy);
}
.card-mock {
  position: relative;
  width: 100%; height: 100%;
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--navy) 0%, #2A3060 55%, var(--violet) 110%);
  color: var(--white);
  overflow: hidden;
}
.card-mock__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(34px);
  z-index: 0;
}
.card-mock__blob--a {
  top: -30px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(46, 196, 182, 0.5);
}
.card-mock__blob--b {
  bottom: -50px; left: -30px;
  width: 180px; height: 180px;
  background: rgba(123, 196, 122, 0.35);
}
.card-mock__top,
.card-mock__body,
.card-mock__chips,
.card-mock__foot {
  position: relative;
  z-index: 1;
}
.card-mock__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-mock__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-mock__brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--gradient);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.card-mock__brand-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.card-mock__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.card-mock__chip-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--white);
}
.card-mock__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 18px 0;
}
.card-mock__for {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.65;
}
.card-mock__title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.12;
  margin: 10px 0 16px;
}
.card-mock__rule {
  width: 32px; height: 3px;
  background: var(--white);
  border-radius: 2px;
  margin-bottom: 16px;
}
.card-mock__copy {
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.92;
  font-weight: 500;
  margin: 0;
}
.card-mock__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.card-mock__type-chip {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.card-mock__foot {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  opacity: 0.55;
}

/* ── Features ─────────────────────────────────────────────── */
.features {
  padding: 100px 28px 60px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  position: relative;
  padding: 32px 28px;
  background: var(--white);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: var(--white);
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card--violet .feature-card__icon {
  background: linear-gradient(135deg, #9B7FF4, #7B6BE8);
}
.feature-card--teal .feature-card__icon {
  background: linear-gradient(135deg, #2EC4B6, #1AA89B);
}
.feature-card--sage .feature-card__icon {
  background: linear-gradient(135deg, #7BC47A, #5FAB60);
}
.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Assessments grid ─────────────────────────────────────── */
.assessments {
  padding: 80px 28px;
  background: var(--light-grey);
}
.assessments .section-head { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.assess-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.assess-card {
  background: var(--white);
  border-radius: 18px;
  padding: 22px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.assess-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--c) 35%, transparent);
}
.assess-card__badge {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c);
  font-weight: 900;
  font-size: 17px;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.assess-card h4 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 0 0 6px;
  color: var(--navy);
}
.assess-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Waitlist ─────────────────────────────────────────────── */
.waitlist {
  padding: 100px 28px;
  background:
    radial-gradient(80% 60% at 20% 0%, rgba(155, 127, 244, 0.22), transparent 60%),
    radial-gradient(80% 60% at 80% 100%, rgba(46, 196, 182, 0.18), transparent 60%),
    var(--navy);
  color: var(--white);
  text-align: center;
}
.waitlist__inner {
  max-width: 640px;
  margin: 0 auto;
}
.waitlist__heading {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.8px;
  margin: 14px 0 14px;
}
.waitlist__sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 28px;
}
.waitlist__form {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 480px;
  margin: 0 auto;
}
.waitlist__input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 16px;
}
.waitlist__input::placeholder { color: rgba(255, 255, 255, 0.5); }
.waitlist__submit {
  white-space: nowrap;
  padding: 12px 22px;
  font-size: 14px;
}
.waitlist__status {
  margin: 16px 0 0;
  min-height: 1.3em;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}
.waitlist__status.is-error { color: #FCA5A5; }
.waitlist__status.is-success { color: #BBE9B5; }

.waitlist__milestones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.milestone__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}
.milestone__value {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.milestone__sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 20px;
  font-weight: 800;
}

/* ── Legal sections ───────────────────────────────────────── */
.legal {
  padding: 80px 28px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.legal + .legal { border-top: 1px solid var(--border); }
.legal__inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal h2 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.6px;
  margin: 8px 0 6px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 28px 0 8px;
  color: var(--navy);
}
.legal p, .legal li {
  font-size: 15px;
  color: var(--navy);
  line-height: 1.7;
}
.legal ul {
  padding-left: 22px;
  margin: 8px 0 16px;
}
.legal li { margin-bottom: 6px; }
.legal__updated {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 18px;
}
.legal__permalink {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 56px 28px 40px;
  background: var(--light-grey);
  border-top: 1px solid var(--border);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
}
.footer__logo {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--gradient);
  display: grid; place-items: center;
}
.footer__logo-text {
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.footer__wordmark {
  font-size: 15px;
  font-weight: 800;
}
.footer__links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  font-weight: 700;
  justify-self: center;
}
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--navy); text-decoration: none; }
.footer__social {
  display: flex;
  gap: 12px;
  justify-self: end;
}
.social {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--muted);
  display: grid; place-items: center;
  transition: color 0.15s ease, transform 0.15s ease;
}
.social:hover {
  color: var(--violet);
  transform: translateY(-1px);
}
.social svg { width: 16px; height: 16px; }
.footer__copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin: 24px 0 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 24px 80px;
    gap: 40px;
  }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .nav__links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .assess-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer__links, .footer__social { justify-self: center; }
}
@media (max-width: 560px) {
  .nav { padding: 14px 18px; }
  .pill--coming { display: none; }
  .hero__headline { letter-spacing: -1.2px; }
  .waitlist__form { flex-direction: column; border-radius: 20px; }
  .waitlist__submit { width: 100%; justify-content: center; }
  .assess-grid { grid-template-columns: 1fr; }
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
