/* ==========================================================================
   SITESURGEON PRO — COMPONENTS
   Header, hero, stage, cards, forms, FAQ, footer and page blocks.
   Each block matches a file in /templates.
   ========================================================================== */

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,0.88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.25s ease; }
.site-header.is-stuck { border-bottom-color: var(--line); }
.nav { max-width: var(--max-width); margin: 0 auto; padding: 13px 28px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }
.nav-links a.nav-link { display: flex; align-items: center; gap: 6px; padding: 9px 13px; font-size: 0.91rem; font-weight: 500; color: var(--ink); border-radius: 8px; transition: background 0.16s ease, color 0.16s ease; }
.nav-links a.nav-link:hover { background: var(--cloud); color: var(--surgical-teal); }
.nav-links li.current > a.nav-link { color: var(--surgical-teal); }
.has-dropdown > .nav-link::after { content: ''; flex: 0 0 auto; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.5; transition: transform 0.2s var(--ease); }
.has-dropdown:hover > .nav-link::after { transform: rotate(225deg) translateY(-2px); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px); min-width: 310px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lift); padding: 7px; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.22s var(--ease), visibility 0.2s; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: 10px 13px; border-radius: var(--radius-sm); transition: background 0.14s ease; }
.dropdown a:hover { background: var(--cloud); }
.dropdown a .d-title { display: block; font-weight: 600; font-size: 0.89rem; color: var(--ink); }
.dropdown a .d-desc { display: block; font-size: 0.77rem; color: var(--slate-2); margin-top: 2px; }
.dropdown a.is-current .d-title { color: var(--surgical-teal); }
.nav-cta { display: flex; align-items: center; gap: 11px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 1060px) {
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 18px 20px; gap: 2px; display: none; box-shadow: var(--shadow-lift); }
  .nav-links.open { display: flex; }
  .nav-links a.nav-link { padding: 13px 12px; font-size: 1rem; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 6px 12px; padding: 0 0 0 8px; display: none; min-width: 0; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-cta .btn { display: none; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 104px 0; position: relative; border-top: 1px solid var(--line-soft); }
.section--flush { border-top: none; }
.section--tight { padding: 68px 0; }
.section--mist { background: var(--mist); }
.section--cloud { background: var(--cloud); }
@media (max-width: 768px) { .section { padding: 72px 0; } }

/* ==========================================================================
   HERO — light, with the dark stage as the only high-contrast element
   ========================================================================== */
.hero { position: relative; padding: 76px 0 92px; overflow: hidden; background: var(--mist); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(760px 420px at 12% -8%, rgba(15,157,143,0.07), transparent 64%),
    radial-gradient(620px 380px at 92% 4%, rgba(245,179,36,0.05), transparent 62%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  grid-template-areas: "content stage" "cta stage";
  gap: 0 56px; align-items: center;
}
.hero-content { grid-area: content; }
.hero-cta { grid-area: cta; margin-top: 30px; }
.stage { grid-area: stage; }
.hero h1 { margin-bottom: 32px; max-width: 22ch; }

/* Suggestion chips — search-suggestion feel, deliberately quieter than the CTAs */
.suggest-label { display: flex; align-items: center; gap: 9px; font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.suggest-label svg { opacity: 0.5; flex-shrink: 0; }
.suggest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 0; }
.suggest {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 14px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font-size: 1rem; font-weight: 500; line-height: 1.35;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  position: relative;
}
.suggest .s-icon { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--cloud); font-size: 0.92rem; line-height: 1; transition: background 0.2s ease; }
.suggest .s-text { flex: 1; min-width: 0; }
.suggest .s-go { flex: 0 0 auto; opacity: 0; transform: translateX(-4px); transition: opacity 0.2s ease, transform 0.2s var(--ease); color: var(--surgical-teal); }
.suggest:hover { border-color: var(--slate-3); background: var(--paper); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.suggest:hover .s-go { opacity: 1; transform: translateX(0); }
.suggest.is-active { border-color: rgba(15,157,143,0.45); background: var(--tint-teal); color: var(--ink); }
.suggest.is-active .s-icon { background: rgba(15,157,143,0.13); }
.suggest.is-active .s-go { opacity: 1; transform: translateX(0); }
.suggest.is-active::after { content: ''; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--surgical-teal), var(--teal-lite)); }
@media (max-width: 1060px) {
  /* Stage moves directly under the chips so the answer to a tap is on screen */
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "content" "stage" "cta"; gap: 34px 0; }
  .hero-cta { margin-top: 0; }
  .hero h1 { max-width: 24ch; }
}
@media (max-width: 560px) { .suggest-grid { grid-template-columns: 1fr; } .hero { padding: 52px 0 68px; } }

/* ==========================================================================
   THE STAGE — WebM slot + coded stand-in demos
   ========================================================================== */
.stage {
  position: relative; aspect-ratio: 4 / 3.3; border-radius: var(--radius-xl); overflow: hidden;
  background: linear-gradient(168deg, #08122A 0%, #0B1730 52%, #050B1A 100%);
  box-shadow: var(--shadow-stage); border: 1px solid rgba(255,255,255,0.08);
}
.stage::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(64% 50% at 22% 10%, rgba(15,157,143,0.20), transparent 70%); pointer-events: none; }
.stage-head { position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.stage-dots { display: flex; gap: 5px; }
.stage-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.stage-name { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.46); }
.stage-badge { font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.08em; color: var(--teal-lite); background: rgba(47,212,192,0.12); border: 1px solid rgba(47,212,192,0.26); padding: 4px 9px; border-radius: 999px; }

.demo { position: absolute; inset: 0; z-index: 2; opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), transform 0.55s var(--ease), visibility 0.45s; transform: scale(1.015); display: grid; place-items: center; padding: 58px 8% 26px; }
.demo.is-active { opacity: 1; visibility: visible; transform: scale(1); }
.demo video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.demo-card { width: 100%; background: rgba(9,17,36,0.72); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 18px; backdrop-filter: blur(12px); }
.demo-title { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.11em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 14px; display: flex; justify-content: space-between; gap: 10px; }
.demo-title b { color: var(--teal-lite); font-weight: 500; }

/* shared demo atoms */
.d-field { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 10px 12px; }
.d-field svg { flex-shrink: 0; opacity: 0.5; }
.d-q { font-size: 0.88rem; color: var(--paper); }
.d-caret { width: 1.5px; height: 14px; background: var(--teal-lite); }
.d-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.d-row:last-child { border-bottom: none; }
.d-sq { width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.d-sq i { display: block; }
.d-meta { flex: 1; min-width: 0; }
.d-name { display: block; font-size: 0.79rem; color: var(--paper); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-sub { display: block; font-family: var(--font-mono); font-size: 0.62rem; color: rgba(255,255,255,0.42); margin-top: 2px; }
.d-val { font-family: var(--font-mono); font-size: 0.73rem; color: rgba(255,255,255,0.76); flex-shrink: 0; }
.d-big { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; color: var(--paper); font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1; }
.d-big small { font-size: 0.44em; color: rgba(255,255,255,0.45); font-weight: 500; letter-spacing: 0; }
.d-cap { font-family: var(--font-mono); font-size: 0.63rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.42); margin-top: 6px; }
.d-bar { display: grid; grid-template-columns: 62px 1fr 46px; align-items: center; gap: 10px; margin-top: 9px; }
.d-bar-k { font-family: var(--font-mono); font-size: 0.63rem; color: rgba(255,255,255,0.42); letter-spacing: 0.05em; text-transform: uppercase; }
.d-track { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.09); overflow: hidden; }
.d-fill { display: block; height: 100%; border-radius: 4px; transform-origin: left center; }
.d-fill--bad { background: linear-gradient(90deg, var(--coral), #ff8a5c); }
.d-fill--good { background: linear-gradient(90deg, var(--surgical-teal), var(--teal-lite)); }
.d-bar-v { font-family: var(--font-mono); font-size: 0.68rem; color: rgba(255,255,255,0.7); text-align: right; }
.d-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,0.08); }
.d-chip { font-family: var(--font-mono); font-size: 0.62rem; color: rgba(255,255,255,0.58); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.d-chip--ok { color: var(--teal-lite); border-color: rgba(47,212,192,0.24); background: rgba(47,212,192,0.09); }
.d-meter { height: 8px; border-radius: 5px; background: rgba(255,255,255,0.09); overflow: hidden; margin-top: 10px; }
.d-meter i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--vital-amber), var(--teal-lite)); transform-origin: left; }
.d-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.58rem; color: var(--ink-950); font-weight: 600; }

/* stand-in motion — replays each time a state is selected */
@keyframes d-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes d-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes d-blink { 50% { opacity: 0; } }
@keyframes d-type { from { width: 0; } to { width: 100%; } }
.demo.is-active .d-fill, .demo.is-active .d-meter i { animation: d-grow 0.85s var(--ease) both; }
.demo.is-active .d-row { animation: d-rise 0.5s var(--ease) both; }
.demo.is-active .d-row:nth-child(2) { animation-delay: 0.08s; }
.demo.is-active .d-row:nth-child(3) { animation-delay: 0.16s; }
.demo.is-active .d-row:nth-child(4) { animation-delay: 0.24s; }
.demo.is-active .d-chips { animation: d-rise 0.5s var(--ease) 0.3s both; }
.demo.is-active .d-caret { animation: d-blink 1.05s step-end infinite; }
.demo.is-active .d-q { display: inline-block; overflow: hidden; white-space: nowrap; animation: d-type 0.75s steps(18, end) both; }

@media (max-width: 1060px) { .stage { aspect-ratio: 4 / 3; } }
@media (max-width: 620px) { .stage { aspect-ratio: auto; } .demo { position: relative; inset: auto; padding: 54px 18px 20px; } .demo:not(.is-active) { display: none; } }
/* Very narrow phones: the console mock-up's fixed inner padding pushed it past
   the viewport. Tighten the frame rather than shrink the type. */
@media (max-width: 400px) {
  .demo { padding: 50px 8px 14px; }
  .demo-card { padding: 13px; }
  .d-bar { grid-template-columns: 48px 1fr 38px; gap: 7px; }
  .d-sq, .d-avatar { width: 26px; height: 26px; }
  .d-field { padding: 9px 10px; }
  /* inline 1fr 1fr grids on service pages need a floor of 0 or content pushes wide */
  .cap-grid[style] { grid-template-columns: minmax(0, 1fr) !important; }
  /* grid items won't shrink past min-content without an explicit floor */
  .demo-card { min-width: 0; }
  .demo-title { flex-wrap: wrap; gap: 4px; }
  .d-field .d-q { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .d-chips { gap: 5px; }
}

/* ==========================================================================
   BANDS — short full-width statements between major blocks
   ========================================================================== */
.band { text-align: center; max-width: 760px; margin: 0 auto; }
.band h2 { margin-bottom: 18px; }
.band p { font-size: 1.05rem; }
.band p:last-child { margin-bottom: 0; }

/* ==========================================================================
   PRODUCT BLOCK (search hero product)
   ========================================================================== */
@media (max-width: 1000px) { .product { grid-template-columns: 1fr; gap: 40px; } }

.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--surgical-teal); background: var(--tint-teal); border: 1px solid rgba(15,157,143,0.2); padding: 6px 12px; border-radius: 999px; }

/* Live demo links — outlined, heartbeat, deliberately not CTAs */
.live-head { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--slate-2); margin: 34px 0 14px; }
.live-links { display: flex; flex-wrap: wrap; gap: 9px; }
.live {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--slate);
  font-size: 0.96rem; font-weight: 500; transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.live:hover { border-color: rgba(15,157,143,0.4); color: var(--ink); transform: translateY(-2px); }
.live .beat { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--surgical-teal); flex-shrink: 0; }
.live .beat::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--surgical-teal); animation: beat 2.6s var(--ease) infinite; }
@keyframes beat { 0% { transform: scale(1); opacity: 0.55; } 70% { transform: scale(3.2); opacity: 0; } 100% { opacity: 0; } }
.live .go { color: var(--slate-3); font-family: var(--font-mono); font-size: 0.72rem; }

/* ==========================================================================
   ALGOLIA BRIDGE
   ========================================================================== */
@keyframes flow { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 100% { left: 40px; opacity: 0; } }
@media (max-width: 1000px) { .bridge { padding: 30px 24px; } .bridge-grid { grid-template-columns: 1fr; gap: 34px; } }
@media (max-width: 520px) { .bridge-viz { grid-template-columns: 1fr; } .bridge-link { width: 2px; height: 30px; margin: 0 auto; background: linear-gradient(180deg, var(--line), var(--surgical-teal)); } .bridge-link::after { right: -3px; top: auto; bottom: -1px; } .bridge-link .pulse { animation: none; } }

/* ==========================================================================
   TIER ROW (Free / Pro / Done for You)
   ========================================================================== */
@media (max-width: 800px) { .tiers { grid-template-columns: 1fr; } }

/* ==========================================================================
   NUMBERED SERVICE BLOCKS (01–04)
   ========================================================================== */
.svc-lede { color: var(--slate); margin-bottom: 15px; font-size: 1.08rem; line-height: 1.68; }
.stack-line { font-family: var(--font-mono); font-size: 0.9rem; color: var(--slate-2); line-height: 1.9; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 24px; }
.stack-line b { display: block; font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-3); margin-bottom: 8px; font-weight: 600; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: 1fr; gap: 36px; } .svc-block { padding: 60px 0; } }

/* Before / After capsule */

/* Performance results grid */
.perf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.perf-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); padding: 20px 18px; transition: border-color 0.22s ease, transform 0.22s var(--ease); }
.perf-card:hover { border-color: rgba(15,157,143,0.35); transform: translateY(-3px); }
.perf-card--self { background: var(--tint-teal); border-color: rgba(15,157,143,0.24); }
.perf-card .p-n { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 12px; }
.perf-card .p-ba { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; }
.perf-card .p-b { color: var(--coral); }
.perf-card .p-a { color: var(--surgical-teal); }
.perf-card .p-sep { color: var(--slate-3); }
.perf-ask { text-align: center; margin-top: 34px; }
.perf-ask .q { font-family: var(--font-display); font-size: clamp(1.3rem, 2.1vw, 1.75rem); font-weight: 600; color: var(--ink); letter-spacing: -0.03em; margin-bottom: 20px; }
@media (max-width: 900px) { .perf-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .perf-grid { grid-template-columns: 1fr; } .ba-capsule { grid-template-columns: 1fr; text-align: center; } .ba-arrow { width: 2px; height: 26px; margin: 0 auto; background: linear-gradient(180deg, var(--coral), var(--surgical-teal)); } }

/* Capability grid (LMS) */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); padding: 22px 20px; transition: border-color 0.22s ease, transform 0.22s var(--ease); }
.cap:hover { border-color: var(--slate-3); transform: translateY(-3px); }
.cap h3, .cap h4 { margin-bottom: 8px; font-size: 1.08rem; }
.cap p { margin: 0; font-size: 0.97rem; line-height: 1.6; }
@media (max-width: 900px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } }

/* Coming-later notice */
.notice { border: 1px dashed var(--line); border-radius: var(--radius-md); background: var(--mist); padding: 22px 24px; margin-top: 22px; }
.notice h3, .notice h4 { margin-bottom: 6px; }
.notice p { margin: 0 0 14px; font-size: 0.92rem; }
.notice .soon { font-family: var(--font-mono); font-size: 0.72rem; color: var(--slate-3); margin: 14px 0 0; }

/* ==========================================================================
   BUILT-LIKE CARDS (custom development)
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.work-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.work-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cloud-2); }
.work-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.5) brightness(1.03); transition: transform 0.6s var(--ease), filter 0.4s ease; }
.work-card:hover .work-media img { transform: scale(1.04); filter: saturate(0.72) brightness(1.03); }
.work-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,23,48,0.04), rgba(11,23,48,0.30)); }
.work-body { padding: 24px; }
.work-body h3, .work-body h4 { margin-bottom: 8px; font-size: 1.04rem; }
.work-body p { margin: 0; font-size: 0.98rem; }

/* ==========================================================================
   LADDER (Free → Pro → Done for You → Custom)
   ========================================================================== */
@media (max-width: 900px) { .ladder { grid-template-columns: 1fr 1fr; gap: 30px 20px; } .ladder::before { display: none; } .rung { padding-top: 28px; } }
@media (max-width: 520px) { .ladder { grid-template-columns: 1fr; } }

/* ==========================================================================
   WHY / PROCESS / PRICING / STATS
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: center; }
.why-problems { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.why-problems span { font-family: var(--font-mono); font-size: 0.76rem; color: var(--slate); background: var(--cloud); border: 1px solid var(--line); padding: 7px 12px; border-radius: 8px; }
.why-claims { display: grid; gap: 12px; }
.why-claim { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); padding: 18px 20px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.why-claim svg { flex-shrink: 0; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: 1fr; gap: 38px; } }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p-step { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); padding: 26px 24px; }
.p-step .p-k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.11em; color: var(--surgical-teal); margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.p-step .p-k::before { content: ''; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.p-step h3, .p-step h4 { margin-bottom: 8px; font-size: 1.02rem; }
.p-step p { margin: 0; font-size: 0.98rem; }
.p-step ul { display: flex; flex-direction: column; gap: 5px; }
.p-step li { font-size: 0.98rem; color: var(--slate); }
@media (max-width: 1000px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

.price4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.pcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); padding: 28px 24px; transition: border-color 0.22s ease, transform 0.22s var(--ease), box-shadow 0.22s var(--ease); }
.pcard:hover { border-color: var(--slate-3); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.pcard h3, .pcard h4 { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-2); font-weight: 600; margin-bottom: 16px; }
.pcard .p-val { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1; margin-bottom: 12px; }
.pcard p { font-size: 0.98rem; margin-bottom: 22px; }
.pcard .arrow-link { margin-top: auto; }
@media (max-width: 1000px) { .price4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .price4 { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); padding: 24px 20px; text-align: center; }
.stat .s-v { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.04em; color: var(--surgical-teal); line-height: 1; }
.stat .s-l { font-size: 0.84rem; color: var(--slate); margin-top: 9px; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   CLOSING CTA
   ========================================================================== */
.close-panel { border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(168deg, var(--paper) 0%, var(--tint-teal) 100%); padding: 62px 48px; text-align: center; }
.close-panel h2 { margin-bottom: 14px; }
.close-panel .lede { margin: 0 auto 30px; }
.close-panel .btn-row { justify-content: center; }
@media (max-width: 620px) { .close-panel { padding: 40px 24px; } }

/* ==========================================================================
   FOOTER — light variant
   ========================================================================== */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: 68px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer-brand .brand-logo { height: 46px; margin-bottom: 18px; }
.footer-brand p { color: var(--slate); font-size: 1rem; max-width: 34ch; margin: 0; }
.footer-col h2, .footer-col .footer-col-title { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--slate-3); margin-bottom: 16px; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.97rem; color: var(--slate); transition: color 0.16s ease; }
.footer-col a:hover { color: var(--surgical-teal); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--slate-3); }
@media (max-width: 1000px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ==========================================================================
   SERVICE SECTIONS — one per service, alternating side and background
   Each carries: numbered bar with price · copy/stage row (sides alternate)
   · supporting detail · reusable lead form
   WP: ACF flexible layout "service_section" with a `flip` boolean and a
   `price` group (amount, basis).
   ========================================================================== */
.svc-sec { padding: 96px 0; border-top: 1px solid var(--line); background: var(--paper); }
.svc-sec--tint { background: var(--cloud); }

.svc-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 22px 34px; flex-wrap: wrap;
  background: linear-gradient(150deg, #0B1730 0%, #16264F 100%);
  border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 46px;
  box-shadow: 0 18px 40px -26px rgba(11,23,48,0.55);
}
.svc-bar-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.svc-bar-num { font-family: var(--font-display); font-size: 2.15rem; font-weight: 700; color: var(--teal-lite); letter-spacing: -0.05em; line-height: 1; flex: 0 0 auto; }
.svc-bar-name { font-family: var(--font-display); font-size: clamp(1.15rem, 1.7vw, 1.42rem); font-weight: 600; color: #fff; letter-spacing: -0.025em; line-height: 1.15; }
.svc-bar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.svc-bar-price { display: flex; align-items: baseline; gap: 12px; flex: 0 0 auto; }
.svc-bar-price b { font-family: var(--font-display); font-size: clamp(1.95rem, 3vw, 2.5rem); font-weight: 700; color: #fff; letter-spacing: -0.045em; line-height: 1; }
.svc-bar-price .basis { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-lite); background: rgba(47,212,192,0.14); border: 1px solid rgba(47,212,192,0.32); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

/* The promise, said out loud */
.svc-bar-promise {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-size: 0.98rem; font-weight: 700; color: #08122A; letter-spacing: -0.012em;
  background: var(--teal-lite); padding: 11px 18px; border-radius: 999px; white-space: nowrap;
}
.svc-bar-promise svg { flex: 0 0 auto; }
@media (max-width: 860px) {
  .svc-bar { padding: 22px 22px; gap: 18px; }
  .svc-bar-left { flex: 1 1 100%; }
  .svc-bar-right { flex: 1 1 100%; justify-content: space-between; }
}
@media (max-width: 560px) {
  .svc-bar-promise { flex: 1 1 100%; justify-content: center; white-space: normal; text-align: center; }
  /* long basis labels ("Scoped to your build") pushed past the viewport while
     nowrap was set — let the price group wrap instead */
  .svc-bar-price { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; }
  .svc-bar-price .basis { white-space: normal; }
  .svc-bar-name { word-break: break-word; }
}

.svc-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 58px; align-items: center; }
.svc-row .svc-copy { order: 1; }
.svc-row .svc-visual { order: 2; }
.svc-row--flip .svc-copy { order: 2; }
.svc-row--flip .svc-visual { order: 1; }
.svc-support { margin-top: 52px; }
@media (max-width: 1000px) {
  .svc-sec { padding: 68px 0; }
  .svc-row { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .svc-row .svc-copy, .svc-row--flip .svc-copy { order: 1; }
  .svc-row .svc-visual, .svc-row--flip .svc-visual { order: 2; }
  .svc-support { margin-top: 40px; }
}

/* Algolia positioning strip — headline only; the architecture detail lives on
   the dedicated /services/websites-smart-internal-search page. */
.algolia-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid rgba(15,157,143,0.22); border-radius: var(--radius-lg);
  background: var(--tint-teal); padding: 20px 26px; margin-top: 34px;
}
.algolia-strip .as-title { font-family: var(--font-display); font-size: clamp(1.02rem, 1.5vw, 1.22rem); font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin: 0; }

/* ==========================================================================
   ANCHOR OFFSET — sticky header clearance for in-page chip navigation
   ========================================================================== */
[id] { scroll-margin-top: 96px; }

/* ==========================================================================
   REUSABLE LEAD FORM — closes every service section
   WP: one ACF block "lead_form" with fields heading, cta_label, note
   ========================================================================== */
.lead-form {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(168deg, var(--paper) 0%, var(--tint-teal) 140%);
  padding: 34px 32px 32px; margin-top: 40px; text-align: center;
  max-width: 820px; margin-left: auto; margin-right: auto;
}
.lead-form .lf-title { font-family: var(--font-display); font-size: clamp(1.12rem, 1.7vw, 1.38rem); font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin: 0 auto 20px; max-width: 26ch; }
.lf-fields { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.lf-fields input {
  flex: 1 1 220px; min-width: 0; padding: 16px 18px; border-radius: 10px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); text-align: left;
  border: 1px solid var(--line); background: var(--paper);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.lf-fields input::placeholder { color: var(--slate-3); }
.lf-fields input:focus { outline: none; border-color: var(--surgical-teal); box-shadow: 0 0 0 3px rgba(15,157,143,0.14); }
.lf-note { font-size: 0.95rem; color: var(--slate); margin: 16px auto 0; max-width: 52ch; }
@media (max-width: 620px) {
  .lead-form { padding: 24px 20px; }
  .lf-fields { flex-direction: column; }
  .lf-fields input { flex: 0 0 auto; width: 100%; }
  .lf-fields .btn { width: 100%; }
}

/* ==========================================================================
   OFFER GUARANTEES + PRICE CTA (search section)
   ========================================================================== */
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.offer {
  border: 2px solid rgba(15,157,143,0.32); border-radius: var(--radius-lg);
  background: var(--tint-teal); padding: 28px 26px;
}
.offer h3, .offer h4 { display: flex; align-items: center; gap: 11px; font-size: 1.24rem; margin-bottom: 12px; letter-spacing: -0.025em; }
.offer h4 svg { flex: 0 0 auto; }
.offer p { margin: 0 0 10px; font-size: 1.04rem; line-height: 1.62; color: var(--slate); }
.offer p:last-child { margin-bottom: 0; }
.offer strong { color: var(--ink); font-weight: 700; }
.offer-cta { text-align: center; margin-top: 34px; }
.offer-cta .price-note { font-family: var(--font-body); font-size: 0.98rem; color: var(--slate); margin: 16px 0 0; }
@media (max-width: 800px) { .offer-grid { grid-template-columns: 1fr; } }

/* Algolia architecture strip — inside the search section, not a separate service */
@media (max-width: 900px) { .arch-grid { grid-template-columns: 1fr; gap: 30px; } }

/* Featured price lead (the $295 search offer) */
.price-lead {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 32px; align-items: center;
  border: 1px solid rgba(15,157,143,0.28); border-radius: var(--radius-xl);
  background: linear-gradient(150deg, var(--paper) 0%, var(--tint-teal) 100%);
  padding: 34px 36px; margin-bottom: 22px;
}
.price-lead h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin: 12px 0 8px; }
.price-lead p { margin: 0; font-size: 0.94rem; }
.price-lead .pl-right { text-align: right; }
.price-lead .pl-val { font-family: var(--font-display); font-size: clamp(2.1rem, 3.4vw, 2.9rem); font-weight: 700; letter-spacing: -0.045em; color: var(--ink); line-height: 1; }
.price-lead .pl-sub { font-family: var(--font-mono); font-size: 0.72rem; color: var(--slate-2); margin: 8px 0 16px; }
@media (max-width: 800px) { .price-lead { grid-template-columns: 1fr; gap: 22px; padding: 26px 22px; } .price-lead .pl-right { text-align: left; } }

/* ==========================================================================
   HOMEPAGE SERVICE CARDS — compact 2x2 summary.
   The full-depth versions of these four sections live on /services.
   ========================================================================== */
.svc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.svc-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--paper);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), border-color 0.26s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.svc-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(150deg, #0B1730 0%, #16264F 100%); padding: 20px 24px;
}
.svc-card-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.svc-card-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--teal-lite); letter-spacing: -0.05em; line-height: 1; flex: 0 0 auto; }
.svc-card-name { font-family: var(--font-display); font-size: 1.14rem; font-weight: 600; color: #fff; letter-spacing: -0.022em; line-height: 1.2; }
.svc-card-price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: #fff; letter-spacing: -0.04em; line-height: 1; flex: 0 0 auto; }
.svc-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.svc-points { display: flex; flex-direction: column; gap: 12px; margin: 0 0 20px; }
.svc-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.02rem; color: var(--ink); line-height: 1.5; }
.svc-points li svg { flex: 0 0 auto; margin-top: 4px; }
.svc-card-promise {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  font-size: 0.94rem; font-weight: 700; color: #08122A; letter-spacing: -0.01em;
  background: var(--teal-lite); padding: 9px 15px; border-radius: 999px; margin: 0 0 18px;
}
.svc-card .arrow-link { margin-top: auto; align-self: flex-start; }
.svc-card--wide { grid-column: 1 / -1; }
.svc-card--wide .svc-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 26px; }
@media (max-width: 900px) { .svc-cards { grid-template-columns: 1fr; } .svc-card--wide .svc-points { grid-template-columns: 1fr; } }

/* Inline bulleted list — custom development CTA */

/* Services landing page hero */
.page-hero { background: var(--mist); padding: 52px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 24ch; margin-bottom: 16px; }
.page-hero .lede { margin-bottom: 0; }
.crumb { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-2); margin: 0 0 16px; }
.crumb a { color: var(--surgical-teal); font-weight: 600; }

/* ==========================================================================
   HIDDEN SECTIONS
   Kept in the markup but switched off. Delete the is-hidden class from a
   section (ids: #process, #pricing, #stats, #final-cta) to bring it back.
   ========================================================================== */
.is-hidden { display: none !important; }

/* ==========================================================================
   FAQ ACCORDION
   WP: ACF repeater "faqs" — question, answer (wysiwyg). Mirror each entry in
   the FAQPage JSON-LD so the rich result matches what's on screen.
   ========================================================================== */
.faq-list { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 22px;
  background: none; border: 0; padding: 26px 0; text-align: left;
  font-family: var(--font-display); font-size: clamp(1.06rem, 1.5vw, 1.2rem); font-weight: 600;
  color: var(--ink); letter-spacing: -0.022em; line-height: 1.35; transition: color 0.18s ease;
}
.faq-q:hover { color: var(--surgical-teal); }
.plus { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.plus::before, .plus::after { content: ''; position: absolute; background: var(--surgical-teal); border-radius: 2px; transition: transform 0.28s var(--ease), opacity 0.2s ease; }
.plus::before { left: 0; right: 0; top: 8px; height: 2px; }
.plus::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.faq-item.open .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.36s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0 0 14px; max-width: 72ch; font-size: 1.05rem; line-height: 1.7; }
.faq-a p:last-child { margin-bottom: 0; padding-bottom: 28px; }

/* ==========================================================================
   LEAD FORM — SERVICE PICKER
   Checkboxes render as tap-target chips. "Other" reveals a free-text field.
   WP: map `service[]` to an ACF checkbox field and `service_other` to text.
   ========================================================================== */
.lf-services { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; text-align: left; }
.lf-services legend { font-size: 1rem; font-weight: 600; color: var(--ink); padding: 0; margin: 0 0 14px; float: none; text-align: left; }
.lf-checks { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.lf-check {
  display: inline-flex; align-items: center; gap: 11px; cursor: pointer;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); font-size: 0.98rem; font-weight: 500; line-height: 1.3;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.lf-check:hover { border-color: var(--slate-3); }
.lf-check:focus-within { outline: 2.5px solid var(--surgical-teal); outline-offset: 3px; }
.lf-check input { width: 19px; height: 19px; margin: 0; flex: 0 0 auto; accent-color: var(--surgical-teal); cursor: pointer; }
.lf-check.is-checked { border-color: rgba(15,157,143,0.55); background: var(--tint-teal); }
.lf-other { margin-top: 12px; }
.lf-other[hidden] { display: none; }
.lf-other input { width: 100%; text-align: left; padding: 16px 18px; border-radius: 10px; font-family: var(--font-body); font-size: 1rem; color: var(--ink); border: 1px solid var(--line); background: var(--paper); transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.lf-other input::placeholder { color: var(--slate-3); }
.lf-other input:focus { outline: none; border-color: var(--surgical-teal); box-shadow: 0 0 0 3px rgba(15,157,143,0.14); }
.lf-submit { margin-top: 22px; min-width: 240px; }
@media (max-width: 620px) { .lf-checks { flex-direction: column; } .lf-check { width: 100%; } .lf-submit { width: 100%; } }

/* Closing guarantee + form block (services page) */
.closing-block { max-width: 900px; margin: 0 auto; }
.closing-block .offer-grid { margin-top: 0; }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   BLOG CARD  ·  templates/blog-card.html
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); overflow: hidden; transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), border-color 0.26s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.blog-card-link { display: flex; flex-direction: column; height: 100%; padding: 26px 24px 24px; }
.blog-cat { display: inline-flex; align-self: flex-start; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; color: var(--surgical-teal); background: var(--tint-teal); border: 1px solid rgba(15,157,143,0.22); }
.blog-cat--cart { color: #9a4a12; background: rgba(255,90,31,0.09); border-color: rgba(255,90,31,0.24); }
.blog-cat--membership { color: #8a6207; background: rgba(245,179,36,0.12); border-color: rgba(245,179,36,0.3); }
.blog-cat--performance { color: #123a6b; background: rgba(19,34,74,0.07); border-color: rgba(19,34,74,0.16); }
.blog-card-title { font-size: 1.14rem; font-weight: 600; letter-spacing: -0.022em; line-height: 1.32; margin: 0 0 10px; color: var(--ink); }
.blog-card:hover .blog-card-title { color: var(--surgical-teal); }
.blog-card-excerpt { font-size: 0.98rem; color: var(--slate); margin: 0 0 18px; line-height: 1.6; flex: 1; }
.blog-card-meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--slate-3); }

/* Category filter pills on the blog archive */
.cat-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.cat-pill { padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 0.96rem; font-weight: 500; transition: border-color 0.18s ease, background 0.18s ease; }
.cat-pill:hover { border-color: var(--slate-3); }
.cat-pill.is-active { border-color: rgba(15,157,143,0.5); background: var(--tint-teal); color: var(--ink); font-weight: 600; }

/* ==========================================================================
   TESTIMONIAL  ·  templates/testimonial-block.html
   ========================================================================== */
.quote-block { margin: 0; padding: 30px 32px; border-left: 3px solid var(--surgical-teal); background: var(--mist); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.quote-text { font-family: var(--font-display); font-size: 1.14rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); line-height: 1.55; margin: 0 0 14px; }
.quote-cite { font-family: var(--font-mono); font-size: 0.82rem; color: var(--slate-2); font-style: normal; }

.demo-showcase { /* placeholder section — un-hide when real demos exist */ }

/* ==========================================================================
   DEMO SHOWCASE  ·  templates/demo-showcase.html  (hidden by default)
   ========================================================================== */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-item { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.demo-thumb { aspect-ratio: 16 / 10; background: var(--cloud-2); border-bottom: 1px solid var(--line); }
.demo-item figcaption { padding: 22px 22px 24px; }
.demo-item h3, .demo-item h4 { margin: 0 0 8px; font-size: 1.05rem; }
.demo-item p { margin: 0; font-size: 0.96rem; }

/* ==========================================================================
   PROSE  ·  blog article body
   ========================================================================== */
.prose { max-width: 72ch; margin: 0 auto; }
.prose > * + * { margin-top: 1.1em; }
.prose > .takeaways + .post-toc { margin-top: 22px; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin: 2em 0 0.6em; }
.prose h3 { font-size: clamp(1.14rem, 1.6vw, 1.32rem); margin: 1.6em 0 0.5em; }
.prose p, .prose li { font-size: 1.08rem; line-height: 1.75; color: var(--slate); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--surgical-teal); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-2); }
.prose blockquote { margin: 0; padding-left: 22px; border-left: 3px solid var(--surgical-teal); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ==========================================================================
   BLOG POST — takeaways, table of contents, meta, CTA
   ========================================================================== */
.post-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 20px 0 0; font-family: var(--font-mono); font-size: 0.82rem; color: var(--slate-2); }
.post-meta .blog-cat { margin-bottom: 0; }

.takeaways { border: 2px solid rgba(15,157,143,0.3); background: var(--tint-teal); border-radius: var(--radius-lg); padding: 26px 28px; margin: 0 0 34px; }
.prose .takeaways-title, .takeaways-title { font-family: var(--font-mono); font-size: 0.8rem; margin-top: 0; letter-spacing: 0.1em; text-transform: uppercase; color: var(--surgical-teal); margin: 0 0 16px; font-weight: 600; }
.takeaways ul { display: flex; flex-direction: column; gap: 13px; padding: 0; margin: 0; }
.prose .takeaways ul, .takeaways ul { padding-left: 0; }
.prose .takeaways li, .takeaways li { list-style: none; position: relative; padding-left: 28px; font-size: 1.04rem; line-height: 1.6; color: var(--ink); list-style: none; }
.takeaways li::before { content: ''; position: absolute; left: 0; top: 8px; width: 12px; height: 7px; border-left: 2.4px solid var(--surgical-teal); border-bottom: 2.4px solid var(--surgical-teal); transform: rotate(-45deg); }

.post-toc { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--mist); padding: 22px 26px; margin: 0 0 38px; }
.post-toc-title { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-2); margin: 0 0 12px; font-weight: 600; }
.prose .post-toc ol, .post-toc ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 9px; }
.post-toc li { list-style: decimal; font-size: 1rem; color: var(--slate); }
.post-toc a { color: var(--surgical-teal); font-weight: 500; text-decoration: none; }
.post-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

.post-cta { margin-top: 40px !important; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--cloud); border-left: 3px solid var(--alert-orange); font-size: 1.06rem; line-height: 1.65; color: var(--ink); }

.prose h2 { scroll-margin-top: 96px; }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--cloud); padding: 2px 6px; border-radius: 5px; color: var(--ink); }

.blog-empty { text-align: center; color: var(--slate-2); font-size: 1.05rem; margin: 40px 0 0; }
.blog-card[hidden] { display: none; }
button.cat-pill { font-family: inherit; cursor: pointer; }

@media (max-width: 620px) {
  .takeaways, .post-toc { padding: 20px 20px; }
  .post-cta { padding: 22px 20px; }
}

/* ==========================================================================
   LEAD FORM — TWO-STEP REVEAL
   Step 1 banks the email. Step 2 is optional and slides in afterwards.
   ========================================================================== */
.lf-step[hidden] { display: none; }
.lf-step--reveal { animation: lf-reveal 0.42s var(--ease) both; }
@keyframes lf-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.lf-confirm {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  margin: 0 0 22px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  letter-spacing: -0.02em; color: var(--surgical-teal); text-align: center;
}
.lf-confirm svg { flex: 0 0 auto; }
.lf-confirm--done { margin-bottom: 0; }

.lf-actions { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.lf-skip { background: none; border: 0; padding: 8px 4px; font-family: inherit; font-size: 0.95rem; font-weight: 500; color: var(--slate-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lf-skip:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .lf-step--reveal { animation: none; } }
@media (max-width: 620px) { .lf-actions { flex-direction: column; gap: 10px; } .lf-actions .btn { width: 100%; } }

/* Honeypot — off-screen rather than display:none, which some bots detect */
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer column labels are h2 for correct outline; keep the small look. */
.footer-col h2 { font-size: 0.68rem; }

.p-step h3 { font-size: 1.02rem; }
.pcard h3 { font-size: .82rem; }
