/*
Theme Name: Klomsys Refonte
Theme URI: https://klomsys.fr/
Author: Klomsys
Description: Thème éditorial sur mesure pour Klomsys et Visitia Rapport.
Version: 1.2.0
Text Domain: klomsys-refonte
*/

:root {
  --kl-navy: #071a36;
  --kl-navy-soft: #0d2b55;
  --kl-blue: #1d4ed8;
  --kl-blue-dark: #1e40af;
  --kl-cyan: #22c7e8;
  --kl-cyan-dark: #0891b2;
  --kl-green: #0f8a66;
  --kl-ink: #0f172a;
  --kl-muted: #526175;
  --kl-bg: #f3f6fb;
  --kl-card: #ffffff;
  --kl-border: #d8e1ee;
  --kl-shadow: 0 20px 55px rgba(7, 26, 54, 0.12);
  --kl-radius: 22px;
  --kl-content: 1180px;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--kl-ink);
  background: var(--kl-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
a { color: var(--kl-blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--kl-blue-dark); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 18px;
  top: 8px;
  left: 8px;
  z-index: 10000;
  background: #fff;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(216, 225, 238, 0.9);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(var(--kl-content), calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--kl-navy);
  font-weight: 850;
  font-size: 1.27rem;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--kl-blue), var(--kl-cyan));
  box-shadow: 0 9px 22px rgba(29, 78, 216, 0.22);
  font-size: 1.08rem;
}
.brand-tag { color: var(--kl-cyan-dark); font-weight: 700; }
.primary-nav { margin-left: auto; }
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--kl-ink);
  font-weight: 650;
  font-size: 0.94rem;
  text-decoration: none;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { background: #edf4ff; color: var(--kl-blue); }
.header-cta,
.kl-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  color: #fff !important;
  background: var(--kl-blue);
  border: 1px solid var(--kl-blue);
  border-radius: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 10px 25px rgba(29, 78, 216, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.header-cta:hover,
.kl-button:hover,
.wp-block-button__link:hover {
  background: var(--kl-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.24);
}
.kl-button.is-secondary,
.is-style-outline > .wp-block-button__link {
  color: var(--kl-blue) !important;
  background: #fff;
  border-color: var(--kl-border);
  box-shadow: none;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--kl-border);
  border-radius: 12px;
  background: #fff;
  color: var(--kl-navy);
  cursor: pointer;
}

.site-main { min-height: 65vh; overflow: hidden; }
.content-shell,
.entry-content > :where(:not(.alignfull)) {
  width: min(var(--kl-content), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
.content-shell { max-width: var(--kl-content) !important; }
.entry-content > .alignwide { width: min(1320px, calc(100% - 32px)); }
.entry-content > .alignfull { width: 100%; max-width: none; }
.page-header {
  padding: 78px 0 28px;
  text-align: center;
}
.page-header h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -0.055em; }
.page-header p { color: var(--kl-muted); max-width: 760px; margin: 18px auto 0; }
.entry-content { padding-bottom: 80px; }

.kl-section {
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(64px, 9vw, 112px);
}
.kl-section.is-white { background: #fff; }
.kl-section.is-dark {
  color: #fff;
  background:
    radial-gradient(circle at 82% 15%, rgba(34, 199, 232, 0.2), transparent 26%),
    linear-gradient(145deg, var(--kl-navy), #0d315f);
}
.kl-section.is-dark h2,
.kl-section.is-dark h3 { color: #fff; }
.kl-section.is-dark p { color: #d8e5f5; }
.section-kicker {
  margin: 0 0 12px;
  color: var(--kl-cyan-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.is-dark .section-kicker { color: #67dff2; }
.section-heading {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -0.052em;
}
.section-intro { max-width: 760px; color: var(--kl-muted); font-size: 1.1rem; }
.kl-center { text-align: center; }
.kl-center .section-heading,
.kl-center .section-intro { margin-left: auto; margin-right: auto; }

.kl-hero {
  position: relative;
  padding: clamp(68px, 9vw, 118px) 0 clamp(72px, 9vw, 120px);
  background:
    radial-gradient(circle at 82% 24%, rgba(34, 199, 232, 0.18), transparent 28%),
    radial-gradient(circle at 15% 70%, rgba(29, 78, 216, 0.11), transparent 33%),
    linear-gradient(180deg, #fff 0%, #f3f7ff 100%);
}
.kl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.kl-hero-grid > .wp-block-column { min-width: 0; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid #cceaf1;
  border-radius: 999px;
  color: var(--kl-cyan-dark);
  background: #ecfbff;
  font-size: 0.82rem;
  font-weight: 800;
}
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kl-cyan); }
.kl-hero h1 {
  margin: 0;
  max-width: 760px;
  color: var(--kl-navy);
  font-size: clamp(2.65rem, 5vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: -0.068em;
}
.kl-hero h1 em { color: var(--kl-blue); font-style: normal; }
.hero-lead { max-width: 700px; margin: 24px 0 0; color: var(--kl-muted); font-size: clamp(1.08rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--kl-muted); font-size: 0.9rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof span::before { content: "✓"; color: var(--kl-green); font-weight: 900; }

.work-demo {
  position: relative;
  min-height: 540px;
}
.excel-card {
  position: absolute;
  top: 42px;
  left: 0;
  width: 72%;
  padding: 15px;
  border: 1px solid #c9d8e6;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--kl-shadow);
  transform: rotate(-2.2deg);
}
.excel-bar { display: flex; align-items: center; gap: 8px; padding: 9px 11px; color: #fff; background: #16794f; border-radius: 10px 10px 4px 4px; font-weight: 800; font-size: 0.82rem; }
.excel-grid { width: 100%; border-collapse: collapse; font-size: 0.73rem; }
.excel-grid th { color: #0e5d3c; background: #dff2e7; }
.excel-grid th, .excel-grid td { padding: 7px 6px; border: 1px solid #dce6e0; text-align: left; }
.phone-card {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 54%;
  min-width: 250px;
  padding: 13px;
  border: 8px solid #0b1f3c;
  border-radius: 36px;
  color: var(--kl-ink);
  background: #eff5fb;
  box-shadow: 0 28px 65px rgba(7, 26, 54, 0.26);
  transform: rotate(2.4deg);
}
.phone-notch { width: 78px; height: 18px; margin: -4px auto 10px; border-radius: 0 0 14px 14px; background: #0b1f3c; }
.phone-head { padding: 18px 15px; color: #fff; background: var(--kl-navy-soft); border-radius: 18px 18px 8px 8px; }
.phone-head small { display: block; color: #9bdced; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.phone-head strong { display: block; margin-top: 4px; font-size: 1.08rem; }
.phone-body { display: grid; gap: 10px; padding: 12px 5px 5px; }
.phone-status { padding: 9px 10px; border-radius: 9px; color: #0b6c50; background: #dff5eb; font-size: 0.73rem; font-weight: 800; }
.phone-product, .phone-stock { padding: 12px; border: 1px solid #dce5ef; border-radius: 12px; background: #fff; }
.phone-product strong { display: block; font-size: 0.88rem; }
.phone-product span { color: var(--kl-muted); font-size: 0.68rem; }
.phone-stock { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.67rem; }
.phone-stock strong { display: block; color: var(--kl-navy); font-size: 1.25rem; }
.phone-stock .after strong { color: var(--kl-green); }
.phone-success { padding: 10px; border-radius: 10px; color: #fff; background: var(--kl-green); text-align: center; font-size: 0.75rem; font-weight: 800; }
.scan-chip {
  position: absolute;
  left: 8%;
  bottom: 62px;
  z-index: 3;
  padding: 11px 14px;
  border: 1px solid #d6e1ed;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 26, 54, 0.15);
  font-size: 0.76rem;
  font-weight: 750;
}
.scan-chip::before { content: "▥"; margin-right: 8px; color: var(--kl-blue); font-size: 1rem; }

.steps-grid,
.cards-grid,
.use-grid,
.conditions-grid { display: grid; gap: 22px; }
.steps-grid { grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.step-card,
.feature-card,
.use-card,
.condition-card {
  border: 1px solid var(--kl-border);
  border-radius: var(--kl-radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(7, 26, 54, 0.05);
}
.step-card { padding: 28px; }
.step-number { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 24px; border-radius: 12px; color: #fff; background: var(--kl-blue); font-weight: 850; }
.step-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.step-card p { margin: 0; color: var(--kl-muted); }
.step-card.is-highlight { border-color: #9fe1ed; background: linear-gradient(145deg, #effcff, #fff); }
.step-card.is-highlight .step-number { background: var(--kl-cyan-dark); }

.use-grid { grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.use-card { padding: 26px; }
.use-card:nth-child(odd) { background: linear-gradient(145deg, #f1faf6, #fff); }
.use-card:nth-child(even) { background: linear-gradient(145deg, #f0f5ff, #fff); }
.use-card h3 { margin: 0 0 14px; color: var(--kl-navy); font-size: 1.08rem; }
.use-card h3::before { content: ""; display: inline-block; width: 4px; height: 20px; margin-right: 10px; border-radius: 4px; background: var(--kl-cyan-dark); vertical-align: -4px; }
.use-card ul { margin: 0; padding-left: 20px; color: var(--kl-muted); font-size: 0.93rem; }
.use-card li + li { margin-top: 6px; }

.visitia-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.visitia-shot {
  overflow: hidden;
  max-width: 360px;
  margin: 0 auto;
  border: 10px solid #fff;
  border-radius: 34px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  background: #fff;
}
.visitia-shot img { display: block; width: 100%; }
.visitia-points { display: grid; gap: 18px; margin: 28px 0; }
.visitia-point { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.visitia-point strong:first-child { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--kl-navy); background: #6ee2f5; }
.visitia-point h3 { margin: 0; font-size: 1.1rem; }
.visitia-point p { margin: 3px 0 0; }

.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }
.story-screen { position: relative; padding: 22px; border: 1px solid var(--kl-border); border-radius: 22px; background: #fff; box-shadow: var(--kl-shadow); }
.story-screen::before { display: block; margin-bottom: 18px; color: var(--kl-cyan-dark); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.story-screen:nth-child(1)::before { content: "01 · Rendez-vous"; }
.story-screen:nth-child(2)::before { content: "02 · Compte rendu"; }
.story-screen:nth-child(3)::before { content: "03 · Relance"; }
.mini-app-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--kl-border); font-weight: 800; }
.mini-mic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--kl-blue); font-size: 0.78rem; }
.mini-card { margin-top: 15px; padding: 16px; border: 1px solid var(--kl-border); border-radius: 15px; background: #f8fafc; }
.mini-card small { display: block; color: var(--kl-muted); }
.mini-card strong { display: block; margin: 4px 0; }
.mini-action { margin-top: 12px; padding: 9px; border-radius: 9px; color: var(--kl-blue); background: #eaf1ff; text-align: center; font-size: 0.78rem; font-weight: 800; }

.cards-grid { grid-template-columns: repeat(3, 1fr); margin-top: 38px; }
.feature-card { padding: 28px; }
.feature-card h3 { margin-top: 0; }
.feature-card p { margin-bottom: 0; color: var(--kl-muted); }
.conditions-grid { grid-template-columns: repeat(2, 1fr); margin-top: 34px; }
.condition-card { padding: 26px; }
.condition-card .status { display: inline-flex; margin-bottom: 14px; padding: 5px 9px; border-radius: 999px; color: #0b6c50; background: #def5eb; font-size: 0.72rem; font-weight: 850; text-transform: uppercase; }
.condition-card .status.is-conditional { color: #8a5200; background: #fff2d8; }
.condition-card h3 { margin: 0 0 8px; }
.condition-card p { margin: 0; color: var(--kl-muted); }

.notice-box {
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid #b9d8ee;
  border-left: 5px solid var(--kl-cyan-dark);
  border-radius: 14px;
  color: #23435f;
  background: #eff9ff;
}
.notice-box strong { color: var(--kl-navy); }

.faq-list { display: grid; gap: 14px; margin-top: 38px; }
.faq-list details { border: 1px solid var(--kl-border); border-radius: 16px; background: #fff; overflow: hidden; }
.faq-list summary { position: relative; padding: 20px 54px 20px 22px; cursor: pointer; color: var(--kl-navy); font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 22px; top: 16px; font-size: 1.45rem; color: var(--kl-blue); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 22px 22px; color: var(--kl-muted); }

.demo-form-wrap { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(34px, 6vw, 70px); align-items: start; }
.demo-form { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--kl-border); border-radius: 24px; background: #fff; box-shadow: var(--kl-shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-field { display: grid; gap: 7px; }
.form-field.is-full { grid-column: 1 / -1; }
.form-field label { color: var(--kl-navy); font-size: 0.88rem; font-weight: 750; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #bdcbe0;
  border-radius: 11px;
  color: var(--kl-ink);
  background: #fff;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { outline: 3px solid rgba(34, 199, 232, 0.22); border-color: var(--kl-cyan-dark); }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-check { display: flex; gap: 10px; align-items: flex-start; color: var(--kl-muted); font-size: 0.84rem; }
.form-check input { flex: 0 0 auto; width: auto; margin-top: 5px; padding: 0; }
.form-status { margin-bottom: 18px; padding: 14px 16px; border-radius: 11px; font-weight: 700; }
.form-status.is-success { color: #075941; background: #dff5eb; }
.form-status.is-error { color: #8a1c1c; background: #fde7e7; }
.demo-form .kl-button { width: 100%; cursor: pointer; }
.contact-card { padding: 25px; border-radius: 18px; color: #fff; background: var(--kl-navy); }
.contact-card a { color: #7be5f5; }

.cta-panel {
  padding: clamp(34px, 6vw, 66px);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(34, 199, 232, 0.3), transparent 30%),
    linear-gradient(135deg, var(--kl-navy), #12417a);
  box-shadow: var(--kl-shadow);
}
.cta-panel h2 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.045em; }
.cta-panel p { max-width: 720px; color: #dbe8f7; }
.cta-panel .wp-block-button__link { color: var(--kl-navy) !important; background: #75e4f5; border-color: #75e4f5; }

.site-footer { padding: 60px 0 26px; color: #cdd9e9; background: #06172f; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 0.8fr; gap: 44px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer p { color: #aebdd0; }
.site-footer a { color: #d9e7f7; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li + li { margin-top: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); color: #91a5bd; font-size: 0.82rem; }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: grid; place-items: center; }
  .header-cta { display: none; }
  .primary-nav {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 12px;
    border: 1px solid var(--kl-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--kl-shadow);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; }
  .primary-nav a { padding: 12px 14px; }
  .kl-hero-grid,
  .visitia-band,
  .demo-form-wrap { grid-template-columns: 1fr; }
  .work-demo { min-height: 520px; max-width: 620px; margin: 0 auto; }
  .steps-grid, .cards-grid, .story-grid { grid-template-columns: 1fr; }
  .use-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner,
  .content-shell,
  .entry-content > :where(:not(.alignfull)) { width: min(100% - 28px, var(--kl-content)); }
  .brand-tag { display: none; }
  .kl-hero { padding-top: 52px; }
  .header-inner { position: relative; width: calc(100vw - 28px); max-width: calc(100vw - 28px); }
  .site-brand { min-width: 0; }
  .site-brand > span:last-child { white-space: nowrap; }
  .menu-toggle { position: absolute; top: 16px; right: 0; z-index: 2; flex: 0 0 46px; }
  .kl-hero .kl-hero-grid {
    display: block !important;
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }
  .kl-hero-grid,
  .kl-hero-grid > .wp-block-column,
  .hero-lead { min-width: 0; max-width: 100%; }
  .kl-hero-grid > .wp-block-column { width: 100% !important; flex-basis: auto !important; }
  .kl-hero-grid > .wp-block-column + .wp-block-column { margin-top: 38px; }
  .kl-hero h1 { font-size: clamp(2.55rem, 12.5vw, 3.4rem); }
  .hero-lead { overflow-wrap: anywhere; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .kl-button { width: 100%; }
  .work-demo { min-height: 440px; }
  .excel-card { width: 83%; padding: 10px; }
  .excel-grid { font-size: 0.58rem; }
  .excel-grid th, .excel-grid td { padding: 5px 3px; }
  .phone-card { width: 61%; min-width: 210px; border-width: 6px; }
  .scan-chip { left: 0; bottom: 44px; }
  .use-grid, .conditions-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-field.is-full, .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

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

/* Accueil 2026 — composition inspirée de la simplicité du premier écran Fathom. */
html { scroll-behavior: auto; }

.header-cta,
.kl-button,
.wp-block-button__link {
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.header-cta:hover,
.kl-button:hover,
.wp-block-button__link:hover {
  transform: none;
  box-shadow: 0 10px 25px rgba(29, 78, 216, 0.18);
}

.kl-hero-fathom {
  padding: clamp(58px, 7vw, 92px) 0 clamp(72px, 8vw, 108px);
  background:
    radial-gradient(circle at 82% 18%, rgba(34, 199, 232, 0.11), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
}

.hero-fathom-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(44px, 6vw, 80px);
  align-items: center;
}

.hero-copy { min-width: 0; }

.kl-hero-fathom h1 {
  max-width: 650px;
  font-size: clamp(3.15rem, 5.2vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.068em;
}

.kl-hero-fathom .hero-lead {
  max-width: 630px;
  margin-top: 26px;
}

.hero-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-top: 32px;
}

.hero-primary { min-width: 188px; }

.hero-secondary-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kl-navy);
  font-weight: 780;
  text-decoration: none;
  transition: color 0.16s ease;
}

.hero-secondary-link:hover,
.text-link:hover { color: var(--kl-blue); }

.hero-demo-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--kl-muted);
  font-size: 0.91rem;
  line-height: 1.5;
}

.hero-demo-note span {
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--kl-green);
  font-size: 0.75rem;
  font-weight: 900;
}

.hero-product {
  position: relative;
  min-width: 0;
  padding: 18px 0 26px 18px;
}

.product-window {
  overflow: hidden;
  border: 1px solid #cbd8e8;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(7, 26, 54, 0.16);
}

.product-window-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 12px 18px;
  color: #fff;
  background: var(--kl-navy);
  font-size: 0.78rem;
}

.product-window-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.product-window-brand i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--kl-blue), var(--kl-cyan));
  font-style: normal;
}

.product-window-user { color: #a9bed8; }
.product-window-body { padding: 22px; }

.product-window-heading,
.app-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.product-window-heading small,
.product-window-heading strong,
.app-heading small,
.app-heading strong { display: block; }

.product-window-heading small,
.app-heading small {
  color: var(--kl-cyan-dark);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.product-window-heading strong { margin-top: 3px; font-size: 1.18rem; }

.product-new,
.app-heading > span {
  padding: 8px 11px;
  border-radius: 9px;
  color: #fff;
  background: var(--kl-blue);
  font-size: 0.67rem;
  font-weight: 800;
}

.product-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 18px 0 13px;
}

.product-stats div {
  padding: 12px;
  border: 1px solid #dde6f1;
  border-radius: 12px;
  background: #f8fafc;
}

.product-stats span,
.product-stats strong { display: block; }
.product-stats span { color: var(--kl-muted); font-size: 0.65rem; }
.product-stats strong { color: var(--kl-navy); font-size: 1.25rem; }

.product-toolbar,
.app-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-bottom: 10px;
}

.product-toolbar span,
.app-search,
.app-filter {
  display: block;
  padding: 9px 11px;
  border: 1px solid #d7e0ec;
  border-radius: 9px;
  color: var(--kl-muted);
  background: #fff;
  font-size: 0.64rem;
}

.product-list {
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 12px;
}

.product-row {
  display: grid;
  grid-template-columns: 76px minmax(110px, 1fr) 82px 104px;
  gap: 9px;
  align-items: center;
  padding: 11px 12px;
  font-size: 0.64rem;
}

.product-row + .product-row { border-top: 1px solid #e5ebf2; }
.product-row time { color: var(--kl-muted); }

.status,
.cell-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 25px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.61rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.is-diagnostic { color: #1e4fb3; background: #e5eeff; }
.is-waiting { color: #8a5200; background: #fff0ce; }
.is-done { color: #087052; background: #def5eb; }
.is-review { color: #765109; background: #f4ead1; }

.demo-label {
  position: absolute;
  right: -10px;
  bottom: 0;
  padding: 9px 13px;
  border: 1px solid #d7e1ed;
  border-radius: 999px;
  color: var(--kl-navy);
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 26, 54, 0.11);
  font-size: 0.72rem;
  font-weight: 800;
}

.comparison-section { background: #fff; }

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading-row .section-intro { margin: 0; }

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.comparison-card {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--kl-border);
  border-radius: 22px;
  background: #f8fafc;
}

.comparison-card-header,
.comparison-card-header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comparison-card-header {
  justify-content: space-between;
  margin-bottom: 16px;
}

.view-number {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: var(--kl-blue);
  font-size: 0.72rem;
  font-weight: 850;
}

.comparison-card-header p { margin: 0; line-height: 1.2; }
.comparison-card-header strong,
.comparison-card-header small { display: block; }
.comparison-card-header strong { color: var(--kl-navy); font-size: 0.9rem; }
.comparison-card-header small { margin-top: 4px; color: var(--kl-muted); font-size: 0.68rem; }

.file-badge {
  padding: 6px 8px;
  border-radius: 7px;
  color: #087052;
  background: #def5eb;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.file-badge.is-app { color: #1746a2; background: #e5eeff; }

.excel-window,
.app-window {
  overflow: hidden;
  min-height: 414px;
  border: 1px solid #c8d3df;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(7, 26, 54, 0.09);
}

.excel-titlebar {
  padding: 11px 14px;
  color: #fff;
  background: #176b46;
  font-size: 0.72rem;
  font-weight: 800;
}

.excel-titlebar span { margin-right: 7px; }

.excel-ribbon {
  display: flex;
  gap: 20px;
  padding: 9px 14px;
  border-bottom: 1px solid #dce5e0;
  color: #31584a;
  background: #eff6f2;
  font-size: 0.63rem;
}

.excel-sheet { min-width: 535px; }

.excel-columns,
.excel-row {
  display: grid;
  grid-template-columns: 28px 92px 1fr 92px 118px;
}

.excel-columns span,
.excel-row > span,
.excel-row > b,
.excel-row > em {
  min-width: 0;
  padding: 9px 7px;
  border-right: 1px solid #dfe6e2;
  border-bottom: 1px solid #dfe6e2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.excel-columns span {
  padding: 5px;
  color: #5d6a65;
  background: #f1f4f2;
  text-align: center;
  font-size: 0.58rem;
}

.excel-row { color: #243a32; font-size: 0.65rem; }
.excel-row > :first-child { color: #66736e; background: #f2f5f3; text-align: center; }
.excel-row.is-head { color: #fff; background: #21865d; }
.excel-row.is-head > :first-child { color: #fff; background: #176b46; }
.excel-row .cell-status { margin: 6px; padding: 4px 7px; }
.excel-row.is-empty { min-height: 39px; }

.excel-tabs {
  display: flex;
  gap: 18px;
  padding: 9px 16px;
  color: #176b46;
  background: #f0f4f2;
  font-size: 0.64rem;
  font-weight: 800;
}

.app-window {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  color: var(--kl-ink);
  background: #f2f6fb;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding: 14px 8px;
  background: var(--kl-navy);
}

.app-logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, var(--kl-blue), var(--kl-cyan));
  font-size: 0.72rem;
  font-weight: 900;
}

.app-sidebar i { width: 19px; height: 4px; border-radius: 999px; background: #6f86a3; }
.app-sidebar i:first-of-type { background: #67dff2; }
.app-main { min-width: 0; padding: 18px; }
.app-heading strong { margin-top: 2px; color: var(--kl-navy); font-size: 1rem; }
.app-tools { margin: 18px 0 10px; }

.app-table {
  overflow: hidden;
  border: 1px solid #d8e1ec;
  border-radius: 10px;
  background: #fff;
}

.app-table-row {
  display: grid;
  grid-template-columns: 82px minmax(100px, 1fr) 84px 108px;
  gap: 8px;
  align-items: center;
  min-height: 50px;
  padding: 9px 10px;
  color: #304155;
  font-size: 0.62rem;
}

.app-table-row + .app-table-row { border-top: 1px solid #e5ebf2; }
.app-table-row.is-head { min-height: 35px; color: #5e6d80; background: #f5f8fb; font-size: 0.57rem; font-weight: 800; text-transform: uppercase; }
.app-table-row b { color: var(--kl-navy); }
.app-table-row time { color: var(--kl-muted); }
.app-footer { display: flex; justify-content: space-between; margin-top: 10px; color: var(--kl-muted); font-size: 0.58rem; }

.applications-section { background: #f5f8fd !important; }

.application-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 38px 0 26px;
}

.application-example {
  padding: 22px;
  border: 1px solid var(--kl-border);
  border-radius: 17px;
  background: #fff;
}

.application-example > span {
  display: block;
  margin-bottom: 18px;
  color: var(--kl-cyan-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.application-example strong { display: block; color: var(--kl-navy); font-size: 1.02rem; }
.application-example p { margin: 6px 0 0; color: var(--kl-muted); font-size: 0.88rem; }

.visitia-section {
  background: #fff;
}

.visitia-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.62fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
  padding: clamp(34px, 6vw, 70px);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 12%, rgba(34, 199, 232, 0.24), transparent 32%),
    linear-gradient(140deg, #071a36, #0d315f);
  box-shadow: var(--kl-shadow);
}

.visitia-product-card .section-heading { max-width: 720px; color: #fff; }
.visitia-product-card p:not(.section-kicker) { max-width: 650px; color: #d9e6f5; }
.visitia-link { margin-top: 12px; background: #67dff2; border-color: #67dff2; color: var(--kl-navy) !important; }
.visitia-link:hover { background: #94ebf8; border-color: #94ebf8; }

.visitia-product-image {
  overflow: hidden;
  margin: 0;
  border: 8px solid #fff;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.25);
}

.visitia-product-image img { display: block; width: 100%; }
.visitia-product-image figcaption { padding: 9px 12px; color: var(--kl-navy); background: #fff; text-align: center; font-size: 0.7rem; font-weight: 800; }

.final-cta-section { padding-top: 70px; padding-bottom: 90px; }

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.6fr);
  gap: 50px;
  align-items: end;
  padding-top: 38px;
  border-top: 1px solid var(--kl-border);
}

.final-cta h2 {
  max-width: 780px;
  margin: 0;
  color: var(--kl-navy);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.final-cta > div:last-child { justify-self: end; max-width: 350px; }
.final-cta > div:last-child p { color: var(--kl-muted); }

@media (max-width: 1080px) {
  .hero-fathom-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 780px; }
  .hero-product { max-width: 780px; padding-left: 0; }
  .demo-label { right: 8px; }
}

@media (max-width: 980px) {
  .section-heading-row,
  .comparison-grid,
  .visitia-product-card,
  .final-cta { grid-template-columns: minmax(0, 1fr); }
  .section-heading-row { gap: 20px; }
  .application-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visitia-product-image { max-width: 330px; }
  .final-cta > div:last-child { justify-self: start; }
}

@media (max-width: 640px) {
  .kl-hero-fathom { padding-top: 46px; }
  .kl-hero-fathom .hero-fathom-grid {
    display: block;
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }
  .hero-copy,
  .hero-product,
  .product-window { width: 100%; max-width: 100%; min-width: 0; }
  .kl-hero-fathom h1 { font-size: clamp(2.35rem, 11vw, 2.8rem); }
  .hero-action-row { align-items: stretch; flex-direction: column; gap: 14px; }
  .hero-primary { width: 100%; }
  .hero-secondary-link { justify-content: center; min-height: 46px; }
  .hero-demo-note { font-size: 0.84rem; }
  .hero-product { margin-top: 8px; padding-bottom: 30px; }
  .product-window-body { padding: 14px; }
  .product-window-user,
  .product-new { display: none; }
  .product-stats { gap: 6px; }
  .product-stats div { padding: 9px; }
  .product-toolbar { grid-template-columns: 1fr; }
  .product-toolbar span:last-child { display: none; }
  .product-row { grid-template-columns: 76px 1fr 100px; }
  .product-row time { display: none; }
  .demo-label { right: 0; }
  .comparison-card { padding: 12px; }
  .comparison-card-header { align-items: flex-start; }
  .file-badge { display: none; }
  .excel-window { overflow-x: auto; }
  .excel-sheet { min-width: 407px; }
  .excel-columns,
  .excel-row { grid-template-columns: 24px 78px minmax(125px, 1fr) 78px 102px; }
  .excel-window,
  .app-window { min-height: 398px; }
  .app-window { grid-template-columns: 36px minmax(0, 1fr); }
  .app-sidebar { padding: 12px 6px; }
  .app-sidebar i { width: 16px; }
  .app-main { padding: 12px; }
  .app-heading > span { display: none; }
  .app-tools { grid-template-columns: 1fr; }
  .app-filter { width: fit-content; }
  .app-table-row { grid-template-columns: 76px 1fr; gap: 4px 8px; min-height: 67px; }
  .app-table-row.is-head { display: none; }
  .app-table-row time { grid-column: 1; }
  .app-table-row .status { grid-column: 2; grid-row: 2; }
  .application-examples { grid-template-columns: 1fr; }
  .application-example { padding: 19px; }
  .visitia-product-card { padding: 26px 22px; border-radius: 24px; }
  .visitia-product-image { max-width: 280px; }
  .final-cta { gap: 18px; }
}

