/*
Theme Name: YashodhanTek Agentic
Theme URI: https://yashodhantek.com/
Author: YashodhanTek Private Limited
Description: Agentic AI services theme for YashodhanTek. On activation it creates all pages, the main menu and the home page. Re-run from Appearance → YTek Setup.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: ytek
*/

/* ===== Tokens ===== */
:root {
  /* Production palette (yashodhantek.com). Primary, dark and accent can be overridden in Customize. */
  --brand: #833ca3;          /* YashodhanTek purple */
  --navy: #174862;           /* deep teal-blue */
  --accent: #48ae9f;         /* teal */
  --ocean: #318ca7;          /* ocean blue */
  --ink: #211e1e;
  --slate: #6a6a6a;
  --paper: #f7f7f8;
  --surface: #ffffff;
  --rule: #dedede;
  --rule-soft: #ececec;

  --brand-ink: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-wash: color-mix(in srgb, var(--brand) 7%, #fff);
  --brand-line: color-mix(in srgb, var(--brand) 25%, #fff);
  --brand-focus: color-mix(in srgb, var(--brand) 20%, transparent);
  --navy-2: color-mix(in srgb, var(--navy) 85%, #fff);
  --navy-deep: color-mix(in srgb, var(--navy) 75%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 60%, #fff);
  --on-dark: #e2ecf0;
  --on-dark-2: #b3c9d3;
  --on-dark-3: #8eabb8;
  --pass: #2f9e8c;
  --wait: #c08a2b;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-head: "Rubik", "Helvetica Neue", Arial, sans-serif;
  --font: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 3.2vw, 2.6rem);
  --step-4: clamp(2.5rem, 5.4vw, 4.4rem);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.6;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
  
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .45em; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 500; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(72px, 9vw, 128px); }
.band--surface { background: var(--surface); border-block: 1px solid var(--rule-soft); }
.band--navy { background: var(--navy); color: var(--on-dark-2); }
.band--navy h2, .band--navy h3 { color: #fff; }

.intro { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 64px); }
.intro p { font-size: var(--step-1); color: var(--slate); line-height: 1.5; }
.band--navy .intro p { color: var(--on-dark-2); }
.kicker { font-size: var(--step--1); font-weight: 500; color: var(--brand); margin-bottom: 14px; display: block; }
.band--navy .kicker { color: var(--accent-soft); }
.muted { color: var(--slate); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  font: 500 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-ink); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--brand-wash); color: var(--navy); }
.btn--sm { height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.text-link { font-weight: 500; text-decoration: none; color: var(--brand); }
.text-link:hover { text-decoration: underline; }

/* ===== Header + mega menu ===== */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(247,247,248,.88);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img, .custom-logo { max-height: 40px; width: auto; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand__name b { font-weight: 600; color: var(--brand); }

.nav { display: flex; align-items: center; flex: 1; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav li { position: relative; }
.nav > ul > li > a {
  display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none; font-size: .97rem; font-weight: 450;
}
.nav > ul > li > a:hover, .nav > ul > li:focus-within > a { background: rgba(33,30,30,.05); }
.nav .menu-item-has-children > a::after {
  content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .55; margin-left: 2px;
}
.nav .sub-menu {
  list-style: none; margin: 0; position: absolute; top: calc(100% + 10px); left: -12px;
  width: min(720px, 90vw); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md);
  box-shadow: 0 24px 60px -20px rgba(23,72,98,.22), 0 2px 6px rgba(23,72,98,.04);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav > ul > li:last-child > .sub-menu { left: auto; right: -12px; }
.nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { display: block; padding: 12px 14px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .97rem; }
.nav .sub-menu a:hover { background: var(--paper); }
.nav .sub-menu .menu-desc { display: block; font-weight: 400; font-size: .86rem; color: var(--slate); margin-top: 2px; line-height: 1.4; }
.nav .sub-menu:not(:has(> li:nth-child(5))) { grid-template-columns: 1fr; width: 320px; }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; margin-left: auto; height: 40px; padding: 0 14px; border: 1px solid var(--rule); background: var(--surface); border-radius: var(--r-sm); font: 500 .95rem var(--font); color: var(--ink); cursor: pointer; }

@media (max-width: 1080px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    position: fixed; inset: 72px 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 12px var(--gutter) 32px; overflow-y: auto; display: none;
  }
  .nav.is-open { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav > ul > li > a { height: auto; padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--rule-soft); border-radius: 0; }
  .nav .menu-item-has-children > a::after { display: none; }
  .nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; width: auto !important; grid-template-columns: 1fr !important; padding: 4px 0 8px; }
  .nav .sub-menu a { padding: 10px 4px; }
  .nav__end { margin: 24px 0 0; flex-direction: column; align-items: stretch; }
}

/* ===== Hero ===== */
.hero { padding-block: clamp(56px, 7vw, 96px) clamp(56px, 7vw, 88px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 15ch; font-size: clamp(2.5rem, 5vw, 4.1rem); }
.hero__lede { font-size: var(--step-1); color: var(--slate); max-width: 46ch; line-height: 1.5; }
.hero__note { margin-top: 28px; font-size: var(--step--1); color: var(--slate); display: flex; gap: 18px; flex-wrap: wrap; }
.hero__note span { display: inline-flex; align-items: center; gap: 8px; }
.hero__note svg { color: var(--pass); flex: none; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } .hero h1 { max-width: 16ch; } }

/* ===== Agent console (signature component) ===== */
.console {
  background: var(--navy); color: var(--on-dark); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(23,72,98,.40); border: 1px solid var(--navy-deep);
}
.console__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.console__lights { display: flex; gap: 6px; }
.console__lights i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.console__title { font-size: .85rem; color: var(--on-dark-3); }
.console__replay { margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.16); color: var(--on-dark-2); height: 30px; padding: 0 12px; border-radius: var(--r-sm); font: 500 .8rem var(--font); cursor: pointer; }
.console__replay:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.console__tabs { display: flex; gap: 4px; padding: 12px 14px 0; overflow-x: auto; scrollbar-width: none; }
.console__tabs::-webkit-scrollbar { display: none; }
.console__tab {
  flex: none; background: transparent; border: 0; color: var(--on-dark-3); font: 500 .86rem var(--font);
  padding: 9px 12px; border-radius: var(--r-sm) var(--r-sm) 0 0; cursor: pointer; border-bottom: 2px solid transparent;
}
.console__tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--accent); }
.console__tab:hover { color: #fff; }
.console__body { padding: 18px; min-height: 392px; border-top: 1px solid rgba(255,255,255,.08); }
.console__ask { background: rgba(255,255,255,.06); border-radius: var(--r-md); padding: 14px 16px; font-size: 1rem; color: #fff; margin-bottom: 16px; }
.console__ask small { display: block; color: var(--on-dark-3); font-size: .78rem; margin-bottom: 4px; }
.trace { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.trace::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px; background: rgba(255,255,255,.12); }
.trace li {
  position: relative; padding: 0 0 14px 34px; font-family: var(--mono); font-size: .8rem; line-height: 1.5; color: var(--on-dark-2);
  opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease;
}
.trace li.is-in { opacity: 1; transform: none; }
.trace li::before {
  content: ""; position: absolute; left: 4px; top: 3px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--navy); border: 1.5px solid var(--accent);
}
.trace li.ok::before { border-color: var(--pass); background: radial-gradient(circle, var(--pass) 0 3.5px, var(--navy) 4px); }
.trace li.hold::before { border-color: var(--wait); background: radial-gradient(circle, var(--wait) 0 3.5px, var(--navy) 4px); }
.trace b { font-family: var(--font); font-weight: 600; font-size: .9rem; color: #fff; display: block; margin-bottom: 1px; }
.trace .tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.trace .tools span { border: 1px solid rgba(255,255,255,.14); border-radius: 4px; padding: 1px 7px; font-size: .74rem; color: var(--on-dark); }
.console__result {
  margin-top: 4px; background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 14px 16px; font-size: .95rem;
  opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease;
}
.console__result.is-in { opacity: 1; transform: none; }
.console__meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.08); }
.console__meta div { padding: 12px 18px; border-right: 1px solid rgba(255,255,255,.08); }
.console__meta div:last-child { border-right: 0; }
.console__meta dt { font-size: .74rem; color: var(--on-dark-3); }
.console__meta dd { margin: 0; font-family: var(--mono); font-size: .88rem; color: #fff; }
@media (max-width: 520px) { .console__body { min-height: 440px; } .console__meta div { padding: 10px 12px; } }
@media (prefers-reduced-motion: reduce) {
  .trace li, .console__result { transition: none; }
  .nav .sub-menu { transition: none; }
}

/* ===== Logos ===== */
.logos { border-top: 1px solid var(--rule); padding-block: 28px; }
.logos__inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; }
.logos__label { font-size: var(--step--1); color: var(--slate); }
.logos__name { font-family: var(--font-head); font-weight: 500; font-size: 1.12rem; letter-spacing: -0.02em; color: #7d7d7d; }

/* ===== Pilot vs production comparison ===== */
.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.compare__col { padding: clamp(24px, 3vw, 40px); }
.compare__col + .compare__col { border-left: 1px solid var(--rule); background: linear-gradient(180deg, var(--brand-wash), var(--surface) 60%); }
.compare h3 { font-size: 1.1rem; margin-bottom: 18px; }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { padding: 14px 0; border-top: 1px solid var(--rule-soft); display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.compare li:first-child { border-top: 0; }
.compare li svg { margin-top: 4px; }
.compare__col:first-child svg { color: #a6a6a6; }
.compare__col + .compare__col svg { color: var(--brand); }
.compare li strong { display: block; font-weight: 600; }
.compare li span { color: var(--slate); font-size: .96rem; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } .compare__col + .compare__col { border-left: 0; border-top: 1px solid var(--rule); } }

/* ===== Services bento ===== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 28px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease;
}
.tile:hover { border-color: var(--brand); color: var(--ink); }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--slate); margin: 0; font-size: .98rem; }
.tile__link { margin-top: auto; padding-top: 22px; font-weight: 500; font-size: .95rem; color: var(--brand); }
.tile--feature { grid-column: span 4; grid-row: span 2; background: var(--navy); border-color: var(--navy); color: var(--on-dark-2); padding: 36px; }
.tile--feature h3 { color: #fff; font-size: var(--step-2); max-width: 26ch; }
.tile--feature p { color: var(--on-dark-2); max-width: 46ch; font-size: 1.05rem; }
.tile--feature:hover { border-color: var(--accent); color: var(--on-dark-2); }
.tile--feature .tile__link { color: var(--accent-soft); }
.tile--wide { grid-column: span 3; }
.orchestra { margin: 28px 0 8px; display: grid; grid-template-columns: auto 1fr; gap: 14px 22px; align-items: center; max-width: 520px; }
.orchestra__node { font-size: .85rem; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-sm); padding: 8px 12px; color: #fff; text-align: center; }
.orchestra__node--lead { grid-row: span 3; align-self: stretch; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.orchestra__lane { display: grid; grid-template-columns: 1fr 130px; gap: 12px; align-items: center; position: relative; }
.orchestra__lane::before { content: ""; position: absolute; left: -22px; top: 50%; width: 22px; height: 1px; background: rgba(255,255,255,.3); }
.orchestra__lane .orchestra__node { text-align: left; }
.orchestra__tool { font-family: var(--mono); font-size: .72rem; color: var(--on-dark-2); white-space: nowrap; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile--wide { grid-column: span 1; } .tile--feature { grid-column: span 2; grid-row: auto; } }
@media (max-width: 620px) { .orchestra__lane { grid-template-columns: 1fr; } .btn-row .btn { flex: 1 1 100%; } .bento { grid-template-columns: 1fr; } .tile, .tile--wide, .tile--feature { grid-column: span 1; } .orchestra__tool { display: none; } }

/* ===== Delivery timeline (a real sequence) ===== */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; counter-reset: phase; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 1px; background: rgba(255,255,255,.18); }
.timeline li { position: relative; padding: 48px 20px 0 0; counter-increment: phase; }
.timeline li::before {
  content: counter(phase); position: absolute; top: 0; left: 0; width: 31px; height: 31px; border-radius: 50%;
  display: grid; place-items: center; font-size: .85rem; font-weight: 600; background: var(--navy); color: #fff; border: 1px solid rgba(255,255,255,.3);
}
.timeline li:last-child::before { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.timeline h3 { font-size: 1.15rem; margin-bottom: 2px; }
.timeline .when { font-size: .85rem; color: var(--accent-soft); display: block; margin-bottom: 10px; }
.timeline p { font-size: .95rem; color: var(--on-dark-2); margin: 0; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { left: 15px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline li { padding: 0 0 0 52px; }
}

/* ===== Industry tabs ===== */
.tabs { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.tabs__list { display: flex; flex-direction: column; border-left: 1px solid var(--rule); }
.tabs__btn {
  text-align: left; background: none; border: 0; border-left: 2px solid transparent; margin-left: -1px;
  padding: 12px 18px; font: 500 1.02rem var(--font); color: var(--slate); cursor: pointer;
}
.tabs__btn:hover { color: var(--ink); }
.tabs__btn[aria-selected="true"] { color: var(--ink); border-left-color: var(--brand); }
.tabs__panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: clamp(24px, 3vw, 40px); }
.tabs__panel[hidden] { display: none; }
.tabs__panel h3 { font-size: var(--step-2); }
.usecases { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule-soft); }
.usecases li { padding: 18px 18px 18px 0; }
.usecases li + li { padding-left: 18px; border-left: 1px solid var(--rule-soft); }
.usecases strong { display: block; font-weight: 600; margin-bottom: 4px; }
.usecases span { color: var(--slate); font-size: .94rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips span { font-size: .85rem; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; color: var(--slate); background: var(--paper); }
@media (max-width: 860px) {
  .tabs { grid-template-columns: 1fr; }
  .tabs__list { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--rule); scrollbar-width: none; }
  .tabs__btn { flex: none; border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; padding: 10px 14px; }
  .tabs__btn[aria-selected="true"] { border-bottom-color: var(--brand); }
  .usecases { grid-template-columns: 1fr; }
  .usecases li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-soft); }
}

/* ===== Case study ===== */
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.case blockquote { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; color: var(--ink); text-wrap: balance; }
.case cite { display: block; margin-top: 20px; font-style: normal; color: var(--slate); font-size: .95rem; }
.facts { margin: 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--slate); font-size: .92rem; }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } .facts div { grid-template-columns: 110px 1fr; } }

/* ===== Governance ===== */
.governance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.governance div { padding: 28px 24px 0 0; }
.governance div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.1); }
.governance svg { color: var(--accent-soft); margin-bottom: 16px; }
.governance h3 { font-size: 1.1rem; }
.governance p { color: var(--on-dark-2); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .governance { grid-template-columns: 1fr 1fr; row-gap: 28px; } .governance div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .governance { grid-template-columns: 1fr; } .governance div + div { padding-left: 0; border-left: 0; } }

/* ===== Engagement models ===== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.plan { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--rule); }
.plan--recommended { background: var(--brand-wash); }
.plan__flag { align-self: flex-start; font-size: .8rem; font-weight: 500; color: var(--brand-ink); background: #fff; border: 1px solid var(--brand-line); border-radius: 999px; padding: 2px 10px; margin-bottom: 14px; }
.plan h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan__term { color: var(--slate); font-size: .95rem; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; font-size: .97rem; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 1.75px solid var(--brand); border-bottom: 1.75px solid var(--brand); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .plan + .plan { border-left: 0; border-top: 1px solid var(--rule); } }

/* ===== FAQ ===== */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 80px); }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 500; font-size: 1.1rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transition: transform .2s ease; }
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); }
.faq details p { color: var(--slate); padding: 0 40px 22px 0; margin: 0; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* ===== Closing CTA ===== */
.closing { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-ink) 55%, var(--navy) 100%); color: #f3e9f8; border-radius: var(--r-lg); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: end; position: relative; overflow: hidden; }
.closing::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(105deg, transparent 45%, #000 100%); -webkit-mask-image: linear-gradient(105deg, transparent 45%, #000 100%);
}
.closing > * { position: relative; z-index: 1; }
.closing h2 { color: #fff; max-width: 18ch; }
.closing p { max-width: 52ch; margin: 0; font-size: 1.1rem; }
@media (max-width: 760px) { .closing { grid-template-columns: 1fr; align-items: start; } }
.closing-band { padding-block: clamp(48px, 7vw, 96px); }

/* ===== Inner pages ===== */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.crumbs { font-size: var(--step--1); color: var(--slate); margin-bottom: 20px; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 20ch; }
.page-head .lede { font-size: var(--step-1); color: var(--slate); max-width: 58ch; line-height: 1.5; margin: 0; }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 80px); align-items: start; padding-block: clamp(48px, 6vw, 80px); }
.page-layout--single { grid-template-columns: minmax(0, 1fr); }
.aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.aside__card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 24px; }
.aside__card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.aside__card p { font-size: .95rem; color: var(--slate); }
.aside__card .btn { width: 100%; }
.aside__nav { list-style: none; padding: 0; margin: 0; }
.aside__nav a { display: block; padding: 7px 0; text-decoration: none; color: var(--slate); font-size: .95rem; }
.aside__nav a:hover, .aside__nav .is-current a { color: var(--ink); }
.aside__nav .is-current a { font-weight: 600; }
@media (max-width: 980px) { .page-layout { grid-template-columns: 1fr; } .aside { position: static; } }

/* Prose (editor content) */
.prose { max-width: 72ch; }
.page-layout--single .prose { max-width: none; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose .lead { font-size: var(--step-1); color: var(--slate); line-height: 1.55; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0 2em; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 600; color: var(--slate); font-size: .9rem; }
.checklist { list-style: none; padding: 0 !important; margin: 1em 0 1.6em; border-top: 1px solid var(--rule); }
.checklist li { position: relative; padding: 14px 0 14px 32px; margin: 0; border-bottom: 1px solid var(--rule); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 11px; height: 6px; border-left: 1.75px solid var(--brand); border-bottom: 1.75px solid var(--brand); transform: rotate(-45deg); }
.callout { border-left: 2px solid var(--brand); padding: 4px 0 4px 22px; margin: 2em 0; }
.callout p { margin: 0; color: var(--ink); font-size: 1.05rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: .6em 0 1.6em; }
.tags span { border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: .88rem; color: var(--slate); }
.service-block { padding: 32px 0; border-top: 1px solid var(--rule); }
.service-block:first-of-type { border-top: 0; padding-top: 8px; }
.service-block h2 { margin-top: 0; }
.eyebrow { display: block; font-size: var(--step--1); color: var(--brand); font-weight: 500; margin-bottom: 8px; }
.grid { display: grid; gap: 16px; margin: 1.5em 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 24px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
a.card:hover { border-color: var(--brand); color: var(--ink); }
.card h3 { margin: 0 0 6px; }
.card p { color: var(--slate); margin: 0; font-size: .97rem; }
.card__icon { display: none; }
.card__more { margin-top: auto; padding-top: 16px; color: var(--brand); font-weight: 500; font-size: .95rem; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card__date { font-size: .85rem; color: var(--slate); margin-bottom: 10px; }
.post-card img { border-radius: var(--r-sm); margin-bottom: 16px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.pagination { margin-top: 40px; display: flex; gap: 6px; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--rule); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); background: var(--surface); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Forms */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: clamp(22px, 3vw, 36px); }
.form label { display: grid; gap: 6px; font-size: .92rem; font-weight: 500; }
.form input, .form textarea, .form select {
  font: 400 1rem var(--font); color: var(--ink); padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r-sm);
  background: var(--surface); width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:hover, .form textarea:hover, .form select:hover { border-color: #bdbdbd; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-focus); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.form__hp { position: absolute; left: -9999px; }
.form__fine { font-size: .85rem; color: var(--slate); margin: 0; }
.notice { padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: .97rem; }
.notice--ok { background: #e6f6ef; color: #0b6b4b; }
.notice--err { background: #fdecec; color: #9b1c1c; }
.contact-aside { display: grid; gap: 16px; }
.contact-aside .checklist { margin-top: .4em; }
.contact-aside dl { margin: 0; }
.contact-aside dt { font-size: .85rem; color: var(--slate); margin-top: 14px; }
.contact-aside dd { margin: 2px 0 0; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--rule); padding-block: 64px 32px; font-size: .95rem; color: var(--slate); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid p { max-width: 36ch; }
.site-footer h4 { font-size: .95rem; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.01em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--slate); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .88rem; }
.socials { display: flex; gap: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Utilities */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: #fff; padding: 10px 14px; clip: auto; width: auto; height: auto; border-radius: var(--r-sm); }
.alignwide { max-width: var(--max); }
.wp-block-image { margin: 1.6em 0; }
