/* Jobsaaa public site — single shared stylesheet.
   Brand tokens mirror apps/frontend/src/lib/theme.ts */

:root {
  --brand: #2A5C43;
  --brand-dark: #224B37;
  --brand-light: #E9F1EC;
  --action: #D85C45;
  --action-dark: #C24A35;
  --app-bg: #FDFBF7;
  --surface-white: #FFFFFF;
  --surface-sand: #F5F2EA;
  --success: #347D4C;
  --text-primary: #1A1C20;
  --text-secondary: #636773;
  --text-tertiary: #A0A4AE;
  --border: rgba(26, 28, 32, 0.08);

  --radius-card: 24px;
  --radius-input: 16px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 14px rgba(26, 28, 32, 0.06);
  --shadow-float: 0 8px 18px rgba(42, 92, 67, 0.22);

  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--app-bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { color: var(--text-secondary); }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-primary);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text-primary); text-decoration: none; }
.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-float); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-action { background: var(--action); color: #fff; }
.btn-action:hover { background: var(--action-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn-ghost:hover { background: var(--brand-light); color: var(--brand-dark); }

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 620px;
  margin: 18px auto 28px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.badge-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Sections */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p { font-size: 1.05rem; }
.section-alt { background: var(--surface-sand); }

/* Feature grid */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-light);
  color: var(--brand);
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; }

/* Steps */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding-left: 64px;
  margin-bottom: 26px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: var(--radius-pill);
}
.step h3 { margin: 4px 0 4px; }
.step p { margin: 0; }

/* CTA band */
.cta-band {
  background: var(--brand);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-card);
  padding: clamp(36px, 6vw, 56px) 24px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 520px; margin: 12px auto 24px; }

/* Legal / content pages */
.page-head {
  padding: clamp(40px, 6vw, 64px) 0 16px;
  border-bottom: 1px solid var(--border);
}
.page-head .updated { color: var(--text-tertiary); font-size: 0.9rem; margin: 8px 0 0; }
.prose { padding: 36px 0 24px; max-width: 760px; }
.prose h2 { margin: 36px 0 12px; font-size: 1.5rem; }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose li { color: var(--text-secondary); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose a { font-weight: 600; }
.prose strong { color: var(--text-primary); }

/* Callout box */
.callout {
  background: var(--brand-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 18px 20px;
  margin: 20px 0;
}
.callout.warn { background: #FBEAE6; }
.callout p:last-child { margin-bottom: 0; }
.callout p:first-child { margin-top: 0; }

/* FAQ */
.faq details {
  background: var(--surface-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--text-primary);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--text-tertiary); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; }

/* Footer */
.site-footer {
  background: var(--surface-white);
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding: 40px 0 24px;
}
.footer-brand { max-width: 280px; }
.footer-brand p { font-size: 0.92rem; margin: 10px 0 0; }
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 8px 0; }
.footer-col a { color: var(--text-secondary); font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

/* 404 */
.notfound { text-align: center; padding: clamp(60px, 12vw, 140px) 0; }
.notfound .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--brand); line-height: 1; }

@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
}
