/* Fazdrive theme stylesheet.
 * 1) Tokens (mirror theme.json)  2) Components (ported from the prototype)  3) WordPress adaptation layer.
 * WordPress emits no layout CSS (disable-layout-styles + blockGap 0): all spacing is defined here. */
:root {
  --c-brand: #1f3fd6;
  --c-brand-ink: #142a9e;
  --c-brand-soft: #e8ecfd;
  --c-accent: #ffb020;
  --c-ink: #0c1124;
  --c-ink-2: #3b4258;
  --c-muted: #6b7289;
  --c-line: #e3e6ef;
  --c-paper: #ffffff;
  --c-paper-2: #f5f7fc;
  --c-night: #0a0f24;

  --f-display: var(--wp--preset--font-family--display, "Archivo", "Arial Narrow", Arial, sans-serif);
  --f-body: var(--wp--preset--font-family--body, "Inter", "Segoe UI", Roboto, Arial, sans-serif);

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --fs-3xl: clamp(2.5rem, 1.5rem + 4vw, 4.75rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(12,17,36,.06), 0 8px 24px rgba(12,17,36,.06);
  --shadow-lg: 0 2px 4px rgba(12,17,36,.06), 0 24px 48px rgba(12,17,36,.12);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --sec: clamp(64px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--c-ink-2);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-brand-ink); }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-stretch: 85%;
  color: var(--c-ink);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  font-weight: 800;
}
h1 { font-size: var(--fs-3xl); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); font-stretch: 95%; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--c-ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec); }
.section--tint { background: var(--c-paper-2); }
.section--night { background: var(--c-night); color: #c5cbe0; }
.section--night h2, .section--night h3 { color: #fff; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.split { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1.05fr .95fr; align-items: center; }
.split--top { align-items: start; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .split, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; background: var(--c-accent); border-radius: 2px; }
.section--night .eyebrow { color: #9fb0ff; }
.lead { font-size: var(--fs-lg); color: var(--c-ink-2); max-width: 60ch; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.muted { color: var(--c-muted); }
.small { font-size: var(--fs-sm); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 var(--fs-sm)/1 var(--f-body);
  padding: 15px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-brand); color: #fff; }
.btn--primary:hover { background: var(--c-brand-ink); color: #fff; }
.btn--ghost { border-color: var(--c-line); color: var(--c-ink); background: #fff; }
.btn--ghost:hover { border-color: var(--c-brand); color: var(--c-brand); }
.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover { background: var(--c-accent); color: var(--c-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.site-header {
  position: relative;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { height: 30px; width: auto; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: block; padding: 10px 12px; border-radius: 999px; white-space: nowrap;
  color: var(--c-ink); text-decoration: none; font-weight: 500; font-size: var(--fs-sm);
}
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current="page"] { background: var(--c-brand-soft); color: var(--c-brand); }
.nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.sub {
  position: absolute; top: calc(100% + 8px); left: -8px; width: 320px;
  list-style: none; margin: 0; padding: 8px; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub > li > a { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-sm); text-decoration: none; }
.sub > li > a:hover { background: var(--c-paper-2); }
.sub strong { color: var(--c-ink); font-size: var(--fs-sm); }
.sub span { color: var(--c-muted); font-size: var(--fs-xs); line-height: 1.4; }
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-actions .btn, .brand { white-space: nowrap; flex: none; }
.lang { display: inline-flex; border: 1px solid var(--c-line); border-radius: 999px; padding: 3px; font-size: var(--fs-xs); font-weight: 700; }
.lang a { padding: 5px 9px; border-radius: 999px; text-decoration: none; color: var(--c-muted); }
.lang a[aria-current="true"] { background: var(--c-ink); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--c-line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--c-ink); margin: 4px auto; transition: .2s; }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow);
    max-height: calc(100vh - 120px); overflow: auto; padding: 12px var(--gutter) 24px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav > ul > li > a { padding: 14px 12px; border-radius: var(--r-sm); font-size: var(--fs-md); }
  .sub { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .nav .nav-cta { display: block; margin-top: 12px; }
  .nav .nav-cta a { justify-content: center; width: 100%; }
}
@media (min-width: 1061px) { .nav .nav-cta { display: none; } }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 112px) clamp(64px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(31,63,214,.12), transparent 70%),
    linear-gradient(var(--c-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--c-line) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  opacity: .8;
}
.hero h1 .hl { color: var(--c-brand); }
.hero .lead { margin-bottom: 32px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: var(--fs-sm); color: var(--c-ink-2); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--c-brand); flex: none; }
.page-hero { padding-block: clamp(48px, 6vw, 88px); background: var(--c-paper-2); border-bottom: 1px solid var(--c-line); }
.page-hero .lead { margin-bottom: 0; }
.crumbs { font-size: var(--fs-xs); color: var(--c-muted); margin-bottom: 18px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--c-brand); }

/* Browser-frame illustration (decorative, no fake data) */
.browser {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1deg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); background: var(--c-paper-2); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6dae6; }
.browser-bar b { margin-left: 12px; flex: 1; height: 22px; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); font: 500 11px/20px var(--f-body); color: var(--c-muted); padding-left: 12px; }
.browser-body { padding: 22px; display: grid; gap: 14px; }
.sk { background: var(--c-paper-2); border-radius: 8px; }
.sk--hero { height: 128px; background: linear-gradient(120deg, var(--c-brand), #4c6bff); position: relative; }
.sk--hero::after { content: ""; position: absolute; left: 20px; bottom: 20px; width: 45%; height: 12px; border-radius: 6px; background: rgba(255,255,255,.7); box-shadow: 0 -22px 0 rgba(255,255,255,.95); }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sk-row .sk { height: 74px; }
.sk-line { height: 10px; width: 80%; }
.sk-line--s { width: 55%; }
.hero-art { position: relative; }
.hero-tag {
  position: absolute; background: #fff; border: 1px solid var(--c-line); border-radius: 999px;
  box-shadow: var(--shadow); padding: 10px 16px; font-size: var(--fs-xs); font-weight: 600; color: var(--c-ink);
  display: flex; gap: 8px; align-items: center;
}
.hero-tag svg { width: 16px; height: 16px; color: var(--c-brand); }
.hero-tag--a { left: -18px; bottom: 48px; }
.hero-tag--b { right: -10px; top: 26px; }
@media (max-width: 640px) { .hero-tag { display: none; } .browser { transform: none; } }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--c-line); background: #fff; }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 16px 32px; }
@media (max-width: 960px) { .trust ul { grid-template-columns: repeat(2, auto); justify-content: start; } }
@media (max-width: 560px) { .trust ul { grid-template-columns: 1fr; } }
.trust li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); }
.trust svg { width: 22px; height: 22px; color: var(--c-brand); flex: none; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px); transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card--hover:hover { border-color: rgba(31,63,214,.35); box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--c-ink-2); }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--c-brand-soft); color: var(--c-brand); margin-bottom: 20px;
}
.icon svg { width: 26px; height: 26px; }
.card--feature { background: var(--c-brand); border-color: var(--c-brand); color: #dfe5ff; }
.card--feature h3 { color: #fff; }
.card--feature p { color: #dfe5ff; }
.card--feature .icon { background: rgba(255,255,255,.14); color: #fff; }
.card--feature .link-arrow { color: #fff; }
.card .tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--c-accent); color: var(--c-ink); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3fd6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.card--feature .ticks li::before { background-color: rgba(255,255,255,.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E"); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 20px; border-top: 2px solid var(--c-line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font: 900 var(--fs-xl)/1 var(--f-display); font-stretch: 85%; color: var(--c-brand); display: block; margin-bottom: 14px;
}
.step:hover { border-top-color: var(--c-brand); }
.section--night .step { border-top-color: rgba(255,255,255,.15); }
.section--night .step::before { color: var(--c-accent); }

/* ---------- Case study ---------- */
.case { display: grid; grid-template-columns: 1.1fr .9fr; border-radius: var(--r-lg); overflow: hidden; background: var(--c-night); color: #c5cbe0; }
.case-media { min-height: 360px; background: linear-gradient(135deg, #111a46, #1f3fd6 120%); display: grid; place-items: center; padding: 32px; }
.case-media .browser { transform: none; width: 100%; max-width: 480px; }
.case-body { padding: clamp(28px, 4vw, 56px); }
.case-body h3 { color: #fff; font-size: var(--fs-xl); }
.case-body .eyebrow { color: #9fb0ff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; padding: 0; list-style: none; }
.chips li { font-size: var(--fs-xs); font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: #e3e8ff; }
.chips--light li { background: var(--c-brand-soft); color: var(--c-brand-ink); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } .case-media { min-height: 260px; } }

/* ---------- Pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1100px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .prices { grid-template-columns: 1fr; } }
.price { position: relative; }
.price h3 { margin-bottom: 4px; }
.price .for { font-size: var(--fs-sm); color: var(--c-muted); min-height: 3.2em; }
.card--feature .for { color: #c7d0ff; }
.amount { font: 900 var(--fs-2xl)/1 var(--f-display); font-stretch: 85%; color: var(--c-ink); margin: 18px 0 4px; }
.amount small { font: 600 var(--fs-xs)/1 var(--f-body); color: var(--c-muted); display: block; margin-bottom: 6px; letter-spacing: .06em; text-transform: uppercase; }
.amount .tbc { font: 600 var(--fs-xs)/1 var(--f-body); background: var(--c-accent); color: var(--c-ink); padding: 3px 8px; border-radius: 6px; vertical-align: middle; margin-left: 6px; }
.card--feature .amount { color: #fff; }
.card--feature .amount small { color: #c7d0ff; }
.price .period { font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: 20px; }
.card--feature .period { color: #c7d0ff; }
.price .btn { justify-content: center; margin-top: auto; }

/* ---------- FAQ (core/details) ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; color: var(--c-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--c-brand-soft); color: var(--c-brand);
  display: grid; place-items: center; font-size: 18px; font-weight: 500; transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > :not(summary) { padding-inline: 24px; }
.faq details > :not(summary):last-child { padding-bottom: 20px; margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px);
  background: radial-gradient(80% 120% at 100% 0%, #4c6bff 0%, transparent 60%), var(--c-brand);
  color: #dfe5ff; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 56ch; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Prose / stats-free facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.facts > div { padding: 24px; border-right: 1px solid var(--c-line); }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 600; margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--c-ink); font-weight: 600; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .facts > div { border-right: 0; border-bottom: 1px solid var(--c-line); } .facts > div:last-child { border-bottom: 0; } }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--fs-xl); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Form (styled like Fluent Forms) ---------- */
.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.ff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .ff-row { grid-template-columns: 1fr; } }
.ff-group { margin-bottom: 18px; }
.ff-group label { display: block; font-weight: 600; color: var(--c-ink); font-size: var(--fs-sm); margin-bottom: 6px; }
.ff-group label .req { color: #d23b3b; }
.ff-group input, .ff-group select, .ff-group textarea {
  width: 100%; font: inherit; font-size: var(--fs-md); color: var(--c-ink);
  padding: 13px 14px; border: 1px solid #cfd4e2; border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.ff-group textarea { min-height: 140px; resize: vertical; }
.ff-group input:focus, .ff-group select:focus, .ff-group textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 4px rgba(31,63,214,.14); }
.form-note { font-size: var(--fs-xs); color: var(--c-muted); margin-top: 12px; }
.form-success { background: #ecfbf1; border: 1px solid #b6e8c8; color: #14532d; padding: 16px 18px; border-radius: 10px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 44px; height: 44px; margin: 0; flex: none; border-radius: 12px; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--c-ink); }
.placeholder { background: #fff6e0; border: 1px dashed var(--c-accent); padding: 0 6px; border-radius: 4px; color: #7a4d00; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-night); color: #9aa3c0; font-size: var(--fs-sm); padding-top: clamp(56px, 6vw, 80px); }
.site-footer a { color: #c8cfea; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-grid .footer-h { color: #fff; font-size: var(--fs-sm); font-family: var(--f-body); font-stretch: 100%; font-weight: 700; letter-spacing: .04em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-logo { background: #fff; display: inline-block; padding: 8px 12px; border-radius: 10px; margin-bottom: 16px; }
.footer-logo img { height: 24px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--fs-xs); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
/* Hidden only when JS is running (the .js class is set in <head>); always visible in the editor. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, a.card, .browser { transition: none; transform: none; }
}


/* =====================================================================
   3. WordPress adaptation layer: core block markup -> components above
   ===================================================================== */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > *, .site-main > * { margin-block: 0; }
.site-main { display: block; }
.split > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
figure { margin: 0; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* Headings / paragraphs used as components */
.hero h1 strong, .page-hero h1 strong { color: var(--c-brand); font-weight: inherit; }
p.eyebrow { display: flex; }
.section-head--center p.eyebrow { justify-content: center; }
.section-head > :last-child, .card > :last-child { margin-bottom: 0; }
.section--night .lead { color: #c5cbe0; }
.section-head--center .lead { margin-inline: auto; }

/* Buttons (core/buttons + core/button) */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button { margin: 0; }
.wp-block-button__link, .fluentform .ff-btn-submit {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 var(--fs-sm)/1 var(--f-body);
  padding: 15px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s;
  background: var(--c-brand); color: #fff;
}
.wp-block-button__link:hover, .fluentform .ff-btn-submit:hover { background: var(--c-brand-ink); color: #fff; transform: translateY(-1px); }
.is-style-ghost .wp-block-button__link { background: #fff; border-color: var(--c-line); color: var(--c-ink); }
.is-style-ghost .wp-block-button__link:hover { background: #fff; border-color: var(--c-brand); color: var(--c-brand); }
.is-style-light .wp-block-button__link { background: #fff; color: var(--c-ink); }
.is-style-light .wp-block-button__link:hover { background: var(--c-accent); color: var(--c-ink); }
.hero .wp-block-button:first-child .wp-block-button__link::after { content: "\2192"; }
.price .wp-block-button__link, .price .btn { width: 100%; justify-content: center; }

/* Hero tick points (core/list) */
.hero-points li { position: relative; padding-left: 26px; display: block; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3fd6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.ticks { list-style: none; padding-left: 0; }

/* Cards made of core/group: a "more" paragraph link stretches over the card */
.card { position: relative; }
.card .tag { display: inline-block; }
.more a { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.more a::after { content: "\2192"; transition: transform .15s; }
.more a:hover::after { transform: translateX(3px); }
.card .more { margin: auto 0 0; padding-top: 8px; }
.center-link { text-align: center; margin: 32px 0 0; }
.hero-btns { margin-top: 28px; }
.h-xl, .form-title { font-size: var(--fs-xl); }
.contact-side .contact-list { margin-top: 8px; }
.card--link .more a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link:hover { border-color: rgba(31,63,214,.35); box-shadow: var(--shadow); transform: translateY(-2px); }
.card--feature .more a { color: #fff; }
.card .icon { flex: none; }
.card .ticks { margin-bottom: 0; }

/* FAQ (core/details) */
.faq .wp-block-details { margin: 0; }
.faq .wp-block-details > :not(summary) { margin-top: 0; }

/* Page content (pattern pages) and prose (posts / simple pages) */
.page-content > * { margin-block: 0; }
.entry { margin-inline: auto; }
.prose > * { margin-block: 0 1.1em; }
.prose > :last-child { margin-bottom: 0; }
.prose .wp-block-post-content > * { margin-block: 0 1.1em; }
.prose .wp-block-post-content > :last-child { margin-bottom: 0; }
.prose .wp-block-post-content > :is(h2, h3), .prose > :is(h2, h3) { margin-top: 1.6em; margin-bottom: .5em; }
.prose .wp-block-post-content > :first-child, .prose > :first-child { margin-top: 0; }
.facts { margin-bottom: clamp(32px, 4vw, 48px); }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose h2 { font-size: var(--fs-xl); }
.prose img, .entry-img img, .project-img img { border-radius: var(--r-md); height: auto; }
.entry-img, .project-img { margin-bottom: 32px; }
.project-img { margin-top: 32px; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--c-brand); color: var(--c-ink); font-size: var(--fs-lg); }
.prose pre, .prose code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; background: var(--c-paper-2); border-radius: 6px; }
.prose code { padding: 2px 6px; }
.prose pre { padding: 16px 18px; overflow-x: auto; }
.prose pre code { padding: 0; background: none; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: left; }
.prose .wp-block-table { overflow-x: auto; }
.entry-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-xs); }
.entry-tags a { background: var(--c-brand-soft); color: var(--c-brand-ink); padding: 6px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.entry-tags .wp-block-post-terms__separator { display: none; }
.post-meta { color: var(--c-muted); font-size: var(--fs-sm); margin: 16px 0 0; }
.page-hero h1 { font-size: var(--fs-2xl); }
.page-hero .chips { margin-bottom: 0; }

/* Blog list (core/query) */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-grid > li { margin: 0; }
.post-card { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.post-card:hover { border-color: rgba(31,63,214,.35); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 24px; }
.post-card-date { font-size: var(--fs-xs); color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.post-card-title { font-size: var(--fs-lg); margin-bottom: 8px; }
.post-card-title a { color: var(--c-ink); text-decoration: none; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; }
.post-card-excerpt p { margin: 0; color: var(--c-ink-2); font-size: var(--fs-sm); }
.post-card-excerpt .wp-block-post-excerpt__more-text { display: none; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; font-size: var(--fs-sm); }
.pagination a, .pagination .page-numbers { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink); }
.pagination .current { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

/* Portfolio (fazdrive/project-grid) */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .project-grid { grid-template-columns: 1fr; } }
.project-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.project-card:hover { border-color: rgba(31,63,214,.35); box-shadow: var(--shadow); transform: translateY(-2px); }
.project-card .case-media { min-height: 240px; }
.project-card img.project-thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-card-body { padding: 24px; }
.project-card-body h3 a { color: var(--c-ink); text-decoration: none; }
.project-card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.project-card .chips { margin: 12px 0 0; }
.case-media img.project-thumb { width: 100%; max-width: 560px; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }

/* Pricing (fazdrive/pricing-table) */
.amount .on-request { font: 700 var(--fs-lg)/1.2 var(--f-body); font-stretch: 100%; display: block; }
.price .tag { margin-bottom: 14px; }
.price-note { margin-top: 20px; }
.compact-prices .card h3 { margin-bottom: 6px; }

/* Fluent Forms restyle (matches .ff-group fields) */
.fluentform .ff-el-group { margin-bottom: 18px; }
.fluentform .ff-el-input--label label { font-weight: 600; color: var(--c-ink); font-size: var(--fs-sm); }
.fluentform .ff-el-form-control {
  width: 100%; font: inherit; font-size: var(--fs-md); color: var(--c-ink);
  padding: 13px 14px; border: 1px solid #cfd4e2; border-radius: 10px; background: #fff;
}
.fluentform .ff-el-form-control:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 4px rgba(31,63,214,.14); }
.fluentform .ff-message-success { background: #ecfbf1; border: 1px solid #b6e8c8; color: #14532d; padding: 16px 18px; border-radius: 10px; box-shadow: none; }
.form-error { background: #fdeeee; border: 1px solid #f2c2c2; color: #7a1d1d; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* Core images */
.wp-block-image img { height: auto; }
.wp-block-image figcaption { font-size: var(--fs-sm); color: var(--c-muted); margin-top: 8px; }

/* Editor canvas */
.editor-styles-wrapper .site-header-part { position: static; }
.editor-styles-wrapper .card--link .more a::before, .editor-styles-wrapper .post-card-title a::after, .editor-styles-wrapper .project-card-body h3 a::after { display: none; }
