:root {
  --ink: #12202a;
  --muted: #4a5a66;
  --paper: #eef3f1;
  --accent: #0f766e;
  --accent-hover: #0b5f59;
  --brand: #12202a;
  --topbar-h: 3.4rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

/* --- Sticky site top bar --- */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 2000;
  height: var(--topbar-h);
  background: rgba(238, 243, 241, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 32, 42, 0.1);
}

.site-topbar-inner {
  height: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(0.85rem, 3vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-topbar-brand {
  flex: 0 0 auto;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
  text-decoration: none;
}

.site-topbar-brand:hover {
  color: var(--accent);
}

.site-topbar-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.55rem, 2vw, 1.25rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-topbar-nav::-webkit-scrollbar {
  display: none;
}

.site-topbar-nav a {
  flex: 0 0 auto;
  font-size: clamp(0.78rem, 2.2vw, 0.9rem);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-topbar-nav a:hover {
  color: var(--ink);
}

.site-topbar-nav a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100dvh - var(--topbar-h));
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding: clamp(1.25rem, 3.5vw, 2.75rem);
  background:
    radial-gradient(1000px 640px at 85% 20%, rgba(15, 118, 110, 0.16), transparent 55%),
    radial-gradient(820px 520px at 8% 88%, rgba(194, 65, 12, 0.07), transparent 50%),
    linear-gradient(165deg, #f4f7f5 0%, #e7eeea 48%, #dce7e2 100%);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.22) 100%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-content {
  max-width: 34rem;
  order: 2;
}

.hero-visual {
  order: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 48vh;
}

.phone-frame {
  width: min(72vw, 280px);
  padding: 10px 10px 8px;
  border-radius: 28px;
  background: #1a1f24;
  box-shadow: 0 18px 40px rgba(18, 32, 42, 0.18);
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  animation: phone-in 1s ease 0.2s forwards;
}

.phone-screen {
  height: min(62vh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 20px;
  background: #0e1117;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.phone-screen::-webkit-scrollbar {
  width: 4px;
}

.phone-screen::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
}

.phone-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  background: #0e1117;
  pointer-events: none;
}

.phone-hint {
  margin: 0.45rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.brand-logo {
  width: clamp(3.25rem, 8vw, 4.5rem);
  height: auto;
  flex-shrink: 0;
  display: block;
  opacity: 0;
  transform: translateX(-42vw);
  animation: logo-slide-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.brand {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--brand);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease 0.28s forwards;
}

.brand-slogan {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 500;
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--muted);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.75s ease 0.36s forwards;
}

.headline {
  margin: 0 0 0.85rem;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 3.2vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 18ch;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease 0.28s forwards;
}

.support {
  margin: 0 0 1.6rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34ch;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease 0.42s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease 0.55s forwards;
}

.cta-row-static {
  opacity: 1;
  transform: none;
  animation: none;
  justify-content: flex-start;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  background: var(--accent);
  color: #f7fbfa;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.35rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(18, 32, 42, 0.28);
}

.cta-secondary:hover {
  background: rgba(18, 32, 42, 0.05);
  transform: translateY(-1px);
}

.cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.cta-secondary:hover {
  background: rgba(18, 32, 42, 0.05);
}

.cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* --- Content sections --- */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3.5rem);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 42rem;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36ch;
}

.section-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 38ch;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.section-media {
  margin: 0;
}

.section-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

.section-media-phone {
  display: flex;
  justify-content: center;
}

.phone-frame-static {
  opacity: 1;
  transform: none;
  animation: none;
  width: min(70vw, 260px);
}

.phone-frame-static img {
  border-radius: 20px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.35rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-left: 3rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-radius: 0.3rem;
  background: rgba(15, 118, 110, 0.06);
}

.steps strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.steps span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
  max-width: 42ch;
}

.section-what {
  background: #f7faf8;
}

.section-how {
  background:
    linear-gradient(180deg, #eef4f1 0%, #e4ece8 100%);
}

.section-setups {
  background: #f4f8f6;
  border-top: 1px solid rgba(18, 32, 42, 0.06);
}

.section-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.setups-preview {
  width: min(100%, 420px);
  margin: 0 auto;
}

.setups-preview-screen {
  height: min(58vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 18px;
  background: #0e1117;
  border: 1px solid rgba(18, 32, 42, 0.18);
  box-shadow: 0 16px 36px rgba(18, 32, 42, 0.12);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.setups-preview-screen::-webkit-scrollbar {
  width: 5px;
}

.setups-preview-screen::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
}

.setups-preview-shot {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.setups-preview-hint {
  margin: 0.55rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.section-track {
  background:
    linear-gradient(165deg, #e8f1ee 0%, #dfe9e4 48%, #eef3f1 100%);
  border-top: 1px solid rgba(18, 32, 42, 0.06);
  border-bottom: 1px solid rgba(18, 32, 42, 0.06);
}

.track-status {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.track-panel[hidden] {
  display: none !important;
}

.track-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin: 0 0 1.5rem;
}

.track-metric {
  min-width: 0;
}

.track-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.track-value {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.track-value.is-up {
  color: var(--accent);
}

.track-value.is-down {
  color: #b45309;
}

.track-sub {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.track-chart-wrap {
  margin: 0 0 1.5rem;
  max-width: 720px;
}

.track-chart-title {
  margin: 0 0 0.35rem;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.track-chart-note {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.track-chart {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(18, 32, 42, 0.08);
}

.track-chart-label {
  fill: #4a5a66;
  font-family: "Sora", sans-serif;
  font-size: 11px;
}

.track-chart-baseline-label {
  fill: #12202a;
  font-size: 10px;
}

.track-holdings-title {
  margin: 0 0 0.65rem;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.track-holdings-head {
  display: grid;
  grid-template-columns: 1fr auto minmax(4.75rem, auto);
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 0 0.35rem;
  padding: 0 0 0.35rem;
  border-bottom: 1px solid rgba(18, 32, 42, 0.12);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.track-holdings-head span:nth-child(2),
.track-holdings-head span:nth-child(3) {
  text-align: right;
}

.track-holdings {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  max-width: 420px;
  max-height: 28rem;
  overflow-y: auto;
}

.track-holdings li {
  display: grid;
  grid-template-columns: 1fr auto minmax(4.75rem, auto);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(18, 32, 42, 0.08);
  font-size: 0.95rem;
}

.track-holdings .sym {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.track-holdings .mv {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.track-holdings .pl-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  min-width: 4.75rem;
}

.track-holdings .pl {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

.track-holdings .pl-dollar {
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.track-holdings .pl.is-up {
  color: var(--accent);
}

.track-holdings .pl.is-down {
  color: #b45309;
}

.track-holdings-empty {
  display: block;
  padding: 0.35rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  border: none;
}

.track-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.track-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid rgba(15, 118, 110, 0.35);
  padding-bottom: 0.1rem;
}

.track-sim-label {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.track-sim-note {
  margin: 0 0 1.35rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.track-sim-note a,
.track-method-links a {
  color: var(--ink);
  text-underline-offset: 0.12em;
}

.track-method-links {
  margin: -0.65rem 0 1.35rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.track-disclaimer {
  margin: 0 0 1.35rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.section-simple {
  background: #f7faf8;
}

.section-cta {
  background: #e7efeb;
  text-align: left;
}

.section-legal {
  background: #e2eae6;
  border-top: 1px solid rgba(18, 32, 42, 0.08);
}

.section-legal p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.section-legal p:last-child {
  margin-bottom: 0;
}

.legal-links {
  margin-top: 1.5rem !important;
  font-size: 0.95rem !important;
}

.legal-links a,
.footer-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.legal-links a:hover,
.footer-links a:hover {
  text-decoration: underline;
}

.site-footer {
  padding: 1.5rem clamp(1.5rem, 4vw, 3.5rem) 2.25rem;
  background: #d8e3de;
  border-top: 1px solid rgba(18, 32, 42, 0.08);
}

.site-footer p {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logo-slide-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes phone-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo,
  .brand,
  .brand-slogan,
  .headline,
  .support,
  .cta-row,
  .phone-frame {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (min-width: 900px) {
  .hero {
    padding-left: clamp(2rem, 7vw, 5.5rem);
    padding-right: clamp(1rem, 4vw, 3rem);
  }

  .hero-layout {
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.95fr);
    gap: 2.5rem;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
    justify-content: flex-end;
    min-height: auto;
    align-self: stretch;
    align-items: center;
  }

  .phone-frame {
    width: min(42vw, 380px);
  }

  .phone-screen {
    height: min(72vh, 680px);
  }

  .split {
    grid-template-columns: 1fr 1.05fr;
  }

  .split-reverse .section-copy {
    order: 2;
  }

  .split-reverse .section-media {
    order: 1;
  }

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

  .track-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .setups-preview {
    width: min(100%, 460px);
  }

  .setups-preview-screen {
    height: min(64vh, 580px);
  }

  .steps li {
    padding-left: 0;
    padding-top: 3rem;
  }

  .steps li::before {
    top: 0;
  }
}

/* --- Auth (login / signup) --- */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(900px 560px at 90% 10%, rgba(15, 118, 110, 0.14), transparent 55%),
    linear-gradient(165deg, #f4f7f5 0%, #e7eeea 50%, #dce7e2 100%);
}

.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 28rem;
  margin: 0 auto;
}

.auth-back {
  align-self: flex-start;
  margin-bottom: 1.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.auth-back:hover {
  color: var(--ink);
}

.auth-panel {
  width: 100%;
}

.auth-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
}

.auth-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.auth-brand-logo {
  width: 2.5rem;
  height: auto;
  display: block;
}

.auth-brand {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.auth-brand-slogan {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--muted);
}

.auth-title {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.auth-lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.auth-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 0.55rem;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(18, 32, 42, 0.14);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.auth-terms input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.auth-terms a {
  color: var(--accent);
  font-weight: 500;
}

.auth-terms strong {
  color: var(--ink);
  font-weight: 600;
}

.auth-input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(18, 32, 42, 0.18);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.auth-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.auth-submit {
  margin-top: 1.15rem;
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.auth-alt {
  margin: 1.35rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.auth-alt a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-alt a:hover {
  text-decoration: underline;
}

.auth-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
  padding: 0.25rem;
  border-radius: 12px;
  background: rgba(18, 32, 42, 0.06);
}

.auth-tab {
  appearance: none;
  border: 0;
  border-radius: 9px;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(14, 17, 23, 0.65);
  background: transparent;
  cursor: pointer;
}

.auth-tab.is-active {
  color: #0e1117;
  background: #fff;
  box-shadow: 0 1px 2px rgba(18, 32, 42, 0.08);
}

.auth-manage-list {
  margin: 0 0 0.9rem;
  padding-left: 1.15rem;
  color: rgba(14, 17, 23, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* --- Legal pages --- */
.legal-page {
  min-height: 100vh;
  background: #eef3f1;
}

.legal-shell {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.legal-shell h1 {
  margin: 0 0 0.35rem;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  letter-spacing: -0.02em;
}

.legal-shell h2 {
  margin: 1.75rem 0 0.55rem;
  font-size: 1.1rem;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.legal-shell ul {
  padding-left: 1.2rem;
}

.legal-updated {
  margin: 0 0 1.25rem;
  font-size: 0.85rem !important;
}

.legal-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(18, 32, 42, 0.12);
  font-size: 0.85rem !important;
  font-style: italic;
}

/* --- Scoring explainer --- */
.scoring-shell {
  max-width: 46rem;
}

.scoring-brand {
  margin: 1.25rem 0 0.35rem;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.scoring-page h3 {
  margin: 1.35rem 0 0.4rem;
  font-size: 1.02rem;
  color: var(--ink);
}

.scoring-lede {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.scoring-outcomes {
  margin: 0.75rem 0 1.75rem;
  padding-left: 1.2rem;
}

.scoring-outcomes li {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.scoring-outcomes li strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.scoring-outcomes li span {
  display: block;
}

.score-block {
  margin: 0.65rem 0 0;
  padding: 0;
  border: 1px solid rgba(18, 32, 42, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.score-block summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.1rem;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  user-select: none;
}

.score-block summary::-webkit-details-marker {
  display: none;
}

.score-block summary::after {
  content: "+";
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.score-block[open] summary::after {
  content: "-";
}

.score-block-body {
  overflow: hidden;
  transition:
    height 0.32s ease,
    opacity 0.28s ease,
    padding 0.32s ease,
    border-color 0.2s ease;
}

.score-block:not([open]) .score-block-body {
  height: 0;
  opacity: 0;
  padding: 0 1.1rem;
  border-top: 1px solid transparent;
}

.score-block[open] .score-block-body {
  opacity: 1;
  padding: 0 1.1rem 1.05rem;
  border-top: 1px solid rgba(18, 32, 42, 0.08);
}

.score-block h3 {
  margin-top: 0;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.scoring-outcomes a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(15, 118, 110, 0.45);
  text-underline-offset: 0.15em;
}

.scoring-outcomes a:hover {
  color: var(--accent);
}

.score-internal {
  margin: 0 0 0.75rem !important;
  font-size: 0.82rem !important;
  color: var(--accent) !important;
  font-weight: 500;
}

.scoring-links {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(18, 32, 42, 0.12);
}

