/* ResumePilot - shared site styles (landing page + dashboard) */

:root {
  /* Surfaces */
  --bg: #0a0e1a;
  --bg-soft: #0d1226;
  --card: #121830;
  --card-2: #171f3d;
  --ink: #eef1f8;
  --muted: #97a1b8;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --glass-bg: rgba(10, 14, 26, 0.72);

  /* Electric gradient accent: violet -> cyan */
  --accent: #9b8afd;
  --accent-solid: #7c5cff;
  --accent-2: #22d3ee;
  --accent-dark: #5b3ee0;
  --accent-soft: rgba(124, 92, 255, 0.16);
  --gradient: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --gradient-h: linear-gradient(90deg, #7c5cff 0%, #22d3ee 100%);
  --gradient-rev: linear-gradient(135deg, #22d3ee 0%, #7c5cff 100%);
  --on-gradient: #05070d;

  /* Status tints (kept readable on dark surfaces) */
  --ok-bg: rgba(34, 211, 238, 0.14);
  --ok-line: rgba(34, 211, 238, 0.35);
  --ok-ink: #67e8f9;
  --warn-bg: rgba(245, 158, 11, 0.14);
  --warn-line: rgba(245, 158, 11, 0.4);
  --warn-ink: #fbbf24;
  --danger-bg: rgba(248, 113, 113, 0.14);
  --danger-line: rgba(248, 113, 113, 0.4);
  --danger-ink: #f87171;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 20px 50px -18px rgba(0, 0, 0, 0.65);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 60px -20px rgba(124, 92, 255, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

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

a {
  color: var(--accent);
}

h1, h2, h3, p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons (shared: .btn / .btn.primary / .btn.ghost) ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 650;
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 9px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s, box-shadow 0.15s, filter 0.15s;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--card-2);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--gradient);
  border-color: transparent;
  color: var(--on-gradient);
  font-weight: 700;
  box-shadow: var(--glow);
}

.btn.primary:hover {
  border-color: transparent;
  filter: brightness(1.07);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 70px -18px rgba(124, 92, 255, 0.6);
}

.btn.ghost {
  background: transparent;
}

.btn.large {
  padding: 14px 24px;
  font-size: 16px;
  border-radius: 10px;
}

.btn.small {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 8px;
}

.btn.block {
  width: 100%;
}

/* ---- Cards ---- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---- Chips ---- */

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border: 1px solid var(--line);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.chip.ok {
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok-ink);
}

.chip.gap {
  background: var(--warn-bg);
  border-color: var(--warn-line);
  color: var(--warn-ink);
}

/* ---- Site header / nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: var(--on-gradient);
  font-weight: 750;
  font-size: 13px;
  border-radius: 10px;
  letter-spacing: 0.02em;
}

.logo.logo-sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
  border-radius: 8px;
}

.wordmark {
  font-size: 16px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
}

.nav-links a:not(.btn):hover {
  color: var(--accent);
}

/* ---- Generic section rhythm ---- */

.section {
  padding: 80px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 750;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

.muted {
  color: var(--muted);
}

/* ================================================================ */
/* Landing page - scoped rules below are only used on index.html    */
/* ================================================================ */

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

.hero {
  position: relative;
  padding: 64px 0 88px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  width: 1100px;
  height: 700px;
  max-width: 180%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.32), rgba(34, 211, 238, 0.12) 55%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.hero-copy h1 span {
  color: var(--accent);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p {
  font-size: 17.5px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-note {
  font-size: 13px;
  color: var(--muted);
}

/* ---- Hero mock popup illustration ---- */

.mock-popup {
  padding: 20px;
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(124, 92, 255, 0.14), 0 30px 70px -24px rgba(124, 92, 255, 0.4);
}

.mock-popup-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-popup-head strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.mock-popup-head small {
  color: var(--muted);
  font-size: 11.5px;
}

.mock-score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.mock-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mock-score-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--muted);
}

.mock-score.after .mock-score-value {
  color: var(--accent);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 30px;
}

.mock-score-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.mock-arrow {
  font-size: 20px;
  color: var(--muted);
}

.mock-bar-track {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.mock-bar-fill {
  height: 100%;
  width: 45%;
  border-radius: 999px;
  background: var(--gradient-h);
  animation: mockFill 6s ease-in-out infinite;
}

@keyframes mockFill {
  0%, 12% { width: 45%; }
  50%, 88% { width: 78%; }
  100% { width: 45%; }
}

@media (prefers-reduced-motion: reduce) {
  .mock-bar-fill {
    animation: none;
    width: 78%;
  }
}

.mock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  padding: 26px 22px;
}

.step-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  font-size: 13.5px;
  font-weight: 750;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---- Feature grid ---- */

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

.feature-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  font-weight: 750;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 800px;
  margin: 0 auto;
}

.price-card {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price-card.featured {
  border-color: var(--accent-solid);
  box-shadow: var(--shadow), 0 0 0 1px rgba(124, 92, 255, 0.18), 0 20px 55px -18px rgba(124, 92, 255, 0.4);
}

.price-card-head h3 {
  font-size: 18px;
  font-weight: 750;
  margin-bottom: 4px;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 10px;
}

.price-amount {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.price-period {
  color: var(--muted);
  font-size: 14.5px;
}

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

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  color: var(--ink);
}

.price-list li::before {
  content: "\2713";
  color: var(--accent);
  font-weight: 750;
  flex-shrink: 0;
}

.price-note {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---- FAQ ---- */

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

.faq-item {
  padding: 6px 22px;
}

.faq-item summary {
  padding: 16px 0;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  color: var(--muted);
  font-size: 14.5px;
  padding-bottom: 18px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner p {
  color: var(--muted);
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
}

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

/* ---- Focus visibility (kept visible on dark surfaces) ---- */

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Responsive ---- */

@media (max-width: 720px) {
  .nav {
    padding: 12px 16px;
    gap: 10px;
  }

  .nav-links {
    gap: 12px;
  }

  .wordmark {
    font-size: 14.5px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section-tight {
    padding: 40px 0;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-copy p {
    max-width: none;
  }

  .mock-popup {
    max-width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .faq-item {
    padding: 4px 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
