/* Marketing-page design system — imports tokens from main.css. */

/* ============================================================
   LAYOUT
   ============================================================ */

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

.container--narrow {
  max-width: var(--max-narrow);
}

.section {
  padding: 72px 0;
  background: var(--paper);
}

.section--white {
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section--warm {
  background: var(--warm-soft);
  border-top: 1px solid var(--warm-rule);
  border-bottom: 1px solid var(--warm-rule);
}

.section--dark {
  background: #0f2820;
  color: #d9e3dd;
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #f2e9c8;
}

.section--dark p,
.section--dark li {
  color: #d9e3dd;
}

.section--dark .label {
  color: var(--warm);
}

.section--tight {
  padding: 48px 0;
}

/* ============================================================
   TOP NAV + FOOTER
   ============================================================ */

.site-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  height: 68px;
}

.site-nav .brand {
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.site-nav .brand::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--warm);
  border-radius: 50%;
  position: relative;
  top: -1px;
  margin-left: 1px;
}

.site-nav nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}

.site-nav nav a:hover { color: var(--accent); }

.site-nav .nav-cta,
.site-nav .nav-cta:hover {
  background: var(--accent);
  color: var(--white);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition);
}

.site-nav .nav-cta:hover { background: var(--accent-bright); }

.site-footer {
  background: #0f2820;
  color: #a9bba5;
  padding: 48px 24px 32px;
  font-family: var(--font-sans);
  border-top: 3px solid var(--warm);
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #d9e3dd;
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer a:hover { color: var(--warm); }

.site-footer .brand-tag {
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.75em;
  font-weight: 400;
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  margin-bottom: 1rem;
}

h1 strong {
  color: var(--accent-bright);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

p, li {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.7;
}

.lede {
  font-size: 1.18rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 640px;
}

.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.label--warm { color: #8a6812; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 80px 24px 72px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-copy { max-width: 560px; }

.hero-copy h1 { margin-bottom: 20px; }

.hero-copy .lede {
  font-size: 1.22rem;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-copy .lede em {
  font-style: normal;
  background: var(--warm);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.hero-trust {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-trust li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.97rem;
}

.hero-trust li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Hero right — a "preview card" in place of a form */
.hero-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}

.hero-card h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
  color: var(--text-light);
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card .price {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
  margin: 8px 0 4px;
}

.hero-card .price-sub {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.hero-card-lines {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.hero-card-lines li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.hero-card-lines li strong {
  color: var(--text);
  font-weight: 600;
}

.hero-card .guarantee {
  background: var(--warm-soft);
  border-left: 3px solid var(--warm);
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hero-card .guarantee strong { color: var(--accent); }

.hero-scope {
  margin-top: 40px;
  padding: 16px 20px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: var(--ink);
  max-width: 720px;
  font-family: var(--font-sans);
}

/* ============================================================
   BUTTONS — unified, with specificity high enough to win
   ============================================================ */

.btn,
a.btn,
.page-cta,
a.page-cta,
.page-content a.page-cta,
.hero-card a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary,
a.btn--primary,
.page-cta,
.page-content a.page-cta,
.hero-card a.btn--primary,
a.cta,
.cta {
  background: var(--accent);
  color: var(--white) !important;
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover,
.page-cta:hover,
a.page-cta:hover,
.cta:hover {
  background: var(--accent-bright);
  color: var(--white) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

.btn--block {
  width: 100%;
  padding: 15px 28px;
  font-size: 1.05rem;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--rule-dark);
}

.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ============================================================
   MARKETING CONTENT PAGES (non-homepage)
   ============================================================ */

.page-content {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.page-content.wide { max-width: var(--max); }

/* Centred page-hero for long-form marketing pages (how-it-works, pricing).
   Keeps the h1 + lede vertically stacked and horizontally centred; content
   below resumes the left-aligned prose flow. Gives the top of the page a
   more considered, brand-defining presentation. */
.page-hero {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 720px;
}

.page-hero h1 {
  margin-bottom: 18px;
}

.page-hero .lede {
  margin: 0 auto;
  font-size: 1.22rem;
  color: var(--text-light);
  line-height: 1.55;
  max-width: 640px;
}

/* Chapter sections — full-width, generous breathing room between them, no
   hard divider lines. Each chapter has an optional eyebrow label (CHAPTER I).
   Inspired by the long-form layout used on fairworkready.com/about. */
.chapter {
  margin: 72px 0 0;
}

.chapter:first-of-type {
  margin-top: 48px;
}

.chapter-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.chapter > h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.chapter-body {
  max-width: 680px;
  margin: 16px 0 0;
}

/* Key/value fact blocks — used inside chapters for structured data (like
   the company-details grid on fairworkready/about). */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  margin: 28px 0;
  overflow: hidden;
}

.facts > div {
  background: var(--white);
  padding: 18px 22px;
}

.facts dt {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 0 0 6px;
}

.facts dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
}

.page-content p,
.page-content li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.page-content h2 {
  margin-top: 48px;
  font-family: var(--font-serif);
}

.page-content h2:first-of-type { margin-top: 36px; }

.page-content h3 {
  margin-top: 32px;
}

.page-content ul,
.page-content ol {
  padding-left: 24px;
  margin: 16px 0 24px;
}

.page-content li { margin-bottom: 10px; }

.page-content p a,
.page-content li a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-content p a:hover,
.page-content li a:hover { color: var(--accent-bright); }

/* Standalone CTA buttons sitting as direct children of .page-content —
   give them breathing room from the preceding content block. */
.page-content > .btn,
.page-content > a.btn,
.page-content > .page-cta,
.page-content > a.page-cta {
  margin-top: 40px;
}

/* ============================================================
   COMPONENTS
   ============================================================ */

.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1rem;
}

.callout strong { color: var(--accent); }

.callout--warm {
  background: var(--warm-soft);
  border-left-color: var(--warm);
}

.callout--warm strong { color: #8a6812; }

/* Numbered step list */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 32px 0;
  display: grid;
  gap: 28px;
}

.steps li {
  counter-increment: step;
  padding: 20px 24px 20px 76px;
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
}

.steps li strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: var(--ink);
}

/* Feature grid used on homepage */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.feature p {
  color: var(--text-light);
  font-size: 0.98rem;
  margin: 0;
}

/* Price card used on pricing page */
.price-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 36px 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.price-card .big {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto;
  max-width: none;
  line-height: 1;
}

.price-card .big-sub {
  color: var(--text-light);
  margin: 4px auto 24px;
  max-width: none;
  font-size: 1rem;
}

.price-card hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 24px auto;
  max-width: 280px;
}

.price-card p {
  text-align: center;
  max-width: 420px;
  margin: 8px auto;
}

.price-card .big,
.price-card .big-sub {
  text-align: center;
}

/* Comparison tables */
.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.98rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare th,
.compare td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.compare thead th {
  background: var(--paper-warm);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.compare tbody th {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
  width: 26%;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: none; }

.compare tbody tr:nth-child(odd) { background: var(--paper); }

/* Accordions */
details {
  border-top: 1px solid var(--rule);
  padding: 20px 0;
}

details:last-of-type { border-bottom: 1px solid var(--rule); }

details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 36px;
  font-family: var(--font-sans);
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
  transition: transform var(--transition);
}

details[open] summary::after { content: '−'; }

details p { margin: 14px 0 0; color: var(--text-light); font-size: 1rem; }

/* ============================================================
   LEGACY HELPERS — keep the old home-page classes working
   ============================================================ */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 700;
  font-family: var(--font-sans);
  display: inline-block;
}

.sub {
  font-size: 1.18rem;
  color: var(--text-light);
  margin: 0 0 36px;
  line-height: 1.55;
  max-width: 640px;
}

.sub em {
  font-style: normal;
  background: var(--warm);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.scope {
  margin-top: 32px;
  padding: 14px 18px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: var(--ink);
  font-family: var(--font-sans);
  max-width: 640px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: none; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 56px 24px 48px; }
  .site-nav-inner { height: 60px; padding: 12px 18px; }
  .site-nav nav { gap: 14px; }
  .site-nav nav a:not(.nav-cta) { display: none; }
  .page-content { padding: 40px 20px 72px; }
  .compare { font-size: 0.92rem; }
  .compare th, .compare td { padding: 12px 14px; }
  .site-footer-inner { flex-direction: column; gap: 18px; text-align: center; justify-content: center; }
}
