/* AIPowered Consultancy — site styles. Fonts are self-hosted (no requests to Google). */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-serif-latin-500-italic.woff2") format("woff2"); }

:root {
  --accent: #1F45C9;
  --accent-dark: #14318F;
  --accent-on-dark: #9DB0F0;
  --ink: #111418;
  --ink-2: #23272E;
  --text-2: #3A4049;
  --text-3: #4A5059;
  --muted-on-dark: #A9AFB8;
  --bg: #F5F6F4;
  --surface: #FFFFFF;
  --line: #DADDE2;
  --line-soft: #E4E6EA;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "IBM Plex Serif", Georgia, serif;
  --wrap: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.5; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: #fff; padding: 0.75rem 1rem; z-index: 50; border-radius: 4px; }
.skip:focus { left: 0.5rem; color: #fff; }

/* Labels and headings */
.eyebrow { font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.06; letter-spacing: -0.025em; font-weight: 600; }
.lead { margin-top: 1.25rem; max-width: 40rem; font-size: 1.125rem; line-height: 1.6; color: var(--text-2); }
em.serif { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.02em; color: var(--accent); }
.mono-note { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0 1.375rem; border-radius: 4px; font-weight: 500; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-text { padding: 0 0.5rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.btn-text:hover { color: var(--accent); }
.btn-light { background: #fff; color: var(--ink); font-weight: 600; }
.btn-light:hover { background: #E6E8EB; color: var(--ink); }
.btn svg { flex: 0 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(245, 246, 244, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: flex; align-items: center; gap: 0.625rem; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 0.25rem 1.75rem; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; font-size: 0.9375rem; }
.nav a:hover { color: var(--ink); }
.nav a.nav-cta { padding: 0 1.125rem; background: var(--ink); color: #fff; font-weight: 500; border-radius: 4px; }
.nav a.nav-cta:hover { background: var(--accent); color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { padding: 5.5rem 0 5rem; overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 3.5rem; }
.hero-text { flex: 999 1 600px; min-width: 0; }
.hero h1 { max-width: 19ch; font-size: clamp(2.5rem, 5.2vw, 4.5rem); line-height: 1.03; letter-spacing: -0.03em; font-weight: 600; }
.hero-sub { margin-top: 1.75rem; max-width: 38rem; font-size: 1.1875rem; line-height: 1.6; color: var(--text-2); }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-art { flex: 1 1 280px; min-width: 0; max-width: 22rem; position: relative; padding-top: 4.5rem; }
.hero-art svg { display: block; width: 100%; height: auto; }
.name-card { position: absolute; left: 0; top: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0.75rem 1.125rem; box-shadow: 0 6px 20px rgba(17, 20, 24, 0.08); }
.name-card strong { display: block; font-weight: 600; }

/* Marquee */
.band { overflow: hidden; background: var(--ink); color: #fff; padding: 1.125rem 0; }
.band-track { display: flex; width: max-content; animation: band 45s linear infinite; font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.band-track ul { display: flex; align-items: center; gap: 2.5rem; padding: 0 2.5rem 0 0; margin: 0; list-style: none; }
.band-track li { display: flex; align-items: center; gap: 2.5rem; }
.band-track li::after { content: ""; width: 6px; height: 6px; background: var(--accent-on-dark); transform: rotate(45deg); }
@keyframes band { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Key figures */
.figures { background: var(--surface); border-bottom: 1px solid var(--line); }
.figures .wrap { padding-top: 3rem; padding-bottom: 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.figure-num { font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.figure-label { margin-top: 0.625rem; color: var(--text-3); }

/* Sections */
.section { padding: 6rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: #fff; }

/* Services list */
.track { margin-top: 3.5rem; padding-bottom: 0.875rem; border-bottom: 2px solid var(--ink); font-family: var(--mono); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.track-note { margin: 1.25rem 0 0.5rem; max-width: 46rem; padding-left: 1rem; border-left: 3px solid var(--accent); font-size: 1.0625rem; line-height: 1.6; color: var(--text-2); }
.service { border-bottom: 1px solid var(--line); }
.service summary, .faq summary { list-style: none; cursor: pointer; }
.service summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.service summary { display: flex; align-items: center; gap: 1.5rem; padding: 1.75rem 0; min-height: 44px; }
.service-num { flex: 0 0 4rem; font-family: var(--mono); font-size: 1.5rem; color: var(--accent); }
.service-head { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.5rem; }
.service-name { font-size: clamp(1.25rem, 2.2vw, 1.875rem); font-weight: 600; letter-spacing: -0.015em; }
.service-hook { color: var(--text-3); }
.service-body { padding: 0 0 1.75rem 5.5rem; max-width: 52rem; }
.service-body p:first-child { line-height: 1.65; color: var(--text-2); }
.service-body .mono-note { margin-top: 0.875rem; }
.plus { flex: 0 0 auto; }
details[open] .plus-v { opacity: 0; }
.service summary:hover .service-name { color: var(--accent); }

/* Steps */
.steps { margin: 3rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.steps li { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.step-label { font-family: var(--mono); font-size: 0.8125rem; color: var(--accent); }
.steps h3 { margin-top: 0.5rem; font-size: 1.25rem; font-weight: 600; }
.steps p:last-child { margin-top: 0.625rem; line-height: 1.6; color: var(--text-3); }

/* Cards */
.cards { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.card { flex: 1 1 280px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.75rem; }
.card h3 { font-size: 1.25rem; font-weight: 600; }
.card p { margin-top: 0.75rem; line-height: 1.6; color: var(--text-3); }
.terms { margin-top: 2rem; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.7; color: var(--text-2); }

/* Results */
.result { flex: 1 1 420px; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.result h3 { margin-top: 0.375rem; font-size: 1.1875rem; font-weight: 600; }
.result dl { margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.result dt { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.result dd { margin: 0.125rem 0 0; line-height: 1.5; }
.result .outcome { padding-top: 0.75rem; border-top: 1px solid var(--line); }
.result .outcome dt { color: var(--accent); }
.result .outcome dd { font-weight: 600; }
.client { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }

/* Two-column sections (About, FAQ) */
.split { display: flex; flex-wrap: wrap; gap: 2.5rem 4rem; }
.split-side { flex: 1 1 280px; min-width: 0; }
.split-main { flex: 999 1 560px; min-width: 0; }
.bio { font-size: 1.25rem; line-height: 1.65; color: var(--ink-2); }
.chips { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; list-style: none; }
.chips li { padding: 0.375rem 0.75rem; border: 1px solid var(--line); border-radius: 4px; font-family: var(--mono); font-size: 0.8125rem; color: var(--text-2); }
.about-note { margin-top: 1.75rem; line-height: 1.6; color: var(--text-3); }
.facts { margin: 2rem 0 0; display: grid; gap: 0.875rem; }
.facts dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.facts dd { margin: 0.25rem 0 0; line-height: 1.55; color: var(--text-2); }
.about-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; min-height: 44px; font-size: 1.125rem; font-weight: 600; }
.faq p { padding-bottom: 1.25rem; line-height: 1.65; color: var(--text-2); }
.faq p.faq-intro { padding-bottom: 0.625rem; }
.faq ul { margin: 0; padding: 0 0 0.75rem 1.25rem; line-height: 1.65; color: var(--text-2); }
.faq li + li { margin-top: 0.375rem; }
.faq strong { color: var(--ink); font-weight: 600; }

/* Contact */
.contact { padding: 7rem 0; }
.contact .eyebrow { color: var(--muted-on-dark); }
.contact h2 { max-width: 16ch; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; }
.contact em.serif { color: var(--accent-on-dark); }
.contact-lead { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.6; color: #C9CED6; }
.contact-details { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; }
.contact-details dt { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-dark); }
.contact-details dd { margin: 0.25rem 0 0; }
.contact-details a { color: #fff; }
.contact-actions { margin-top: 2.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-outline-light { border-color: #5A616B; color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }

/* Footer */
.site-footer { background: var(--ink); border-top: 1px solid #2A2F36; color: var(--muted-on-dark); font-size: 0.8125rem; line-height: 1.6; }
.site-footer .wrap { padding-top: 1.75rem; padding-bottom: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer p { flex: 1 1 520px; min-width: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: #E6E8EB; }

.nowrap { white-space: nowrap; }

/* Mobile action bar (phones only) */
.action-bar { display: none; }

/* Legal pages */
.legal { padding: 4rem 0 6rem; }
.legal .wrap { max-width: 48rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.02em; font-weight: 600; }
.legal h2 { margin-top: 2.5rem; font-size: 1.25rem; font-weight: 600; }
.legal p, .legal li { line-height: 1.7; color: var(--ink-2); }
.legal p { margin-top: 0.75rem; }
.legal ul { margin: 0.75rem 0 0; padding-left: 1.25rem; }
.legal dl { margin: 1.5rem 0 0; display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr; gap: 0.625rem 1.5rem; }
.legal dt { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.03em; color: var(--text-3); padding-top: 0.15rem; }
.legal dd { margin: 0; line-height: 1.6; }
.updated { margin-top: 0.75rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--text-3); }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1.5rem; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  .hero-art { display: none; }
  .hero { padding: 3.5rem 0 3.5rem; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 1rem; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1rem 1rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(17, 20, 24, 0.08); }
  .nav.open { display: flex; }
  .nav a { min-height: 48px; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav a.nav-cta { margin-top: 0.75rem; justify-content: center; border-bottom: 0; }
  .site-header .wrap { position: relative; }

  .hero { padding: 2.25rem 0 2rem; }
  .hero h1 { font-size: 2.375rem; line-height: 1.05; }
  .hero-sub { margin-top: 1.125rem; font-size: 1.0625rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; min-height: 52px; }
  .hero-actions .btn-text { display: none; }

  .figures .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .figure-num { font-size: 2rem; }
  .figure-label { margin-top: 0.375rem; font-size: 0.875rem; }

  .section { padding: 2.75rem 0; }
  .contact { padding: 3rem 0; }
  .lead { font-size: 1rem; }
  .track { margin-top: 1.75rem; font-size: 0.75rem; }
  .service summary { align-items: flex-start; gap: 0.75rem; padding: 1rem 0; }
  .service-num { flex-basis: 1.75rem; font-size: 0.875rem; padding-top: 0.2rem; }
  .service-head { display: block; }
  .service-name { display: block; font-size: 1.125rem; }
  .service-hook { display: block; margin-top: 0.125rem; font-size: 0.875rem; }
  .service-body { padding: 0 0 1rem 2.5rem; }
  .service-body p:first-child { font-size: 0.9375rem; }

  .steps { margin-top: 1.25rem; gap: 0; grid-template-columns: 1fr; }
  .steps li { border-top: 1px solid var(--line); padding: 0.875rem 0; display: grid; grid-template-columns: 1.75rem 1fr; column-gap: 0.75rem; }
  .steps li:last-child { border-bottom: 1px solid var(--line); }
  .step-label { grid-row: span 2; font-size: 0.875rem; }
  .step-label .step-word { display: none; }
  .steps h3 { margin: 0; font-size: 1rem; }
  .steps p:last-child { margin-top: 0.125rem; font-size: 0.9375rem; }

  .cards { margin-top: 1.25rem; gap: 0.75rem; }
  .card { padding: 1.25rem; }
  .result.hide-sm { display: none; }
  .bio { font-size: 1rem; }
  .split { gap: 1rem; }
  .faq summary { font-size: 1rem; padding: 1rem 0; }
  .faq p, .faq ul { font-size: 0.9375rem; }
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; min-height: 52px; }

  .action-bar { display: flex; gap: 0.625rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); background: rgba(245, 246, 244, 0.97); border-top: 1px solid var(--line); }
  .action-bar { transition: transform 0.25s ease; }
  .action-bar.is-hidden { transform: translateY(110%); }
  .action-bar .btn-primary { flex: 1 1 auto; font-weight: 600; }
  .action-bar .btn-outline { flex: 0 0 52px; padding: 0; }
  .site-footer { padding-bottom: 5rem; }

  .legal dl { grid-template-columns: 1fr; gap: 0.125rem; }
  .legal dd { margin-bottom: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band-track { animation: none; }
}
