/* Rekruuto demo v2 — editorial / premium direction
   Type: Instrument Serif (display) + Manrope (UI)
   Palette: warm paper, near-black ink, terracotta accent
   Avoid: purple/blue gradients, glassmorphism, emoji feature grids, Inter */

:root {
  --paper: #F4F0E8;
  --paper-2: #EBE6DC;
  --surface: #FFFCF7;
  --ink: #14110E;
  --ink-2: #3A3530;
  --muted: #6E675E;
  --line: #D8D0C3;
  --line-soft: #E8E1D4;
  --accent: #B54A2A;
  --accent-hover: #933C22;
  --accent-soft: #F3E4DC;
  --success-ink: #1F3D32;
  --max: 1120px;
  --wide: 1280px;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0 0 0.6em; font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; }
h1, h2, .display { font-family: var(--serif); }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.3; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 38rem; line-height: 1.6; }
.micro { font-size: 0.85rem; color: var(--muted); margin: 0.6rem 0 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; gap: 1.25rem;
  width: min(100% - 2.5rem, var(--wide));
  margin: 0 auto; min-height: 4rem;
}
.logo img { width: 128px; height: auto; }
.nav-links { display: flex; gap: 1.5rem; margin-left: 1rem; flex: 1; }
.nav-links a {
  font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--ink-2);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.ccy {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: var(--surface);
}
.ccy button {
  border: 0; background: transparent; padding: 0.35rem 0.65rem;
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
}
.ccy button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 0.45rem 0.7rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.85rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.92rem;
  text-decoration: none; transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-2); }
.btn-ink { background: var(--ink); }
.btn-ink:hover { background: #000; color: #fff; }
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.82rem; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: end;
  padding: 4.5rem 0 3.5rem;
}
.hero-copy { padding-bottom: 1rem; }
.hero h1 { margin-bottom: 1.1rem; max-width: 11ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.6rem; }
.hero-photo-wrap {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
}
.hero-photo-wrap::before {
  content: "";
  position: absolute; inset: auto -1.1rem -1.1rem auto;
  width: 72%; height: 72%;
  background: var(--accent-soft);
  z-index: 0;
  border-radius: 2px;
}
.hero-photo {
  position: relative; z-index: 1;
  border-radius: 2px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -28px rgba(20,17,14,0.45);
}
.hero-caption {
  position: relative; z-index: 2;
  margin-top: 0.85rem;
  font-size: 0.78rem; color: var(--muted);
  display: flex; justify-content: space-between; gap: 1rem;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 2.4rem; border-top: 1px solid var(--line); padding-top: 1.1rem;
  max-width: 28rem;
}
.hero-stats div { padding-right: 1rem; }
.hero-stats .stat-value {
  display: block; font-family: var(--serif); font-size: clamp(1.7rem, 2.4vw, 2.15rem); font-weight: 400; letter-spacing: -0.02em; color: var(--ink); line-height: 1.05;
}
.hero-stats .stat-label { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.section-head p { margin: 0; color: var(--ink-2); }
.tint { background: var(--paper-2); }
.surface { background: var(--surface); border-block: 1px solid var(--line-soft); }

/* Logo band */
.logo-band { padding: 1.75rem 0; border-block: 1px solid var(--line-soft); }
.logo-band .label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.logo-row {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.25rem; align-items: center;
  opacity: 0.72; filter: grayscale(1) contrast(1.05);
}
.logo-row img { height: 28px; width: auto; object-fit: contain; }

/* Key facts — asymmetric definition list */
.facts {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: start;
}
.facts-intro h2 { max-width: 12ch; }
.facts dl {
  display: grid; grid-template-columns: 7.5rem 1fr;
  gap: 0; border-top: 1px solid var(--line);
}
.facts dl > div {
  display: contents;
}
.facts dt, .facts dd {
  padding: 0.95rem 0; border-bottom: 1px solid var(--line-soft);
  margin: 0;
}
.facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-right: 1rem; }
.facts dd { color: var(--ink-2); font-size: 0.95rem; }

/* Compare table */
.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
.compare {
  width: 100%; border-collapse: collapse; font-size: 0.92rem;
  background: var(--surface); border: 1px solid var(--line);
}
.compare caption { text-align: left; font-weight: 700; margin-bottom: 0.75rem; color: var(--ink); caption-side: top; }
.compare th, .compare td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare thead th { background: var(--ink); color: var(--paper); font-weight: 600; font-size: 0.82rem; }
.compare tbody th { font-weight: 700; width: 8.5rem; color: var(--ink); background: color-mix(in srgb, var(--paper-2) 60%, var(--surface)); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .hl { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }

/* Process numbered */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.process li {
  position: relative; padding: 0 1.4rem 0 0; border-left: 1px solid var(--line); padding-left: 1.25rem;
}
.process li:first-child { border-left: 0; padding-left: 0; }
.process .num {
  font-family: var(--serif); font-size: 2.4rem; color: var(--accent); line-height: 1; display: block; margin-bottom: 0.75rem;
}
.process h3 { margin-bottom: 0.4rem; }
.process p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Quotes — editorial, not card grid of 3 */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; }
.quote {
  background: var(--surface); border: 1px solid var(--line); padding: 1.75rem 1.85rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  min-height: 100%;
}
.quote.featured { grid-row: span 2; padding: 2.25rem; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.35; letter-spacing: -0.015em; margin: 0;
}
.quote.compact blockquote p { font-size: 1.15rem; }
.quote footer { font-size: 0.85rem; color: var(--muted); }
.quote footer strong { color: var(--ink); font-weight: 700; display: block; }

/* Roles — asymmetric, not identical icon cards */
.roles-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem;
}
.role {
  grid-column: span 4;
  background: var(--surface); border: 1px solid var(--line); padding: 1.15rem;
  text-decoration: none; color: inherit;
  display: grid; grid-template-columns: 64px 1fr; gap: 0.95rem; align-items: start;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.role:hover { border-color: var(--ink); color: inherit; transform: translateY(-2px); }
.role.feature {
  grid-column: span 6;
  grid-template-columns: 1fr;
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  min-height: 11rem; padding: 1.5rem;
}
.role.feature:hover { color: var(--paper); border-color: var(--ink); }
.role.feature .meta { color: color-mix(in srgb, var(--paper) 65%, transparent); font-size: 0.9rem; }
.role.feature .tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #F0C4B4; margin-bottom: 0.75rem;
}
.role img { width: 64px; height: 64px; object-fit: cover; border-radius: 2px; }
.role h3 { margin: 0 0 0.25rem; }
.role p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.role.feature p { color: color-mix(in srgb, var(--paper) 72%, transparent); }

/* Pricing panel */
.price-panel {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0;
  border: 1px solid var(--line); background: var(--surface); overflow: hidden;
}
.price-main { padding: 2.25rem; border-right: 1px solid var(--line); }
.price-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem; }
.price-figure {
  font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.5rem); line-height: 0.95;
  letter-spacing: -0.03em; margin: 0 0 0.35rem;
}
.price-figure small { font-size: 0.35em; letter-spacing: 0; color: var(--muted); font-family: var(--sans); font-weight: 600; margin-left: 0.25rem; }
.price-note { color: var(--ink-2); max-width: 28rem; }
.price-side { padding: 2rem 2.1rem; background: color-mix(in srgb, var(--paper-2) 55%, var(--surface)); }
.checks li {
  position: relative; padding: 0.45rem 0 0.45rem 1.4rem; font-size: 0.92rem; color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.85rem;
  width: 0.55rem; height: 0.28rem; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* Two-tier pricing table */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tier {
  border: 1px solid var(--line); background: var(--surface); padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem;
}
.tier.emphasis { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tier .tier-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tier .amt { margin: 0; line-height: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.45rem; }
.tier .amt .amt-value { font-family: var(--serif); font-size: clamp(3.25rem, 6vw, 4.5rem); letter-spacing: -0.035em; line-height: 0.95; color: var(--ink); font-weight: 400; }
.tier .amt .amt-unit { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 600; }
.tier .amt .amt-from { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); font-weight: 600; align-self: flex-end; margin-bottom: 0.45rem; }
.tier ul { flex: 1; }
.tier li { padding: 0.4rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; color: var(--ink-2); }
.tier li:last-child { border-bottom: 0; }

/* Closing */
.closing {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center;
  padding: 4rem 0;
}
.closing h2 { max-width: 14ch; }
.closing-box {
  background: var(--ink); color: var(--paper); padding: 1.75rem; border-radius: 2px;
}
.closing-box p { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.closing-box .btn { background: var(--accent); width: 100%; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); padding: 3rem 0 2rem; background: var(--paper-2);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem;
}
.site-footer h2 { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.site-footer a { text-decoration: none; font-size: 0.9rem; color: var(--ink-2); }
.site-footer a:hover { color: var(--accent); }
.site-footer li + li { margin-top: 0.4rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 22rem; }
.footer-legal {
  border-top: 1px solid var(--line); padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  font-size: 0.78rem; color: var(--muted);
}
.demo-banner {
  background: var(--ink); color: var(--paper); text-align: center;
  font-size: 0.75rem; letter-spacing: 0.04em; padding: 0.45rem 1rem;
}
.demo-banner a { color: #F0C4B4; }

/* Role page layout */
.role-hero {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: start;
  padding: 3.5rem 0 2rem;
}
.role-rail {
  position: sticky; top: 5.5rem;
  border: 1px solid var(--line); background: var(--surface); padding: 1.5rem;
}
.role-rail .amt { margin: 0.2rem 0 0.5rem; line-height: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; }
.role-rail .amt .amt-value { font-family: var(--serif); font-size: clamp(2.6rem, 4vw, 3.2rem); letter-spacing: -0.03em; color: var(--ink); font-weight: 400; }
.role-rail .amt .amt-unit { font-size: 0.95rem; font-family: var(--sans); color: var(--muted); font-weight: 600; }
.duty-list { counter-reset: duty; display: grid; gap: 0; }
.duty-list li {
  counter-increment: duty;
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.duty-list li::before {
  content: counter(duty, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.35rem; color: var(--accent); line-height: 1.2;
}
.duty-list h3 { margin: 0 0 0.25rem; }
.duty-list p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 1rem 0;
}
.faq summary {
  font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.75rem 0 0.25rem; color: var(--ink-2); max-width: 40rem; }

.page-hero-simple { padding: 3.5rem 0 1.5rem; }
.page-hero-simple h1 { max-width: 14ch; }

.ai-strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1rem 1.25rem; border: 1px solid var(--line); background: var(--surface); margin: 0 0 0;
}
.ai-strip strong { font-weight: 700; }
.ai-strip a { font-weight: 700; text-decoration: none; color: var(--accent); }

@media (max-width: 960px) {
  .hero, .facts, .section-head, .quotes, .price-panel, .closing, .role-hero, .tiers, .footer-grid, .split-2 {
    grid-template-columns: 1fr;
  }
  .process { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; }
  .process li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 1.25rem; }
  .process li:first-child { border-top: 0; padding-top: 0; }
  .role, .role.feature { grid-column: span 6; }
  .price-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .role-rail { position: static; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-actions .btn span.hide-sm { display: none; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.25rem;
  }
  .hero { padding-top: 2.5rem; gap: 2rem; }
  .hero h1 { max-width: none; }
  .hero-photo-wrap { justify-self: stretch; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .process, .role, .role.feature, .footer-grid { grid-template-columns: 1fr; }
  .role, .role.feature { grid-column: span 12; }
  .hero-stats { grid-template-columns: 1fr; gap: 0.75rem; }
  .wrap, .wrap-wide, .nav { width: min(100% - 1.5rem, var(--wide)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .role { transition: none; }
}

.hide-lg { display: none; }
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .hide-lg { display: inline !important; }
}

/* Iteration polish */
.logo-band { background: var(--surface); }
.logo-row { opacity: 0.85; filter: grayscale(0.85) contrast(1.08); }
.hero { padding: 5rem 0 4rem; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero-photo-wrap::before {
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--paper-2) 40%, var(--accent-soft)));
}
.section-head h2 { max-width: 16ch; }
.quote.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.quote.featured blockquote p { color: var(--paper); }
.quote.featured footer { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.quote.featured footer strong { color: var(--paper); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

@media (max-width: 640px) {
  .nav-actions .ccy { display: none; }
  .nav { gap: 0.65rem; min-height: 3.5rem; }
  .hero { padding: 2.25rem 0 2.5rem; }
  .hero-stats { max-width: none; }
  .demo-banner { font-size: 0.68rem; line-height: 1.35; }
  .closing-box { order: -1; }
}

.hero-photo {
  background: var(--surface);
  outline: 1px solid var(--line);
  outline-offset: -1px;
}

/* Price numerals: force lining figures so $1,800 does not superscript the 1 */
.stat-value,
.amt-value,
.price-figure [data-price],
[data-price] {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1, "ordn" 0, "sups" 0, "onum" 0;
}
.hero-stats .stat-value[data-price] {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.5vw, 2.2rem);
  letter-spacing: -0.035em;
}
.tier .amt .amt-value {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1, "ordn" 0, "onum" 0;
}
.role-rail .amt .amt-value {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1, "ordn" 0, "onum" 0;
}
.hero-photo-wrap {
  overflow: hidden;
  border-radius: 2px;
}
.hero-photo {
  transform: scale(1.012);
  transform-origin: center;
}
