/* ========================================================================
   OSD — Warm industrial editorial redesign
   ======================================================================== */

:root {
  --header-h: 64px;

  /* Palette — warm industrial editorial */
  --paper:      #F5F1EC;   /* warm cream, primary bg */
  --paper-2:    #ECE7E0;   /* warm alt sections */
  --paper-3:    #DDD6CC;   /* dividers, subtle borders */
  --ink:        #1C1814;   /* warm near-black */
  --ink-2:      #3A3430;   /* warm secondary */
  --ink-3:      #7A726A;   /* warm muted */
  --rule:       #CFC7BC;   /* hairlines */
  --rule-2:     #BFB5A8;
  --pure-white: #FFFDF9;   /* warm white — cards, surfaces */

  --brand:        #2B4A3E;              /* deep forest green */
  --brand-2:      #1D362C;
  --brand-light:  rgba(43,74,62,0.08);

  --cta:          #C2552A;              /* terracotta — primary buttons */
  --cta-hover:    #A5461F;
  --cta-light:    rgba(194,85,42,0.08);

  --signal:       #CFA035;              /* warm gold — metrics, badges */
  --signal-2:     #B88B28;
  --signal-light: rgba(207,160,53,0.10);

  /* Backwards compat aliases */
  --bg:            var(--paper);
  --bg-2:          var(--paper-2);
  --bg-3:          var(--paper-3);
  --cobalt:        var(--brand);
  --cobalt-2:      var(--brand-2);
  --steel:         var(--signal);
  --steel-2:       var(--signal-2);
  --lime:          var(--signal);
  --terracotta:    var(--cta);
  --terracotta-2:  var(--cta-hover);
  --ochre:         var(--signal);
  --ochre-2:       var(--signal-2);
  --olive:         var(--signal);
  --warm-white:    var(--pure-white);
  --gold:          var(--signal);
  --gold-2:        var(--signal-2);
  --warn:          var(--cta);

  --serif: "Inter", system-ui, sans-serif;   /* alias kept; no more serif */
  --sans:  "Inter", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --radius:    4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --maxw:   1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--terracotta); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
}

img { max-width: 100%; display: block; }

input[type="range"] { accent-color: var(--terracotta) !important; }

/* ----- Typography ----- */
.h-display {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(48px, 7.5vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.h-display em {
  font-style: normal;
  font-weight: 600;
  color: var(--cobalt);
  display: inline;
  /* lime accent rendered as a tight inline highlight that wraps with the word */
  background-image: linear-gradient(180deg, transparent 0 65%, var(--lime) 65% 96%, transparent 96%);
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.04em;
}

.h-1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h-1 em {
  font-style: normal;
  color: var(--cobalt);
}

.h-2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.h-3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.lede {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 56ch;
}

.mono { font-family: var(--mono); }
.serif { font-family: var(--sans); }

/* ----- Layout ----- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--rule);
}

.section--paper { background: var(--paper-2); }
.section--ink   { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow { color: rgba(245,241,236,0.5) !important; }
.section--ink .lede    { color: rgba(245,241,236,0.74) !important; }
.section--ink .mono    { color: rgba(245,241,236,0.5) !important; }
.section--ink p        { color: rgba(245,241,236,0.74); }
.section--ink .h-1, .section--ink .h-2, .section--ink .h-3, .section--ink .h-display { color: var(--paper); }
.section--ink .h-1 em, .section--ink .h-display em { color: var(--ochre); }
.section--ink .rule { background: rgba(245,241,236,0.2) !important; }

/* Section header pattern: numbered eyebrow, marginalia style */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-head__num::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink-3);
  flex-shrink: 0;
}

.section--ink .section-head__num { color: rgba(245,241,236,0.45); }
.section--ink .section-head__num::before { background: rgba(245,241,236,0.3); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--terracotta);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--gold {
  background: var(--terracotta);
  color: #fff;
}
.btn--gold:hover {
  background: var(--terracotta-2);
  color: #fff;
}

.btn-outline-white,
.section--ink .btn:not(.btn--primary):not(.btn--gold) {
  border: 1px solid rgba(245,241,236,0.35);
  color: var(--paper);
  background: transparent;
}
.btn-outline-white:hover,
.section--ink .btn:not(.btn--primary):not(.btn--gold):hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.section--ink .btn--primary {
  background: var(--paper);
  color: var(--ink);
}
.section--ink .btn--primary:hover {
  background: var(--terracotta);
  color: #fff;
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}
.btn:hover .btn__arrow { transform: translateX(5px); }

/* ----- Cards / surfaces ----- */
.card {
  background: var(--warm-white);
  border: 1px solid var(--rule);
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hairline { height: 1px; background: var(--rule); border: 0; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,241,236, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px 0;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  overflow: hidden;
}
.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name b {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand__name span {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-top: 5px;
  font-weight: 500;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { color: var(--ink); background: var(--paper-3); }
.nav a.active { color: var(--ink); font-weight: 500; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 1.5px;
  background: var(--terracotta);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-phone {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ----- Burger ----- */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .header-phone { display: none; }
  .header-talk-btn { display: none; }
  .burger { display: flex; }
}

@media (max-width: 640px) {
  :root { --gutter: 24px; --header-h: 56px; }
  .brand__name b { font-size: 16px; }
  .brand__name span { font-size: 8.5px; letter-spacing: 0.06em; }
  .brand__mark { width: 34px; height: 34px; }
  .site-header__inner { gap: 12px; padding: 10px var(--gutter); min-height: 56px; }
  body { font-size: 16px; }
  .h-display { font-size: clamp(36px, 10vw, 54px) !important; letter-spacing: -0.035em !important; }
  .h-1 { font-size: clamp(28px, 7vw, 40px) !important; }
  .h-2 { font-size: clamp(22px, 5.5vw, 32px) !important; }
  .lede { font-size: 16px; }
  .section { padding: 56px 0; }
  .col-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { gap: 20px 16px !important; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; padding: 20px 0; }
  .numbers-strip { grid-template-columns: 1fr 1fr; }
  .numbers-strip > div { padding: 20px 12px; }
  .numbers-strip > div:nth-child(2) { border-right: none; }
  .btn { padding: 12px 16px; font-size: 14px; }

  /* Hero — collapse 2-col grid, drop tickers, prevent overflow */
  .hero-q-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .hero-q-grid > div:nth-child(2) {
    border-left: none !important;
    border-top: 1px solid var(--rule);
    padding-left: 0 !important;
    padding-top: 28px !important;
  }
  /* CTA grid > handled at 800px breakpoint below */
  /* Stats: single column, big touch targets */
  .stats-strip { grid-template-columns: 1fr !important; }
  .stats-strip > div { border-right: none !important; border-bottom: 1px solid rgba(245,241,236,0.1); }

  /* Industry pills: менший розмір для мобільного тікера */
  .industry-pill { font-size: 16px; padding: 12px 18px; gap: 10px; }

  /* Footer big shadow text shouldn't bleed off-screen too much */
  .site-footer::before { font-size: clamp(160px, 50vw, 240px) !important; bottom: -4vw !important; }

  /* Transcript demo padding shrink */
  .transcript-card { padding: 20px !important; min-height: 0 !important; }
  .transcript-card .transcript-line { font-size: 14px !important; }
  .transcript-score { padding: 6px 10px !important; margin-top: 0 !important; font-size: 10px !important; }
  .transcript-score b { font-size: 13px !important; }
  /* Disable sticky — prevents layout shift from typewriter animation */
  .transcript-sticky { position: static !important; top: auto !important; }

  /* Section heads in 100-col grids — collapse */
  .section-head { grid-template-columns: 1fr !important; }

  /* Tags + buttons row — keep text single-line, stack via flex-wrap on container */
  .btn { white-space: nowrap; }

  /* Killer overflows */
  body, html { overflow-x: hidden; }
}

@media (max-width: 380px) {
  .h-display { font-size: 32px !important; }
  .brand__name span { display: none; }
}

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: rgba(245,241,236, 0.85);
  padding: 96px 0 32px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "OSD";
  position: absolute;
  left: -2vw;
  bottom: -8vw;
  font-family: var(--sans);
  font-size: clamp(220px, 32vw, 460px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: var(--cobalt);
  opacity: 0.08;
  pointer-events: none;
}
.site-footer .eyebrow { color: rgba(245,241,236, 0.4); }
.site-footer .brand__name b { color: var(--paper); }
.site-footer .brand__name span { color: rgba(245,241,236,0.4); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245,241,236, 0.1);
}
.footer-col h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,241,236, 0.4);
  margin: 0 0 20px;
}
.footer-col a, .footer-col p {
  display: block;
  margin: 10px 0;
  color: rgba(245,241,236, 0.6);
  font-size: 14px;
  line-height: 1.5;
}
.footer-col a:hover { color: var(--ochre); }
.footer-social-icon { color: rgba(245,241,236,0.6); }
.footer-social-icon:hover { border-color: var(--ochre) !important; background: rgba(207,160,53,0.1) !important; color: var(--ochre) !important; }
.contact-social-icon { color: var(--ink-3); }
.contact-social-icon:hover { border-color: var(--brand) !important; background: rgba(43,74,62,0.06) !important; color: var(--brand) !important; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(245,241,236, 0.3);
  border-top: 1px solid rgba(245,241,236, 0.06);
  letter-spacing: 0.04em;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ----- Utility ----- */
.col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.col-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.col-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 32px); }

@media (max-width: 800px) {
  .col-2 { grid-template-columns: 1fr !important; }
  .col-3 { grid-template-columns: 1fr !important; }
  .col-4 { grid-template-columns: 1fr 1fr !important; }
}

/* ----- B2B redesign component hooks ----- */
.stats-strip {
  background: var(--ink);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stats-strip__item,
.stats-strip > div {
  padding: 32px 22px;
  text-align: left;
  border-right: 1px solid rgba(245,241,236,0.1);
}
.stats-strip__item:last-child,
.stats-strip > div:last-child {
  border-right: none;
}
.stats-strip__value,
.stats-strip .n {
  font-family: var(--sans);
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.03em;
  white-space: nowrap;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--paper);
}
.stats-strip__value--accent,
.stats-strip .is-accent {
  color: var(--ochre);
  font-style: italic;
}
.stats-strip__label,
.stats-strip .l {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: rgba(245,241,236,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.what-card {
  border-top: 1px solid var(--ink);
  padding: 28px 0 0;
  background: transparent;
  transition: transform 0.2s ease;
}
.what-card:hover { transform: translateY(-2px); }

.format-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: clamp(28px, 3vw, 40px);
  background: var(--warm-white);
}
.format-card--dark,
.card[style*="background: var(--ink)"] {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: var(--paper);
}

.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: clamp(64px, 8vw, 100px) 0;
}

@media (max-width: 700px) {
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip__item, .stats-strip > div {
    padding: 24px 18px;
    border-bottom: 1px solid rgba(245,241,236,0.1);
  }
  .stats-strip__item:nth-child(2n), .stats-strip > div:nth-child(2n) { border-right: none; }
}

@media (max-width: 420px) {
  .stats-strip { grid-template-columns: 1fr; }
  .stats-strip__item, .stats-strip > div { border-right: none; }
}

/* ----- Tag/chip ----- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  background: transparent;
  border: 1px solid var(--rule-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-radius: 100px;
  font-weight: 500;
}
.tag--green { background: rgba(43,74,62,0.08); border-color: rgba(43,74,62,0.3); color: var(--brand); }
.tag--gold  { background: rgba(194,85,42,0.08); border-color: rgba(194,85,42,0.4); color: var(--cta); }

/* ----- Placeholder image (cross-hatch warm) ----- */
.ph {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(26,23,20,0.05) 14px 15px),
    var(--paper-2);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
}

/* ----- Numbers strip (light) ----- */
.numbers-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.numbers-strip > div {
  padding: 32px 0;
  border-right: 1px solid var(--rule);
}
.numbers-strip > div:last-child { border-right: none; }
.numbers-strip .n {
  font-family: var(--sans);
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.numbers-strip .n em {
  font-style: italic;
  color: var(--terracotta);
}
.numbers-strip .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
}
@media (max-width: 800px) {
  .numbers-strip { grid-template-columns: 1fr 1fr; }
  .numbers-strip > div:nth-child(2) { border-right: none; }
}

/* ----- Animations ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.fade-up-d1 { animation-delay: 0.08s; }
.fade-up-d2 { animation-delay: 0.18s; }
.fade-up-d3 { animation-delay: 0.30s; }
.fade-up-d4 { animation-delay: 0.42s; }

@keyframes blink { 50% { opacity: 0; } }
.cursor-blink { animation: blink 1s steps(1) infinite; }

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.4; }
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cobalt);
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse-dot 1.6s ease-in-out infinite;
}

/* In-view reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* ── Industry scroll strip ── */
.scroll-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.scroll-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: industryLeft 50s linear infinite;
}
.scroll-track-wrap:hover .scroll-track {
  animation-play-state: paused;
}
@keyframes industryLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.industry-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  border-right: 1px solid var(--rule);
}
.industry-pill__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
}

/* ── Ticker (numbers / facts) ── */
.ticker {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}
.ticker .scroll-track {
  animation-duration: 60s;
}
.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  padding: 0 28px;
  border-right: 1px solid rgba(245,241,236,0.18);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245,241,236,0.7);
  white-space: nowrap;
}
.ticker-item b {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--ochre);
  text-transform: none;
  letter-spacing: 0;
}

/* ── Transcript demo (typewriter) ── */
.transcript-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: 32px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
}
.transcript-line {
  display: flex;
  gap: 12px;
  padding: 6px 0;
}
/* Completed lines fade in */
.transcript-line--done {
  animation: line-appear 0.2s ease both;
}
/* Active (currently typing) line — gold highlight */
.transcript-line--active {
  background: rgba(207,160,53,0.07);
  border-left: 2px solid rgba(207,160,53,0.45);
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 2px;
}
@keyframes line-appear {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Gradient fade at the top of transcript area */
.transcript-fade-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(var(--ink), transparent);
  z-index: 1;
  pointer-events: none;
}
.transcript-spkr {
  color: var(--ochre);
  font-weight: 500;
  flex-shrink: 0;
  width: 70px;
}
.transcript-body {
  color: rgba(245,241,236,0.85);
}
.transcript-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(245,241,236,0.2);
  border-radius: 4px;
  background: rgba(245,241,236,0.04);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.transcript-score b {
  font-family: var(--sans);
  font-style: italic;
  font-size: 18px;
  color: var(--olive);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
/* Waveform bars */
.waveform-bar {
  width: 2px;
  border-radius: 2px;
  background: rgba(245,241,236,0.28);
  animation: waveform-pulse 1.1s ease-in-out infinite alternate;
}
@keyframes waveform-pulse {
  from { opacity: 0.25; transform: scaleY(0.35); }
  to   { opacity: 0.65; transform: scaleY(1); }
}

/* ── FAQ ── */
.faq-q {
  font-family: var(--sans);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: -0.012em;
line-height: 1.25;
}

/* ========================================================================
   CABINET DEMO — responsive
   ======================================================================== */
.cab-pad { padding: 28px; }
.cab-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.cab-head-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cab-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cab-base-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 18px; }
.cab-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cab-donut-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.cab-days-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.cab-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--pure-white);
  border-bottom: 1px solid var(--rule);
  gap: 12px;
  flex-wrap: wrap;
}
.cab-tabs-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.cab-leads-row {
  display: grid;
  grid-template-columns: 60px 1fr 110px 130px 160px;
  padding: 16px;
  align-items: center;
  font-size: 13px;
  border-bottom: 1px solid var(--rule);
}
.cab-leads-head {
  padding: 12px 16px;
  background: var(--pure-white);
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-family: var(--mono);
}
.cab-leads-num { color: var(--ink-3); font-family: var(--mono); }
.cab-leads-name { color: var(--ink); font-weight: 500; }
.cab-leads-react { font-size: 16px; }
.cab-leads-date { color: var(--ink-2); font-family: var(--mono); font-size: 12px; }
.cab-leads-cta { text-align: right; }

@media (max-width: 900px) {
  .cab-pad { padding: 18px; }
  .cab-tabs { padding: 12px 14px; }
  .cab-tabs-hint { display: none; }
  .cab-tabs-switch { width: 100%; justify-content: stretch; }
  .cab-tabs-switch button { flex: 1; padding: 8px 10px !important; font-size: 12px !important; }

  .cab-kpi-grid { grid-template-columns: 1fr 1fr; }
  .cab-base-grid { grid-template-columns: 1fr 1fr; }
  .cab-2col { grid-template-columns: 1fr; }
  .cab-counter { border-left: none !important; padding-left: 0 !important; }

  .cab-leads-row {
    grid-template-columns: 32px 1fr auto;
    grid-template-areas:
      "num name react"
      "date date cta";
    gap: 6px 10px;
    padding: 14px;
  }
  .cab-leads-num { grid-area: num; }
  .cab-leads-name { grid-area: name; font-size: 14px; }
  .cab-leads-react { grid-area: react; }
  .cab-leads-date { grid-area: date; }
  .cab-leads-cta { grid-area: cta; text-align: right; }
  .cab-leads-head { grid-template-columns: 1fr; padding: 10px 14px; }
  .cab-leads-head > span:not(:nth-child(2)) { display: none; }
}

@media (max-width: 560px) {
  .cab-pad { padding: 14px; }
  .cab-kpi-grid { gap: 8px; }
  .cab-kpi-grid > div { padding: 12px !important; }
  .cab-base-grid { grid-template-columns: 1fr; padding: 14px !important; }
  .cab-donut-row { grid-template-columns: 90px 1fr; gap: 12px; }
  .cab-donut-row > svg { width: 90px !important; height: 90px !important; }
}

/* ========================================================================
   PAGE-SPECIFIC mobile fixes
   ======================================================================== */

@media (max-width: 1000px) {
  section [style*="grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr)"],
  section [style*="grid-template-columns: 1.3fr 1fr"],
  section [style*="grid-template-columns: 1.4fr 1fr"],
  section [style*="grid-template-columns: 1.2fr 1fr"],
  section [style*="grid-template-columns: 1.6fr 1fr 1fr"],
  section [style*="grid-template-columns: 1fr 1.1fr"],
  section [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  .cmp-row {
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
      "label label"
      "p s" !important;
    gap: 6px 16px !important;
    padding: 18px 0 !important;
  }
  .cmp-row > span:nth-child(1) { grid-area: label; font-weight: 500; color: var(--ink) !important; }
  .cmp-row > span:nth-child(2) { grid-area: p; }
  .cmp-row > span:nth-child(3) { grid-area: s; }
  .cmp-row > span:nth-child(2)::before { content: "Пакет: "; font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 4px; letter-spacing: 0.06em; }
  .cmp-row > span:nth-child(3)::before { content: "Підписка: "; font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 4px; letter-spacing: 0.06em; }
  .cmp-head { display: none !important; }
}

@media (max-width: 900px) {
  .process-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 36px 0 !important;
  }
  .process-row > div:last-child {
    padding-left: 0 !important;
    border-left: none !important;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 560px) {
  .contact-phone-row { grid-template-columns: 1fr !important; gap: 6px !important; }
  .contact-phone-row > div > div:first-child { font-size: 22px !important; }
  .contact-val { font-size: 20px !important; }
  .team-card { grid-template-columns: 1fr !important; text-align: left; }
  .team-card > .ph { width: 80px !important; height: 80px !important; }
}

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 800px) {
  .whyus-grid > div { padding: 0 !important; }
  .cta-grid { grid-template-columns: 1fr !important; gap: 32px !important; align-items: start !important; }
  .cta-grid > div:nth-child(2) {
    border-left: none !important;
    border-top: 1px solid rgba(245,241,236,0.18);
    padding-left: 0 !important;
    padding-top: 28px !important;
  }
  .plans-grid { grid-template-columns: 1fr !important; }
  .plans-grid .card { padding: 32px !important; }
  .plans-grid .card > div[style*="font-size: 72"] { font-size: 56px !important; }
}

@media (max-width: 900px) {
  .sub-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 900px) {
  .whyus-layout { grid-template-columns: 1fr !important; gap: 0 !important; }
  .whyus-layout > .transcript-sticky {
    position: static !important;
    top: auto !important;
    margin-top: 40px;
    padding-top: 40px !important;
    padding-left: 0 !important;
    border-top: 1px solid rgba(245,241,236,0.15) !important;
    border-left: none !important;
  }
}

@media (max-width: 640px) {
  .brief-form__field input,
  .brief-form__field textarea,
  .brief-form__field select { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .price-toggle button { padding: 9px 20px !important; font-size: 14px !important; }
}

@media (max-width: 600px) {
  .subscription-outer { padding: 24px !important; }
  .subscription-calc-box { padding: 24px !important; }
  .sub-timeline-row { grid-template-columns: 1fr !important; gap: 4px !important; }
  .sub-timeline-row span:first-child { margin-bottom: 2px; }
}

/* ── Brief form ── */
.brief-form { display: flex; flex-direction: column; gap: 20px; }

.brief-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.brief-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brief-form__field--full { grid-column: 1 / -1; }

.brief-form__field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.brief-form__field label span {
  color: var(--ink-3);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.brief-form__field input,
.brief-form__field textarea,
.brief-form__field select {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--pure-white);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.brief-form__field input::placeholder,
.brief-form__field textarea::placeholder { color: var(--ink-3); }

.brief-form__field input:focus,
.brief-form__field textarea:focus,
.brief-form__field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43,74,62,0.10);
}

.brief-form__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A726A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.brief-form__field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.brief-form__error {
  font-size: 14px;
  color: var(--cta);
  padding: 10px 14px;
  background: var(--cta-light);
  border-radius: var(--radius);
  border: 1px solid rgba(194,85,42,0.20);
}

.brief-form__success {
  padding: clamp(32px, 4vw, 56px);
  background: var(--pure-white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  text-align: center;
}

.brief-form__success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(43,74,62,0.10);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 20px;
}

@media (max-width: 640px) {
  .brief-form__grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .hero-q-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
}

@media (max-width: 800px) {
  .faq-answer { padding-right: 0 !important; font-size: 16px !important; }
}

/* Hero industry list */
.hero-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 32px;
  align-items: center;
}
.hero-industries .mono {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-industries .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-3);
}

/* Products page */
@media (max-width: 900px) {
  .products-strip { grid-template-columns: 1fr !important; }
}

/* Database calc page */
@media (max-width: 900px) {
  .db-calc-layout { grid-template-columns: 1fr !important; }
}
