/* ---------------------------------------------------------------------------
   QubitKid landing page. Builds on the tokens in styles.css so the marketing
   page and the apps feel like one product.
   --------------------------------------------------------------------------- */

.lp main { max-width: 1120px; margin: 0 auto; padding: 0 22px 60px; }
.lp .brand { text-decoration: none; }
.lp h1, .lp h2, .lp h3, .lp h4 { margin: 0; letter-spacing: -0.5px; }

/* ---------- top-right nav ---------- */
.lp-nav { display: flex; align-items: center; gap: 10px; }

/* ---------- hero ---------- */
.lp-hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
  padding: 64px 0 40px;
}
.lp-eyebrow {
  display: inline-block; margin-bottom: 16px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(91, 91, 239, 0.10); color: var(--brand);
  font-weight: 800; font-size: 13px; letter-spacing: 0.2px;
}
.lp-hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.05; font-weight: 900; letter-spacing: -1.6px; }
.lp-gradient {
  background: linear-gradient(100deg, var(--brand), var(--accent) 60%, var(--accent-warm));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-sub { margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.lp-sub-small { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lp-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); min-height: 20px; }

/* floating illustration */
.lp-hero-art { position: relative; min-height: 380px; }
.lp-orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: 0.5; }
.lp-orb-1 { width: 300px; height: 300px; right: -10px; top: -20px; background: rgba(91, 91, 239, 0.45); }
.lp-orb-2 { width: 240px; height: 240px; left: 10px; bottom: -10px; background: rgba(18, 179, 166, 0.40); }

.lp-card-float {
  position: absolute; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px 20px;
  animation: lp-bob 6s ease-in-out infinite;
}
.lp-float-a { top: 26px; left: 0; width: 260px; }
.lp-float-b { bottom: 20px; right: 0; width: 240px; animation-delay: -3s; }
.lp-mini-label { font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.lp-mini-title { font-size: 19px; font-weight: 900; margin: 6px 0 12px; }
.lp-mini-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.lp-mini-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.lp-mini-foot { margin-top: 10px; font-size: 13px; color: var(--ink-2); font-weight: 700; }
.lp-mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; color: var(--ink-2); font-weight: 700; }
.lp-mini-row + .lp-mini-row { border-top: 1px solid var(--line); }
.lp-mini-row b { color: var(--ink); }
.lp-badge-float {
  position: absolute; top: 0; right: 40px;
  background: linear-gradient(135deg, var(--gold), var(--accent-warm));
  color: #fff; font-weight: 900; font-size: 14px;
  padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow);
  animation: lp-bob 5s ease-in-out infinite; animation-delay: -1.5s;
}

@keyframes lp-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ---------- sections ---------- */
.lp-section { padding: 56px 0 10px; }
.lp-section-head { text-align: center; margin-bottom: 34px; }
.lp-section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; }

/* ---------- app cards ---------- */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.lp-app-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.lp-app-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.lp-app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.lp-app-soon { opacity: 0.92; }
.lp-app-soon::before { background: linear-gradient(90deg, var(--muted), var(--line)); }
.lp-app-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lp-app-icon { font-size: 42px; line-height: 1; }
.lp-app-card h3 { font-size: 25px; font-weight: 900; }
.lp-app-card > p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.6; }
.lp-tag {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.lp-tag-live { background: var(--good-bg); color: var(--good); border-color: transparent; }
.lp-feature-list { margin: 16px 0 0; padding: 0; list-style: none; }
.lp-feature-list li {
  position: relative; padding: 5px 0 5px 26px;
  color: var(--ink-2); font-size: 15px; font-weight: 600;
}
.lp-feature-list li::before {
  content: '✓'; position: absolute; left: 0; top: 5px;
  color: var(--accent); font-weight: 900;
}
.lp-muted-list li::before { content: '•'; color: var(--muted); }
.lp-app-actions { margin-top: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lp-soon-pill { font-size: 14px; font-weight: 800; color: var(--muted); }

/* ---------- how it works ---------- */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.lp-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.lp-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-weight: 900; margin-bottom: 14px;
}
.lp-steps h4 { font-size: 18px; font-weight: 900; }
.lp-steps p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.6; font-size: 15px; }

/* ---------- footer ---------- */
.lp-footer { margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.lp-footer-brand { font-weight: 900; color: var(--ink-2); font-size: 17px; }
.lp-footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 12px 0; }
.lp-footer-links a,
.lp-footer-links button {
  color: var(--ink-2); font-weight: 700; font-size: 14px; text-decoration: none;
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
}
.lp-footer-links a:hover,
.lp-footer-links button:hover { color: var(--brand); text-decoration: underline; }

/* ---------- auth form (inside the shared .modal) ---------- */
.lp-form { text-align: left; margin-top: 20px; }
.lp-field { margin-bottom: 14px; }
.lp-field label { display: block; font-size: 13px; font-weight: 800; color: var(--ink-2); margin-bottom: 6px; }
.lp-field input {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 16px;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink); outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.lp-field input:focus { border-color: var(--brand); background: var(--surface); }
.lp-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.lp-error {
  background: var(--bad-bg); color: var(--bad);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 14px; font-weight: 700; margin-bottom: 14px;
}
.lp-switch { margin-top: 18px; font-size: 14px; color: var(--ink-2); text-align: center; }
.lp-switch button {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--brand); font: inherit; font-weight: 800; text-decoration: underline;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 20px; }
  .lp-hero-art { min-height: 300px; order: -1; }
  /* Offset with `left`, not `transform` — the float animation owns transform. */
  .lp-float-a { left: 8px; }
  .lp-float-b { right: 8px; bottom: 0; }
  .lp-badge-float { right: 12px; }
}
@media (max-width: 560px) {
  .lp main { padding: 0 16px 40px; }
  .lp-hero-art { display: none; }
  .lp-cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-card-float, .lp-badge-float { animation: none; }
  .lp-app-card { transition: none; }
}

/* ---------- reset-password page ---------- */
.lp-reset-wrap { max-width: 460px; margin: 60px auto; }
.lp-reset-wrap .card { padding: 30px; }
.lp-reset-wrap h1 { font-size: 24px; font-weight: 900; }

/* ---------- account settings ---------- */
.lp-settings { max-width: 470px; text-align: center; }
.lp-settings > h1 { font-size: 24px; font-weight: 900; margin: 10px 0 4px; }
.lp-setting-block {
  text-align: left; margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.lp-setting-block h2 {
  font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.lp-setting-block .lp-form { margin-top: 12px; }
.lp-ok {
  background: var(--good-bg); color: var(--good);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 14px; font-weight: 700; margin-bottom: 14px;
}

/* ---------- mobile ---------- */
/* Signed in, the bar holds a greeting plus three buttons — far too much for a
   phone in one row, so it wraps onto a second line instead of overflowing. */
@media (max-width: 700px) {
  .lp .topbar { gap: 10px; padding: 10px 13px; }
  .lp-nav { gap: 8px; }
  .lp-nav .btn { padding: 9px 14px; font-size: 14px; }
  .lp-hero h1 { letter-spacing: -1px; }
  .lp-sub { font-size: 16.5px; }
  .lp-section { padding: 40px 0 6px; }
  .lp-app-card { padding: 20px 17px; }
  .lp-app-card h3 { font-size: 22px; }
  .lp-steps li { padding: 20px 17px; }
}

@media (max-width: 460px) {
  .lp main { padding: 0 13px 40px; }
  .lp-eyebrow { font-size: 12px; }
  .lp-hero { padding: 26px 0 12px; }
  .lp-cta-row { gap: 10px; }
  .lp-app-icon { font-size: 34px; }
  .lp-feature-list li { font-size: 14.5px; }
  .lp-footer-links { gap: 12px; }
  .lp-reset-wrap { margin: 30px auto; }
  .lp-settings { max-width: 100%; }
}

/* ---------------------------------------------------------------------------
   Account menu — one control in the corner instead of a row of buttons.
   --------------------------------------------------------------------------- */
.lp-account-wrap { position: relative; }

.lp-account {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 12px 5px 5px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; font-family: inherit;
  color: var(--ink); font-weight: 700; font-size: 14.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lp-account:hover { border-color: #c9cdf5; box-shadow: 0 4px 14px rgba(46,50,120,.08); }
.lp-account[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,91,239,.14); }
.lp-account:focus-visible { outline: 3px solid rgba(91,91,239,.45); outline-offset: 2px; }

.lp-avatar {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-weight: 900; font-size: 14px; letter-spacing: -.3px;
}
.lp-avatar-lg { width: 40px; height: 40px; font-size: 19px; }
.lp-account-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-chev { width: 15px; height: 15px; color: var(--muted); transition: transform .18s ease; }
.lp-account[aria-expanded="true"] .lp-chev { transform: rotate(180deg); color: var(--brand); }

.lp-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30;
  width: 264px; max-width: calc(100vw - 26px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 18px 44px rgba(31,35,64,.20);
  overflow: hidden; animation: lp-menu-in .16s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes lp-menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.lp-menu-head {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 16px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.lp-menu-id { display: grid; min-width: 0; line-height: 1.35; }
.lp-menu-id b { font-size: 14.5px; color: var(--ink); }
.lp-menu-id span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lp-menu-body { padding: 6px; display: flex; flex-direction: column; gap: 1px; }
.lp-menu-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 11px; border: none; border-radius: 10px;
  background: none; cursor: pointer; text-align: left; text-decoration: none;
  font-family: inherit; font-size: 14.5px; font-weight: 650; color: var(--ink);
  transition: background .12s ease, color .12s ease;
}
.lp-menu-item svg { width: 17px; height: 17px; flex: none; color: var(--muted); transition: color .12s ease; }
.lp-menu-item:hover { background: var(--surface-2); }
.lp-menu-item:hover svg { color: var(--brand); }
.lp-menu-item:focus-visible { outline: none; background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--brand); }

.lp-menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

.lp-menu-danger { color: var(--bad); }
.lp-menu-danger svg { color: var(--bad); opacity: .75; }
.lp-menu-danger:hover { background: var(--bad-bg); }
.lp-menu-danger:hover svg { color: var(--bad); opacity: 1; }

/* On a phone the name is redundant next to the avatar. */
@media (max-width: 460px) {
  .lp-account-name { display: none; }
  .lp-account { padding: 5px; gap: 5px; }
  .lp-chev { margin-right: 3px; }
  .lp-menu { width: 250px; }
}
