/* ChairTender marketing site (interim, static).
   Heritage editorial: paper + ink + amber, Georgia serif echoing the wordmark,
   uppercase letterspaced sans labels, a barber-pole accent, subtle grain.
   Self-contained: no external fonts or CDNs. Copy is em-dash-free (house style). */

:root {
  --paper: #f2f0ec;
  --paper-2: #ece8e1;
  --ink: #1c1b1f;
  --ink-2: #3a383e;
  --ink-soft: #6b6870;
  --amber: #b5701f;         /* darkened from brand #D98C33 for AA text contrast on paper */
  --amber-bright: #d98c33;  /* brand amber, for large/decorative use */
  --line: rgba(28, 27, 31, 0.14);
  --card: #fbfaf7;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 70rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17161a;
    --paper-2: #1f1e23;
    --ink: #f2f0ec;
    --ink-2: #d9d6d0;
    --ink-soft: #9c98a2;
    --amber: #e4a354;
    --amber-bright: #e4a354;
    --line: rgba(242, 240, 236, 0.16);
    --card: #201f24;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  /* Faint grain for warmth (very low alpha, tiles cheaply). */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* Barber-pole striped rule ------------------------------------------------- */
.pole {
  height: 6px;
  border: none;
  margin: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--amber-bright) 0 10px,
    var(--ink) 10px 20px,
    var(--paper-2) 20px 30px
  );
  opacity: 0.9;
}

/* Labels / eyebrows -------------------------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0;
}

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(1.2) blur(8px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .brand .logo-light { display: none; }
  .brand .logo-dark { display: block; }
}

.btn {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--amber); color: var(--amber); }

/* Hero --------------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 11vw, 8rem) clamp(2.5rem, 7vw, 5rem); }
.hero .eyebrow { margin-bottom: 1.4rem; }
.hero h1 {
  font-weight: 700;
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
  max-width: 15ch;
}
.hero h1 .accent { color: var(--amber); font-style: italic; }
.hero .lede {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 2.2rem;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.hero .note {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-top: 1.6rem;
}

/* Section scaffolding ------------------------------------------------------ */
section { padding-block: clamp(3rem, 8vw, 6rem); }
.section-head { max-width: 44ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0.8rem 0 0;
}

/* How it works: editorial numbered list ------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 2.8rem); }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.step .num {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  color: var(--amber);
  letter-spacing: 0.02em;
}
.step h3 {
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 0.6rem 0 0.6rem;
  font-weight: 700;
}
.step p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }

/* Values band -------------------------------------------------------------- */
.band {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 2.5rem); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }
.value h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.6rem;
}
.value p { margin: 0; font-size: 1.15rem; line-height: 1.45; }

/* Pricing / CTA card ------------------------------------------------------- */
.cta-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  box-shadow: 0 30px 60px -40px rgba(28, 27, 31, 0.5);
}
.cta-card h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -0.015em; }
.cta-card p { color: var(--ink-2); max-width: 44ch; margin: 0 auto 1.8rem; font-size: 1.1rem; }
.cta-card .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8rem; }

/* Footer ------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2.5rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: space-between; align-items: flex-start; }
.site-footer .tagline { font-style: italic; color: var(--ink-2); max-width: 34ch; margin: 0.8rem 0 0; }
.foot-links { font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.02em; display: flex; flex-direction: column; gap: 0.5rem; }
.foot-links a { color: var(--ink-2); text-decoration: none; transition: color 0.2s var(--ease); }
.foot-links a:hover { color: var(--amber); }
.legal { font-family: var(--sans); font-size: 0.76rem; color: var(--ink-soft); letter-spacing: 0.01em; line-height: 1.6; margin-top: 2.2rem; }
.legal a { color: var(--ink-soft); }

/* Prose pages (privacy / terms) -------------------------------------------- */
.prose { max-width: 46rem; padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.015em; margin: 0.6rem 0 0.4rem; }
.prose .updated { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.prose h2 { font-size: 1.4rem; margin: 2.4rem 0 0.6rem; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--amber); }
.back-link {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; color: var(--amber); display: inline-block; margin-top: 2.5rem;
}

/* Load-in animation -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease) forwards; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.31s; }
.d4 { animation-delay: 0.44s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
