/* ========================================================================
   CKM InfoTech — editorial-tech aesthetic
   Type: Instrument Serif italic display, Geist body, JetBrains Mono accents
   ======================================================================== */

:root {
  --bg: #0A0A0F;
  --bg-elev: #11111A;
  --surface: #15151F;
  --surface-2: #1C1C28;
  --text: #F5F1E8;
  --text-muted: #8A8B95;
  --text-faint: #5A5A65;
  --accent-warm: #FF6B47;
  --accent-cool: #5EEAD4;
  --accent-glow: rgba(255, 107, 71, 0.12);
  --border: #252533;
  --border-soft: #1A1A26;
  /* Ghost-button border — readable against the dark page background. */
  --btn-border: #6E6E84;

  --serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Geist', 'Inter Tight', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Geist Mono', monospace;

  --max-w: 1320px;
  --pad-x: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --radius-lg: 24px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

[data-theme="light"] {
  --bg: #F5F1E8;
  --bg-elev: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #EDE6D3;
  --text: #0A0A0F;
  --text-muted: #5A5A65;
  --text-faint: #8A8B95;
  /* Darkened to pass WCAG AA (4.5:1) on cream — was #C44A22 / 4.28:1 */
  --accent-warm: #A53E16;
  --accent-cool: #0E7665;
  --accent-glow: rgba(165, 62, 22, 0.08);
  --border: #D5CFB7;
  --border-soft: #E5DFC9;
  /* Used by .btn-ghost only — needs WCAG 1.4.11 non-text contrast (3:1).
     Card / divider borders stay soft via --border. */
  --btn-border: #6B5E3A;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Atmospheric background ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 80% -10%, var(--accent-glow), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(94, 234, 212, 0.06), transparent 70%);
  opacity: 1;
  transition: opacity 0.4s;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.04;
  mix-blend-mode: overlay;
}
[data-theme="light"] body::after { opacity: 0.06; }

main, header, footer { position: relative; z-index: 1; }

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--text-muted);
}

.display {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--text);
}

.h1 { font-size: clamp(48px, 9vw, 132px); }
.h2 { font-size: clamp(36px, 6vw, 84px); }
.h3 { font-size: clamp(28px, 4vw, 56px); }

.lede {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 56ch;
}

.label-mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-warm);
  color: var(--bg);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--btn-border);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--text);
}
.btn-ghost:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 2px;
}
.btn .arr {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
[data-theme="dark"] .logo:not(.brand-logo) img {
  /* invert the legacy CKM wordmark so it reads on dark backgrounds.
     FaiServe brand-logo ships its own dark variant — exclude it. */
  filter: invert(1) hue-rotate(180deg);
}
.site-footer .logo img { height: 36px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  color: var(--text-muted);
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent-warm);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--text); transform: rotate(45deg); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-light { display: none; }
.theme-toggle .icon-dark { display: block; }
[data-theme="light"] .theme-toggle .icon-light { display: block; }
[data-theme="light"] .theme-toggle .icon-dark { display: none; }

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: border-color 0.3s var(--ease-out);
}
.nav-toggle:hover { border-color: var(--text); }
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad-x) 24px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    font-size: 18px;
    padding: 16px 4px;
    border-top: 1px solid var(--border-soft);
  }
  .nav-links a.active::after { display: none; }
}
@media (max-width: 480px) {
  .nav-actions .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(56px, 10vw, 120px) clamp(40px, 8vw, 80px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}
.hero-meta .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 16px var(--accent-warm);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}
.hero-headline {
  margin-bottom: 36px;
}
.hero-headline em {
  background: linear-gradient(120deg, var(--accent-warm), var(--accent-cool));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 520px;
  display: grid;
  place-items: end center;
}

/* Service stack — six cascaded cards representing CKM's full service surface */
.service-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 520px;
  margin: 0 auto;
}
.svc-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 320px;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s var(--ease-out), box-shadow 0.4s var(--ease-out);
  cursor: default;
}
.svc-card .svc-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  flex: 0 0 auto;
}
.svc-card .svc-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  flex: 1;
  line-height: 1;
}
.svc-card .svc-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.svc-card .svc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cool);
  box-shadow: 0 0 8px var(--accent-cool);
}
.svc-card.svc-6 .svc-dot { background: var(--accent-warm); box-shadow: 0 0 8px var(--accent-warm); }

.svc-1 { top:   0px; right: 12px; transform: rotate(-2deg); z-index: 6; }
.svc-2 { top:  56px; left:  10px; transform: rotate(1.5deg); z-index: 5; }
.svc-3 { top: 124px; right:  0px; transform: rotate(-1deg); z-index: 4; }
.svc-4 { top: 196px; left:  18px; transform: rotate(2deg);  z-index: 3; }
.svc-5 { top: 272px; right: 16px; transform: rotate(-1.5deg); z-index: 2; }
.svc-6 { top: 348px; left:   4px; transform: rotate(0.5deg); z-index: 1; }

.svc-6 { border-color: var(--accent-warm); box-shadow: 0 18px 30px -18px var(--accent-warm); }
.svc-6 .svc-name { color: var(--accent-warm); }

/* Hover: gentle fan-out so the stack reveals depth */
.service-stack:hover .svc-1 { transform: rotate(-3deg) translate(8px, -6px); }
.service-stack:hover .svc-2 { transform: rotate(2deg) translate(-6px, -4px); }
.service-stack:hover .svc-3 { transform: rotate(-1.5deg) translate(6px, -2px); }
.service-stack:hover .svc-4 { transform: rotate(2.5deg) translate(-4px, 0px); }
.service-stack:hover .svc-5 { transform: rotate(-2deg) translate(8px, 2px); }
.service-stack:hover .svc-6 { transform: rotate(1deg) translate(-6px, 4px); }

@media (max-width: 540px) {
  .service-stack { max-width: 320px; height: 480px; }
  .svc-card { width: 260px; padding: 12px 14px; }
  .svc-card .svc-name { font-size: 18px; }
}
.phone {
  position: absolute;
  width: 240px;
  border-radius: 32px;
  overflow: hidden;
  background: #0A0A0F;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.6s var(--ease-out);
}
.phone img { display: block; width: 100%; height: auto; }

.hero-stats {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  z-index: 10;
}
.hero-stats span strong { color: var(--text); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 80px; }
  .hero-visual { min-height: 520px; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--border-soft);
  background: var(--bg-elev);
  padding-block: 22px;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: scroll 36s linear infinite;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: max-content;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee-track .sep { color: var(--accent-warm); font-family: var(--serif); font-style: italic; font-size: 18px; text-transform: none; letter-spacing: 0; }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Section base ---------- */
section {
  /* Reduced from 80–140px (compounded to 264px+ between sections).
     Adjacent sections of same topic depth read tighter now. */
  padding-block: clamp(48px, 6vw, 88px);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head .lede { max-width: 60ch; }
@media (max-width: 768px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Services grid (asymmetric) ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}
.service-card:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}
.service-card .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}
.service-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin-top: 28px;
}
.service-card p {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 38ch;
}
.service-card .more {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s var(--ease-out);
}
.service-card:hover .more { gap: 12px; }

.service-card.span-3 { grid-column: span 3; }
.service-card.span-2 { grid-column: span 2; }
.service-card.span-4 { grid-column: span 4; }
.service-card.span-6 { grid-column: span 6; }

.service-card.featured {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border-color: var(--accent-warm);
}
.service-card.featured h3 { color: var(--accent-warm); }

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service-card.span-3, .service-card.span-2, .service-card.span-4, .service-card.span-6 { grid-column: span 2; }
}
@media (max-width: 540px) {
  .services { grid-template-columns: 1fr; }
  .service-card.span-3, .service-card.span-2, .service-card.span-4, .service-card.span-6 { grid-column: span 1; }
}

/* ---------- Featured product card (Field Service) ---------- */
.product-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.product-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, var(--accent-glow), transparent 50%);
  pointer-events: none;
}
.product-feature h2 { font-size: clamp(34px, 5vw, 64px); }
.product-feature .lede { margin-top: 24px; }
.product-feature .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.product-feature .visual {
  position: relative;
  z-index: 1;
}
.product-feature .visual .phone {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  transform: rotate(-3deg);
}
@media (max-width: 900px) {
  .product-feature { grid-template-columns: 1fr; }
}

/* ---------- Stats band ---------- */
.stats-band {
  border-block: 1px solid var(--border-soft);
  padding-block: clamp(60px, 8vw, 100px);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.stat {
  border-left: 1px solid var(--border);
  padding-left: 28px;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--text), var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 28px; }
  .stat:first-child { border-top: none; padding-top: 0; }
}

/* ---------- Approach (3-step) ---------- */
.approach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
}
.step .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  color: var(--accent-warm);
  letter-spacing: -0.04em;
}
.step h4 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  margin-top: 18px;
  letter-spacing: -0.02em;
}
.step p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
@media (max-width: 768px) {
  .approach { grid-template-columns: 1fr; }
}

/* ---------- CTA strip ---------- */
.cta-strip {
  text-align: center;
  padding-block: clamp(48px, 6vw, 88px);
}
.cta-strip h2 {
  font-size: clamp(40px, 7vw, 96px);
  margin-bottom: 36px;
}
.cta-strip .actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding-block: 60px 36px;
  background: var(--bg-elev);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 36ch;
  line-height: 1.55;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Field Service page ---------- */
.fs-hero {
  padding-block: clamp(28px, 4vw, 56px) clamp(40px, 5vw, 72px);
}
.fs-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.fs-hero h1 { font-size: clamp(46px, 8vw, 116px); }
.fs-hero h1 em {
  background: linear-gradient(120deg, var(--accent-warm), var(--accent-cool));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.fs-hero .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.fs-hero .lede { margin-top: 24px; }
.fs-hero-visual {
  position: relative;
  height: 580px;
}
.fs-hero-visual .phone {
  position: absolute;
  width: 260px;
}
.fs-hero-visual .phone-a { top: 0; right: 30px; transform: rotate(6deg); z-index: 2; }
.fs-hero-visual .phone-b { top: 200px; left: 0; transform: rotate(-5deg); z-index: 1; filter: brightness(0.85); }

@media (max-width: 900px) {
  .fs-hero-grid { grid-template-columns: 1fr; }
  .fs-hero-visual { height: 600px; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.feature:hover {
  border-color: var(--accent-cool);
  transform: translateY(-2px);
}
.feature .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent-warm);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.feature .icon svg { width: 18px; height: 18px; }
.feature h4 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.feature p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }

.showcase-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px;
}
.showcase-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  transition: transform 0.5s var(--ease-out);
}
.showcase-card:hover { transform: translateY(-6px); }
.showcase-card .label-mono { display: block; margin-bottom: 24px; }
.showcase-card .phone {
  position: static;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  transform: none;
}
.product-feature .visual .phone {
  position: static;
}
.product-feature .visual {
  display: grid;
  place-items: center;
}
@media (max-width: 768px) { .showcase-strip { grid-template-columns: 1fr; } }

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.workflow::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  z-index: 0;
}
.workflow-step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.workflow-step .dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-warm);
}
.workflow-step h5 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
}
.workflow-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 22ch;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .workflow { grid-template-columns: 1fr 1fr; }
  .workflow::before { display: none; }
}

.use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.use-case {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-elev);
  transition: all 0.3s var(--ease-out);
}
.use-case:hover {
  background: var(--accent-warm);
  color: var(--bg);
  border-color: var(--accent-warm);
  transform: translateY(-2px);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

/* ---------- Contact form ---------- */
.contact-section {
  padding-block: clamp(80px, 10vw, 140px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-intro h2 em {
  background: linear-gradient(120deg, var(--accent-warm), var(--accent-cool));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.contact-points {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-points li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-warm);
  flex: 0 0 auto;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.contact-form .hp {
  position: absolute;
  left: -10000px;
  top: -10000px;
  opacity: 0;
  pointer-events: none;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.contact-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form label {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-form label .opt {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-left: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
  width: 100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-faint);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent-warm);
  background: var(--surface);
}
.contact-form textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%238A8B95' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.contact-form .cf-submit {
  margin-top: 8px;
  align-self: flex-start;
  padding: 14px 28px;
}
.contact-form .cf-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.contact-form .cf-status {
  font-size: 14px;
  min-height: 22px;
  font-family: var(--sans);
}
.contact-form .cf-status.is-ok {
  color: var(--accent-cool);
}
.contact-form .cf-status.is-err {
  color: var(--accent-warm);
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================================================
   FaiServe page additions (2026-05-04)
   Brand mark, hero bullets, trust strip, pillars, loop, pricing, FAQ
   ======================================================================== */

/* --- Theme-aware brand logo (light wordmark on dark bg, black wordmark on cream) --- */
/* !important defeats the legacy `.logo img { display: block }` and any cached overrides. */
.brand-logo .logo-light,
.brand-logo .logo-dark { display: none !important; }
[data-theme="light"] .brand-logo .logo-light { display: block !important; }
[data-theme="dark"]  .brand-logo .logo-dark  { display: block !important; }

/* --- Header / footer logo sizing ---
   FaiServe logo is now cropped to its content (~3.77:1 aspect, 1439×382).
   Height-driven sizing keeps the icon at a sensible nav-bar size; width
   follows from aspect. */
.site-header .brand-logo img {
  height: 36px !important; width: auto !important; max-height: none;
}
.footer-brand .brand-logo img {
  height: 34px !important; width: auto !important; max-height: none;
}
@media (max-width: 720px) {
  .site-header .brand-logo img { height: 30px !important; }
  .footer-brand .brand-logo img { height: 30px !important; }
}

/* --- Hero quick-trust bullets --- */
.fs-hero-bullets {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.fs-hero-bullets li { display: flex; align-items: center; gap: 8px; }
.fs-hero-bullets .check {
  color: var(--accent-cool);
  font-weight: 600;
}

/* --- Trust strip --- */
.trust-strip {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.trust-item {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1px solid var(--border-soft);
}
.trust-item:last-child { border-right: none; }
.trust-item strong {
  font-family: var(--serif);
  font-style: italic;
  font-size: 42px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 6px;
}
.trust-item span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--border-soft); }
}

/* --- Pillars (3-up: customer / tech / manager) --- */
.fs-pillars-section { margin-top: 40px; }
.fs-pillars-lede { max-width: 720px; margin-top: 18px; }

.pillars {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pillar {
  padding: 36px 30px 32px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--border); }
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent-warm);
  opacity: 0.85;
}
.pillar.pillar-tech::before    { background: var(--accent-cool); }
.pillar.pillar-manager::before { background: linear-gradient(90deg, var(--accent-warm), var(--accent-cool)); }

.pillar-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 18px;
}
.pillar-tag.tech    { color: var(--accent-cool); }
.pillar-tag.manager { color: var(--text); }

.pillar-headline {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--text);
}
.pillar-customer .pillar-headline { font-style: italic; }

.pillar-copy {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 22px;
}
.pillar-copy em {
  font-family: var(--mono);
  font-style: normal;
  color: var(--text);
  font-size: 13px;
}

.pillar-feats {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-soft);
  padding-top: 18px;
}
.pillar-feats li {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.pillar-feats li::before {
  content: "→ ";
  color: var(--accent-warm);
  margin-right: 4px;
}
.pillar-tech .pillar-feats li::before    { color: var(--accent-cool); }

@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr; } }

/* --- The loop (4-step grid with phone screenshots) --- */
.loop-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.loop-card {
  padding: 28px 22px 28px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  position: relative;
}
.loop-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent-warm);
}
.loop-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  color: var(--text);
}
.loop-line {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  /* Pin the bottom-edge gap to a fixed 4-line min so all 4 cards align. */
  min-height: 4.5em;
}
.loop-card .phone {
  position: relative;
  margin: auto auto 0;
  width: 86%;
  max-width: 240px;
  /* Explicit height (not aspect-ratio) so a browser quirk can't let the
     img grow to natural size and bury the loop-card text behind it. */
  height: 460px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  z-index: 1;
}
.loop-card .phone img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
@media (max-width: 1100px) {
  .loop-card .phone { height: 500px; max-width: 260px; }
}
@media (max-width: 600px) {
  .loop-card .phone { height: 540px; max-width: 280px; }
}

@media (max-width: 1100px) {
  .loop-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px)  {
  .loop-grid { grid-template-columns: 1fr; }
}

/* --- Pricing --- */
.fs-pricing-section { margin-top: 40px; }
.fs-pricing-lede { max-width: 640px; margin-top: 18px; }

.pricing-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 1200px;
}
@media (max-width: 1024px) {
  .pricing-grid--3 { grid-template-columns: 1fr; max-width: 540px; }
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.price-card.price-pilot {
  border: 1px solid var(--accent-warm);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.price-flag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent-warm);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.price-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.price-amount {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.price-amount strong {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  color: var(--text);
}
.price-amount span {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
}
.price-blurb {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 15px;
}
.price-feats {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-soft);
}
.price-feats li {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-feats li::before {
  content: "✓";
  color: var(--accent-cool);
  font-weight: 600;
  font-size: 14px;
}
.price-cta {
  margin-top: 28px;
  width: 100%;
  justify-content: center;
}
.price-fineprint {
  margin-top: 26px;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
}
.price-fineprint a { color: var(--accent-warm); }

@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }

/* --- FAQ --- */
.fs-faq-section { margin-top: 40px; }
.faq-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.faq-item {
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border); }
.faq-item summary {
  list-style: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent-warm);
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }

/* --- FaiServe sign-up section --- */
.fs-signup-section { margin-top: 40px; }
.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.signup-intro { padding-top: 12px; }
.signup-intro h2 { font-size: clamp(36px, 5vw, 60px); }
.signup-intro .lede { color: var(--text-muted); }
.signup-intro .lede strong { color: var(--text); }
.signup-intro .contact-points {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signup-intro .contact-points li {
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.5;
}
.signup-intro .contact-points li::before {
  content: "✓ ";
  color: var(--accent-cool);
  margin-right: 4px;
}

.cf-fineprint {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.5;
}
.cf-fineprint a { color: var(--accent-warm); }

@media (max-width: 900px) {
  .signup-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* --- Legal page (privacy policy) --- */
.legal-page {
  padding-top: 80px;
  padding-bottom: 120px;
  max-width: 820px;
}
.legal-head { margin-bottom: 56px; }
.legal-head h1 { font-size: clamp(40px, 5vw, 64px); }
.legal-body section {
  padding: 28px 0;
  border-top: 1px solid var(--border-soft);
}
.legal-body section:last-of-type { border-bottom: 1px solid var(--border-soft); }
.legal-body h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 14px;
  color: var(--text);
}
.legal-body p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
  font-size: 15px;
}
.legal-body p:last-child { margin-bottom: 0; }
.legal-body a { color: var(--accent-warm); }
.legal-back {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 13px;
}

/* --- 404 error page --- */
.error-page {
  padding-top: 100px;
  padding-bottom: 160px;
  max-width: 820px;
}
.error-grid { display: flex; flex-direction: column; align-items: flex-start; }
.error-code {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-warm);
  margin-bottom: 32px;
}
.error-headline { font-size: clamp(48px, 7vw, 96px); line-height: 1.05; }
.error-headline em { color: var(--accent-warm); font-style: italic; }
.error-lede {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 18px;
  max-width: 600px;
  line-height: 1.55;
}
.error-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.error-links {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.error-links li { font-family: var(--mono); font-size: 13px; }
.error-links a { color: var(--text-muted); transition: color 0.2s; }
.error-links a:hover { color: var(--text); }
.error-links a::before { content: "→ "; color: var(--accent-warm); margin-right: 4px; }

/* --- Featured FaiServe brand mark on the homepage product card --- */
.featured-brand-mark {
  margin-top: 24px;
  align-items: center;
  gap: 14px;
}
.featured-brand-mark img {
  height: 60px !important;
  width: auto !important;
  max-height: none;
}
@media (max-width: 900px)  { .featured-brand-mark img { height: 48px !important; } }
@media (max-width: 540px)  { .featured-brand-mark img { height: 40px !important; } }

/* --- Approach section CTA row --- */
.approach-cta {
  margin-top: 56px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}



