/*
 * SelfSignal homepage — premium, dark, mobile-first landing page.
 * Isolated stylesheet: loaded ONLY by index.html so the 12 shared-styles.css
 * pages are unaffected. Palette matches /try/ for a seamless handoff.
 */

:root {
  --ss-bg: #080d18;
  --ss-bg-soft: #0d1322;
  --ss-panel: #151a28;
  --ss-panel-2: #202638;
  --ss-panel-3: #28283d;

  --ss-text: #ffffff;
  --ss-text-soft: #d9dcea;
  --ss-muted: #a4a9bd;

  --ss-accent: #5fd7c2;
  --ss-accent-2: #7be7d3;
  --ss-accent-dark: #006b55;

  --ss-purple: #6c72f6;
  --ss-blue: #63a7ff;
  --ss-pink: #f17bc0;
  --ss-yellow: #f7c85f;

  --ss-border: rgba(255, 255, 255, 0.12);
  --ss-card-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --ss-radius-lg: 32px;
  --ss-radius-md: 22px;
  --ss-radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--ss-bg);
  color: var(--ss-text);
  font-family: "Plus Jakarta Sans", "Inter", "Nunito Sans", system-ui, -apple-system,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

body,
.site-shell {
  min-width: 0;
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ss-accent);
  font-weight: 700;
  margin: 0 0 14px;
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.section-title {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.section-sub {
  color: var(--ss-muted);
  font-size: clamp(16px, 2vw, 19px);
  margin: 0;
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ss-accent);
  color: #06120f;
  box-shadow: 0 16px 40px rgba(95, 215, 194, 0.28);
}

.btn-primary:hover {
  background: var(--ss-accent-2);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ss-text);
  border-color: var(--ss-border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-block {
  width: 100%;
}

:focus-visible {
  outline: 3px solid var(--ss-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- Header ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8, 13, 24, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #06120f;
  background: linear-gradient(135deg, var(--ss-accent), var(--ss-blue));
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--ss-text-soft);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--ss-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

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

/* ---- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 100px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 640px;
  background:
    radial-gradient(50% 50% at 25% 20%, rgba(108, 114, 246, 0.28), transparent 70%),
    radial-gradient(45% 45% at 80% 10%, rgba(95, 215, 194, 0.22), transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(95, 215, 194, 0.12);
  border: 1px solid rgba(95, 215, 194, 0.28);
  color: var(--ss-accent-2);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ss-text-soft);
  max-width: 560px;
  margin: 0 0 30px;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--ss-muted);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-strip li::before {
  content: "✓";
  color: var(--ss-accent);
  font-weight: 800;
}

/* ---- Hero phone mockup ---------------------------------------------- */
.hero-mockup {
  justify-self: center;
  width: min(320px, 82vw);
  max-width: 100%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.phone {
  border-radius: 42px;
  padding: 14px;
  background: linear-gradient(180deg, #1b2233, #0c1120);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--ss-card-shadow);
}

.phone-screen {
  border-radius: 30px;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(108, 114, 246, 0.25), transparent 60%),
    var(--ss-bg);
  padding: 22px 18px 26px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ss-muted);
  font-size: 13px;
  font-weight: 700;
}

.phone-dots {
  display: flex;
  gap: 5px;
}

.phone-dots span {
  height: 5px;
  width: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.phone-dots span.on {
  background: var(--ss-accent);
}

.phone-eyebrow {
  color: var(--ss-accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.phone-q {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.phone-opt {
  padding: 15px 16px;
  border-radius: 16px;
  background: var(--ss-panel);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  font-weight: 600;
  font-size: 15px;
}

.phone-opt.sel {
  background: #fff;
  color: #1c1c33;
  border-color: #fff;
}

.phone-cta {
  margin-top: auto;
  text-align: center;
  padding: 16px;
  border-radius: 999px;
  background: var(--ss-accent);
  color: #06120f;
  font-weight: 800;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-sub {
    margin-inline: auto;
  }
  .hero-actions,
  .trust-strip {
    justify-content: center;
  }
  .hero-mockup {
    order: 5;
    margin-top: 8px;
    width: min(300px, 100%);
  }
}

/* ---- Generic card grid ---------------------------------------------- */
.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--ss-panel);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-md);
  padding: 26px;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(95, 215, 194, 0.4);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(108, 114, 246, 0.3), rgba(95, 215, 194, 0.22));
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--ss-muted);
  font-size: 15.5px;
}

/* ---- Path cards ------------------------------------------------------ */
.path-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.path-card .path-hook {
  color: var(--ss-text-soft);
  font-size: 15.5px;
  flex: 1;
}

.path-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.path-time {
  color: var(--ss-muted);
  font-size: 13px;
  font-weight: 600;
}

.path-link {
  color: var(--ss-accent);
  font-weight: 700;
  font-size: 15px;
}

.path-card:hover .path-link {
  color: var(--ss-accent-2);
}

/* ---- How it works ---------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}

.step {
  background: var(--ss-panel);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-md);
  padding: 26px 22px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #06120f;
  background: var(--ss-accent);
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--ss-muted);
  font-size: 15px;
}

/* ---- Report preview -------------------------------------------------- */
.report-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--ss-panel), var(--ss-bg-soft));
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--ss-card-shadow);
}

.report-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ss-border);
  margin-bottom: 22px;
}

.report-archetype {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.report-row {
  margin-bottom: 20px;
}

.report-row h4 {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ss-accent);
}

.report-row p {
  margin: 0;
  color: var(--ss-text-soft);
}

.locked {
  position: relative;
  border-radius: var(--ss-radius-sm);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--ss-border);
  color: var(--ss-muted);
  filter: blur(0.4px);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.locked::after {
  content: "🔒 locked";
  font-size: 12px;
  color: var(--ss-muted);
  white-space: nowrap;
}

.report-cta {
  margin-top: 24px;
  text-align: center;
}

/* ---- Experience grid ------------------------------------------------- */
.exp-grid {
  grid-template-columns: repeat(3, 1fr);
}

.exp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--ss-panel);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-sm);
  padding: 18px;
}

.exp-item .tick {
  color: var(--ss-accent);
  font-weight: 800;
}

.exp-item div strong {
  display: block;
  font-size: 15.5px;
}

.exp-item div span {
  color: var(--ss-muted);
  font-size: 14px;
}

/* ---- Pricing --------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--ss-panel);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-md);
  padding: 28px 24px;
}

.price-card.featured {
  border-color: var(--ss-accent);
  background: linear-gradient(180deg, rgba(95, 215, 194, 0.1), var(--ss-panel));
  box-shadow: 0 24px 60px rgba(95, 215, 194, 0.16);
}

.price-badge {
  align-self: flex-start;
  background: var(--ss-accent);
  color: #06120f;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.price-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.price-amount {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
  overflow-wrap: break-word;
}

.price-note {
  color: var(--ss-muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.price-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.price-bullets li {
  display: flex;
  gap: 9px;
  color: var(--ss-text-soft);
  font-size: 15px;
}

.price-bullets li::before {
  content: "✓";
  color: var(--ss-accent);
  font-weight: 800;
}

.pricing-fineprint {
  max-width: 720px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--ss-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.contribution-hint {
  max-width: 620px;
  margin: 16px auto 0;
  text-align: center;
  background: rgba(108, 114, 246, 0.12);
  border: 1px solid rgba(108, 114, 246, 0.3);
  border-radius: var(--ss-radius-sm);
  padding: 14px 18px;
  color: var(--ss-text-soft);
  font-size: 14.5px;
}

/* ---- Trust ----------------------------------------------------------- */
.trust-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* ---- FAQ ------------------------------------------------------------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--ss-panel);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--ss-text);
  font-size: 17px;
  font-weight: 700;
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-q .chev {
  color: var(--ss-accent);
  font-size: 20px;
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}

.faq-item[aria-expanded="true"] .chev {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-a-inner {
  padding: 0 22px 20px;
  color: var(--ss-muted);
  font-size: 15.5px;
}

/* ---- Final CTA ------------------------------------------------------- */
.final-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(108, 114, 246, 0.25), transparent 70%),
    radial-gradient(60% 80% at 50% 100%, rgba(95, 215, 194, 0.18), transparent 70%);
  z-index: 0;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta .btn {
  margin: 4px 6px 0;
}

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--ss-border);
  padding: 56px 0 40px;
  background: var(--ss-bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-about p {
  color: var(--ss-muted);
  font-size: 15px;
  max-width: 320px;
  margin: 12px 0 0;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ss-muted);
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  color: var(--ss-text-soft);
  font-size: 15px;
  padding: 6px 0;
}

.footer-col a:hover {
  color: var(--ss-accent);
}

.footer-bottom {
  border-top: 1px solid var(--ss-border);
  padding-top: 22px;
  color: var(--ss-muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ---- Scroll reveal --------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 900px) {
  .grid-3,
  .exp-grid,
  .trust-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 28px);
  }
  .site-header {
    overflow: hidden;
  }
  .header-inner {
    gap: 10px;
  }
  .brand {
    min-width: 0;
    font-size: 17px;
  }
  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-actions {
    flex: 0 0 auto;
  }
  .header-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }
  .hero {
    padding-top: 40px;
  }
  .hero-title {
    font-size: clamp(34px, 11vw, 44px);
    letter-spacing: -0.025em;
  }
  .hero-sub {
    font-size: 16px;
  }
  .badge {
    max-width: 100%;
    white-space: normal;
    justify-content: center;
  }
  .trust-strip {
    gap: 8px 14px;
    font-size: 13px;
  }
  .trust-strip li {
    max-width: 100%;
  }
  .phone-screen {
    min-height: 460px;
  }
  .card,
  .path-card,
  .price-card,
  .report-card {
    min-width: 0;
  }
  .card h3,
  .path-card h3,
  .price-card h3,
  .section-title {
    overflow-wrap: anywhere;
  }
  .path-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .path-link {
    display: inline-flex;
    line-height: 1.25;
  }
  .grid-3,
  .grid-2,
  .exp-grid,
  .trust-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .btn {
    width: 100%;
  }
  .header-cta {
    width: auto;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
