/* Public single page: shown to every visitor who is not signed in. */

body.public-shell .sidebar,
body.public-shell .nav-overlay { display: none; }
body.public-shell .app-shell { overflow-x: clip; }
body.public-shell .content { width: min(1240px, 100%); padding: 0 32px 0; }
body.public-shell .topbar { position: sticky; top: 0; z-index: 9; height: 78px; }
/* The bar itself is capped to the content width, so the backdrop is painted edge to edge
   by a child that reaches past it. `overflow-x: clip` above keeps that from scrolling. */
body.public-shell .topbar:before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; inset-inline: calc(50% - 50vw);
  background: #0d0b19d9; backdrop-filter: blur(14px); border-bottom: 1px solid #ffffff12;
}
body.public-shell .auth-screen { min-height: calc(100vh - 78px); }

.header-login { padding: 11px 20px; font-size: 13px; }
.ghost-link {
  border: 1px solid #3a3358; border-radius: 10px; padding: 10px 16px;
  background: #ffffff08; color: #cfc9ea; font-size: 13px; font-weight: 600; transition: .2s;
}
.ghost-link:hover { border-color: #7c5cff; color: #fff; background: #7c5cff1f; }

.landing { padding-bottom: 60px; }
.landing h2 { margin: 6px 0 0; font-size: clamp(21px, 3vw, 30px); line-height: 1.5; }
.landing h3 { margin: 0 0 8px; font-size: 15px; }
.landing p { color: var(--muted); font-size: 13px; line-height: 2.1; }
.landing-lead { max-width: 640px; margin: 12px 0 0; }
.landing-section { padding: 74px 0 0; }
.landing-section-head { margin-bottom: 34px; }

/* Hero */
.landing-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 54px; align-items: center; padding: 58px 0 24px;
}
.landing-hero:before {
  content: ''; position: absolute; z-index: -1; inset-inline-start: -14%; top: -170px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, #7c5cff3d, transparent 62%); filter: blur(26px);
}
.landing-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 13px;
  border: 1px solid #4b3f85; border-radius: 999px; background: #7c5cff14;
  color: #c3b6ff; font-size: 12px; font-weight: 600;
}
.landing-pill i { width: 7px; height: 7px; border-radius: 50%; background: #58e2b0; box-shadow: 0 0 10px #58e2b0; }
.landing-hero h1 {
  margin: 22px 0 0; font-size: clamp(31px, 5.1vw, 53px); line-height: 1.42; font-weight: 800; letter-spacing: -.4px;
}
.landing-hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #a48bff, #63d2ff 62%, #58e2b0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.landing-hero-copy > p { max-width: 560px; margin: 20px 0 0; font-size: 14px; }
.landing-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 32px; }
.landing-cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 27px;
  border-radius: 13px; font-size: 15px; letter-spacing: -.2px;
  background: linear-gradient(135deg, #8f70ff, #5a37ee 62%, #3f7dff);
  box-shadow: 0 14px 32px #4c2ec06b, inset 0 1px 0 #ffffff2e;
}
.landing-cta span { font-size: 17px; transition: transform .2s; }
.landing-cta:hover { background: linear-gradient(135deg, #9d82ff, #6947f2 62%, #4d89ff); transform: translateY(-2px); }
.landing-cta:hover span { transform: translateX(-4px); }
.landing-cta-large { padding: 17px 34px; font-size: 16px; }
.landing-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; }
.landing-trust li { display: flex; align-items: center; gap: 8px; color: #9d97b8; font-size: 12px; }
.landing-trust li:before { content: '✓'; color: #58e2b0; font-size: 12px; }

/* Hero visual: a still frame of what the panel looks like */
.landing-visual { position: relative; }
.landing-visual-card {
  padding: 21px; border: 1px solid #37305a; border-radius: 20px;
  background: linear-gradient(150deg, #221d3d, #16142a);
  box-shadow: 0 26px 55px #00000059; transform: rotate(-1.4deg);
}
.landing-visual-top { display: flex; align-items: center; gap: 11px; }
.landing-visual-top strong { display: block; font-size: 14px; }
.landing-visual-top small { color: var(--muted); font-size: 11px; }
.landing-visual-bar { height: 7px; margin: 20px 0 9px; border-radius: 4px; background: #2a2545; overflow: hidden; }
.landing-visual-bar span { display: block; width: 76%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7657ec, #59d3ff); }
.landing-visual-card p { margin: 0; font-size: 11px; }
.landing-visual-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 17px; padding-top: 15px; border-top: 1px solid #2c2649;
}
.landing-visual-foot b { color: #68d4ff; font-size: 14px; }
.landing-fake-button {
  padding: 9px 15px; border-radius: 10px; font-size: 12px; font-weight: 700;
  background: linear-gradient(135deg, #8566ff, #6745ef); color: #fff;
}
.landing-visual-chip {
  position: relative; z-index: 1; width: max-content; margin: -18px 0 0 auto; padding: 13px 19px;
  border: 1px solid #40376a; border-radius: 15px; background: #171430f2;
  box-shadow: 0 18px 35px #00000059; transform: rotate(1.2deg);
}
.landing-visual-chip span { display: block; color: var(--muted); font-size: 11px; }
.landing-visual-chip strong { display: block; margin-top: 4px; font-size: 19px; color: #8fddff; }
.landing-visual-note { margin: 22px 0 0; text-align: center; font-size: 11px; color: #6f6a8a; }

/* Platform strip */
.landing-platforms {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px;
  margin-top: 46px; padding: 22px 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #17142a80;
}
.landing-platform-row { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.landing-platform { display: inline-flex; align-items: center; gap: 10px; color: #cdc7e6; font-size: 13px; font-weight: 600; }
.landing-platform .platform-icon { width: 30px; height: 30px; font-size: 12px; }

/* Steps */
.landing-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.landing-step {
  position: relative; padding: 24px 22px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(145deg, #1b1830, #151326); transition: .2s;
}
.landing-step:hover { transform: translateY(-3px); border-color: #6a55c4; box-shadow: 0 16px 30px #00000040; }
.landing-step-number {
  display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 16px;
  border-radius: 12px; background: #6549f52c; color: #a895ff; font-size: 15px; font-weight: 700;
}
.landing-step p { margin: 0; font-size: 12px; }

/* Scoring */
.landing-score-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.landing-score {
  padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(145deg, #1b1830, #151326);
}
.landing-score strong { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; color: #68d4ff; font-size: 33px; font-weight: 800; }
.landing-score strong small { font-size: 12px; font-weight: 600; color: #7f9fc0; }
.landing-score p { margin: 0; font-size: 12px; }

/* Mid-page call to action */
.landing-band { margin-top: 74px; }
.landing-band-inner {
  position: relative; overflow: hidden; padding: 56px 34px; text-align: center;
  border: 1px solid #57439d; border-radius: 24px;
  background: linear-gradient(112deg, #21194b, #42248f 58%, #253f90);
  box-shadow: 0 22px 46px #00000045;
}
.landing-band-inner:before {
  content: ''; position: absolute; inset-inline-start: -80px; top: -150px;
  width: 300px; height: 300px; border-radius: 50%; background: #5bc5ff2e; filter: blur(4px);
}
.landing-band-inner:after {
  content: ''; position: absolute; inset-inline-end: -60px; bottom: -170px;
  width: 300px; height: 300px; border-radius: 50%; background: #b07cff2b; filter: blur(4px);
}
.landing-band-inner > * { position: relative; z-index: 1; }
.landing-band-inner .eyebrow { color: #b8adff; }
.landing-band-inner > p { max-width: 520px; margin: 14px auto 0; color: #d4cff0; }
.landing-band-inner .landing-cta { margin-top: 28px; }
.landing-band-inner small { display: block; margin-top: 18px; color: #b7afe0; font-size: 11px; }

/* Privacy red line */
.landing-privacy { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; align-items: start; }
.landing-privacy-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.landing-privacy-list li {
  padding: 17px 19px; border: 1px solid #3a3163; border-radius: 14px;
  background: #251f403d; color: var(--muted); font-size: 12px; line-height: 2;
}
.landing-privacy-list strong { display: block; margin-bottom: 5px; color: #fff; font-size: 13px; }

/* FAQ */
.landing-faq-list { display: grid; gap: 10px; }
.landing-faq-item { border: 1px solid var(--line); border-radius: 14px; background: #17142a80; transition: .2s; }
.landing-faq-item[open] { border-color: #6a55c4; background: #1b1830; }
.landing-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; cursor: pointer; color: #e7e3f8; font-size: 14px; font-weight: 600; list-style: none;
}
.landing-faq-item summary::-webkit-details-marker { display: none; }
.landing-faq-item summary:after { content: '+'; color: #a895ff; font-size: 19px; transition: transform .2s; }
.landing-faq-item[open] summary:after { transform: rotate(45deg); }
.landing-faq-item p { margin: 0; padding: 0 20px 20px; font-size: 12.5px; }

/* Footer */
.landing-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px;
  margin-top: 74px; padding: 34px 0 0; border-top: 1px solid var(--line);
}
.landing-footer p { max-width: 440px; margin: 14px 0 0; font-size: 12px; }
/* Actions sit on the start edge, brand on the end edge; each hugs its own side. */
.landing-footer-actions { display: grid; gap: 12px; justify-items: start; }
.landing-footer-actions .button { padding: 12px 24px; font-size: 13px; }
.landing-footer-actions small { max-width: 390px; color: #6f6a8a; font-size: 11px; line-height: 1.9; text-align: start; }
.landing-footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.landing-footer-links a { color: #a9a5bd; font-size: 12.5px; font-weight: 600; border-bottom: 1px solid transparent; transition: .2s; }
.landing-footer-links a:hover { color: #fff; border-bottom-color: var(--purple); }
.landing-footer-brand { display: grid; justify-items: end; gap: 14px; text-align: end; }
.landing-footer-brand p { margin: 0; }

@media (max-width: 1000px) {
  .landing-hero { grid-template-columns: 1fr; gap: 42px; }
  .landing-visual { max-width: 460px; }
  .landing-privacy { grid-template-columns: 1fr; gap: 26px; }
  .landing-steps, .landing-score-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body.public-shell .content { padding: 0 18px; }
  body.public-shell .topbar { height: 66px; }
  body.public-shell .auth-screen { min-height: calc(100vh - 66px); }
  .header-login { padding: 10px 15px; font-size: 12px; }
  .landing-hero { padding: 34px 0 10px; }
  .landing-hero h1 { line-height: 1.5; }
  .landing-cta { width: 100%; justify-content: center; }
  .ghost-link { width: 100%; text-align: center; }
  .landing-section { padding: 54px 0 0; }
  .landing-steps, .landing-score-row { grid-template-columns: 1fr; }
  .landing-band { margin-top: 54px; }
  .landing-band-inner { padding: 40px 20px; }
  .landing-footer { margin-top: 54px; }
  .landing-footer-actions { justify-items: stretch; width: 100%; }
  .landing-footer-actions .button { text-align: center; }
  .landing-footer-actions small { text-align: start; }
  .landing-footer-brand { justify-items: start; text-align: start; }
}
