/* ==========================================================================
   Zylous Digital — Home v2 ("human-made" variation)
   Paper & ink, one accent, editorial type, rules instead of cards.
   ========================================================================== */

:root {
  --paper: #F7F5F0;
  --paper-2: #EFEBE3;
  --ink: #14213D;          /* navy from the logo, deepened for text */
  --ink-2: #3B4558;
  --muted: #667085;
  --rule: #DCD6CA;
  --rule-strong: #C9C1B2;
  --teal: #0E7479;         /* logo teal, darkened to pass AA on paper */
  --teal-ink: #0A5A5E;
  --marker: #BFE6DC;       /* highlighter */
  --navy: #0F1C38;
  --error: #B42318;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --hand: "Caveat", "Segoe Print", cursive;

  --wrap: 1180px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 400; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type ------------------------------------------------------------------- */
.display {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.03; letter-spacing: -0.025em;
  text-wrap: balance;
}
.h2 { font-family: var(--serif); font-optical-sizing: auto; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.lede { font-size: 1.16rem; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.label { font: 500 .78rem/1.4 var(--mono); color: var(--muted); letter-spacing: .02em; }
em.serif { font-family: var(--serif); font-style: italic; }

/* Hand-drawn highlighter behind a phrase */
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark svg { position: absolute; left: -2%; right: -2%; bottom: .02em; width: 104%; height: .42em; z-index: -1; overflow: visible; }

/* Links & buttons (exactly two button styles) ------------------------------ */
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: .22em; text-decoration-thickness: 1.5px; transition: text-decoration-color .15s; }
.link:hover { text-decoration-color: var(--teal); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border-radius: 6px; border: 1.5px solid var(--ink);
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, transform .08s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--teal-ink); border-color: var(--teal-ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .7; cursor: progress; }
.on-dark .btn--solid { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.on-dark .btn--solid:hover { background: var(--marker); border-color: var(--marker); }
.on-dark .btn--line { color: var(--paper); border-color: rgba(247,245,240,.5); }
.on-dark .btn--line:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }

/* Header ----------------------------------------------------------------- */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.hdr__logo img { height: 42px; width: auto; }
.hdr__nav { display: none; }
.hdr__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hdr__phone { display: none; font: 500 .95rem var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; }
.hdr__phone:hover { color: var(--teal); }
.hdr__cta { display: none; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--rule-strong); border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--ink); }

.nav { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav > li > a, .nav > li > button {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border: 0; background: none; border-radius: 6px;
  font: 500 .95rem var(--sans); color: var(--ink); text-decoration: none; cursor: pointer;
}
.nav > li > a:hover, .nav > li > button:hover, .nav > li:focus-within > button { background: var(--paper-2); }
.nav svg { width: 13px; height: 13px; transition: transform .15s; }
.nav > li:hover > button svg, .nav > li:focus-within > button svg { transform: rotate(180deg); }

/* Menu uses the same model as the page: found / chosen / customers */
.menu {
  position: absolute; top: calc(100% + 12px); left: -12px; width: min(860px, 90vw);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 8px;
  box-shadow: 0 18px 40px -24px rgba(20,33,61,.35);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav > li:hover > .menu, .nav > li:focus-within > .menu { opacity: 1; visibility: visible; transform: none; }
.menu__col { padding: 22px 22px 24px; }
.menu__col + .menu__col { border-left: 1px solid var(--rule); }
.menu__col .label { display: block; margin-bottom: 10px; }
.menu__col ul { list-style: none; margin: 0; padding: 0; }
.menu__col a { display: block; padding: 5px 0; font-size: .93rem; color: var(--ink); text-decoration: none; }
.menu__col a:hover { color: var(--teal); }
.menu__col .sub { padding-left: 12px; font-size: .88rem; color: var(--ink-2); }

/* Drawer (mobile) — hooks shared with main.js */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(15,28,56,.45); opacity: 0; transition: opacity .2s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 90vw); background: var(--paper); transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--rule); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.drawer details { border-bottom: 1px solid var(--rule); }
.drawer summary, .drawer__link { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; text-decoration: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 16px; height: 16px; transition: transform .15s; }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer details ul { list-style: none; margin: 0 0 12px; padding: 0; }
.drawer details a { display: block; padding: 7px 0; color: var(--ink-2); text-decoration: none; }
.drawer__link { border-bottom: 1px solid var(--rule); }
.drawer__foot { padding: 16px 20px 22px; display: grid; gap: 10px; border-top: 1px solid var(--rule); }

/* Hero ------------------------------------------------------------------- */
.hero { padding: 44px 0 56px; }
.hero__grid { display: grid; gap: 44px; }
.hero .label { margin-bottom: 22px; }
.hero .display { margin-bottom: 26px; max-width: 11.5em; }
.hero .lede { margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero__actions .link { font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; font-size: 1rem; }
.hero__proof { list-style: none; margin: 34px 0 0; padding: 0; max-width: 34em; border-top: 1px solid var(--rule); }
.hero__proof li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--rule); font-size: .98rem; color: var(--ink); }

/* Shared hand-drawn tick for checklists */
.hero__proof li::before, .includes li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }

/* Form: plain, bordered, obviously fillable */
.form { background: #fff; border: 1px solid var(--rule-strong); border-radius: 8px; padding: 26px 22px 24px; }
.form h2 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; margin-bottom: 6px; }
.form > p { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.fields { display: grid; gap: 14px; }
.field label { display: block; font-weight: 500; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.input {
  width: 100%; min-height: 46px; padding: 11px 13px; background: var(--paper); border: 1.5px solid var(--rule-strong); border-radius: 6px;
  transition: border-color .15s, background .15s;
}
.input::placeholder { color: #9A9EA8; }
.input:hover { border-color: #AFA697; }
.input:focus { outline: none; border-color: var(--ink); background: #fff; }
textarea.input { min-height: 96px; resize: vertical; }
.field__error { display: none; margin: 6px 0 0; font-size: .84rem; color: var(--error); }
.field.has-error .input { border-color: var(--error); background: #FFF7F6; }
.field.has-error .field__error { display: block; }
.form__foot { margin-top: 6px; }
.form__note { margin: 12px 0 0; font-size: .84rem; color: var(--muted); }
.success { padding: 8px 0 4px; }
.success:focus { outline: none; }
.success h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 8px; }
.success p { color: var(--ink-2); }
.success .tick { width: 40px; height: 40px; color: var(--teal); margin-bottom: 14px; }

/* Inner pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule-strong); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.group + .group { margin-top: 56px; }
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 14px; }
.group__head h3 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; }
.group__head p { margin: 0; color: var(--muted); }
.index .row { display: grid; gap: 2px; padding: 15px 4px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.index .row strong { font-weight: 600; font-size: 1.02rem; }
.index .row small { color: var(--muted); font-size: .92rem; }
[id] { scroll-margin-top: 100px; }

/* Documents (privacy, terms) */
.doc { display: grid; gap: 32px; align-items: start; }
.toc { border-top: 1.5px solid var(--ink); padding-top: 14px; font-size: .92rem; }
.toc h2 { font: 500 .8rem var(--mono); color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--teal); text-decoration: underline; }
.prose { max-width: 720px; color: var(--ink-2); }
.prose .updated { display: inline-block; font: 400 .85rem var(--mono); color: var(--muted); margin-bottom: 22px; }
.prose h2 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; color: var(--ink); margin: 40px 0 12px; scroll-margin-top: 100px; }
.prose h3 { font-weight: 600; font-size: 1.02rem; color: var(--ink); margin: 22px 0 8px; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: .2em; }
.prose a:hover { text-decoration-color: var(--teal); }
.prose .callout { background: var(--paper-2); border-radius: 6px; padding: 16px 18px; margin: 20px 0; color: var(--ink); }

/* Contact: Google Maps slot, hidden until embed code is added */
.map-section:has(.map-embed:empty) { display: none; }
.map-embed iframe { width: 100%; min-height: 380px; border: 0; border-radius: 8px; display: block; }

/* Blog */
.hero__sub { font-size: 1.3rem; color: var(--teal-ink); margin: -10px 0 14px; }
.hero__picture img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--rule); }
.blog-layout { display: grid; gap: 40px; align-items: start; }
.blog-aside { display: grid; gap: 24px; }
.aside-box { border-top: 1.5px solid var(--ink); padding-top: 14px; }
.aside-box h2 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 10px; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { border-bottom: 1px solid var(--rule); }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; color: var(--ink); text-decoration: none; }
.cat-list a:hover { color: var(--teal); }
.cat-list .count { font: 500 .8rem var(--mono); color: var(--muted); }
.cards { display: grid; gap: 28px; }
.card { display: grid; gap: 8px; align-content: start; color: var(--ink); text-decoration: none; }
.card__img { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; border: 1px solid var(--rule); margin-bottom: 4px; }
.card__img img, .card__img picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.card h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
.card p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.card:hover h3 { color: var(--teal-ink); text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 6px; border: 1.5px solid var(--rule-strong); color: var(--ink); text-decoration: none; font-weight: 500; }
.pagination a:hover { border-color: var(--ink); }
.pagination [aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font: 400 .88rem var(--mono); color: var(--muted); margin: 6px 0 28px; }
.article-meta b { color: var(--ink); font-weight: 500; }
.article-hero img { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--rule); }
.comments { margin-top: 56px; padding-top: 32px; border-top: 1.5px solid var(--ink); }
.comment { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.comment__avatar { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); font: 500 .85rem var(--mono); }
.comment__head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 4px; }
.comment__name { font-weight: 600; color: var(--ink); }
.comment__date { font: 400 .8rem var(--mono); color: var(--muted); }
.comment__tag { font: 500 .72rem var(--mono); color: var(--muted); border: 1px solid var(--rule-strong); padding: 1px 6px; border-radius: 4px; }
.comment p { margin: 0; font-size: .96rem; color: var(--ink-2); }
.comment--reply { margin-left: 54px; }
.comment--reply .comment__avatar { background: var(--ink); color: var(--paper); }
.comments__note { font-size: .88rem; color: var(--muted); margin-top: 12px; }
.comment-form { margin-top: 36px; }
.comment-form .fields { max-width: 560px; }

/* Platforms strip */
.platforms { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 18px 0; }
.platforms p { margin: 0; font: 400 .98rem/1.7 var(--sans); color: var(--muted); text-wrap: pretty; }
.platforms b { font-weight: 600; color: var(--ink); }

/* Sections --------------------------------------------------------------- */
.sec { padding: 72px 0; }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec__head { margin-bottom: 40px; max-width: 40em; }
.sec__head .h2 { margin-bottom: 14px; }
.sec__head p { font-size: 1.08rem; }

/* Three jobs */
.jobs { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.job { padding: 24px 0 28px; border-bottom: 1px solid var(--rule); }
.job__num { font: 500 .8rem var(--mono); color: var(--teal); }
.job h3 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; margin: 6px 0 10px; }
.job > p { font-size: .98rem; margin-bottom: 16px; max-width: 30em; }
.job ul { list-style: none; margin: 0; padding: 0; }
.job li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-weight: 500; }
.job li a span { color: var(--muted); transition: transform .15s, color .15s; }
.job li a:hover { color: var(--teal); }
.job ul.plain li { padding: 9px 0; border-top: 1px solid var(--rule); color: var(--ink); font-size: .96rem; }
.job li a:hover span { color: var(--teal); transform: translateX(3px); }

/* Service index (paid + SEO) */
.split { display: grid; gap: 32px; }
.split__intro .h2 { margin-bottom: 16px; }
.split__intro p { max-width: 28em; }
.split__intro .btn { margin-top: 8px; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.index a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline;
  padding: 15px 4px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none;
  transition: background .15s, padding .15s;
}
.index a strong { font-weight: 600; font-size: 1.02rem; }
.index a small { grid-column: 1; color: var(--muted); font-size: .92rem; }
.index a span { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--muted); transition: transform .15s, color .15s; }
.index a:hover { background: var(--paper-2); padding-left: 12px; padding-right: 12px; }
.index a:hover span { color: var(--teal); transform: translateX(3px); }

/* AI answers */
.ai__grid { display: grid; gap: 44px; align-items: start; }
.ai__steps { margin: 26px 0 30px; max-width: 32em; }
.ai__steps p { margin: 0 0 14px; }
.ai__steps b { color: var(--ink); font-weight: 600; }
.chat { position: relative; background: #fff; border: 1px solid var(--rule-strong); border-radius: 8px; padding: 22px; font-size: .96rem; }
.chat__cap { display: block; margin-bottom: 14px; }
.chat__q { font-family: var(--mono); font-size: .9rem; color: var(--ink); background: var(--paper); border-radius: 6px; padding: 12px 14px; margin-bottom: 16px; }
.chat__a p { color: var(--ink-2); }
.chat__src { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chat__src span { font: 500 .78rem var(--mono); padding: 5px 9px; border: 1px solid var(--rule-strong); border-radius: 4px; color: var(--muted); }
.chat__src span.you { border-color: var(--teal); color: var(--teal-ink); background: #EAF6F3; }
.note { font: 500 1.35rem/1.1 var(--hand); color: var(--teal-ink); display: flex; align-items: flex-end; gap: 6px; margin-top: 14px; }
.note svg { width: 54px; height: 40px; color: var(--teal-ink); flex: none; }

/* 90 days */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1.5px solid var(--ink); }
.timeline li { padding: 20px 0 22px; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.timeline .when { font: 500 .85rem var(--mono); color: var(--teal); }
.timeline h3 { font-family: var(--serif); font-size: 1.45rem; }
.timeline p { margin: 0; font-size: .98rem; }

/* Letter */
.letter__grid { display: grid; gap: 48px; }
.letter { max-width: 34em; font-size: 1.1rem; line-height: 1.7; color: var(--ink); }
.sign { margin-top: 22px; }
.sign__hand { font: 500 2rem/1 var(--hand); color: var(--ink); }
.sign small { display: block; font: 400 .85rem var(--mono); color: var(--muted); margin-top: 6px; }
.includes { background: var(--paper-2); border-radius: 8px; padding: 26px 24px; align-self: start; }
.includes h3 { margin-bottom: 14px; }
.includes ul { list-style: none; margin: 0; padding: 0; }
.includes li { padding: 10px 0 10px 26px; border-top: 1px solid var(--rule-strong); position: relative; font-size: .98rem; color: var(--ink); }
.includes > p { font-size: .95rem; color: var(--ink-2); margin: -6px 0 14px; }

/* Why us: principles as plain paragraphs with a bold lead */
.principles { max-width: 34em; }
.principles p { margin: 0; padding: 16px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.principles p:last-child { border-bottom: 1px solid var(--rule); }
.principles b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* Who we help: six short descriptions under ruled heads */
.aud-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.aud-grid li { padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.aud-grid h3 { font-family: var(--serif); font-size: 1.4rem; line-height: 1.15; margin-bottom: 6px; }
.aud-grid p { margin: 0; font-size: .98rem; }

/* Who we help */
.who__line { font-family: var(--serif); font-size: clamp(1.45rem, 3.2vw, 2.2rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); max-width: 26em; margin: 0; text-wrap: pretty; }
.who__line span { color: var(--muted); }

/* Notes (blog) */
.notes__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.notes { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.notes a { display: grid; gap: 4px; padding: 20px 4px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: background .15s, padding .15s; }
.notes a:hover { background: var(--paper-2); padding-left: 12px; padding-right: 12px; }
.notes h3 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; }
.notes p { margin: 4px 0 0; font-size: .95rem; color: var(--ink-2); }
.menu__note { display: block; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.menu__note b { display: block; font-weight: 600; }
.menu__note small { color: var(--muted); font-size: .86rem; }
.menu__note:hover b { color: var(--teal); }
.notes a:hover h3 { color: var(--teal-ink); }

/* FAQ */
.faq { display: grid; gap: 32px; }
.qa { border-top: 1.5px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 1.5rem/1 var(--mono); color: var(--muted); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); color: var(--teal); }
.qa summary:hover { color: var(--teal-ink); }
.qa details p { margin: 0; padding: 0 0 20px; max-width: 42em; }

/* Closing */
.close { background: var(--navy); color: #C9D0DD; padding: 76px 0 80px; }
.close .h2 { color: var(--paper); margin-bottom: 18px; }
.close__phone { display: inline-block; font-family: var(--serif); font-size: clamp(2.2rem, 7vw, 4.4rem); line-height: 1; letter-spacing: -0.02em; color: var(--paper); text-decoration: none; margin: 6px 0 22px; border-bottom: 2px solid rgba(191,230,220,.35); }
.close__phone:hover { border-bottom-color: var(--marker); }
.close p { max-width: 34em; }
.close__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Footer */
.foot { padding: 56px 0 0; font-size: .95rem; }
.foot__grid { display: grid; gap: 36px; padding-bottom: 40px; }
.foot__brand img { height: 46px; width: auto; margin-bottom: 14px; }
.foot__brand p { max-width: 22em; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.foot h4 { font: 500 .78rem var(--mono); color: var(--muted); margin: 0 0 12px; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { color: var(--ink); text-decoration: none; }
.foot ul a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: .2em; }
.foot__base { border-top: 1px solid var(--rule); padding: 20px 0 96px; display: flex; flex-direction: column; gap: 10px; font-size: .85rem; color: var(--muted); }
.foot__base nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot__base a { color: var(--muted); }

/* Mobile bottom bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule-strong); }
.bar .btn { min-height: 46px; padding: 0 10px; font-size: .95rem; }

/* Callback modal — hooks shared with main.js */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .15s, visibility .15s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__scrim { position: absolute; inset: 0; background: rgba(15,28,56,.5); }
.modal__card { position: relative; width: 100%; max-width: 400px; background: var(--paper); border-radius: 8px; padding: 28px 24px 24px; border: 1px solid var(--rule-strong); }
.modal__close { position: absolute; top: 12px; right: 12px; }
.modal h2 { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 6px; }
.modal__card > p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }

/* Breakpoints ------------------------------------------------------------ */
@media (min-width: 640px) {
  .fields--2 { grid-template-columns: 1fr 1fr; }
  .fields--2 .full { grid-column: 1 / -1; }
  .notes a { grid-template-columns: 150px 1fr auto; align-items: baseline; gap: 20px; }
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .sec { padding: 96px 0; }
  .form { padding: 30px 28px 28px; }
  .jobs { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 32px; }
  .job { border-top: 1.5px solid var(--ink); border-bottom: 0; }
  .timeline { grid-template-columns: repeat(4, 1fr); border-top: 0; gap: 24px; }
  .timeline li { border-top: 1.5px solid var(--ink); border-bottom: 0; align-content: start; }
  .aud-grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; border-top: 0; }
  .aud-grid li { border-top: 1.5px solid var(--ink); border-bottom: 0; }
  .foot__grid { grid-template-columns: 1fr 2fr; }
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
  .foot__base { flex-direction: row; justify-content: space-between; padding-bottom: 28px; }
  .bar { display: none; }
  .hdr__phone { display: inline; }
  .hdr__call { display: none; }
}
@media (min-width: 1024px) {
  .hdr .wrap { height: 76px; }
  .hdr__logo img { height: 48px; }
  .hdr__nav { display: block; }
  .hdr__cta { display: inline-flex; }
  .burger { display: none; }
  .hero { padding: 72px 0 88px; }
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 72px; align-items: start; }
  .hero__grid > div:first-child { padding-top: 24px; }
  .split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; }
  .split__intro { position: sticky; top: 110px; align-self: start; }
  .index { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 0; }
  .index li { border-top: 1.5px solid transparent; }
  .index li:nth-child(-n+2) { border-top-color: var(--ink); }
  .group .index { grid-template-columns: repeat(3, 1fr); }
  .group .index li:nth-child(3) { border-top-color: var(--ink); }
  .group .index a, .group .index .row { height: 100%; align-content: start; }
  .ai__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .letter__grid { grid-template-columns: 1.3fr .9fr; gap: 80px; }
  .doc { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; }
  .blog-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; }
  .blog-aside { position: sticky; top: 100px; }
  .cards { grid-template-columns: repeat(2, 1fr); column-gap: 32px; row-gap: 40px; }
  .toc { position: sticky; top: 100px; }
  .aud-grid { grid-template-columns: repeat(3, 1fr); }
  .faq { grid-template-columns: .7fr 1.3fr; gap: 80px; }
  .close__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
