/* ═══════════════════════════════════════════════════════════════
   VYTHO AI AGENCY — content pages (/about hub, articles, /booking)
   Reuses css/main.css tokens + chrome (header, footer, cursor, grain,
   buttons). Adds reading typography, hub grid, FAQ, booking shell.
   Palette stays black / white / grey only.
   ═══════════════════════════════════════════════════════════════ */

/* ─── page shell ───────────────────────────────────────────── */
body.page { background: var(--ink-0); }
.page-main { display: block; }

/* fixed header gets a soft backdrop over flowing content */
.site-head--page {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.72) 60%, transparent 100%);
  backdrop-filter: blur(6px);
}
.site-head--page.is-scrolled {
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-head--page .head-nav a { font-size: 13.5px; }
.head-cta {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 18px; font-size: 12.5px !important; color: var(--white) !important;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.head-cta::after { display: none; }
.head-cta:hover { background: var(--white); color: var(--ink-0) !important; }

/* ─── reveals (JS sets the hidden start state; no-JS shows all) ── */
[data-reveal] { will-change: transform, opacity; }

/* ─── generic section rhythm ───────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 760px; }

.kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--grey);
}

/* ═══ BREADCRUMB ═══════════════════════════════════════════── */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--grey-dim);
}
.crumbs a { color: var(--grey); transition: color 0.3s; }
.crumbs a:hover { color: var(--white); }
.crumbs span[aria-current] { color: var(--fog); }
.crumbs .sep { color: var(--grey-dim); }

/* ═══ ARTICLE ══════════════════════════════════════════════── */
.article-hero {
  padding: calc(var(--pad) + 92px) 0 clamp(34px, 5vh, 60px);
  border-bottom: 1px solid var(--line);
}
.article-hero .kicker { display: inline-block; margin: 22px 0 18px; }
.article-h1 {
  font-family: var(--font-display); font-weight: 760;
  font-size: clamp(2.1rem, 5.2vw, 4rem); line-height: 1.08;
  letter-spacing: -0.022em; text-wrap: balance; max-width: 18ch;
}
.article-lead {
  margin-top: 24px; max-width: 60ch;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--fog);
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--grey);
}
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta i { font-style: normal; width: 4px; height: 4px; border-radius: 50%; background: var(--grey-dim); }

/* article body grid: prose + sticky aside on desktop */
.article-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 7vh, 80px) 0 clamp(60px, 9vh, 110px);
}

/* ─── prose typography ─────────────────────────────────────── */
.prose { max-width: 72ch; color: var(--fog); font-size: 1.0625rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.35em; }
.prose h2 {
  font-family: var(--font-display); font-weight: 680; color: var(--white);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.18; letter-spacing: -0.014em;
  margin-top: 2.2em; padding-top: 0.2em; scroll-margin-top: 110px;
}
.prose h3 {
  font-family: var(--font-display); font-weight: 640; color: var(--white);
  font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.25;
  margin-top: 1.8em; scroll-margin-top: 110px;
}
.prose p { color: var(--fog); }
.prose strong { color: var(--white); font-weight: 600; }
.prose a {
  color: var(--white); text-decoration: none;
  background-image: linear-gradient(var(--grey), var(--grey));
  background-size: 100% 1px; background-position: 0 1.15em; background-repeat: no-repeat;
  transition: background-image 0.3s;
}
.prose a:hover { background-image: linear-gradient(var(--white), var(--white)); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: 0.55em; padding-left: 0.3em; }
.prose li::marker { color: var(--grey); }
.prose blockquote {
  border-left: 2px solid var(--line-strong); padding: 4px 0 4px 22px; margin-left: 0;
  color: var(--white); font-family: var(--font-display); font-weight: 450;
  font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45;
}
.prose figure { margin: 0; }
.prose img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.prose figcaption { margin-top: 10px; font-size: 13px; color: var(--grey); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .lead-stat {
  font-family: var(--font-mono); color: var(--white); font-size: 1.05rem;
}

/* key-points / callout card inside prose */
.prose .callout {
  border: 1px solid var(--line); border-radius: 14px; background: var(--ink-1);
  padding: 22px 24px; margin-top: 1.8em;
}
.prose .callout strong { display: block; margin-bottom: 8px; }
.prose .callout ul { padding-left: 1.2em; }

/* ─── aside (TOC / CTA) ────────────────────────────────────── */
.article-aside { align-self: start; position: sticky; top: 110px; display: grid; gap: 22px; }
.aside-card {
  border: 1px solid var(--line); border-radius: 16px; background: var(--ink-1);
  padding: 22px;
}
.aside-card .kicker { display: block; margin-bottom: 14px; }
.aside-toc a {
  display: block; padding: 6px 0; font-size: 13.5px; color: var(--fog);
  border-bottom: 1px solid var(--line); transition: color 0.3s;
}
.aside-toc a:last-child { border-bottom: 0; }
.aside-toc a:hover { color: var(--white); }
.aside-cta p { font-size: 14px; color: var(--fog); margin: 0 0 16px; line-height: 1.55; }

/* ─── FAQ (FAQPage schema) ─────────────────────────────────── */
.faq { padding: clamp(40px, 6vh, 70px) 0; border-top: 1px solid var(--line); }
.faq-h2 {
  font-family: var(--font-display); font-weight: 700; color: var(--white);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -0.018em; margin-bottom: 26px;
}
.faq-list { display: grid; gap: 0; max-width: 820px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--font-display); font-weight: 560; color: var(--white);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 6px; top: 20px;
  font-family: var(--font-mono); font-size: 22px; color: var(--grey);
  transition: transform 0.3s var(--ease-out);
}
.faq-item[open] summary::after { content: '–'; }
.faq-item summary:hover { color: var(--white); }
.faq-answer { padding: 0 44px 24px 0; color: var(--fog); line-height: 1.75; font-size: 1.0125rem; }
.faq-answer > * + * { margin-top: 0.9em; }
.faq-answer a { color: var(--white); text-decoration: underline; text-decoration-color: var(--grey); text-underline-offset: 3px; }

/* ─── related articles ─────────────────────────────────────── */
.related { padding: clamp(44px, 7vh, 80px) 0; border-top: 1px solid var(--line); }
.related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.related-head h2 {
  font-family: var(--font-display); font-weight: 700; color: var(--white);
  font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.016em;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

.card {
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--ink-1);
  padding: 24px 22px; min-height: 180px;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out), background 0.4s var(--ease-out);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--ink-2); }
.card .kicker { font-size: 10px; }
.card h3 {
  font-family: var(--font-display); font-weight: 640; color: var(--white);
  font-size: 1.18rem; line-height: 1.22; letter-spacing: -0.01em;
}
.card p { color: var(--grey); font-size: 13.5px; line-height: 1.55; margin: 0; }
.card .card-go {
  margin-top: auto; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em;
  color: var(--fog); display: inline-flex; align-items: center; gap: 8px;
}
.card:hover .card-go { color: var(--white); }
.card .card-go span { transition: transform 0.4s var(--ease-out); }
.card:hover .card-go span { transform: translateX(4px); }

/* ─── full-width CTA band ──────────────────────────────────── */
.cta-band {
  margin: 0 0 clamp(40px, 7vh, 80px);
  border: 1px solid var(--line); border-radius: 20px; background: var(--ink-1);
  padding: clamp(34px, 5vw, 56px); text-align: center;
  display: grid; justify-items: center; gap: 18px;
}
.cta-band h2 {
  font-family: var(--font-display); font-weight: 720; color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -0.02em; max-width: 20ch;
}
.cta-band p { color: var(--fog); max-width: 50ch; margin: 0; }

/* ═══ HUB (/about) ═════════════════════════════════════════── */
.hub-hero {
  padding: calc(var(--pad) + 110px) 0 clamp(40px, 6vh, 70px);
  border-bottom: 1px solid var(--line);
}
.hub-hero .kicker { display: inline-block; margin-bottom: 22px; }
.hub-h1 {
  font-family: var(--font-display); font-weight: 780;
  font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1.02; letter-spacing: -0.028em;
  text-wrap: balance; max-width: 16ch;
}
.hub-intro { margin-top: 28px; max-width: 64ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.65; color: var(--fog); }

.hub-section { padding: clamp(46px, 7vh, 84px) 0; border-bottom: 1px solid var(--line); }
.hub-section:last-of-type { border-bottom: 0; }
.hub-section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.hub-section-head h2 {
  font-family: var(--font-display); font-weight: 720; color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -0.018em;
}
.hub-section-head .count { font-family: var(--font-mono); font-size: 12px; color: var(--grey); letter-spacing: 0.1em; }

/* ═══ BOOKING (/booking shell) ═════════════════════════════── */
.booking-hero {
  min-height: 64vh; display: grid; align-content: center; gap: 22px;
  padding: calc(var(--pad) + 120px) 0 clamp(40px, 6vh, 70px);
}
.booking-h1 {
  font-family: var(--font-display); font-weight: 760;
  font-size: clamp(2.4rem, 6.5vw, 5.4rem); line-height: 1.05; letter-spacing: -0.006em;
  text-wrap: balance; max-width: 16ch;
}
.booking-sub { max-width: 52ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--fog); }

.booking-widget-wrap { padding-bottom: clamp(70px, 11vh, 140px); }
#booking-widget {
  position: relative; border: 1px solid var(--line); border-radius: 22px;
  background: var(--ink-1); overflow: hidden;
  min-height: 460px; display: grid; grid-template-columns: 1.1fr 1fr;
}
.bw-pane { padding: clamp(26px, 3vw, 40px); }
.bw-pane--cal { border-right: 1px solid var(--line); }
.bw-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.bw-month { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 16px; }
.bw-month strong { font-family: var(--font-display); font-weight: 640; font-size: 17px; color: var(--white); }
.bw-month button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; color: var(--grey); font-size: 13px; }
.bw-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.bw-grid .dow { font-family: var(--font-mono); font-size: 10px; color: var(--grey-dim); text-align: center; padding-bottom: 6px; letter-spacing: 0.05em; }
.bw-day {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px;
  font-family: var(--font-mono); font-size: 13px; color: var(--fog);
  border: 1px solid transparent;
}
.bw-day.is-muted { color: var(--grey-dim); }
.bw-day.is-free { background: var(--ink-3); color: var(--white); border-color: var(--line); }
.bw-day.is-sel { background: var(--white); color: var(--ink-0); font-weight: 700; }
.bw-day.is-closed { background: var(--ink-0) var(--stripes-dark); color: var(--grey-dim); }
.bw-slots { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.bw-slot {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px;
  font-family: var(--font-mono); font-size: 13px; color: var(--fog);
}
.bw-slot.is-pick { border-color: var(--line-strong); color: var(--white); }
.bw-cta { margin-top: 22px; }
.bw-soon {
  position: absolute; inset: auto 0 0 0; padding: 13px var(--pad);
  background: rgba(10, 10, 10, 0.7); backdrop-filter: blur(4px);
  border-top: 1px solid var(--line); text-align: center;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; color: var(--grey);
}
#booking-widget[aria-disabled="true"] .bw-pane { opacity: 0.62; pointer-events: none; }

/* ─── live booking (built by js/booking.js) ────────────────── */
.bw-month button { cursor: pointer; transition: color .3s, border-color .3s; }
.bw-month button:hover { color: var(--white); border-color: var(--line-strong); }
.bw-day.is-open { cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.bw-day.is-open:hover, .bw-day.is-open:focus-visible { background: var(--ink-3); color: var(--white); border-color: var(--line-strong); outline: none; }
button.bw-slot { width: 100%; background: none; font: inherit; cursor: pointer; transition: border-color .25s, color .25s; }
button.bw-slot:hover { border-color: var(--line-strong); color: var(--white); }
button.bw-slot.is-pick { border-color: #fff; color: var(--white); }
.bw-hint { color: var(--grey); font-size: 13.5px; padding: 8px 0; line-height: 1.5; }
.bw-form { display: grid; gap: 12px; margin-top: 16px; }
.bw-field { display: grid; gap: 5px; }
.bw-field > span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.bw-field input, .bw-field select {
  background: var(--ink-0); border: 1px solid var(--line); border-radius: 9px;
  color: var(--white); font: inherit; font-size: 14px; padding: 11px 13px; width: 100%;
}
.bw-field input:focus, .bw-field select:focus { outline: none; border-color: var(--line-strong); }
.bw-form .bw-cta { margin-top: 4px; }
.bw-form .btn { width: 100%; justify-content: center; }
.bw-msg { font-size: 13px; color: var(--fog); min-height: 1em; margin: 6px 0 0; }
.bw-success {
  grid-column: 1 / -1; display: grid; justify-items: center; text-align: center; gap: 14px;
  padding: clamp(40px, 7vw, 72px) var(--pad);
}
.bw-check { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: #0A0A0A; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.bw-success h3 { font-family: var(--font-display); font-weight: 720; color: var(--white); font-size: clamp(1.4rem, 3vw, 2rem); }
.bw-okline { color: var(--white); font-size: 15px; }
.bw-oksub { color: var(--grey); max-width: 36ch; margin: 0; }

/* ═══ responsive ═══════════════════════════════════════════── */
@media (max-width: 900px) {
  .article-body { grid-template-columns: 1fr; }
  .article-aside { position: static; top: auto; order: 2; }
  #booking-widget { grid-template-columns: 1fr; }
  .bw-pane--cal { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .article-hero { padding-top: calc(var(--pad) + 78px); }
  .prose { font-size: 1.02rem; }
  .related-head { flex-direction: column; gap: 6px; }
  .cta-band { padding: 30px 22px; }
}
