/* ================================================
   DeepConnects company-voice pages: additions on top of home.css.
   Loaded after home.css. Swaps the clay accent for the logo blue and
   adds the logo, the one-page layout of the homepage and the
   founders block. Backgrounds, fonts, cards and spacing stay exactly as
   they are on the live pages.
   ================================================ */

/* ── Accent: the logo blue ──
   Same selectors and specificity as the tokens in home.css; this file
   loads after it, so these values win in every theme state.
   Light: text accent #2453D8 is 6.0:1 on --bg and 5.5:1 on --bg-alt
   (the exact logo blue #2B5FF0 is 4.5:1 there, too tight for the .7rem
   labels). Fills keep the exact logo blue: white text on it is 5.25:1,
   6.4:1 on the #2453D8 hover.
   Dark: #7FA6FF is 7.3:1 on #1B1A18 and 6.4:1 on cards; fills stay the
   logo blue with white text, as the clay fills did in dark mode. */
:root {
  --accent:   #2453D8;
  --accent-2: #1F4BC8;
  --cyan:     #2453D8;
  --accent-fill:       #2B5FF0;
  --accent-fill-hover: #2453D8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent:   #7FA6FF;
    --accent-2: #9DBBFF;
    --cyan:     #7FA6FF;
  }
}
:root[data-theme="dark"] {
  --accent:   #7FA6FF;
  --accent-2: #9DBBFF;
  --cyan:     #7FA6FF;
}

/* home.css writes these tints and shadows as raw clay rgba values rather
   than tokens, so they are restated here in the logo blue (43,95,240)
   at the same strengths. */
.svc-tag  { background: rgba(43,95,240,.08); border-color: rgba(43,95,240,.18); }
.proj-cat { background: rgba(43,95,240,.08); border-color: rgba(43,95,240,.2); }
.proj-tag { background: rgba(43,95,240,.08); border-color: rgba(43,95,240,.16); }
.pw-tag   { background: rgba(43,95,240,.08); border-color: rgba(43,95,240,.16); }
.pw-result { background: rgba(43,95,240,.06); border-color: rgba(43,95,240,.16); }
/* Same underline as links in paragraphs (home.css, main p a): these sit in a
   list item, a result box or the author line, so colour alone was marking them (WCAG 1.4.1). */
.ip-check a:not([class]), .pw-result a:not([class]), .post-author strong a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.ip-step-n { background: rgba(43,95,240,.1); border-color: rgba(43,95,240,.25); }
.ip-faq-q[aria-expanded="true"] .ip-faq-icon { background: rgba(43,95,240,.1); }
.ba-col.after { background: rgba(43,95,240,.06); border-color: rgba(43,95,240,.18); }
.compare-col.highlight { background: rgba(43,95,240,.05); }
.cs-toggle { background: rgba(43,95,240,.08); border-color: rgba(43,95,240,.2); }
.cs-toggle:hover { background: rgba(43,95,240,.14); border-color: var(--accent); }
.tag-pill { background: rgba(43,95,240,.08); border-color: rgba(43,95,240,.18); }
.tag-pill:hover { background: rgba(43,95,240,.16); border-color: var(--accent); }
.post-body a { text-decoration-color: rgba(43,95,240,.35); }
/* Form fields get their own border: --border-2 is a decorative hairline
   (about 1.5:1), too faint to show where a field is. WCAG 1.4.11 asks 3:1. */
.dc-input { border-color: var(--field-border); }
.dc-input[aria-invalid="true"] { border-color: var(--danger); }
.dc-input:focus { box-shadow: 0 0 0 3px rgba(43,95,240,.15); }
.btn-wa, .btn-main, .btn-calendly { box-shadow: 0 2px 10px rgba(43,95,240,.25); }
.btn-wa:hover, .btn-main:hover, .btn-calendly:hover { box-shadow: 0 8px 24px rgba(43,95,240,.35); }
.cal-float { box-shadow: 0 4px 16px rgba(43,95,240,.4); }
.cal-float:hover { box-shadow: 0 8px 24px rgba(43,95,240,.5); }
/* The white WhatsApp button keeps no shadow; the rules above would
   otherwise reach it through its .btn-wa class. */
.btn-wa-secondary, .btn-wa-secondary:hover { box-shadow: none; }

/* ── Logo ──
   Two images, one per theme, swapped with the same selectors the theme
   tokens use in home.css, so the logo follows the toggle and the system
   setting exactly like the colours do. */
.h-logo-img img { height: 36px; width: auto; }
.logo-light { display: block; }
.logo-dark  { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark  { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark  { display: block; }
}
.ip-footer .h-logo-img img { height: 26px; }
@media (max-width: 768px) {
  .h-logo-img img { height: 30px; }
}
/* On a 320px phone the Blog link, theme toggle and menu button take about
   150px, so the wordmark has to give way. */
@media (max-width: 360px) {
  .h-logo-img img { height: 24px; }
}

/* D mark above the hero heading, where the photo used to be */
.hero-mark { margin-bottom: 1.5rem; }
.hero-mark img { height: 72px; width: auto; margin: 0 auto; }

/* ── One-page layout ──
   Homepage bands (.sec) hold the inner-page white cards (.ip-card) in a
   .card-stack, so the page keeps the alternating cream bands and the
   card style of the inner pages. */
.card-stack { width: 100%; display: flex; flex-direction: column; gap: 1.75rem; margin-top: 2rem; text-align: left; }
.sec-intro { max-width: 760px; margin: 0 auto; font-size: 1.08rem; text-wrap: pretty; }
.sec-cards .ip-btn-row { margin-top: 1.75rem; }
@media (max-width: 768px) {
  .card-stack { gap: 1.25rem; margin-top: 1.5rem; }
}

/* Jump links under the hero */
.chips-nav { margin: 1.75rem 0 0; }
a.chip { color: var(--text-2); text-decoration: none; transition: border-color .2s, color .2s; }
a.chip:hover, a.chip:focus-visible { border-color: var(--accent); color: var(--accent); }

/* ── Who we are ── */
/* The scroll margin allows for the 28px the section's reveal animation
   still moves the block after a jump, so it settles below the header. */
.about-block { width: 100%; margin-top: 4rem; scroll-margin-top: 7rem; }
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; width: 100%; margin-top: 1.75rem; text-align: left; }
.founders-grid .about-bio { margin-top: 0; height: 100%; }
.founder-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .85rem; }
.founder-links a { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; padding: .3rem 0; }
@media (max-width: 768px) {
  .about-block { margin-top: 3rem; }
  .founders-grid { grid-template-columns: 1fr; }
}

/* Post hero images are drawn dark now (pipeline/lib/hero.php), so the
   dark theme's glare filter for light screenshots would only dim them. */
:root[data-theme="dark"] .post-hero { filter: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .post-hero { filter: none; }
}

/* ── Header: section links and the Book button ──
   Tablets and up get the Book button in the bar; wide screens also get
   the section links, and keep the menu button only below that. */
.h-nav, .h-cta { display: none; }
.h-nav a { font-size: .88rem; font-weight: 600; color: var(--text-2); padding: .45rem .75rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: 9px; text-decoration: none; transition: color .2s, background .2s; }
.h-nav a:hover { color: var(--accent); background: var(--tint); }
.h-cta { align-items: center; min-height: 40px; padding: .5rem 1.05rem; margin-left: .4rem; border-radius: 9px; background: var(--accent-fill); color: #fff; font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s; }
.h-cta:hover { background: var(--accent-fill-hover); color: #fff; }
.h-nav a:focus-visible, .h-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 769px) { .h-cta { display: inline-flex; } }
@media (min-width: 1025px) {
  .h-nav { display: flex; align-items: center; }
  .h-menu { display: none; }
}
.menu-nav .menu-link-cta { color: var(--accent); }

/* ── Phone action bar ──
   Replaces the two floating buttons. Like them, it slides away while the
   reader scrolls down (home.js sets .fab-away) and while a form field
   has focus, and the page gets room so it never covers the last line. */
.m-bar { display: none; }
@media (max-width: 768px) {
  .m-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    display: flex; gap: .5rem;
    padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--bar-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    transition: transform .25s, opacity .25s;
  }
  .m-bar a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: 10px; font-size: .92rem; font-weight: 600; text-decoration: none; }
  .m-bar-book { flex: 1; background: var(--accent-fill); color: #fff; }
  .m-bar-btn { padding: 0 .95rem; border: 1px solid var(--border-2); color: var(--text); }
  .m-bar a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  body.fab-away .m-bar { transform: translateY(100%); opacity: 0; pointer-events: none; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* Separate rules: a browser without :has() drops only these. */
  body:has(:is(input, textarea, select):focus) .m-bar { transform: translateY(100%); opacity: 0; pointer-events: none; }
  body:has(#ccBanner:not([hidden])) .m-bar { display: none; }
  /* The open menu (z-index 190) sits under the bar (200), so without this the
     bar's Book button showed twice over the menu's own. */
  body:has(.menu-overlay.open) .m-bar { transform: translateY(100%); opacity: 0; pointer-events: none; visibility: hidden; }
}

/* ── Hero ──
   Shown at once instead of waiting for the script and a 0.8s fade, which
   held back the page's largest paint. */
.js #top .sec-inner { opacity: 1; transform: none; transition: none; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 1.75rem 0 2.25rem; }
.contact-alt { font-size: .92rem; color: var(--text-2); margin: 1rem 0 0; }
@media (max-width: 768px) {
  .hero-ctas { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; }
}
/* The call button now sits beside the Book button, not under WhatsApp. */
@media (min-width: 600px) { .contact-wrap .btn-wa-secondary { margin-left: .6rem; } }
.btn-wa-secondary:hover { border-color: var(--accent); }

/* ── Hub homepage and buyer pages ── */
.hero-h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); max-width: 21ch; margin-inline: auto; line-height: 1.06; }
.hero-note { font-size: .92rem; color: var(--text-2); margin: 0; }
.hero-ctas + .hero-note { margin-top: -1.25rem; margin-bottom: 1rem; }
.ip-hero .hero-note { margin-top: 1rem; }
.ip-note { font-size: .92rem; color: var(--text-2); margin-top: 1.25rem; }

/* Results: three lines of proof, each a link to its case study */
.results { list-style: none; margin: 0; padding: 0; text-align: left; }
.results li + li { border-top: 1px solid var(--border); }
.results a { display: block; padding: 1.1rem 0; color: var(--text-2); text-decoration: none; line-height: 1.6; }
.results strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--text); margin-bottom: .2rem; transition: color .2s; }
.results a:hover strong, .results a:focus-visible strong { color: var(--accent); }
.results li:first-child a { padding-top: 0; }

.blog-strip-wrap { width: 100%; text-align: left; }

/* Reminder templates: one click selects the whole text */
.tpl { margin: 1.25rem 0 0; }
.tpl figcaption { font-size: .85rem; font-weight: 600; color: var(--text-2); margin-bottom: .4rem; }
.tpl-text { margin: 0; padding: .9rem 1.1rem; background: var(--inset); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 1rem; line-height: 1.6; cursor: text; -webkit-user-select: all; user-select: all; }
.h-nav a[aria-current="page"] { color: var(--accent); background: var(--tint); }

/* ================================================
   Phase 4: navy neutrals, browser surfaces, quieter chrome
   ================================================ */

/* ── Neutrals tinted toward the logo navy ──
   The surfaces came from the old clay palette and read warm brown under
   a cool navy-and-blue logo. Contrast checked for every pair:
   dark  text 13:1+, text-2 9.6:1+, muted 6.8:1+, faint 5.2:1+ on every
         surface; cards now stand 1.13:1 off their band (was 1.05:1).
   light text 15:1+, text-2 8.8:1+, muted 5.5:1+, faint 4.9:1+.
   Placeholders use --faint, which now passes 4.5:1 in both themes. */
:root {
  --bg:        #F6F7F9;
  --bg-alt:    #EDF0F4;
  --card:      #FFFFFF;
  --inset:     #F6F7F9;
  --text:      #141A24;
  --text-2:    #394252;
  --muted:     #566173;
  --faint:     #5E697B;
  --border:    #E2E6EC;
  --border-2:  #D3D9E2;
  --field-border: #7D8899;
  --shadow:        0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.06);
  --shadow-hover:  0 6px 20px rgba(15,23,42,.09);
  --bar-bg:    rgba(246,247,249,.82);
  --overlay-bg: rgba(246,247,249,.98);
  --tint:      rgba(20,26,36,.05);
  --avatar-shadow: 0 1px 3px rgba(15,23,42,.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0E1522;
    --bg-alt:    #121B2B;
    --card:      #1A2639;
    --inset:     #142034;
    --text:      #E9EEF6;
    --text-2:    #C5CFDE;
    --muted:     #A3AEC0;
    --faint:     #8C98AC;
    --border:    #26344C;
    --border-2:  #33445F;
    --field-border: #64748F;
    --shadow:        0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.35);
    --shadow-hover:  0 8px 24px rgba(0,0,0,.5);
    --bar-bg:    rgba(14,21,34,.82);
    --overlay-bg: rgba(14,21,34,.98);
    --tint:      rgba(233,238,246,.06);
    --avatar-shadow: 0 1px 3px rgba(0,0,0,.55);
  }
}
:root[data-theme="dark"] {
  --bg:        #0E1522;
  --bg-alt:    #121B2B;
  --card:      #1A2639;
  --inset:     #142034;
  --text:      #E9EEF6;
  --text-2:    #C5CFDE;
  --muted:     #A3AEC0;
  --faint:     #8C98AC;
  --border:    #26344C;
  --border-2:  #33445F;
  --field-border: #64748F;
  --shadow:        0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.35);
  --shadow-hover:  0 8px 24px rgba(0,0,0,.5);
  --bar-bg:    rgba(14,21,34,.82);
  --overlay-bg: rgba(14,21,34,.98);
  --tint:      rgba(233,238,246,.06);
  --avatar-shadow: 0 1px 3px rgba(0,0,0,.55);
}

/* ── The browser's own surfaces, in the brand ── */
::selection { background: rgba(43,95,240,.3); color: inherit; }
html { caret-color: var(--accent); scrollbar-color: var(--border-2) var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stat-n, time, .ip-step-n, .results strong { font-variant-numeric: tabular-nums; }

/* ── Content shows as soon as it is on screen ──
   The fade-and-rise on every section and card (home.js adds .in-view)
   delayed what people came to read and hid it from full-page renders. */
.js .sec-inner, .js .ip-card { opacity: 1; transform: none; transition: none; }

/* ── Quieter chrome ──
   Labels above headings stay only where they say something, and as plain
   small text rather than tracked capitals. */
.ip-label { font-size: .85rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-2); margin-bottom: .5rem; }
.tools-label { font-size: .85rem; letter-spacing: 0; text-transform: none; }

/* Cards you cannot click do not lift on hover. */
.svc-card:hover, .ip-item:hover { transform: none; box-shadow: var(--shadow); }
.svc-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .5rem; font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.svc-link:hover { text-decoration-thickness: 2px; }

/* No card inside a card: items and FAQ rows inside a card become plain
   rows with a rule between them. */
.ip-card .ip-item { background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 1.25rem 0 0; box-shadow: none; }
.ip-card .ip-item:hover { box-shadow: none; }
.ip-card .ip-faq { gap: 0; }
.ip-card .ip-faq-item { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
.ip-card .ip-faq-item:has(.ip-faq-q[aria-expanded="true"]) { box-shadow: none; }
.ip-card .ip-faq-q, .ip-card .ip-faq-a { padding-left: 0; padding-right: 0; }

/* ── Left-aligned sections ──
   Headings and intros read from the left like the text under them. The
   hero and the closing contact block stay centred. */
.sec:not(#top):not(#contact) .sec-inner { align-items: flex-start; text-align: left; }
.sec:not(#top):not(#contact) .sec-intro { margin-left: 0; }
.sec:not(#top):not(#contact) .tools-label { text-align: left; }
.sec:not(#top):not(#contact) .tools-row { justify-content: flex-start; }

/* Section labels on the homepage: plain small text like .ip-label, not
   tracked capitals. */
.sec-tag { font-size: .9rem; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* Calendly bubble: bottom right on tablets and desktops. Phones have the
   bottom bar with the same booking link, so it stays hidden there. */
.cal-float { left: auto; right: 1.75rem; }
@media (max-width: 768px) { .cal-float { display: none; } }

/* ── Services in two groups ──
   Group labels follow the quieter label style above. Marketing has four cards, so it gets a four-column row on wide screens;
   both groups fall back to two columns on tablets and one on phones. */
.svc-group { width: 100%; text-align: left; font-size: .9rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-2); margin: 2rem 0 -.75rem; }
.svc-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .svc-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .svc-grid-4 { grid-template-columns: 1fr; } }

/* ── Front page hero: the pitch is the h1, so it runs smaller than the
   one-word brand title on /ai-automation and keeps to two or three lines. */
.hero-kicker { font-size: 1rem; color: var(--muted); margin-bottom: .9rem; }
/* /ai-automation: the brand name keeps the big serif look, but the h1 is the
   line that says what the page is about, so search and AI tools read that. */
.brand-title { font-family: var(--serif); font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 500; line-height: 1.03; letter-spacing: -1.5px; margin-bottom: .75rem; color: var(--text); }
.hero-sub { font-family: var(--font); font-size: 1rem; font-weight: 400; line-height: 1.75; letter-spacing: -.005em; color: var(--muted); margin-bottom: 1rem; }
.hero-pitch { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.08; letter-spacing: -1px; max-width: 16ch; margin-left: auto; margin-right: auto; }
.hero-ctas + .hero-note { max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── Menu overlay: ten links now, so it scrolls instead of clipping,
   every line stays centred when it wraps, and the two contact actions
   read as buttons below the page links rather than as more headings. */
.menu-overlay { overflow-y: auto; justify-content: flex-start; padding: 5.5rem 1.25rem 2rem; }
.menu-nav { margin: auto 0 2.5rem; width: 100%; max-width: 560px; gap: .1rem; }
.menu-link { text-align: center; max-width: 100%; overflow-wrap: anywhere; padding: .2rem .5rem; font-size: clamp(1.7rem, 5vw, 2.8rem); line-height: 1.25; }
.menu-nav .menu-link-cta, .menu-nav .menu-link-wa {
  font-family: var(--font); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; line-height: 1.3;
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.4rem;
  border-radius: 12px; border: 1px solid var(--border-2); width: 100%; max-width: 320px;
}
.menu-nav .menu-link-cta { margin-top: 1.25rem; background: var(--accent-fill); border-color: transparent; color: var(--on-fill); }
.menu-nav .menu-link-cta:hover, .menu-nav .menu-link-cta:focus-visible { color: var(--on-fill); background: var(--accent-fill-hover); }
.menu-nav .menu-link-wa { margin-top: .6rem; }
.menu-footer { margin-bottom: auto; }
@media (max-width: 768px) {
  .menu-link { font-size: clamp(1.45rem, 6.6vw, 2.1rem); }
}

/* ── Illustrations ──
   Inline SVGs in includes/illos/, drawn in one hand: a confident navy
   line, a pale blue ground shape, one blue accent. They take their
   colours from these tokens, so one drawing serves both themes. */
:root {
  --il-ink:       #1B2740;
  --il-paper:     #FFFFFF;
  --il-soft:      #E3EAF8;
  --il-soft-2:    #F0F3F9;
  --il-pop:       #2B5FF0;
  --il-pop-soft:  #BFD1FF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --il-ink:       #D5E0F2;
    --il-paper:     #1F2D45;
    --il-soft:      #21345A;
    --il-soft-2:    #1A2639;
    --il-pop:       #7FA6FF;
    --il-pop-soft:  #34507F;
  }
}
:root[data-theme="dark"] {
  --il-ink:       #D5E0F2;
  --il-paper:     #1F2D45;
  --il-soft:      #21345A;
  --il-soft-2:    #1A2639;
  --il-pop:       #7FA6FF;
  --il-pop-soft:  #34507F;
}
.il { display: block; width: 100%; height: auto; }
.il .ink      { fill: none; stroke: var(--il-ink); stroke-linecap: round; stroke-linejoin: round; }
.il .ink-f    { fill: var(--il-ink); }
.il .paper    { fill: var(--il-paper); }
.il .soft     { fill: var(--il-soft); }
.il .soft2    { fill: var(--il-soft-2); }
.il .pop      { fill: var(--il-pop); }
.il .pop-s    { fill: none; stroke: var(--il-pop); stroke-linecap: round; stroke-linejoin: round; }
.il .pop-soft { fill: var(--il-pop-soft); }

/* Where the illustrations sit. */
.hero-illo { max-width: 500px; margin: 0 auto 1.5rem; }
.ip-item-illo { margin: 0 0 .9rem; }
.ip-item-illo .il { max-width: 230px; }
.svc-illo { margin: -.25rem 0 .9rem; }
.svc-illo .il { max-width: 240px; }
.who-illo { margin: 0 0 .9rem; }
.who-illo .il { max-width: 230px; }
.illo-wide { max-width: 620px; margin: 1.25rem auto .25rem; }
.illo-split { display: grid; gap: 1.25rem; align-items: center; }
.illo-split > .illo-side .il { max-width: 300px; margin: 0 auto; }
@media (min-width: 860px) {
  .illo-split { grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; }
}
.proj-illo { max-width: 400px; margin-top: 1.25rem; }
.ip-hero .hero-illo { max-width: 440px; margin: 0 auto 1.25rem; }

/* ── Photos and diagrams (assets/images/site, via dc_pic) ──
   Diagrams keep their light paper background in both themes, framed as
   cards. .hl is a soft marker under key words in a heading. */
:root { --hl: rgba(43,95,240,.16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hl: rgba(127,166,255,.26); } }
:root[data-theme="dark"] { --hl: rgba(127,166,255,.26); }
.hl { background: linear-gradient(transparent 60%, var(--hl) 60%, var(--hl) 94%, transparent 94%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sec-tag { display: inline-flex; align-items: center; padding: .3rem .85rem; border: 1px solid var(--border-2); border-radius: 999px; background: var(--card); font-size: .82rem; }

.shot { width: 100%; margin: 1.5rem 0 0; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--card); }
.shot img { display: block; width: 100%; height: auto; }
.shot-diagram { background: #F5F6F8; }
.shot-mid { max-width: 640px; margin-inline: auto; }

/* A section with its copy on one side and one photo on the other. */
.split-row { display: grid; gap: 2rem; width: 100%; align-items: center; text-align: left; }
.split-row .shot { margin: 0; }
.split-copy .sec-intro { margin-inline: 0; }
@media (min-width: 900px) {
  .split-row { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; }
}
.flow-steps { list-style: none; display: grid; gap: .6rem; margin: 1.5rem 0 0; padding: 0; }
.flow-steps li { display: flex; align-items: center; gap: .85rem; padding: .7rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); font-weight: 600; font-size: .98rem; }
.flow-steps li:last-child { border-color: var(--accent); }
.flow-n { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(43,95,240,.1); border: 1px solid rgba(43,95,240,.25); color: var(--accent); font-size: .88rem; font-variant-numeric: tabular-nums; }

.hero-split { display: grid; gap: 2rem; width: 100%; align-items: center; }
.hero-copy .intro-sub { margin-inline: auto; }
.hero-shot { max-width: 520px; margin: 0 auto 1rem; }
@media (min-width: 960px) {
  .hero-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; text-align: left; }
  .hero-split .hero-pitch { font-size: clamp(2.6rem, 4.4vw, 3.6rem); }
  .hero-split .intro-sub { margin-inline: 0; }
  .hero-split .hero-ctas { justify-content: flex-start; }
  .hero-shot { margin: 0; }
}

.illo-split.photo-split .shot { margin-top: 0; }
@media (min-width: 860px) { .illo-split.photo-split { grid-template-columns: minmax(0, 1fr) 360px; } }

.who-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; width: 100%; margin-top: 1.5rem; }
@media (min-width: 960px) { .who-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.who-photo { position: relative; display: block; aspect-ratio: 3 / 4; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; }
.who-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.who-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,14,32,.85) 0%, rgba(8,14,32,.3) 42%, transparent 68%); }
.who-photo-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; text-align: left; }
.who-photo-text strong { font-size: 1.12rem; font-weight: 700; color: #fff; }
.who-photo-text span { font-size: .86rem; color: rgba(255,255,255,.88); }
.who-photo:hover img, .who-photo:focus-visible img { transform: scale(1.04); }
.who-photo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .who-photo img { transition: none; } }

.team-shot { margin: 1.5rem 0 .25rem; }
.contact-shot { max-width: 560px; margin: 0 auto 1.75rem; }
.about-bio-photo { width: 72px; height: 72px; }
.team-shot img { aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30%; }
@media (min-width: 960px) { .hero-split .hero-note { margin-inline: 0; padding-inline: 0; text-align: left; } }

/* Inner pages: hero with a photo, cards with a phone screen, results band. */
.ip-hero .hero-copy > p:not(.hero-note) { max-width: 620px; margin: 0 auto 2rem; font-size: 1.12rem; line-height: 1.7; color: var(--muted); }
.ip-hero .hero-split h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
@media (min-width: 960px) {
  .ip-hero .hero-copy > p:not(.hero-note) { margin-left: 0; }
  .ip-hero .hero-split .ip-btn-row { justify-content: flex-start; }
  .hero-split.phone-hero { grid-template-columns: minmax(0, 1fr) 300px; }
}
.phone-shot { max-width: 300px; margin: 0 auto; }
.with-phone { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .with-phone { grid-template-columns: minmax(0, 1fr) 290px; } }
.with-phone .shot { margin-top: 0; }
.shot-hub { max-width: 480px; margin-inline: auto; }
.hero-photo { max-width: 640px; margin: .5rem auto 1.75rem; }
.split-copy .ip-btn-row { justify-content: flex-start; }
@media (min-width: 900px) { .split-row.photo-left .split-photo { order: -1; } }
.result-band { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1.25rem; }
.result { padding: 1.15rem 1.2rem; border: 1px solid var(--border); border-radius: 14px; background: var(--inset); text-align: left; }
.result strong { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; line-height: 1.2; color: var(--text); margin-bottom: .45rem; }
.result p { margin: 0; font-size: .93rem; line-height: 1.6; }
.nf-shot { max-width: 420px; margin: 0 auto 1.25rem; }

/* Phones: every section reads heading, then its picture, then the details.
   The side-by-side blocks open up so the picture can sit under the heading. */
@media (max-width: 859px) {
  .illo-split > div:first-child { display: contents; }
  .illo-split > div:first-child > * { order: 2; }
  .illo-split > div:first-child > h2:first-child { order: 0; margin-bottom: 0; }
  .illo-split > .illo-side { order: 1; margin: 0; }
  .with-phone .phone-shot { order: -1; }
}
@media (max-width: 899px) {
  .split-row { gap: 0; }
  .split-copy { display: contents; }
  .split-copy > * { order: 2; }
  .split-copy > .sec-tag, .split-copy > h2, .split-copy > .sec-intro { order: 0; }
  .split-copy > .sec-tag { justify-self: start; }
  .split-row > .split-photo { order: 1; margin: 1.25rem 0 0; }
}
.contact-shot { margin: 1.5rem auto 0; }

/* Phone screens drawn as real text: sharp at any size, readable by AI,
   and in step with the theme. */
.sms { width: 100%; max-width: 290px; margin: 0 auto; }
.sms-phone { display: flex; flex-direction: column; gap: .5rem; padding: 2.1rem .85rem 1.4rem; border: 7px solid var(--text); border-radius: 34px; background: var(--card); position: relative; text-align: left; }
.sms-phone::before { content: ""; position: absolute; top: .55rem; left: 50%; width: 64px; height: 7px; border-radius: 4px; background: var(--text); transform: translateX(-50%); }
.sms-phone p { margin: 0; max-width: 84%; padding: .55rem .75rem; border-radius: 16px; font-size: .86rem; line-height: 1.4; }
.sms-phone .sms-from { max-width: none; padding: 0 0 .35rem; border-radius: 0; border-bottom: 1px solid var(--border); text-align: center; font-size: .8rem; font-weight: 600; color: var(--text); }
.sms-phone .sms-note { max-width: none; padding: 0; text-align: center; font-size: .74rem; color: var(--muted); }
.sms-phone .sms-in { align-self: flex-start; background: var(--inset); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 5px; }
.sms-phone .sms-out { align-self: flex-end; background: var(--accent-fill); color: #fff; border-bottom-right-radius: 5px; }
.with-phone .sms { margin-top: 0; }
@media (max-width: 859px) { .sms { max-width: 270px; } }

/* Dark theme: the light diagram cards sit a little dimmer so they do not glare. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shot-diagram { filter: brightness(.9); } }
:root[data-theme="dark"] .shot-diagram { filter: brightness(.9); }
.shot picture { display: block; }

/* ── /aiready: an ad landing page. Phones: headline, then the form,
   nothing in between that competes. Wide screens: pitch and form side
   by side, form first in the reading order after the headline. ── */
.aic-hero { display: grid; gap: 1.25rem; margin: 0 0 1.5rem; }
.aic-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: .6rem; }
.aic-lede { font-size: 1.05rem; margin: 0 0 1rem; }
.aic-gets { margin-top: .5rem; }
.aic-form-title { font-size: 1.4rem; margin-bottom: .9rem; }
.aic-more { margin: .25rem 0 1rem; }
.aic-more > summary { cursor: pointer; color: var(--text); font-weight: 600; padding: .35rem 0; border-radius: 4px; }
.aic-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.aic-more[open] > summary { margin-bottom: .5rem; }
.aic-comp { border: 0; padding: 0; margin: 0; min-width: 0; }
.aic-comp legend { font-weight: 600; color: var(--text); margin-bottom: .35rem; padding: 0; }
.aic-comp .dc-field { margin-bottom: .6rem; }
@media (max-width: 859px) {
  .aic-gets { display: none; }
}
/* An ad landing page: no phone bar and no Calendly bubble next to the
   form, and none of the room kept at the bottom for the bar. */
body.page-landing .m-bar, body.page-landing .cal-float { display: none !important; }
@media (max-width: 768px) {
  body.page-landing { padding-bottom: 0; }
  body.page-landing .ip-footer { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)); }
}
@media (min-width: 860px) {
  .aic-hero { grid-template-columns: 1.05fr .95fr; align-items: start; gap: 2.5rem; margin-top: 1rem; }
}
