/* ============================================================
   AIpros — enterprise automation. Design system 2026.
   Graphite + paper, one accent (vault green), geometric sans display.
   ============================================================ */
:root {
  --ink: #15181d;
  --graphite: #1e2227;
  --graphite-2: #262b31;
  --paper: #f4f3ef;
  --white: #ffffff;
  --line: #dcdad3;
  --line-dark: rgba(255,255,255,0.12);
  --steel: #5f6670;
  --mute: #676d76;
  --accent: #0e5a52;
  --accent-ink: #0a3f3a;
  --accent-soft: #e3efec;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hdr-h: 72px;
  --container: 1240px;
  --radius: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .15em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2.35rem, 4.8vw, 3.85rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.038em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); letter-spacing: -0.034em; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); letter-spacing: -0.025em; }
h4 { font-size: 1.1rem; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
.text-gradient { color: inherit; background: none; -webkit-text-fill-color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 3000; }
.skip-link:focus { left: 8px; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; padding: 0; }
.container-wide { width: min(100% - 2.5rem, 1440px); margin-inline: auto; }
section { padding: clamp(4rem, 8vw, 7.5rem) 0; position: relative; }
.bg-paper { background: var(--paper); }
.bg-dark-section, .bg-graphite { background: var(--graphite); color: #fff; }
.bg-dark-section h2, .bg-dark-section h3, .bg-graphite h2, .bg-graphite h3 { color: #fff; }
.bg-dark-section .section-subtitle, .bg-graphite .section-subtitle, .bg-dark-section p { color: rgba(255,255,255,0.78); }
.section-label { display: block; font-size: .9rem; font-weight: 500; color: var(--accent); margin-bottom: .9rem; letter-spacing: 0; text-transform: none; }
.bg-graphite .section-label, .bg-dark-section .section-label, .cta-band .section-label, .cta-section .section-label, .page-banner.has-photo .section-label, .hero .section-label { color: #9fd3c9; }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-title { margin-bottom: .5em; }
.section-subtitle { font-size: 1.2rem; color: var(--steel); max-width: 60ch; margin: 0; }
.lead { font-size: 1.25rem; color: var(--steel); }
.serif-num { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn, .btn-glow, .btn-outline-glow, .btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1;
  padding: 1rem 1.6rem; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s ease, color .15s ease, border-color .15s ease; box-shadow: none; background-image: none;
}
.btn-primary, .btn-glow { background: var(--ink); color: #fff; }
.btn-primary:hover, .btn-glow:hover { background: var(--accent-ink); color: #fff; text-decoration: none; }
.btn-secondary, .btn-outline-glow { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover, .btn-outline-glow:hover { background: var(--ink); color: #fff; text-decoration: none; }
.on-dark .btn-primary, .on-dark .btn-glow, .bg-graphite .btn-primary, .bg-dark-section .btn-glow { background: #fff; color: var(--ink); }
.on-dark .btn-primary:hover, .bg-graphite .btn-primary:hover { background: var(--paper); }
.on-dark .btn-secondary, .on-dark .btn-outline-glow, .bg-graphite .btn-secondary, .bg-dark-section .btn-outline-glow { color: #fff; border-color: rgba(255,255,255,0.55); }
.on-dark .btn-secondary:hover, .bg-graphite .btn-secondary:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-lg { padding: 1.15rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .7rem 1.1rem; font-size: .92rem; }
.text-link { font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.text-link:hover { border-color: var(--ink); text-decoration: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.94); backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header > .container { display: flex; align-items: center; justify-content: space-between; height: var(--hdr-h); gap: 1.5rem; }
.brand { display: inline-flex; align-items: baseline; gap: .1rem; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.brand-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.brand-stack .brand-sub { display: block; font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin: 0 0 0 52px; line-height: 1; }
.site-footer .brand img { height: 64px; }
@media (max-width: 520px) { .brand img { height: 34px; } .brand-stack .brand-sub { margin-left: 44px; font-size: .55rem; } }
.brand b { font-weight: 500; }
.brand .brand-sub { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-top: -.15rem; }
.nav { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav > li > a { display: inline-block; padding: .55rem .85rem; color: var(--steel); font-weight: 500; font-size: .98rem; border-radius: var(--radius); }
.nav > li > a:hover, .nav > li > a.active { color: var(--ink); background: var(--paper); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-phone { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: var(--radius); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; position: fixed; top: var(--hdr-h); left: 0; right: 0; bottom: 0; background: #fff; z-index: 999; padding: 1rem 1.25rem 2rem; overflow-y: auto; }
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav a { display: block; padding: .95rem 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font-display); color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a.sub { font-family: var(--font-body); font-size: 1rem; color: var(--steel); padding: .6rem 0 .6rem 1rem; border: 0; }
.mobile-nav .btn { margin-top: 1.5rem; width: 100%; }
@media (max-width: 1024px) { .nav, .nav-phone { display: none; } .nav-toggle { display: block; } }
@media (max-width: 520px) { .nav-actions .btn { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; background: var(--ink); color: #fff; overflow: hidden; padding: clamp(7rem, 14vw, 10rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .92; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,24,29,0.93) 0%, rgba(21,24,29,0.72) 48%, rgba(21,24,29,0.28) 100%), linear-gradient(0deg, rgba(21,24,29,0.9) 0%, rgba(21,24,29,0) 55%); }
.hero .container { position: relative; z-index: 1; }
.hero-kicker { display: block; font-size: .95rem; color: rgba(255,255,255,0.72); margin-bottom: 1.25rem; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: #cfe6e1; }
.hero p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: rgba(255,255,255,0.86); max-width: 38rem; margin-bottom: 2rem; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- facts strip ---------- */
.facts { padding: 0; border-bottom: 1px solid var(--line); background: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 1.75rem 1.5rem 1.75rem 0; border-left: 1px solid var(--line); padding-left: 1.5rem; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; font-size: 1.18rem; line-height: 1.2; margin-bottom: .3rem; }
.fact span { color: var(--steel); font-size: .95rem; }
@media (max-width: 860px) { .facts-grid { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 520px) { .facts-grid { grid-template-columns: 1fr; } .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .fact:first-child { border-top: 0; } }

/* ---------- capability rows ---------- */
.cap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.cap:first-of-type { border-top: 0; padding-top: 0; }
.cap.rev .cap-media { order: 2; }
.cap-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper); }
.cap-media img { width: 100%; height: 100%; object-fit: cover; }
.cap-body .index { font-family: var(--font-display); font-weight: 700; color: var(--steel); font-size: 1rem; display: block; margin-bottom: .5rem; }
.cap-body h3, .cap-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.cap-body p { color: var(--steel); font-size: 1.1rem; max-width: 52ch; }
.cap-list { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: .55rem; }
.cap-list li { position: relative; padding-left: 1.4rem; }
.cap-list li::before { content: ""; position: absolute; left: 0; top: .68em; width: .7rem; height: 1.5px; background: var(--accent); }
.more-caps { margin-top: clamp(2rem, 4vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 3fr; gap: 2rem; }
.more-caps ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 2.5rem; }
.more-caps li a { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.more-caps li a span { color: var(--steel); font-weight: 400; font-size: .95rem; text-align: right; }
.more-caps li a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 860px) { .cap, .cap.rev { grid-template-columns: 1fr; } .cap.rev .cap-media { order: 0; } .more-caps { grid-template-columns: 1fr; } .more-caps ul { grid-template-columns: 1fr; } }

/* ---------- function matrix ---------- */
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-dark); }
.matrix-cell { padding: 2rem; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.matrix-cell:nth-child(3n) { border-right: 0; }
.matrix-cell:nth-last-child(-n+3) { border-bottom: 0; }
.matrix-cell h3 { font-size: 1.35rem; margin-bottom: .75rem; }
.matrix-cell ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; color: rgba(255,255,255,0.8); font-size: .98rem; }
.matrix-cell li { padding-left: 1.1rem; position: relative; }
.matrix-cell li::before { content: ""; position: absolute; left: 0; top: .7em; width: .5rem; height: 1.5px; background: #9fd3c9; }
@media (max-width: 900px) { .matrix { grid-template-columns: 1fr 1fr; } .matrix-cell:nth-child(3n) { border-right: 1px solid var(--line-dark); } .matrix-cell:nth-child(2n) { border-right: 0; } .matrix-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-dark); } .matrix-cell:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 560px) { .matrix { grid-template-columns: 1fr; } .matrix-cell { border-right: 0 !important; } .matrix-cell:last-child { border-bottom: 0; } }

/* ---------- program steps (a real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.step { border-top: 2px solid var(--line); padding-top: 1.25rem; }
.step .n { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; font-size: 1.85rem; color: var(--accent); display: block; margin-bottom: .5rem; line-height: 1; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--steel); font-size: 1rem; }
.step small { display: block; color: var(--mute); margin-top: .5rem; font-size: .88rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- industries mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--graphite); color: #fff; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(21,24,29,0.88) 0%, rgba(21,24,29,0.1) 60%); }
.tile:hover img { transform: scale(1.04); } .tile:hover { text-decoration: none; }
.tile-body { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.25rem; z-index: 1; }
.tile h3 { color: #fff; font-size: 1.45rem; margin-bottom: .2rem; }
.tile p { color: rgba(255,255,255,0.82); font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .mosaic { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mosaic { grid-template-columns: 1fr; } }

/* ---------- reasons / values ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.reason h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.reason p { color: var(--steel); }
@media (max-width: 800px) { .reasons { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- statement (about teaser) ---------- */
.statement { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.statement-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.statement-media img { width: 100%; height: 100%; object-fit: cover; }
.statement blockquote { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.4rem, 2.2vw, 1.95rem); line-height: 1.28; color: var(--ink); }
.statement blockquote footer { font-family: var(--font-body); font-size: .95rem; color: var(--steel); margin-top: 1.25rem; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }

/* ---------- cards / grids (services page, blog, about) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card, .service-card, .blog-card, .value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img, .blog-card:hover img { transform: scale(1.03); }
.card-body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3, .card-body h2 { font-size: 1.35rem; margin: 0; }
.card-body p { color: var(--steel); font-size: .98rem; margin: 0; }
.card-body .card-link, .read-more { margin-top: auto; padding-top: .75rem; font-weight: 500; color: var(--ink); }
.blog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-card .blog-card-body, .blog-card > div:not(.card-media) { padding: 1.4rem 1.5rem 1.6rem; }
.blog-card h3, .blog-card h2 { font-size: 1.3rem; margin: .4rem 0 .5rem; } .blog-card h3 a, .blog-card h2 a { color: var(--ink); }
.blog-meta, .blog-category, .blog-date { color: var(--steel); font-size: .88rem; }
.blog-card p { color: var(--steel); font-size: .98rem; }

/* ---------- inner pages ---------- */
.page-banner { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-banner h1 { max-width: 18ch; }
.page-banner.has-photo { position: relative; color: #fff; background: var(--ink); border-bottom: 0; padding: clamp(6rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.page-banner.has-photo .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,24,29,0.93) 0%, rgba(21,24,29,0.7) 50%, rgba(21,24,29,0.35) 100%); }
.page-banner.has-photo .container { position: relative; z-index: 1; }
.page-banner.has-photo h1, .page-banner.has-photo .section-subtitle { color: #fff; }
.page-banner.has-photo .section-subtitle { color: rgba(255,255,255,0.85); }
.breadcrumb-custom { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; color: var(--steel); }
.breadcrumb-custom li + li::before { content: "/"; margin-right: .4rem; color: var(--mute); }
.breadcrumb-custom a { color: var(--steel); }
.has-photo .breadcrumb-custom, .has-photo .breadcrumb-custom a { color: rgba(255,255,255,0.75); }
.content-narrow { max-width: 72ch; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.aside { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--paper); }
.aside h3 { font-size: 1.2rem; } .aside ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; } .aside li a { color: var(--ink); }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.feature-list li { position: relative; padding-left: 1.5rem; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: .8rem; height: 1.5px; background: var(--accent); }
.process-step { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.process-step .step-num { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; font-size: 1.7rem; color: var(--accent); line-height: 1; }
.process-step h3 { font-size: 1.2rem; margin-bottom: .25rem; } .process-step p { color: var(--steel); }
.tech-tag { display: inline-block; border: 1px solid var(--line); border-radius: 100px; padding: .35rem .85rem; font-size: .9rem; margin: 0 .4rem .5rem 0; color: var(--ink); }
.usecase { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; height: 100%; } .usecase h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; } .usecase p { color: var(--steel); font-size: .95rem; margin: 0; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; background: #fff; }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 1.35rem; background: none; border: 0; font: inherit; font-weight: 600; text-align: left; cursor: pointer; color: var(--ink); }
.faq-question::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--steel); transition: transform .2s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 1.35rem 1.25rem; color: var(--steel); }
.faq-item.active .faq-answer { display: block; }
.cta-section, .cta-band { background: var(--graphite); color: #fff; padding: clamp(4rem, 8vw, 6.5rem) 0; }
.cta-band h2, .cta-section h2 { color: #fff; max-width: 22ch; }
.cta-band p, .cta-section p { color: rgba(255,255,255,0.78); max-width: 56ch; font-size: 1.15rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.error-section { padding: clamp(5rem, 10vw, 8rem) 0; }
.error-code { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.05em; font-size: clamp(5rem, 14vw, 10rem); line-height: 1; color: var(--line); }
.blog-content { max-width: 72ch; font-size: 1.1rem; } .blog-content h2 { font-size: 1.9rem; margin-top: 2rem; } .blog-content h3 { font-size: 1.4rem; margin-top: 1.5rem; } .blog-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.blog-content blockquote { border-left: 3px solid var(--accent); margin: 1.5rem 0; padding: .25rem 1.25rem; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.3rem; color: var(--ink); }
.legal h2 { font-size: 1.5rem; margin-top: 2rem; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-layout > *, .form-row > * { min-width: 0; }
.contact-intro, .contact-facts li { overflow-wrap: anywhere; }
.contact-intro h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.contact-intro p { color: var(--steel); font-size: 1.1rem; }
.contact-facts { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .5rem; }
.contact-facts a { color: var(--ink); font-weight: 500; }
.contact-form { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: .4rem; }
.form-control, input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: .8rem .95rem; }
.form-control:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 150px; resize: vertical; }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; border: 1px solid; }
.alert-success { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.alert-danger { background: #fbe9e7; border-color: #c0392b; color: #7b1f16; }
.form-note { color: var(--mute); font-size: .88rem; margin-top: .75rem; }
.hp-field { position: absolute; left: -9999px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.78); padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer .brand { color: #fff; } .site-footer .brand .brand-sub { color: rgba(255,255,255,0.6); }
.footer-desc { max-width: 36ch; margin-top: 1rem; }
.footer-title, h2.footer-title { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: #fff; margin-bottom: .9rem; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,0.78); } .footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: rgba(255,255,255,0.55); font-size: .88rem; }
.footer-bottom p { margin: 0; } .footer-bottom-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; } .footer-bottom-links a { color: rgba(255,255,255,0.65); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- utilities kept for legacy pages ---------- */
.mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; } .mb-5 { margin-bottom: 3rem; } .mx-auto { margin-inline: auto; } .text-center { text-center: center; text-align: center; }
.row { display: flex; flex-wrap: wrap; margin: 0 -.75rem; } .row > [class*="col-"] { padding: 0 .75rem; flex: 1 1 100%; }
.col-lg-8 { flex-basis: 66.666%; max-width: 66.666%; } .col-lg-4 { flex-basis: 33.333%; max-width: 33.333%; } .col-lg-6, .col-md-6 { flex-basis: 50%; max-width: 50%; } .col-md-4 { flex-basis: 33.333%; max-width: 33.333%; }
@media (max-width: 900px) { .row > [class*="col-"] { flex-basis: 100%; max-width: 100%; } }
.d-none { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .001s !important; animation-duration: .001s !important; } }

/* case studies */
.case-facts { grid-template-columns: repeat(3, 1fr); margin: 1.25rem 0 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-facts .fact { padding: 1rem 1rem 1rem 0; } .case-facts .fact + .fact { padding-left: 1rem; }
.case-facts .fact strong { font-size: 1.6rem; } .case-facts .fact span { font-size: .85rem; }
@media (max-width: 520px) { .case-facts { grid-template-columns: 1fr; } .case-facts .fact { border: 0; padding-left: 0; } }

/* ---------- value calculator ---------- */
.calc { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.calc > * { min-width: 0; }
.calc h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.calc-field { margin: 1.6rem 0; }
.calc-field label { display: block; font-weight: 500; font-size: .98rem; margin-bottom: .5rem; overflow-wrap: anywhere; }
.calc-field label output { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-field .form-control { max-width: min(14rem, 100%); }
.calc-hint { display: block; color: var(--steel); font-size: .88rem; margin-top: .45rem; }
.calc-field input[type=range] { width: 100%; max-width: min(26rem, 100%); accent-color: var(--accent); height: 1.6rem; display: block; }
.calc-results { background: var(--graphite); color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); position: sticky; top: 6rem; }
.calc-results h2 { color: #fff; margin-bottom: 1.25rem; }
.calc-headline { border-bottom: 1px solid var(--line-dark); padding-bottom: 1.1rem; margin-bottom: .5rem; }
.calc-headline .calc-label { display: block; color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: .35rem; }
.calc-headline strong { display: block; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2.1rem, 3.8vw, 2.8rem); line-height: 1.05; color: #9fd3c9; font-variant-numeric: tabular-nums; }
.calc-result { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-dark); }
.calc-result span { color: rgba(255,255,255,.72); font-size: .93rem; min-width: 0; overflow-wrap: anywhere; }
.calc-result strong { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-note { color: rgba(255,255,255,.55); font-size: .82rem; margin: 1.1rem 0; }
.calc-results .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.calc-results .btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc-results { position: static; }
}

/* ---------- blog article: share row and sidebar ---------- */
.blog-share { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; }
.blog-share span { color: var(--steel); font-size: .95rem; }
.blog-share a { border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem .9rem; font-size: .92rem; color: var(--ink); }
.blog-share a:hover { border-color: var(--ink); text-decoration: none; }
.aside-posts { list-style: none; padding: 0; margin: 0; }
.aside-posts li { border-bottom: 1px solid var(--line); }
.aside-posts li:last-child { border-bottom: 0; }
.aside-posts a { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 0; color: var(--ink); }
.aside-posts a:hover { text-decoration: none; }
.aside-posts a:hover strong { text-decoration: underline; text-underline-offset: .15em; }
.aside-posts img { width: 70px; height: 50px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.aside-posts strong { display: block; font-weight: 500; font-size: .93rem; line-height: 1.35; }
.aside-posts em { display: block; font-style: normal; font-size: .82rem; color: var(--steel); margin-top: .25rem; }
.aside-cta { margin-top: 1.5rem; background: var(--graphite); color: #fff; border-color: var(--graphite); }
.aside-cta h2 { color: #fff; }
.aside-cta p { color: rgba(255,255,255,.78); font-size: .95rem; }
.aside-cta .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.aside-cta .btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.aside-cta .text-link { color: #9fd3c9; border-color: rgba(255,255,255,.35); }
.blog-card .card-category { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.blog-card .card-date { font-size: .85rem; color: var(--steel); margin-top: .2rem; }
/* two stacked asides in the blog sidebar must not both stick to the same offset */
.col-lg-4 > .aside { position: static; }

/* plain link list on light backgrounds (404 helper columns) */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.link-list a { color: var(--ink); }
.link-list a:hover { color: var(--accent); }
.error-section h1 { max-width: 20ch; }
.error-section .section-subtitle { max-width: 54ch; }

/* full-width buttons must wrap: .btn is nowrap by default, which blew the layout
   out horizontally at 320-360px on the value calculator */
.calc-results .btn, .aside .btn, .mobile-nav .btn { white-space: normal; text-align: center; line-height: 1.3; }
.calc-field input[type=range] { margin: 0; }

/* links inside a paragraph must not rely on colour alone (WCAG 1.4.1) */
.inline-link-dark { color: #9fd3c9; text-decoration: underline; text-underline-offset: .15em; }
.inline-link-dark:hover { color: #fff; }

/* WCAG 1.4.1: a link inside a block of text cannot be identified by colour alone.
   Buttons and .text-link carry their own affordance, so they stay excluded. */
.blog-content p a, .blog-content li a,
.content-narrow p a, .content-narrow li a,
.two-col p a, .two-col li a,
.legal a, .faq-answer a, .usecase p a,
.aside p a, .contact-intro p a,
.grid-2 p a, .grid-3 p a, .grid-4 p a {
  text-decoration: underline;
  text-underline-offset: .15em;
}
.blog-content p a.btn, .content-narrow p a.btn, .two-col p a.btn,
.blog-content p a.text-link, .content-narrow p a.text-link, .two-col p a.text-link,
.aside p a.text-link, .contact-intro p a.text-link,
.grid-2 p a.btn, .grid-3 p a.btn, .grid-4 p a.btn,
.grid-2 p a.text-link, .grid-3 p a.text-link, .grid-4 p a.text-link {
  text-decoration: none;
}

/* ============================================================
   Utility top bar — sits above the sticky header and scrolls away
   with the page, so the sticky nav stays as short as possible.
   ============================================================ */
.topbar { background: var(--graphite); color: rgba(255,255,255,0.7); font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 40px; }
.topbar-note { margin: 0; color: rgba(255,255,255,0.6); }
.topbar-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.topbar-links a { color: rgba(255,255,255,0.72); font-weight: 400; }
.topbar-links a:hover { color: #fff; text-decoration: none; }
.topbar-cta { color: #9fd3c9 !important; font-weight: 600; }
.topbar-cta:hover { color: #cfe6e1 !important; }
@media (max-width: 1024px) { .topbar-note { display: none; } .topbar .container { justify-content: flex-end; } }
@media (max-width: 900px) { .topbar { display: none; } }

/* ---------- primary nav links ---------- */
.primary-nav .nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; color: var(--steel); font-weight: 500; font-size: .97rem; letter-spacing: -0.01em; border-radius: var(--radius); }
.primary-nav .nav-link:hover, .primary-nav .nav-link.active { color: var(--ink); background: var(--paper); text-decoration: none; }
.nav-caret { width: 12px; height: 12px; flex: none; opacity: .65; transition: transform .18s ease; }
.has-mega { position: static; }
.has-mega:hover > .nav-link, .has-mega:focus-within > .nav-link { color: var(--ink); background: var(--paper); }
.has-mega:hover .nav-caret, .has-mega:focus-within .nav-caret { transform: rotate(180deg); opacity: 1; }

/* ---------- mega-menu panels ---------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1200;
  background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(21,24,29,0.22);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-mega:hover > .mega, .has-mega:focus-within > .mega { opacity: 1; visibility: visible; transform: none; }
.site-header[data-mega="closed"] .mega { opacity: 0; visibility: hidden; transform: translateY(-8px); }
.mega-inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 4vw, 4rem); align-items: start; height: auto; padding: 2.25rem 0 2.5rem; }
.mega-cols { display: grid; gap: 0 clamp(1.5rem, 3vw, 3rem); }
.mega-cols-2 { grid-template-columns: 1fr 1fr; }
.mega-head { margin: 0 0 .6rem; padding-left: .8rem; font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--mute); }
.mega-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: .85rem; padding: .7rem .8rem; border-radius: var(--radius); color: var(--ink); }
.mega-item:hover { background: var(--paper); text-decoration: none; }
.mega-ico { width: 22px; height: 22px; margin-top: .1rem; color: var(--accent); }
.mega-item:hover .mega-ico { color: var(--accent-ink); }
.mega-text { display: block; min-width: 0; }
.mega-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: .97rem; letter-spacing: -0.02em; line-height: 1.3; }
.mega-desc { display: block; margin-top: .15rem; font-size: .86rem; line-height: 1.4; color: var(--steel); }

/* The panel's right-hand card: one dark block so the eye lands on the CTA. */
.mega-feature { background: var(--graphite); color: #fff; border-radius: var(--radius); padding: 1.6rem 1.5rem; align-self: start; }
.mega-feature .mega-head { padding-left: 0; color: #9fd3c9; }
.mega-feature h3 { color: #fff; font-size: 1.15rem; margin: 0 0 .5rem; }
.mega-feature p { color: rgba(255,255,255,0.74); font-size: .9rem; line-height: 1.5; margin: 0 0 1.1rem; }
.mega-feature-cta { display: inline-flex; align-items: center; gap: .4rem; color: #9fd3c9; font-weight: 600; font-size: .92rem; }
.mega-feature-cta:hover { color: #fff; text-decoration: none; }
.mega-feature-cta span { transition: transform .15s ease; }
.mega-feature-cta:hover span { transform: translateX(3px); }
.mega-feature-link { display: block; margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--line-dark); color: rgba(255,255,255,0.74); font-size: .88rem; }
.mega-feature-link + .mega-feature-link { margin-top: 0; }
.mega-feature-link:hover { color: #fff; text-decoration: none; }
@media (max-width: 1180px) { .mega-inner { grid-template-columns: minmax(0, 1fr) 260px; } }
@media (max-width: 1024px) { .mega { display: none; } }

/* ---------- hero headline with the rotating department ---------- */
.hero-rotator { position: relative; display: inline-block; color: #9fd3c9; }
.hero-rotator::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.1em; height: 3px; background: rgba(159,211,201,0.4); }
.rot-word { display: inline-block; transition: opacity .28s ease, transform .28s ease; }
.hero h1 .rot-line { display: block; }
.hero-statement { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; font-size: clamp(1.15rem, 1.9vw, 1.5rem); color: #fff !important; line-height: 1.3; margin-bottom: .9rem !important; max-width: 26ch; }
@media (prefers-reduced-motion: reduce) { .rot-word, .mega, .nav-caret, .mega-feature-cta span { transition: none; } }

/* ============================================================
   Interactive savings tools (/js/tools.js). Same visual language as the
   flagship calculator: pale input side, graphite result panel.
   ============================================================ */
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 6rem; }
.bg-graphite .tool, .bg-dark-section .tool { background: var(--graphite-2); border-color: var(--line-dark); }
.tool-head { padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2rem) 0; }
.tool-kicker { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.bg-graphite .tool-kicker, .bg-dark-section .tool-kicker { color: #9fd3c9; }
.tool-head h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: .4rem; }
.tool-head p { color: var(--steel); max-width: 62ch; margin: 0; }
.bg-graphite .tool-head h3, .bg-dark-section .tool-head h3 { color: #fff; }
.bg-graphite .tool-head p, .bg-dark-section .tool-head p { color: rgba(255,255,255,0.74); }

.tool-body { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2rem); }
.tool-body > * { min-width: 0; }
.tool-field { margin-bottom: 1.35rem; }
.tool-field:last-child { margin-bottom: 0; }
.tool-field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: .45rem; overflow-wrap: anywhere; }
.bg-graphite .tool-field label, .bg-dark-section .tool-field label { color: #fff; }
.tool-field label output { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.bg-graphite .tool-field label output, .bg-dark-section .tool-field label output { color: #9fd3c9; }
.tool-field input[type=number] { max-width: min(13rem, 100%); }
.tool-field input[type=range] { display: block; width: 100%; max-width: min(24rem, 100%); accent-color: var(--accent); height: 1.6rem; margin: 0; }
.tool-hint { display: block; color: var(--steel); font-size: .85rem; line-height: 1.45; margin-top: .4rem; }
.bg-graphite .tool-hint, .bg-dark-section .tool-hint { color: rgba(255,255,255,0.6); }

.tool-results { background: var(--graphite); color: #fff; border-radius: var(--radius); padding: clamp(1.3rem, 2.5vw, 1.75rem); position: sticky; top: 6rem; }
.bg-graphite .tool-results, .bg-dark-section .tool-results { background: var(--ink); }
.tool-headline { border-bottom: 1px solid var(--line-dark); padding-bottom: 1rem; margin-bottom: .35rem; }
.tool-headline span { display: block; color: rgba(255,255,255,0.7); font-size: .88rem; margin-bottom: .3rem; }
.tool-headline strong { display: block; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.05; color: #9fd3c9; font-variant-numeric: tabular-nums; }
.tool-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line-dark); }
.tool-row span { color: rgba(255,255,255,0.72); font-size: .9rem; min-width: 0; overflow-wrap: anywhere; }
.tool-row strong { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tool-note { color: rgba(255,255,255,0.55); font-size: .8rem; line-height: 1.5; margin: 1rem 0; }
.tool-results .btn-primary { width: 100%; background: var(--accent); border-color: var(--accent); color: #fff; white-space: normal; text-align: center; line-height: 1.3; }
.tool-results .btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }

/* Stacked tools on a hub page want air between them, not a hairline. */
.tool + .tool { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.tool-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }

@media (max-width: 900px) {
  .tool-body { grid-template-columns: 1fr; }
  .tool-results { position: static; }
}

/* ---------- newsletter capture in the footer ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.footer-news { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.75rem, 4vw, 2.5rem) 0; margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line-dark); scroll-margin-top: 6rem; }
.footer-news .footer-title { margin-bottom: .4rem; }
.footer-news-copy p { color: rgba(255,255,255,0.7); font-size: .95rem; margin: 0; max-width: 52ch; }
.news-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.news-form .form-control { flex: 1 1 15rem; min-width: 0; }
.news-form .btn { flex: 0 0 auto; background: var(--accent); border-color: var(--accent); color: #fff; }
.news-form .btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.news-note { color: rgba(255,255,255,0.5); font-size: .82rem; margin: .7rem 0 0; }
.news-msg { font-size: .92rem; margin: 0 0 .7rem; padding: .6rem .8rem; border-radius: var(--radius); }
.news-ok { background: rgba(159,211,201,0.14); color: #9fd3c9; }
.news-err { background: rgba(255,255,255,0.08); color: #f0d9b5; }
@media (max-width: 860px) { .footer-news { grid-template-columns: 1fr; } }

/* Six nav items need a little less air than five did. */
@media (max-width: 1300px) { .primary-nav .nav-link { padding: .55rem .6rem; font-size: .94rem; } }

/* ---------- website assistant widget ---------- */
.chat-widget { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1400; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.chat-launcher { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.1rem; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: -0.01em; cursor: pointer; box-shadow: 0 10px 28px -10px rgba(21,24,29,0.5); transition: background .15s ease, transform .15s ease; }
.chat-launcher:hover { background: var(--accent-ink); transform: translateY(-1px); }
.chat-launcher svg { width: 20px; height: 20px; }
.chat-widget.is-open .chat-launcher { display: none; }
/* The hidden attribute hides via display:none in the UA stylesheet, which the
   author-level display:flex below silently beats -- so the panel shipped open.
   This rule restores it. */
.chat-panel[hidden] { display: none; }
.chat-panel { width: min(23rem, calc(100vw - 2.5rem)); height: min(30rem, calc(100vh - 6rem)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px -20px rgba(21,24,29,0.4); }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; background: var(--graphite); color: #fff; }
.chat-head strong { display: block; font-family: var(--font-display); font-size: .98rem; }
.chat-head span { display: block; font-size: .78rem; color: rgba(255,255,255,0.62); }
.chat-close { background: none; border: 0; color: rgba(255,255,255,0.75); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 .25rem; }
.chat-close:hover { color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--paper); }
.chat-msg { max-width: 88%; padding: .6rem .8rem; border-radius: var(--radius); font-size: .92rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-bot { background: #fff; border: 1px solid var(--line); color: var(--ink); align-self: flex-start; }
.chat-you { background: var(--accent); color: #fff; align-self: flex-end; }
.chat-thinking { color: var(--steel); }
.chat-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem .7rem; font: inherit; font-size: .92rem; line-height: 1.4; height: 2.6rem; min-height: 2.6rem; max-height: 120px; overflow-y: auto; color: var(--ink); background: #fff; }
.chat-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.chat-form button { flex: 0 0 auto; width: 2.6rem; border: 0; border-radius: var(--radius); background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-form button:hover { background: var(--accent-ink); }
.chat-form button:disabled, .chat-form textarea:disabled { opacity: .55; cursor: default; }
.chat-form button svg { width: 20px; height: 20px; }
.chat-foot { margin: 0; padding: .55rem .8rem .75rem; background: #fff; color: var(--steel); font-size: .76rem; line-height: 1.4; border-top: 1px solid var(--line); }
@media (max-width: 520px) { .chat-widget { right: .75rem; bottom: .75rem; left: .75rem; align-items: stretch; } .chat-panel { width: 100%; height: min(28rem, calc(100vh - 5rem)); } .chat-launcher { align-self: flex-end; } }
@media (prefers-reduced-motion: reduce) { .chat-launcher { transition: none; } }

/* ---------- Trust layer (2026-09-11): register tables, side rail, fact lists ---------- */
.doc-meta { color: var(--steel); font-size: .92rem; margin: 0 0 1.25rem; }
.doc-meta time { color: inherit; }
.trust-register { width: 100%; border-collapse: collapse; font-size: .97rem; margin: 0 0 2.5rem; }
.trust-register th, .trust-register td { text-align: left; vertical-align: top; padding: .9rem .9rem .9rem 0; border-top: 1px solid var(--line); line-height: 1.5; }
.trust-register thead th { border-top: 0; border-bottom: 2px solid var(--ink); font-family: var(--font-body); font-weight: 600; font-size: .85rem; color: var(--steel); padding-top: 0; }
.trust-register tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.trust-register tbody th a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.trust-register tbody th a:hover { border-bottom-color: var(--accent); }
.trust-register tbody tr:last-child th, .trust-register tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.side-rail { border-left: 1px solid var(--line); padding-left: clamp(1.25rem, 2.5vw, 2rem); }
.side-rail h2 { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--steel); margin: 0 0 .75rem; }
.side-rail h2 + * { margin-top: 0; }
.side-rail h2:not(:first-child) { margin-top: 2rem; }
.side-rail p, .side-rail li { font-size: .97rem; }
.side-rail .feature-list { margin: 0; }
.side-rail-cta { margin-top: 1rem; }
.fact-list { margin: 0 0 2.5rem; }
.fact-list > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.fact-list > div:last-child { border-bottom: 1px solid var(--line); }
.fact-list dt { font-weight: 600; color: var(--ink); font-size: .95rem; }
.fact-list dd { margin: 0; color: var(--steel); }
.policy-item { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.policy-item:last-child { border-bottom: 1px solid var(--line); }
.policy-item h3 { margin-bottom: .4rem; }
.policy-item p { margin: 0; color: var(--steel); }
.trust-qa h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.quotable { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.6; padding: 1.25rem 1.5rem; border-left: 3px solid var(--accent); background: var(--paper); margin: 0 0 2.5rem; }
.logo-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0 0 1.25rem; }
.logo-sheet figure { margin: 0; }
.logo-tile { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.logo-tile img { max-height: 56px; width: auto; }
.logo-tile-light { background: #fff; }
.logo-tile-dark { background: var(--graphite); }
.logo-sheet figcaption { font-size: .9rem; margin-top: .6rem; }
.footer-grid { grid-template-columns: 1.35fr .95fr .95fr .95fr .95fr 1.05fr; gap: 2rem; }
.footer-desc { max-width: 24ch; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 2rem 2.5rem; } .footer-grid > div:first-child { grid-column: 1 / -1; } .footer-desc { max-width: 52ch; } }
@media (max-width: 700px) { .trust-register, .trust-register tbody, .trust-register tr, .trust-register th, .trust-register td { display: block; width: auto; } .trust-register thead { display: none; } .trust-register tr { padding: 1rem 0; border-top: 1px solid var(--line); } .trust-register th, .trust-register td { border: 0; padding: .25rem 0; } .trust-register tbody th { width: auto; font-size: 1.05rem; padding-bottom: .5rem; } .trust-register td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 600; color: var(--steel); margin-bottom: .15rem; } .trust-register tbody tr:last-child th, .trust-register tbody tr:last-child td { border-bottom: 0; } .trust-register tbody tr:last-child { border-bottom: 1px solid var(--line); } }
@media (max-width: 900px) { .fact-list > div { grid-template-columns: 1fr; gap: .2rem; } .side-rail { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1.5rem; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } .logo-sheet { grid-template-columns: 1fr; } }

/* Hero above the fold (2026-09-14, Rodrigo): the photo stays full-bleed but the hero now sizes itself so the
   four "facts" boxes (166px) sit inside the first screen: header 113px + hero + facts <= viewport height. */
@media (min-width: 901px) {
  .hero { min-height: clamp(420px, calc(100vh - 281px), 860px); padding-top: 3rem; padding-bottom: 2.5rem; }
  .hero h1 { margin-bottom: 1rem; }
  .hero p { margin-bottom: 1.5rem; }
  .hero-kicker { margin-bottom: 1rem; }
}
@media (min-width: 901px) and (max-height: 820px) {
  .hero { padding-top: 2rem; padding-bottom: 1.75rem; }
  .hero h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
  .hero p { font-size: 1.02rem; max-width: 34rem; margin-bottom: 1.5rem; }
  .hero-kicker { margin-bottom: .75rem; }
  .facts .container { padding-top: 1rem; padding-bottom: 1rem; }
  .facts p { margin-bottom: 0; }
}
/* Footer logo (2026-09-14): the first footer column is narrower than the 282px the 64px-tall logo needs, so
   max-width:100% squeezed it (634x144 rendered at 231x64). Scale by width instead and let the height follow. */
.site-footer .brand img { height: auto; width: 100%; max-width: 282px; }

/* Spanish edition: labels run ~30% longer than the English ones, so keep nav
   items on one line and drop the duplicate phone / tagline before they wrap. */
.nav > li > a, .nav-phone, .topbar-links a { white-space: nowrap; }
@media (max-width: 1440px) {
  .nav-phone { display: none; }
  .nav > li > a { padding: .55rem .6rem; font-size: .94rem; }
  .topbar-note { display: none; }
  .topbar .container { justify-content: flex-end; }
}
@media (max-width: 1200px) { .topbar-links { gap: 1rem; } }

/* Reflow at 320-390px (WCAG 1.4.10): the footer legal links and large CTAs ran past the viewport and were clipped by body overflow-x:hidden. */
@media (max-width: 600px) {
  .footer-bottom-links { flex-wrap: wrap; gap: .5rem 1.25rem; }
  .btn-lg { white-space: normal; max-width: 100%; text-align: center; }
}

.news-note a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.form-note a { text-decoration: underline; }
/* 320px reflow: two footer columns with a 40px gap overflowed by ~50px. */
@media (max-width: 600px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; } .footer-links a, .footer-desc { overflow-wrap: anywhere; } }
@media (max-width: 360px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
/* Keyboard focus on form controls: WebKit drew no ring on <select>; add a solid outline on keyboard focus for every control. */
.form-control:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, select:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Guides with a comparison table overflowed at 390px: let the column shrink and scroll the table instead of the page. */
.guide-body { min-width: 0; overflow-wrap: break-word; }
.guide-body .table-scroll { max-width: 100%; overflow-x: auto; }
