/* ============================================================
   CV Central — shared design system
   Build. Score. Land.
   ============================================================ */

:root {
  --violet: #5B2D8E;
  --violet-deep: #43216B;
  --violet-soft: #F1EAF9;
  --lime: #AAFF00;
  --lime-dark: #8FD600;
  --bg: #F8F8FF;
  --surface: #FFFFFF;
  --ink: #1A1A2E;
  --muted: #6B7280;
  --success: #10B981;
  --error: #EF4444;
  --border: #E7E5F0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 6px 24px -6px rgba(91, 45, 142, 0.16);
  --shadow-lg: 0 24px 60px -18px rgba(91, 45, 142, 0.28);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* The `hidden` attribute must always win over component classes like .btn
   that set their own `display`. Without this, any element combining
   `hidden` with a class that declares `display` renders visible anyway —
   e.g. #upgradeLink (dashboard.html) stayed visible for Pro/Premium users
   even though JS never unhid it. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

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

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

::selection { background: var(--lime); color: var(--ink); }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -8px rgba(170, 255, 0, 0.65);
  background: var(--lime-dark);
}
.btn-primary:active { transform: translateY(0); }

.btn-violet {
  background: var(--violet);
  color: #fff;
}
.btn-violet:hover {
  transform: translateY(-2px);
  background: var(--violet-deep);
  box-shadow: var(--shadow-md);
}
.btn-violet:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--violet);
  border-color: var(--violet);
}
.btn-ghost:hover {
  background: var(--violet-soft);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0); }

.btn-sm { font-size: 0.875rem; padding: 0.55rem 1.2rem; }
.btn-lg { font-size: 1.1rem; padding: 1rem 2.25rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 248, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--violet);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.logo .logo-central { color: var(--violet); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a:not(.btn) {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.main-nav a:not(.btn):hover { color: var(--ink); }

/* Hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--ink);
  border-radius: 8px;
  transition: background 0.15s;
}
.nav-toggle:hover { background: var(--violet-soft); }
.nav-toggle svg { display: block; }

@media (max-width: 720px) {
  .main-nav a:not(.btn) { display: none; }
  .main-nav .btn { display: none; }
  .nav-toggle { display: flex; align-items: center; }

  .main-nav.open {
    position: fixed;
    inset: 68px 0 0;
    background: rgba(248, 248, 255, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem;
    gap: 0;
    z-index: 49;
    border-top: 1px solid var(--border);
    animation: nav-slide 0.22s ease;
  }

  @keyframes nav-slide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .main-nav.open a:not(.btn),
  .main-nav.open .btn,
  .main-nav.open button { display: flex; }

  .main-nav.open a:not(.btn) {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ink);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open a:not(.btn):last-of-type { border-bottom: none; }

  .main-nav.open .btn,
  .main-nav.open button.btn {
    margin-top: 1rem;
    justify-content: center;
    width: 100%;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  background: var(--violet-soft);
  border: 1px solid #DCCEF0;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero h1 .supercharged {
  position: relative;
  display: inline-block;
  color: var(--violet);
}
.hero h1 .supercharged::after {
  content: "";
  position: absolute;
  left: -2%;
  bottom: 0.08em;
  width: 104%;
  height: 0.28em;
  background: var(--lime);
  z-index: -1;
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-sweep 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.5s forwards;
}

@keyframes underline-sweep {
  to { transform: scaleX(1); }
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-note .dot { color: var(--success); }

/* Hero score card — the signature artifact */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.score-card {
  position: relative;
  width: min(360px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  animation: card-float 6s ease-in-out infinite;
  z-index: 2;
}

@keyframes card-float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-10px); }
}

.score-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.score-card-header .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.score-card-header .live-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--violet);
  background: var(--violet-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.score-ring-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.score-ring { position: relative; width: 130px; height: 130px; flex-shrink: 0; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .ring-bg { stroke: var(--violet-soft); }
.score-ring .ring-val {
  stroke: var(--violet);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.score-ring .score-number {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}
.score-ring .score-number strong {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}
.score-ring .score-number span {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.score-bars { flex: 1; display: grid; gap: 0.65rem; }
.score-bar .bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
}
.score-bar .bar-track {
  height: 6px;
  border-radius: 999px;
  background: var(--violet-soft);
  overflow: hidden;
}
.score-bar .bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--violet);
  width: 0;
  transition: width 1.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.score-bar.lime .bar-fill { background: var(--lime-dark); }

.score-card-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #F4FFDE;
  border: 1px solid #DBF7A8;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3F6212;
}

/* Geometric backdrop shapes */

.shape { position: absolute; z-index: 1; pointer-events: none; }
.shape-circle {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.09;
  top: -40px; right: -60px;
}
.shape-ring {
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 18px solid var(--lime);
  opacity: 0.5;
  bottom: -30px; left: -10px;
  animation: spin-slow 24s linear infinite;
  border-top-color: transparent;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.shape-dots {
  bottom: 40px; right: 0;
  width: 120px; height: 90px;
  background-image: radial-gradient(var(--violet) 2.5px, transparent 2.5px);
  background-size: 18px 18px;
  opacity: 0.25;
}

@media (max-width: 880px) {
  .hero { padding: 3.25rem 0 4rem; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1rem; }
}

@media (max-width: 480px) {
  .hero { padding: 2.5rem 0 3rem; }
  .hero-visual { display: none; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .btn-lg { font-size: 1rem; padding: 0.9rem 1.5rem; }
}

/* ---------- Sections ---------- */

.section { padding: 5rem 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }

.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head .kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.6rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Feature cards ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #D5C6EA;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--violet-soft);
  color: var(--violet);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.feature-card:nth-child(even) .feature-icon {
  background: #F2FFD6;
  color: #4D7C0F;
}

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}
.feature-card p { color: var(--muted); font-size: 0.94rem; }

@media (max-width: 880px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ---------- How it works ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.step-card { position: relative; padding: 1.5rem 1.25rem 0; }

.step-num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--lime);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.step-card p { color: var(--muted); font-size: 0.92rem; }

.step-card::after {
  content: "";
  position: absolute;
  top: 34px;
  left: calc(1.25rem + 52px);
  right: -0.6rem;
  border-top: 2px dashed #D5C6EA;
}
.step-card:last-child::after { display: none; }

@media (max-width: 880px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card:nth-child(2)::after { display: none; }
}
@media (max-width: 580px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-card::after { display: none; }
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.price-card.popular {
  border: 2px solid var(--violet);
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--violet);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card .tier-name {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.price-card .tier-price {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 2.3rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.price-card .tier-price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.price-card .tier-price-alt {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.saving-badge {
  background: rgba(170,255,0,0.12);
  color: #7BC424;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(170,255,0,0.3);
}
.trial-note {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}
.price-card .tier-blurb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}

.price-card ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  flex: 1;
}
.price-card ul li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
}
.price-card ul li::before {
  content: "✓";
  font-weight: 800;
  color: var(--success);
  flex-shrink: 0;
}
.price-card ul li.muted { color: var(--muted); }

@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--violet);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 40px solid rgba(170, 255, 0, 0.18);
  top: -140px; right: -100px;
}
.cta-band h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
  position: relative;
}
.cta-band p { color: #D8CCEA; margin-bottom: 1.75rem; position: relative; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #B9B9C9;
  padding: 3.5rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .logo { color: #fff; }
.site-footer .logo .logo-central { color: var(--lime); }

.footer-powered {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  color: #8B8B9E;
}

.footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 0.9rem; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--lime); }

.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid #3A3A52;
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.footer-social a:hover { border-color: var(--lime); color: var(--lime); background: rgba(170,255,0,0.06); }

.footer-bottom {
  border-top: 1px solid #2E2E45;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: #8B8B9E;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Dashboard ---------- */

.dash-wrap { padding: 2.5rem 0 1.5rem; }

.dash-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-radius: 20px;
  padding: 1.85rem 2rem 3.25rem;
  margin-bottom: -1.75rem;
}
.dash-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.55;
  pointer-events: none;
}
.dash-hero-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}
.dash-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.25rem;
}
.dash-hero p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

.dash-login {
  max-width: 440px;
  margin: 4rem auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.dash-login h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.dash-login p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.dash-login form { display: grid; gap: 0.9rem; text-align: left; }

.dash-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
}
.dash-head h1 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; }
.dash-head p { color: var(--muted); }

.dash-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--violet);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 8px 24px -14px rgba(91, 45, 142, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dash-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.dash-card.accent-lime { border-top-color: var(--lime); }
.dash-card.accent-fill {
  background: var(--violet);
  border-top-color: var(--violet);
  color: #fff;
}
.dash-card.accent-fill .card-label { color: rgba(255,255,255,0.55); }

.dash-card .card-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.dash-stat {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--violet);
}
.dash-stat small { font-size: 1rem; color: var(--muted); font-weight: 500; }

.score-ring-sm { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.score-ring-sm svg { transform: rotate(-90deg); }
.score-ring-sm .ring-bg { stroke: var(--violet-soft); }
.score-ring-sm .ring-val { stroke: var(--violet); stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(0.65,0,0.35,1); }
.score-ring-sm .ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
}

.plan-chip {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet);
}
.plan-chip.pro { background: var(--violet); color: var(--lime); }
.plan-chip.elite { background: var(--ink); color: var(--lime); }

.dash-card.span-2 { grid-column: span 2; }

@media (max-width: 880px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-card.span-2 { grid-column: auto; }
  .dash-hero { margin-bottom: -1.25rem; padding-bottom: 2.5rem; }
}

@media (max-width: 560px) {
  .dash-hero { padding: 1.5rem 1.25rem 2.5rem; border-radius: 16px; }
  .dash-hero::before { width: 140px; height: 140px; top: -40px; right: -40px; }
  .dash-hero-inner { align-items: stretch; }
  .dash-hero-inner .btn { width: 100%; }
  .dash-card { padding: 1.25rem; }
  .dash-card.accent-fill .btn { width: 100%; }
  .kw-chip { padding: 0.45rem 0.85rem; }
  .dash-check { padding: 0.85rem; }
}

.dash-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}
.dash-check:hover { background: var(--violet-soft); }
.dash-check .box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #D9CCF0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dash-check.done { background: #F4FFDE; }
.dash-check.done .box { background: var(--lime); border-color: var(--lime); }
.dash-check span.txt { font-size: 0.85rem; color: var(--ink); transition: opacity 0.15s ease; }
.dash-check.done span.txt { opacity: 0.55; text-decoration: line-through; }

.kw-chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  background: #F2FFD6;
  color: #3F6212;
  border: 1px solid #DBF7A8;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.kw-chip:hover { transform: translateY(-2px); box-shadow: 0 4px 10px -4px rgba(63,98,18,0.35); }

.dash-list { list-style: none; display: grid; gap: 0.7rem; }
.dash-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  padding: 0.65rem 0.8rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.dash-list li::before { content: "→"; color: var(--violet); font-weight: 700; }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.empty-state .big { font-size: 2.4rem; margin-bottom: 0.6rem; }

/* ---------- Forms (shared) ---------- */

.field { display: grid; gap: 0.35rem; }
.field label {
  font-weight: 600;
  font-size: 0.88rem;
}
.field label .optional { color: var(--muted); font-weight: 400; font-size: 0.8rem; }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(91, 45, 142, 0.12);
}

.field .hint { font-size: 0.78rem; color: var(--muted); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--error); }
.field .error-msg { font-size: 0.78rem; color: var(--error); display: none; }
.field.invalid .error-msg { display: block; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 120%);
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 200;
  max-width: min(92vw, 480px);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Auth pages ---------- */

.auth-wrap {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 2.5rem 1rem;
}

.auth-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow-md);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  text-decoration: none;
  color: var(--ink);
}

.auth-card h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.auth-card > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.auth-form { display: grid; gap: 1rem; }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.auth-row label { font-weight: 600; font-size: 0.88rem; }
.auth-row a { font-size: 0.82rem; color: var(--violet); font-weight: 600; }
.auth-row a:hover { text-decoration: underline; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3rem; }
.pw-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}
.pw-toggle:hover { color: var(--ink); }

.pw-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 0.4rem;
}
.pw-strength span {
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.25s ease;
}
.pw-strength[data-level="1"] span:nth-child(1) { background: var(--error); }
.pw-strength[data-level="2"] span:nth-child(-n+2) { background: #F59E0B; }
.pw-strength[data-level="3"] span:nth-child(-n+3) { background: #84CC16; }
.pw-strength[data-level="4"] span { background: var(--success); }

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  cursor: pointer;
}
.checkbox-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--violet);
  flex-shrink: 0;
  margin-top: 2px;
}
.checkbox-field a { color: var(--violet); font-weight: 600; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border);
}

.social-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.social-btn:hover {
  border-color: var(--violet);
  background: var(--violet-soft);
  box-shadow: var(--shadow-sm);
}
.social-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.social-btn svg { flex-shrink: 0; }

.auth-footer {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}
.auth-footer a { color: var(--violet); font-weight: 700; }
.auth-footer a:hover { text-decoration: underline; }

.auth-success {
  text-align: center;
  padding: 1rem 0;
}
.auth-success .success-icon {
  width: 56px;
  height: 56px;
  background: #DCFCE7;
  color: #16A34A;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
}

.field-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 0.2rem;
}

/* ---------- Auth modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 300;
  padding: 1rem;
}
.modal-overlay[hidden] { display: none; }

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  width: min(400px, 100%);
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modal-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}
.modal-close:hover { color: var(--ink); }

.modal-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 0.4rem;
}
.modal-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.5rem; }

/* ---------- Plan badges in nav ---------- */

.plan-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet);
  border: 1px solid #DCCEF0;
}
.plan-badge.pro { background: var(--violet); color: var(--lime); border-color: var(--violet); }
.plan-badge.elite { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.plan-badge.trial { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }

/* ---- Cookie consent banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a0a2e;
  border-top: 2px solid #5B2D8E;
  z-index: 9999;
  padding: 1rem 1.25rem;
}
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-logo {
  flex-shrink: 0;
}
.cookie-text {
  flex: 1;
  color: #e2d9f3;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  min-width: 0;
}
.cookie-text a {
  color: #AAFF00;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-text a:hover { color: #ccff55; }
.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.btn-cookie-accept {
  background: #AAFF00;
  color: #000;
  border: none;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.btn-cookie-accept:hover { background: #99ee00; }
.btn-cookie-essential {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.45);
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.btn-cookie-essential:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}
@media (max-width: 600px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .cookie-logo { display: none; }
  .cookie-actions {
    width: 100%;
  }
  .btn-cookie-accept,
  .btn-cookie-essential {
    flex: 1;
    text-align: center;
  }
}
