/* PrimeHR — static site stylesheet
   Design tokens converted from the Lovable build's styles.css */

:root {
  --radius: 0.25rem;
  --background: oklch(0.965 0.015 85);
  --foreground: oklch(0.22 0.03 180);
  --ink: oklch(0.22 0.03 180);
  --cream: oklch(0.965 0.015 85);
  --card: oklch(0.985 0.008 85);
  --primary: oklch(0.32 0.05 185);
  --primary-foreground: oklch(0.965 0.015 85);
  --secondary: oklch(0.93 0.015 85);
  --muted-foreground: oklch(0.45 0.02 180);
  --gold: oklch(0.72 0.13 78);
  --sage: oklch(0.55 0.06 165);
  --border: oklch(0.88 0.015 85);
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap-md { max-width: 60rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap-sm { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap-2xl { max-width: 42rem; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 6rem 0; }
.section-lg { padding: 6rem 0 8rem; }
.section-sm { padding: 5rem 0; }

.grid { display: grid; gap: 2.5rem; }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-end { align-items: end; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.eyebrow-gold { color: var(--gold); }
.display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.italic-serif { font-style: italic; color: var(--gold); }
.muted { color: var(--muted-foreground); }
.text-lg { font-size: 1.125rem; line-height: 1.7; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.center { text-align: center; }

h1.display { font-size: clamp(2.5rem, 6vw, 5.5rem); }
.hero-h1 { font-size: clamp(2.5rem, 7vw, 6rem); line-height: 1.05; }
h2.display { font-size: clamp(2rem, 4vw, 3rem); }
h2.display-lg { font-size: clamp(2.25rem, 5vw, 3.25rem); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.95rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid var(--primary);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  padding: 0.95rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--primary);
  background: none;
  transition: gap 0.2s ease;
}
.btn-ghost:hover { gap: 0.85rem; }

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.95rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 2px;
  border: none;
  transition: all 0.25s ease;
}
.btn-gold:hover { background: var(--cream); }

.btn-disabled {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--secondary);
  color: var(--muted-foreground);
  border-radius: 2px;
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Surfaces ---------- */
.bg-primary { background: var(--primary); color: var(--primary-foreground); }
.bg-secondary { background: var(--secondary); }
.bg-card { background: var(--card); border: 1px solid var(--border); }
.text-gold { color: var(--gold); }
.text-sage { color: var(--sage); }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.rule { height: 1px; background: var(--border); }
.border-top { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.divider-list > * { border-bottom: 1px solid var(--border); }
.divider-list > *:last-child { border-bottom: none; }

/* ---------- Nav ---------- */
.topbar {
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.72rem;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.topbar a { font-family: "JetBrains Mono", monospace; letter-spacing: 0.05em; opacity: 0.85; }
.topbar a:hover { color: var(--gold); }
.topbar span { font-family: "JetBrains Mono", monospace; letter-spacing: 0.18em; opacity: 0.8; }

nav.main {
  background: rgba(247, 244, 236, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
nav.main .wrap { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand img { height: 2.5rem; width: 2.5rem; object-fit: contain; }
.brand span { font-family: "Fraunces", serif; font-size: 1.25rem; letter-spacing: -0.02em; }

.nav-links { display: none; list-style: none; gap: 2.25rem; margin: 0; padding: 0; }
.nav-links a { font-size: 0.9rem; letter-spacing: 0.01em; opacity: 0.8; }
.nav-links a:hover, .nav-links a.active { opacity: 1; font-weight: 500; }
.nav-cta { display: none; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; background: none; border: none; padding: 0.5rem; cursor: pointer;
}
.nav-toggle span { width: 1.5rem; height: 1px; background: var(--foreground); display: block; }
.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--background); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-menu a { display: block; padding: 0.5rem 0; font-size: 1rem; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: block; }
  .nav-toggle { display: none; }
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--primary);
  color: var(--primary-foreground);
  margin-top: 8rem;
}
footer.site .wrap { padding-top: 5rem; padding-bottom: 5rem; }
footer.site .footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { footer.site .footer-grid { grid-template-columns: repeat(4, 1fr); } }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.9rem; opacity: 0.8; }
footer.site a:hover { color: var(--gold); }
footer.site .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; text-align: center; font-size: 0.75rem; opacity: 0.6; font-family: "JetBrains Mono", monospace; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.25rem; }
.field label { display: block; margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  font-size: 1rem;
  font-family: inherit;
  color: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--primary);
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Misc components ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.stat-num { font-family: "Fraunces", serif; font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--primary); }
.stat-label { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.5rem; line-height: 1.3; }

.tile-grid { display: grid; gap: 1px; background: var(--border); grid-template-columns: 1fr; }
@media (min-width: 768px) { .tile-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.tile { background: var(--background); color: var(--foreground); padding: 2.5rem; }
.tile-dark { background: var(--primary); padding: 2.5rem; }

.num-tag { font-family: "JetBrains Mono", monospace; font-size: 0.85rem; color: var(--gold); letter-spacing: 0.18em; margin-bottom: 1rem; display: block; }

.card-pricing { border: 1px solid var(--border); background: var(--card); padding: 2rem; display: flex; flex-direction: column; position: relative; }
.card-pricing.featured { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.badge-popular {
  position: absolute; top: -0.75rem; left: 2rem; background: var(--gold); color: var(--ink);
  font-family: "JetBrains Mono", monospace; font-size: 0.7rem; letter-spacing: 0.18em; padding: 0.25rem 0.75rem;
}
.price { font-family: "Fraunces", serif; font-size: 2.75rem; }
.pack-list { list-style: none; padding: 0; margin: 0 0 2rem; font-size: 0.9rem; flex: 1; }
.pack-list li { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }
.pack-list .tick { color: var(--sage); }
.featured .pack-list .tick { color: var(--gold); }
.pack-list .plus-item { font-style: italic; }

table.compare { width: 100%; border-collapse: collapse; min-width: 720px; }
table.compare th, table.compare td { padding: 0.75rem 1rem; text-align: center; border-bottom: 1px solid var(--border); }
table.compare th:first-child, table.compare td:first-child { text-align: left; }
table.compare thead th { border-bottom: 2px solid var(--primary); font-family: "Fraunces", serif; }
table.compare thead th.featured-col { background: var(--primary); color: var(--primary-foreground); }
table.compare td.featured-col { background: rgba(46, 84, 84, 0.04); }
table.compare .section-row td { padding-top: 2rem; padding-bottom: 0.5rem; border-bottom: none; text-align: left; }
.table-scroll { overflow-x: auto; }

details.faq { border-bottom: 1px solid var(--border); }
details.faq summary {
  padding: 1.25rem 0; font-family: "Fraunces", serif; font-size: 1.1rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { padding-bottom: 1.5rem; color: var(--muted-foreground); margin: 0; }

details.chapter { border-bottom: 1px solid var(--border); }
details.chapter summary {
  padding: 1.25rem 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none;
}
details.chapter summary::-webkit-details-marker { display: none; }
details.chapter ul { list-style: none; padding: 0 0 1.5rem; margin: 0; }
details.chapter li { color: var(--muted-foreground); padding: 0.35rem 0; display: flex; gap: 0.5rem; }

.testimonial { background: var(--card); border: 1px solid var(--border); padding: 2rem; }
.stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 1rem; letter-spacing: 0.1em; }

.numbered-list { list-style: none; margin: 0; padding: 0; background: var(--border); display: flex; flex-direction: column; gap: 1px; }
.numbered-list li {
  background: var(--background); padding: 1.25rem; display: flex; align-items: baseline; gap: 1.5rem;
}
.numbered-list .num { font-family: "Fraunces", serif; font-size: 1.75rem; color: var(--gold); width: 2.5rem; }

.quote-block { border-left: 2px solid var(--gold); padding-left: 1.5rem; margin: 2.5rem 0; font-family: "Fraunces", serif; font-size: 1.5rem; font-style: italic; color: var(--gold); line-height: 1.4; }

.result-card { background: var(--card); border: 1px solid var(--border); padding: 1.5rem; display: block; }
.result-card:hover { border-color: var(--primary); }

@media (min-width: 1024px) {
  .lg-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; align-items: center; }
  .lg-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem; }
  .lg-col-1 { grid-column: span 1; }
  .lg-col-4 { grid-column: span 4; }
  .lg-col-5 { grid-column: span 5; }
  .lg-col-6 { grid-column: span 6; }
  .lg-col-7 { grid-column: span 7; }
  .lg-col-8 { grid-column: span 8; }
  .lg-col-11 { grid-column: span 11; }
  .lg-col-12 { grid-column: span 12; }
  .lg-start-2 { grid-column-start: 2; }
  .lg-start-7 { grid-column-start: 7; }
  .lg-5-from-2 { grid-column: 2 / span 5; }
  .lg-6-from-7 { grid-column: 7 / span 6; }
}
@media (max-width: 1023px) {
  .lg-12 > * { margin-top: 2.5rem; }
  .lg-12 > *:first-child { margin-top: 0; }
}
