/* JobProbe — marketing site styles.
   Tokens mirror src/Client/InterviewApp/Resources/Styles/Colors.xaml so the site reads as the
   same product as the app. Mobile-first; plain CSS Grid/Flexbox, no framework. */

:root {
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --text-primary: #0F172A;
  --text-muted: #64748B;
  --hairline: #E6EBF2;
  --accent: #0EA5E9;
  --accent-start: #06B6D4;
  --accent-end: #3B82F6;
  --danger: #EF4444;
  --success: #10B981;
  --warning: #F59E0B;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --container-width: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F172A;
    --surface: #1E293B;
    --surface-alt: #334155;
    --text-primary: #F1F5F9;
    --text-muted: #94A3B8;
    --hairline: #334155;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Long German compounds / Ukrainian words must break instead of widening the page. */
  overflow-wrap: break-word;
}
h1, h2, h3 { hyphens: auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
button { font: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text-primary);
  padding: 0.75em 1em;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-alt { background: var(--surface-alt); }
.section h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 32px;
  text-align: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.85em 1.5em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  /* Labels may wrap: uk/de CTA copy is much longer than English and must never push the page wider. */
  text-align: center;
  max-width: 100%;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(14, 165, 233, 0.45); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--hairline);
}
.btn-ghost:hover { background: var(--surface-alt); }
.btn-lg { padding: 1em 1.9em; font-size: 1.05rem; }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon-img { border-radius: 8px; }
.logo-wordmark {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text-primary); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language switcher: native <details>/<summary>, no client JS needed */
.lang-switch { position: relative; }
.lang-switch summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.45em 1em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: '▾'; font-size: 0.75em; }
.lang-switch[open] summary::after { content: '▴'; }
.lang-switch-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  min-width: 160px;
  padding: 6px;
  z-index: 50;
}
.lang-switch-menu li a {
  display: block;
  padding: 0.55em 0.75em;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.lang-switch-menu li a:hover { background: var(--surface-alt); }
.lang-switch-menu li a.is-current { font-weight: 700; color: var(--accent); }

@media (min-width: 860px) {
  .nav-links { display: flex; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  text-align: center;
}
.hero-orb {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(closest-side, rgba(6, 182, 212, 0.35), transparent),
    radial-gradient(closest-side, rgba(59, 130, 246, 0.28), transparent 70%);
  background-repeat: no-repeat;
  background-position: 30% 20%, 70% 60%;
  filter: blur(10px);
  animation: orb-drift 16s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes orb-drift {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.12) translate(2%, 3%); }
  100% { transform: scale(1) translate(0, 0); }
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 999px;
  padding: 0.4em 1em;
}
.hero h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-subhead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-trust { font-size: 0.85rem; color: var(--text-muted); }

/* ---- How it works ---- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Features ---- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.22);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.3em 0.9em;
}
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.pricing-card .price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.pricing-features { margin-bottom: 24px; }
.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-trial-note {
  text-align: center;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
}

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--text-muted); padding-bottom: 18px; margin-top: -6px; }

/* ---- Forms (waitlist + data deletion) ---- */
.waitlist-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.waitlist-form {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
  text-align: left;
  box-shadow: var(--shadow-card);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  padding: 0.7em 0.9em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--text-primary);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-row textarea { resize: vertical; }

/* Honeypot: visually hidden but present + focusable-avoided, not display:none, so basic bots
   that only check computed visibility (rather than actually rendering) still fill it in. */
.form-row-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }
.form-privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 14px;
}
/* After a successful submit only the confirmation stays, as a large message. */
.waitlist-form.is-submitted > :not(.form-status) { display: none; }
.waitlist-form.is-submitted .form-status {
  margin: 8px 0;
  font-size: 1.5rem;
  line-height: 1.4;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 24px;
  background: var(--surface-alt);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .logo { margin-bottom: 10px; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; max-width: 320px; }
.footer-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---- Legal pages ---- */
.legal-page { max-width: 760px; padding-top: 56px; padding-bottom: 72px; }
.legal-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.legal-updated { color: var(--text-muted); margin-bottom: 32px; }
.legal-intro { color: var(--text-muted); margin-bottom: 32px; }
.legal-section { margin-bottom: 28px; }
.legal-section h2 { font-size: 1.15rem; margin-bottom: 8px; }
.legal-section p { color: var(--text-muted); }
.data-deletion-form-section h2 { margin-bottom: 16px; }

/* ---- Interview-question guides (hub + per-question pages) ---- */
.qa-page { max-width: 760px; padding-top: 40px; padding-bottom: 72px; }
.qa-page h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.qa-page p { color: var(--text-muted); }
.qa-page p + p { margin-top: 12px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { text-decoration: underline; }

.qa-intro { margin-bottom: 32px; }
.qa-list { display: flex; flex-direction: column; gap: 10px; }
.qa-list-item a {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.qa-list-item a:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }
.qa-list-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.qa-list-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qa-list-q { font-weight: 600; }
.qa-list-teaser { font-size: 0.92rem; color: var(--text-muted); }

.qa-section { margin-top: 36px; }
.qa-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.qa-tips, .qa-mistakes { display: flex; flex-direction: column; gap: 10px; }
.qa-tips li, .qa-mistakes li { position: relative; padding-left: 28px; color: var(--text-muted); }
.qa-tips li::before { content: '✓'; position: absolute; left: 4px; color: var(--success); font-weight: 700; }
.qa-mistakes li::before { content: '✕'; position: absolute; left: 4px; color: var(--danger); font-weight: 700; }
.qa-example { margin-top: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); }
.qa-example figcaption { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 8px; }
.qa-example blockquote p { color: var(--text-primary); font-style: italic; }

.qa-cta { margin-top: 44px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface-alt); text-align: center; }
.qa-cta h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.qa-cta p { margin-bottom: 16px; }

.qa-more { margin-top: 44px; }
.qa-more h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.qa-more ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.qa-more a, .qa-all-link { color: var(--accent); }
.qa-more a:hover { text-decoration: underline; }

/* Homepage teaser block */
.qa-teaser-lead { text-align: center; color: var(--text-muted); max-width: 640px; margin: -16px auto 24px; }
.qa-teaser-list { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
@media (min-width: 720px) { .qa-teaser-list { grid-template-columns: 1fr 1fr; } }
.qa-teaser-list a { display: block; height: 100%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md); font-weight: 500; transition: border-color 0.15s ease; }
.qa-teaser-list a:hover { border-color: var(--accent); }
.qa-teaser-all { text-align: center; margin-top: 24px; }

/* ---- Sticky mobile CTA bar ----
   CSS-only per v1 scope: always visible on small screens; no show/hide-on-scroll JS. The
   header's own CTA button covers desktop, and content bottom padding keeps this bar from
   covering the footer/waitlist form on mobile. */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-top: 1px solid var(--hairline);
}
@media (min-width: 860px) {
  .mobile-cta-bar { display: none; }
}
@media (max-width: 859px) {
  body { padding-bottom: 72px; }
  /* The sticky bottom bar carries the CTA on small screens — keep the header to logo + language. */
  .header-actions .btn { display: none; }
}
