/* ============================================================
   B-Systems Integration — Service Offering
   Clean corporate light theme · brand teal palette
   ============================================================ */

:root {
  --brand: #0e9488;
  --brand-strong: #0f766e;
  --brand-deep: #115e59;
  --brand-soft: #ccfbf1;
  --brand-tint: #f0fdfa;
  --accent-grad: linear-gradient(135deg, #14b8a6 0%, #0d9488 55%, #0f766e 100%);

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-soft: #f1f5f9;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-img: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 10px 24px -6px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 18px 44px -18px rgba(14, 148, 136, 0.35);

  --container: 1140px;
  --header-h: 74px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { color: var(--brand-deep); }

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container {
  width: min(var(--container), calc(100% - 44px));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 22px 48px -18px rgba(14, 148, 136, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-strong);
  border-color: var(--brand);
}
.btn-ghost:hover {
  background: var(--brand-tint);
  color: var(--brand-deep);
}

.btn-block { width: 100%; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-strong);
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: var(--header-h);
}

.brand img { height: 46px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
  transition: right 0.25s ease;
}

.main-nav a:hover { color: var(--brand-strong); }
.main-nav a:hover::after { right: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.is-active {
  background: #fff;
  color: var(--brand-strong);
  box-shadow: var(--shadow-sm);
}

.header-cta { padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1000px 480px at 88% -10%, rgba(20, 184, 166, 0.14), transparent 60%),
    radial-gradient(700px 420px at -5% 110%, rgba(13, 148, 136, 0.10), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: clamp(56px, 8vw, 104px) 0;
}

.hero-content .lead {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-highlights li {
  position: relative;
  padding-left: 26px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink-2);
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1.5px solid var(--brand);
}

.hero-visual { display: flex; justify-content: center; }

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 14px;
  width: 100%;
}

.hero-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-grad);
  flex: none;
}

/* ---------- Sections ---------- */

.section { padding: clamp(58px, 7vw, 96px) 0; }
.section-alt { padding: clamp(58px, 7vw, 96px) 0; background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Service cards ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards-grid.is-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  color: var(--brand-strong);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 25px; height: 25px; }

.card p { color: var(--muted); font-size: 0.96rem; }

.card-list {
  list-style: none;
  padding: 14px 0 0;
  margin: auto 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 8px;
}

.card-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
}

.card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 800;
}

/* ---------- Process steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--brand-strong);
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Why us ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.why-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-grad);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-lg);
}
.why-icon svg { width: 22px; height: 22px; }

.why-item h3 { font-size: 1.05rem; }
.why-item p { font-size: 0.93rem; color: var(--muted); margin: 0; }

/* ---------- Industries ---------- */

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tag-cloud span {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.tag-cloud span:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
  background: var(--brand-tint);
  transform: translateY(-2px);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 46px;
  align-items: start;
}

.about-content p { color: var(--muted); }

.about-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 11px;
}

.about-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  color: var(--ink-2);
}

.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.about-panel {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

.about-logo {
  height: 56px;
  width: auto;
  margin-bottom: 22px;
}

.about-facts {
  display: grid;
  gap: 16px;
  margin: 0;
}

.about-facts > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.about-facts dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-strong);
  font-weight: 700;
  margin-bottom: 3px;
}

.about-facts dd { margin: 0; color: var(--ink); font-weight: 600; font-size: 0.95rem; }

/* ---------- Contact ---------- */

.section-contact {
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(20, 184, 166, 0.12), transparent 65%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  align-items: start;
}

.contact-cards { display: grid; gap: 16px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: all 0.2s ease;
}

a.contact-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.contact-card-icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  color: var(--brand-strong);
  display: grid;
  place-items: center;
}
.contact-card-icon svg { width: 21px; height: 21px; }

.contact-card h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin: 0 0 2px; }
.contact-card p { margin: 0; font-weight: 700; color: var(--ink); font-size: 1rem; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row textarea { resize: vertical; min-height: 120px; }

.form-row select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 15px 15px;
  cursor: pointer;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 148, 136, 0.13);
  background: #fff;
}

.form-row input.is-invalid,
.form-row textarea.is-invalid {
  border-color: #dc2626;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin: 14px 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #262626;
  color: #d4d4d4;
  padding: 44px 0 34px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 30px;
  align-items: start;
}

.footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 14px;
}

.footer-brand p { font-size: 0.86rem; margin: 0; color: #a3a3a3; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  padding-top: 8px;
}

.footer-nav a { color: #e5e5e5; font-weight: 600; font-size: 0.93rem; }
.footer-nav a:hover { color: #fff; }

.footer-meta {
  text-align: right;
  font-size: 0.86rem;
  color: #a3a3a3;
  padding-top: 8px;
}
.footer-meta p { margin: 0 0 6px; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { max-width: none; }
  .footer-meta { text-align: center; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 22px 16px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--bg-soft); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }

  .cards-grid,
  .cards-grid.is-2,
  .steps,
  .why-grid { grid-template-columns: 1fr; }

  .hero-actions .btn { width: 100%; }
  .hero-card-grid { grid-template-columns: 1fr; }

  .section-head { margin-bottom: 34px; }
  .contact-form { padding: 24px 20px; }
  .brand img { height: 40px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   Site components — header nav, product pages, blog, footer
   ============================================================ */

/* Language switch as links */

a.lang-btn { text-decoration: none; }

/* Nav dropdown (product menu) */

.nav-item { position: relative; }

.nav-caret {
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(3px);
  transition: transform 0.2s ease;
}

.nav-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: none;
  z-index: 70;
}

.nav-sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

.nav-sub a {
  display: block;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.nav-sub a::after { display: none; }

.nav-sub a:hover {
  background: var(--brand-tint);
  color: var(--brand-strong);
}

.nav-item:hover > .nav-sub,
.nav-item:focus-within > .nav-sub {
  display: block;
}

.nav-item:hover > a .nav-caret { transform: translateY(3px) rotate(180deg); }

/* Breadcrumb */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 0.84rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-strong); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--line); }
.breadcrumb li[aria-current] { color: var(--brand-strong); font-weight: 600; }

/* Buttons row utility */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Product hero */

.p-hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(20, 184, 166, 0.14), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(44px, 6vw, 76px) 0;
}

.p-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.p-hero-inner.is-text { grid-template-columns: 1fr; }

.p-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

.p-hero .lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 26px;
}

.p-hero-img {
  border: 1px solid var(--line);
  border-radius: var(--radius-img);
  box-shadow: var(--shadow-md);
  background: #fff;
  width: 100%;
  height: auto;
}

.p-hero-img.is-half {
  width: 85%;
  padding: 5% 0;
  margin-inline: auto;
}

/* Media rows (alternating text / screenshot) */

.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.media-row + .media-row { margin-top: clamp(40px, 5vw, 64px); }

.media-row.is-text { grid-template-columns: 1fr; }

.media-row.is-reverse .media-text { order: 2; }

.media-text h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.media-text p { color: var(--muted); }

.media-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 9px;
}

.media-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.media-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Figure (screenshots) */

.figure { margin: 0; }

.figure.is-75 img { width: 75%; padding: 5% 0; margin-inline: auto; }

.figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-img);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.figure figcaption {
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* Two-column block (text + image, not alternating) */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

/* Checklist panel */

.panel {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.panel h3 { font-size: 1.05rem; }

/* FAQ accordion */

.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 17px 20px;
  cursor: pointer;
}

.faq-q::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--brand-strong);
  border-bottom: 2.5px solid var(--brand-strong);
  transform: rotate(45deg);
  transition: transform 0.22s ease;
  margin-top: -4px;
}

.faq-item.is-open .faq-q::after { transform: rotate(225deg); margin-top: 4px; }

.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.96rem;
}

.faq-item.is-open .faq-a { display: block; }

.faq-a p:last-child { margin-bottom: 0; }

/* CTA band */

.cta-band {
  background: var(--accent-grad);
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 52px);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 62ch; margin: 0 auto 24px; }

.cta-band .btn {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: none;
}

.cta-band .btn:hover {
  transform: translateY(-2px);
  background: var(--brand-tint);
  color: var(--brand-deep);
}

.cta-band .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* Takeaway / callout boxes */

.takeaway,
.callout {
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 26px 0;
}

.takeaway h3,
.callout h3 { font-size: 1rem; color: var(--brand-deep); margin-bottom: 6px; }
.takeaway p:last-child,
.callout p:last-child { margin-bottom: 0; }

/* Tables */

.table-wrap { overflow-x: auto; margin: 22px 0; }

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  background: #fff;
}

.table-wrap th,
.table-wrap td {
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
}

.table-wrap th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 700;
}

.table-wrap tr:nth-child(even) td { background: var(--bg-alt); }

/* Blog editorial */

.blog-header { padding: clamp(40px, 5vw, 64px) 0 0; }

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
}

.blog-badge {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1620;
  border-radius: var(--radius-img);
  overflow: hidden;
  margin: 16px 0 8px;
}

.video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 30px 0;
}

.toc h2 { font-size: 1rem; margin-bottom: 10px; }

.toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.toc a { font-size: 0.95rem; }

.prose {
  max-width: 780px;
  margin-inline: auto;
  padding: 8px 0 40px;
}

.prose h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  margin-top: 40px;
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.prose h3 { font-size: 1.12rem; margin-top: 28px; }

.prose p, .prose li { color: var(--ink-2); }

.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }

.prose strong { color: var(--ink); }

.formula {
  background: var(--bg-soft);
  border: 1px dashed var(--brand);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  margin: 18px 0;
}

/* Cross-links row */

.cross-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

.cross-links a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.cross-links a:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
  background: var(--brand-tint);
  transform: translateY(-2px);
}

/* Card link (product hub) */

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--brand-strong);
  margin-top: 14px;
}

.card-link::after { content: "→"; transition: transform 0.2s ease; }
.card-link:hover::after { transform: translateX(4px); }

/* Footer with columns */

.footer-inner.cols-4 {
  grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
}

.footer-inner.cols-5 {
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 6px 0 10px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 3px;
  line-height: 1.45;
}

.footer-links a {
  color: #a3a3a3;
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-links a:hover { color: #fff; }

.footer-col p { color: #a3a3a3; font-size: 0.9rem; margin-bottom: 3px; }
.footer-col a { color: #d4d4d4; }

/* Section helpers */

.section-sm { padding: clamp(38px, 5vw, 62px) 0; }

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

/* ---------- Responsive: site components ---------- */

@media (max-width: 1020px) {
  .p-hero-inner,
  .media-row,
  .split { grid-template-columns: 1fr; }

  .media-row.is-reverse .media-text { order: 0; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .footer-inner.cols-4,
  .footer-inner.cols-5 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-sub {
    position: static;
    transform: none;
    display: block;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 16px;
    background: transparent;
  }

  .nav-sub::before { display: none; }

  .nav-sub a {
    padding: 9px 0;
    font-size: 0.9rem;
    color: var(--muted);
    border-bottom: 1px solid var(--bg-soft);
  }

  .nav-caret { display: none; }

  .nav-item:hover > .nav-sub,
  .nav-item:focus-within > .nav-sub { display: block; }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }

  .footer-inner.cols-4,
  .footer-inner.cols-5 { grid-template-columns: 1fr; text-align: left; }

  .btn-row .btn { width: 100%; }
}
