/* ============================================================
   JobPrefill — Website Styles
   Brand: #12B886 green accent · Inter font · Dark theme
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #12B886;
  --green-dark:  #0A6E4F;
  --green-light: #20D899;
  --bg:          #0B0F0E;
  --bg-2:        #111714;
  --bg-3:        #161C19;
  --surface:     #1A2120;
  --surface-2:   #202926;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(18,184,134,0.2);
  --text:        #F0F5F3;
  --text-2:      #9BB5AC;
  --text-3:      #6A8A82;
  --blue:        #3B82F6;
  --purple:      #8B5CF6;
  --amber:       #F59E0B;
  --teal:        #06B6D4;
  --red:         #EF4444;
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.6);
  --transition:  0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
strong { font-weight: 600; color: var(--text); }

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

.hidden { display: none !important; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 0.06; }
.btn:active::after { opacity: 0.1; }

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 16px rgba(18,184,134,0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(18,184,134,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-sm  { padding: 8px 16px; font-size: 14px; }
.btn-lg  { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); }
.btn-full { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(11,15,14,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}

.hero-glow-1 {
  width: 600px; height: 600px;
  background: var(--green);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  animation: pulse-glow 6s ease-in-out infinite alternate;
}

.hero-glow-2 {
  width: 400px; height: 400px;
  background: var(--blue);
  bottom: 0; right: -100px;
  animation: pulse-glow 8s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

@keyframes pulse-glow {
  from { transform: translateX(-50%) scale(1); opacity: 0.15; }
  to   { transform: translateX(-50%) scale(1.15); opacity: 0.25; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18,184,134,0.1);
  border: 1px solid rgba(18,184,134,0.3);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green-light);
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-headline {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 64px;
}

/* Popup mock */
.hero-preview {
  display: flex;
  justify-content: center;
  position: relative;
}

.popup-mock {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  width: 320px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.1),
    0 32px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(18,184,134,0.15);
  text-align: left;
  color: #1a1a1a;
  position: relative;
  animation: float 4s ease-in-out infinite;
}

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

.popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.popup-title {
  font-weight: 700;
  font-size: 15px;
  color: #111;
  flex: 1;
}

.popup-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.05em;
}

.popup-badge.pro {
  background: linear-gradient(135deg, #12B886, #0A6E4F);
  color: white;
}

.popup-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #12B886;
  margin-bottom: 12px;
}

.stage-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #12B886;
  animation: blink 1.5s infinite;
}

.popup-fields { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

.mock-field {
  background: #f8faf9;
  border: 1px solid #e8f0ec;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateX(-8px);
}

.mock-field.filled { animation: slide-in 0.4s forwards; }
.mock-field.delay-1 { animation-delay: 0.4s; }
.mock-field.delay-2 { animation-delay: 0.8s; }
.mock-field.delay-3 { animation-delay: 1.2s; }

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

.field-label { font-size: 11px; color: #888; font-weight: 500; }
.field-val { font-size: 12px; font-weight: 600; color: #111; }

.popup-btn {
  width: 100%;
  background: linear-gradient(135deg, #12B886, #0A6E4F);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.popup-log {
  font-size: 12px;
  color: #12B886;
  font-weight: 500;
  text-align: center;
}

/* ── Trust Bar ────────────────────────────────────────────── */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 24px;
}

.trust-item svg { color: var(--green); flex-shrink: 0; }

.trust-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
}

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

.feature-card-large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 16px 24px;
  align-items: start;
}

.feature-card-large .feature-icon { grid-row: 1 / 3; }
.feature-card-large h3 { grid-column: 2; }
.feature-card-large p { grid-column: 2; }
.feature-card-large .feature-list { grid-column: 3; grid-row: 1 / 3; }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.feature-icon.green  { background: rgba(18,184,134,0.12); color: var(--green); }
.feature-icon.blue   { background: rgba(59,130,246,0.12); color: var(--blue); }
.feature-icon.purple { background: rgba(139,92,246,0.12); color: var(--purple); }
.feature-icon.amber  { background: rgba(245,158,11,0.12); color: var(--amber); }
.feature-icon.teal   { background: rgba(6,182,212,0.12);  color: var(--teal); }
.feature-icon.red    { background: rgba(239,68,68,0.12);  color: var(--red); }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

.feature-list li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ── How It Works ─────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px 0;
}

.step-connector {
  width: 2px;
  height: 32px;
  background: linear-gradient(180deg, var(--green), transparent);
  margin-left: 27px;
}

.step-number {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--green);
  background: rgba(18,184,134,0.1);
  border: 1px solid rgba(18,184,134,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  flex-shrink: 0;
  font-feature-settings: 'tnum';
}

.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.pricing-card-pro {
  background: var(--surface-2);
  border-color: var(--border-2);
  box-shadow: 0 0 40px rgba(18,184,134,0.1);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.pricing-plan {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 16px;
}

.pricing-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 20px;
}

.pricing-tab {
  flex: 1;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pricing-tab.active {
  background: var(--surface);
  color: var(--text);
}

.save-badge {
  font-size: 10px;
  background: rgba(18,184,134,0.15);
  color: var(--green);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 700;
}

.pricing-price {
  margin-bottom: 16px;
}

.price-amount {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}

.price-period {
  font-size: 16px;
  color: var(--text-3);
  margin-left: 4px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 14px;
  padding-left: 22px;
  position: relative;
}

.feat-yes { color: var(--text-2); }
.feat-no  { color: var(--text-3); }

.feat-yes::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.feat-no::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-3);
}

.pricing-note {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: 10px;
}

.pricing-footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
  margin-top: 32px;
  line-height: 1.7;
}

.pricing-footer a { color: var(--green); }
.pricing-footer a:hover { text-decoration: underline; }

/* ── Privacy Banner ───────────────────────────────────────── */
.privacy-banner {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.privacy-banner-icon {
  flex-shrink: 0;
  width: 72px; height: 72px;
  background: rgba(18,184,134,0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-banner-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.privacy-banner-content p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 20px;
}

.privacy-banner-content em { color: var(--green); font-style: normal; font-weight: 600; }

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:has(.faq-q[aria-expanded="true"]) {
  border-color: var(--border-2);
}

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

.faq-q:hover { color: var(--green); }

.faq-arrow {
  font-size: 18px;
  color: var(--text-3);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-q[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); color: var(--green); }

.faq-a {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── Footer CTA ───────────────────────────────────────────── */
.footer-cta {
  background: linear-gradient(135deg, rgba(18,184,134,0.08) 0%, rgba(10,110,79,0.04) 100%);
  border-top: 1px solid var(--border);
  padding: 96px 0;
  text-align: center;
}

.footer-cta img { margin: 0 auto 24px; }

.footer-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

.footer-cta p {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 32px;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-2);
}

.footer-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-3);
  width: 100%;
  text-align: right;
}

.footer-legal {
  font-size: 12px;
  color: var(--text-3);
  opacity: 0.8;
  width: 100%;
  text-align: right;
  margin-top: 4px;
}

/* ── Inner pages (privacy, terms) ─────────────────────────── */
.page-hero {
  padding: 120px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-hero p { font-size: 16px; color: var(--text-3); }

.prose {
  max-width: 720px;
  margin: 64px auto;
  padding: 0 24px;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 12px;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}

.prose p, .prose li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
}

.prose ul { list-style: disc; padding-left: 24px; margin: 12px 0; }
.prose li { margin: 6px 0; }
.prose a { color: var(--green); }
.prose a:hover { text-decoration: underline; }

.prose strong { color: var(--text); font-weight: 600; }

.prose .highlight-box {
  background: rgba(18,184,134,0.07);
  border: 1px solid rgba(18,184,134,0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.prose .highlight-box p { margin: 0; color: var(--text); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-large {
    grid-column: 1;
    grid-template-columns: auto 1fr;
  }
  .feature-card-large .feature-list { grid-column: 1 / -1; grid-row: auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .privacy-banner { flex-direction: column; padding: 32px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 100px 0 60px; }
  .trust-bar-inner { flex-direction: column; gap: 4px; }
  .trust-divider { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; }
  .footer-copy { text-align: left; }
  .footer-legal { text-align: left; }
  .section { padding: 64px 0; }
  .popup-mock { width: 280px; }
}

/* Disabled CTA — used for "Coming soon" buttons before the extension is published */
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
