/*
 * Polara design tokens (P1-01). One file for every page that is not the
 * homepage presentation. The values are the homepage and blog values from the
 * child theme (presentation/index.html and template-parts/milan-head.php,
 * v147), with the Phase 0 contrast fixes (P0-13).
 *
 * Contrast, measured against the surface each token is used on (WCAG 2.x):
 *   --ink        #171C19 on --paper #F2F0E8   15.1:1
 *   --ink-soft   #2B3A34 on --paper           10.5:1  (reading text)
 *   --ink-muted  #4F6158 on --paper            5.8:1  (secondary text)
 *   --label      #55665E on --paper            5.3:1  (mono labels, 12 px)
 *   --accent-ink #086A52 on --paper            5.8:1  (hover text and small accents;
 *                #0A7D61, the P0-13 value, is 4.47:1 on paper and only
 *                passes with white text on it, 5.1:1)
 *   placeholder  #5E6D66 on --paper            4.8:1
 *   --paper      #F2F0E8 on --button #10251D  14.1:1  (primary button)
 *   --on-dark    #EFF4F0 on --forest-deep #173A2D 11.2:1
 *   --on-dark-muted #B9C9C0 on --forest-deep    7.3:1
 *   --accent     #3ECFAA on --forest-deep        6.4:1  (accent on dark only)
 *   --forest     #0D1411 on --accent              9.5:1 (button text on accent)
 *   --footer-muted #8A989B on --forest #0D1411   6.3:1
 *   white #FFFFFF on --accent-ink #086A52           6.6:1 (parent widget buttons)
 * The accent #3ECFAA is never used as text or as a button fill with white
 * text on paper: it fails contrast there.
 *
 * The aliases at the end (--text, --surface, --accent-rgb, ...) are the names
 * the parent theme's widgets.css reads (audit overlay, chat panel). They point
 * at the tokens above, so the widgets use the same values.
 */
:root {
  color-scheme: light;

  /* Surfaces */
  --paper: #F2F0E8;
  --paper-sunk: #E9E6DD;
  --forest: #0D1411;
  --forest-deep: #173A2D;
  --button: #10251D;
  --button-hover: #080C0B;

  /* Text */
  --ink: #171C19;
  --ink-soft: #2B3A34;
  --ink-muted: #4F6158;
  --label: #55665E;
  --on-dark: #EFF4F0;
  --on-dark-muted: #B9C9C0;
  --footer-text: #C4CCCC;
  --footer-muted: #8A989B;

  /* Accent: #3ECFAA on dark surfaces only; --accent-ink on paper. */
  --accent: #3ECFAA;
  --accent-hover: #72E5C6;
  --accent-ink: #086A52;
  --accent-ink-hover: #06513F;
  --placeholder: #5E6D66;
  --gold: #E2BD52; /* the Madonnina only; not used on these pages */

  /* Rules */
  --rule: rgba(23, 28, 25, .22);
  --rule-strong: rgba(16, 37, 29, .38);
  --rule-dark: rgba(62, 207, 170, .28);
  --rule-footer: rgba(255, 255, 255, .12);

  /* Type */
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --display: clamp(2.5rem, 6vw, 4.5rem);
  --display-weight: 500;
  --display-tracking: -0.045em;
  --h2: clamp(1.9rem, 3.6vw, 3.2rem);
  --h3: clamp(1.15rem, 1.6vw, 1.4rem);
  --body: clamp(1.02rem, 1.1vw, 1.12rem);
  --label-size: 0.75rem;

  /* Layout */
  --gutter: 6.5vw;
  --gutter-mobile: 20px;
  --measure: 66ch;
  --max: 1240px;
  --radius: 0;
  --focus: 2px solid #086A52;
  --focus-dark: 2px solid #3ECFAA;

  /* Aliases read by the parent widgets.css (audit overlay, chat panel). */
  --bg: var(--paper);
  --surface: #FAF9F5;
  --text: var(--ink);
  --text-mid: var(--ink-soft);
  --text-muted: var(--ink-muted);
  --border: var(--rule);
  --border-mid: rgba(23, 28, 25, .3);
  --border-strong: rgba(23, 28, 25, .45);
  --accent-rgb: 8, 106, 82;
  --accent-dim: rgba(8, 106, 82, .08);
  --btn-primary-text: #FFFFFF;
  --btn-primary-bg-hover: var(--accent-ink-hover);
}
/*
 * Polara shared components (P1-01 to P1-05). Every page other than the
 * homepage presentation loads polara-tokens.css and this file. The header,
 * footer, CTA band and buttons follow the child theme's milan-head.php,
 * milan-header.php and milan-footer.php (v147). Decision 11: buttons use sans
 * sentence case; mono is for small labels only.
 */

/* ---------- base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: var(--focus); outline-offset: 3px; }
.on-dark :focus-visible, #footer :focus-visible, .cta-band :focus-visible { outline: var(--focus-dark); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100000; padding: 12px 16px; background: var(--ink); color: var(--paper); font: 600 .8rem/1 var(--mono); text-decoration: none; transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- labels and type ---------- */
.eyebrow { display: inline-block; color: var(--label); font: 500 var(--label-size)/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.on-dark .eyebrow, .cta-band .eyebrow { color: var(--accent); }
.display { max-width: 18ch; font: var(--display-weight) var(--display)/1 var(--sans); letter-spacing: var(--display-tracking); text-wrap: balance; }
.display em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.lede { max-width: 36rem; color: var(--ink-muted); font: 400 clamp(1.05rem, 1.3vw, 1.25rem)/1.55 var(--serif); }
.h2 { max-width: 22ch; font: 510 var(--h2)/1.04 var(--sans); letter-spacing: -.045em; text-wrap: balance; }

/* ---------- buttons (three kinds) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 52px; padding: 1rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius); font: 600 .95rem/1.2 var(--sans); text-decoration: none; text-align: left; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.btn .arw { transition: transform .25s ease; }
.btn-primary { background: var(--button); color: var(--paper); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--button-hover); color: var(--paper); }
  .btn-secondary:hover { border-color: var(--ink); background: rgba(23, 58, 45, .06); }
  .btn:hover .arw { transform: translateX(4px); }
}
.on-dark .btn-primary, .cta-band .btn-primary { background: var(--accent); color: var(--forest); }
.on-dark .btn-secondary, .cta-band .btn-secondary { color: var(--on-dark); border-color: rgba(239, 244, 240, .45); }
@media (hover: hover) {
  .on-dark .btn-primary:hover, .cta-band .btn-primary:hover { background: var(--accent-hover); color: var(--forest); }
  .on-dark .btn-secondary:hover, .cta-band .btn-secondary:hover { border-color: var(--accent); background: transparent; color: var(--accent); }
}
.link-arrow { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .45rem 0; color: var(--button); border-bottom: 1px solid var(--rule-strong); font: 600 .9rem/1.2 var(--sans); text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.link-arrow::after { content: '\2192'; transition: transform .25s ease; }
@media (hover: hover) { .link-arrow:hover { color: var(--accent-ink); border-color: var(--accent-ink); } .link-arrow:hover::after { transform: translateX(4px); } }
.on-dark .link-arrow, .cta-band .link-arrow { color: var(--on-dark); border-color: rgba(239, 244, 240, .4); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* ---------- header (one header on every page, P1-03) ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 24px; padding: clamp(14px, 1.8vw, 24px) clamp(20px, 3vw, 48px); background: rgba(242, 240, 232, .94); box-shadow: 0 1px 0 rgba(20, 32, 31, .1); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: rgba(242, 240, 232, .82); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); } }
.brand { display: flex; align-items: center; min-height: 44px; color: #14201F; text-decoration: none; }
.ox-logo { height: 22px; width: auto; color: #14201F; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); list-style: none; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font: 500 .95rem/1 var(--sans); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
@media (hover: hover) { .site-nav a:hover { border-bottom-color: var(--ink); } }
.nav-lang { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px; color: #14201F; border: 1px solid rgba(20, 32, 31, .34); font: 500 .75rem/1 var(--mono); letter-spacing: .12em; text-decoration: none; }
.nav-cta { min-height: 44px; padding: .7rem 1.1rem; font-size: .9rem; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 48px; height: 48px; padding: 0 11px; background: rgba(242, 240, 232, .72); border: 1px solid rgba(20, 32, 31, .56); cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #14201F; transition: transform .25s ease, opacity .2s ease; }
.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; }
@media (max-width: 899px) {
  .site-nav, .site-header > .nav-lang { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: flex; }
  .mobile-menu { position: absolute; top: 100%; right: clamp(20px, 3vw, 48px); margin-top: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 210px; padding: 12px; background: #F4F4F0; border: 1px solid rgba(20, 32, 31, .18); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
  .site-header.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .mobile-menu a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; color: #14201F; border: 1px solid rgba(20, 32, 31, .2); font: 500 .95rem/1 var(--sans); text-decoration: none; }
}
@media (max-width: 420px) { .nav-cta { padding: .6rem .8rem; font-size: .85rem; } .site-header { gap: 12px; } }

/* ---------- page shell ---------- */
main { display: block; }
.shell { padding: 0 var(--gutter); }
.inner { max-width: var(--max); margin: 0 auto; }
@media (max-width: 720px) { .shell { padding: 0 var(--gutter-mobile); } }

/* ---------- hero ---------- */
.page-hero { padding-top: clamp(120px, 18vh, 190px); padding-bottom: clamp(56px, 9vh, 104px); border-bottom: 1px solid var(--rule); }
.page-hero .display { margin-top: 20px; }
.page-hero .lede { margin-top: 26px; }
.page-hero .actions { margin-top: 34px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; list-style: none; }
.hero-chips li { padding: 7px 11px; border: 1px solid var(--rule-strong); color: var(--ink-soft); font: 500 .75rem/1.3 var(--mono); letter-spacing: .06em; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin-top: clamp(40px, 6vh, 64px); border-top: 1px solid var(--rule); list-style: none; }
.figures li { padding: 22px 24px 0 0; }
.figures li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.figures strong { display: block; font: 500 clamp(1.8rem, 3vw, 2.6rem)/1 var(--sans); letter-spacing: -.04em; color: var(--ink); }
.figures span { display: block; margin-top: 10px; color: var(--ink-muted); font: 400 .95rem/1.45 var(--serif); }
@media (max-width: 720px) { .figures { grid-template-columns: 1fr; } .figures li { padding-right: 0; } .figures li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 18px; } }

/* ---------- sections ---------- */
.section { padding-top: clamp(64px, 11vh, 128px); padding-bottom: clamp(64px, 11vh, 128px); border-bottom: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: clamp(32px, 5vh, 56px); }
.section-head .lede { margin-top: 6px; }
.section-body { max-width: 100%; }
.section-body > * + * { margin-top: 1.2rem; }
.section-body p, .section-body li { color: var(--ink-soft); font: 400 var(--body)/1.65 var(--serif); max-width: var(--measure); }
.section-body strong { color: var(--ink); font-weight: 600; }
.section-body a:not(.btn):not(.link-arrow) { color: var(--button); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.section-body h3 { color: var(--ink); font: 530 var(--h3)/1.2 var(--sans); letter-spacing: -.025em; }
.section-body h4 { color: var(--ink); font: 600 1rem/1.3 var(--sans); }
.section-body .eyebrow { display: block; }
.section-body ul { list-style: none; }
.section-body ul li { position: relative; padding-left: 1.1rem; }
.section-body ul li + li { margin-top: .55rem; }
.section-body ul li::before { content: ''; position: absolute; left: 0; top: .8em; width: .45rem; height: 1px; background: var(--accent-ink); }
.section-body .item { padding: 24px 0; border-top: 1px solid var(--rule); }
.section-body .item > * + * { margin-top: .7rem; }
.section-body .item-title { color: var(--ink); font: 600 1rem/1.35 var(--sans); }
.section-body .figure { color: var(--ink); font: 500 clamp(1.8rem, 3vw, 2.5rem)/1 var(--sans); letter-spacing: -.04em; }
.section-body .source, .section-body .index { color: var(--label); font: 500 var(--label-size)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.section-body .chip { display: inline-block; padding: 6px 10px; border: 1px solid var(--rule-strong); font: 500 .75rem/1.3 var(--mono); }
.section-body .lead { color: var(--ink); font: 400 clamp(1.1rem, 1.4vw, 1.3rem)/1.55 var(--serif); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 clamp(24px, 4vw, 64px); align-items: start; }
.cols > .col > * + * { margin-top: 1.2rem; }
.cols > .col > .item:first-child { margin-top: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.table-wrap table { width: 100%; min-width: 32rem; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table-wrap th { color: var(--label); font: 600 .75rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.table-wrap td { color: var(--ink-soft); font: 400 .98rem/1.55 var(--serif); }

/* numbered rows: problems, use cases, FAQ */
.rows { list-style: none; border-top: 1px solid var(--rule); }
.rows > li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: clamp(16px, 2.4vw, 40px); padding: clamp(22px, 3.4vh, 36px) 0; border-bottom: 1px solid var(--rule); }
.rows .idx { padding-top: .3rem; color: var(--label); font: 500 var(--label-size)/1 var(--mono); letter-spacing: .12em; }
.rows h3 { color: var(--ink); font: 530 var(--h3)/1.25 var(--sans); letter-spacing: -.025em; max-width: 48ch; }
.rows p { margin-top: .7rem; max-width: var(--measure); color: var(--ink-soft); font: 400 var(--body)/1.65 var(--serif); }
.rows ul { margin-top: 1rem; list-style: none; }
.rows ul li { padding: .9rem 0; border-top: 1px solid var(--rule); }
.rows ul li strong { display: block; color: var(--ink); font: 600 .98rem/1.35 var(--sans); }
.rows ul li span { display: block; margin-top: .3rem; color: var(--ink-muted); font: 400 1rem/1.55 var(--serif); }
@media (max-width: 720px) { .rows > li { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- proof: the approved cases ---------- */
.proof { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 900px) { .proof { grid-template-columns: 1.4fr 1fr 1fr; } }
.proof-cell { display: flex; flex-direction: column; gap: .75rem; padding: clamp(24px, 3vw, 40px); background: var(--paper); }
.proof-cell.is-match { background: #FAF9F5; }
.proof-name { color: var(--label); font: 600 var(--label-size)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.proof-tag { align-self: flex-start; padding: 4px 8px; background: var(--forest-deep); color: var(--on-dark); font: 500 .72rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.proof-value { color: var(--ink); font: 500 clamp(2.4rem, 4.4vw, 3.6rem)/1 var(--sans); letter-spacing: -.05em; }
.proof-cell:not(.is-match) .proof-value { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.proof-metric { color: var(--ink); font: 600 1rem/1.35 var(--sans); }
.proof-result { color: var(--ink-soft); font: 400 1rem/1.6 var(--serif); }
.proof-status { margin-top: auto; color: var(--label); font: 500 var(--label-size)/1.4 var(--mono); }
.proof-more { margin-top: 28px; }

/* ---------- FAQ: one array, rendered as rows ---------- */
.faq { list-style: none; border-top: 1px solid var(--rule); max-width: 62rem; }
.faq > li { padding: clamp(22px, 3.2vh, 32px) 0; border-bottom: 1px solid var(--rule); }
.faq h3 { color: var(--ink); font: 530 var(--h3)/1.25 var(--sans); letter-spacing: -.025em; }
.faq p { margin-top: .8rem; max-width: var(--measure); color: var(--ink-soft); font: 400 var(--body)/1.65 var(--serif); }

/* ---------- CTA band (one per page) and contact form ---------- */
.cta-band { position: relative; background: var(--forest-deep); color: var(--on-dark); padding: clamp(72px, 11vh, 128px) var(--gutter); scroll-margin-top: 80px; }
@media (max-width: 720px) { .cta-band { padding-left: var(--gutter-mobile); padding-right: var(--gutter-mobile); } }
.cta-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 110px); align-items: end; }
.cta-band.has-form .cta-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 900px) { .cta-inner, .cta-band.has-form .cta-inner { grid-template-columns: 1fr; align-items: start; } }
.cta-title { margin-top: 20px; max-width: 14ch; font: 510 clamp(2.1rem, 4vw, 4.2rem)/.98 var(--sans); letter-spacing: -.05em; text-wrap: balance; }
.cta-lede { margin-top: 24px; max-width: 30rem; color: var(--on-dark-muted); font: 400 clamp(1rem, 1.2vw, 1.18rem)/1.55 var(--serif); }
.cta-note { margin-top: 18px; color: var(--on-dark-muted); font: 500 var(--label-size)/1.5 var(--mono); letter-spacing: .06em; }
.cta-band .actions { flex-direction: column; align-items: flex-start; }
.cta-band.has-form .actions { margin-top: 30px; flex-direction: row; }
.cta-steps { margin-top: 30px; list-style: none; counter-reset: step; }
.cta-steps li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule-dark); counter-increment: step; }
.cta-steps li::before { content: counter(step, decimal-leading-zero); color: var(--accent); font: 500 var(--label-size)/1.6 var(--mono); }
.cta-steps strong { display: block; color: var(--on-dark); font: 600 1rem/1.3 var(--sans); }
.cta-steps span { display: block; margin-top: 3px; color: var(--on-dark-muted); font: 400 .98rem/1.5 var(--serif); }
.form-card { background: var(--paper); color: var(--ink); padding: clamp(24px, 3.2vw, 44px); }
.form-card h3 { font: 530 clamp(1.3rem, 2vw, 1.7rem)/1.15 var(--sans); letter-spacing: -.03em; }
.form-card .form-sub { margin-top: 10px; color: var(--ink-muted); font: 400 1rem/1.55 var(--serif); }
.form-card :focus-visible { outline: var(--focus); }

/* The form markup is the page's own (ids and names read by the widget
   scripts). These rules restyle it: bottom-rule inputs, as on the homepage. */
.form-card .polara-form { display: grid; gap: 18px; margin-top: 24px; }
.form-card .polara-form .row.two, .form-card .polara-form .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .polara-form .row.two, .form-card .polara-form .frow { grid-template-columns: 1fr; } }
.form-card .polara-form label { display: block; color: var(--ink); font: 600 .9rem/1.3 var(--sans); }
.form-card .polara-form label span { color: var(--ink-muted); font-weight: 400; }
.form-card .polara-form input[type="text"], .form-card .polara-form input[type="email"], .form-card .polara-form input[type="tel"], .form-card .polara-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 0 9px; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0; font: 400 1.02rem/1.4 var(--sans); }
.form-card .polara-form textarea { min-height: 96px; resize: vertical; }
.form-card .polara-form input::placeholder, .form-card .polara-form textarea::placeholder { color: var(--placeholder); opacity: 1; }
.form-card .polara-form input:focus-visible, .form-card .polara-form textarea:focus-visible { outline: var(--focus); outline-offset: 2px; border-bottom-color: var(--ink); }
.form-card .polara-form .honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .polara-form .polara-consent label, .form-card .polara-form label.consent { display: flex; gap: 10px; align-items: flex-start; font: 400 .9rem/1.5 var(--sans); color: var(--ink-soft); }
.form-card .polara-form input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--button); }
.form-card .polara-form .polara-consent a, .form-card .polara-form label.consent a { color: var(--button); text-decoration: underline; }
.form-card .polara-form .submit-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.form-card .polara-form .privacy-note, .form-card .polara-form .fnote { color: var(--ink-muted); font: 400 .9rem/1.5 var(--sans); }
.form-card .polara-form .btn { justify-self: start; }
.form-card .form-card .polara-form-message { display: none; padding: 12px 14px; border: 1px solid var(--rule); font: 400 .95rem/1.5 var(--sans); }
.form-card .polara-form-message.show { display: block; }
.form-card .polara-form-message.error { border-color: #A3271B; color: #8A1F14; background: #FBEDEA; }
.form-card .polara-form-message.success { border-color: var(--accent-ink); color: var(--forest-deep); }
.form-card .polara-turnstile { min-height: 65px; }

.form-card .polara-form label { text-transform: none; letter-spacing: 0; }
.form-card .polara-form .polara-consent { margin: 0; }
.form-card .polara-form button[type="submit"] { width: auto; min-height: 52px; padding: 1rem 1.5rem; background: var(--button); color: var(--paper); border: 0; border-radius: 0; font: 600 .95rem/1.2 var(--sans); letter-spacing: 0; text-transform: none; cursor: pointer; }
@media (hover: hover) { .form-card .polara-form button[type="submit"]:hover { background: var(--button-hover); opacity: 1; } }
.form-card .polara-form button[type="submit"]:disabled { opacity: .6; cursor: wait; }

/* ---------- legal and confirmation pages ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.25rem; }
.prose p, .prose li { color: var(--ink-soft); font: 400 clamp(1.02rem, 1.1vw, 1.12rem)/1.7 var(--serif); }
.prose h2 { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--rule); color: var(--ink); font: 530 clamp(1.35rem, 2vw, 1.8rem)/1.2 var(--sans); letter-spacing: -.03em; }
.prose h3 { margin-top: 1.8rem; color: var(--ink); font: 600 1.1rem/1.3 var(--sans); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .45rem; }
.prose a { color: var(--button); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose code { padding: .1rem .35rem; background: var(--paper-sunk); border: 1px solid var(--rule); font: 400 .88em var(--mono); color: var(--forest-deep); }
.updated { margin-top: 18px; color: var(--label); font: 500 var(--label-size)/1.5 var(--mono); letter-spacing: .06em; }
.confirm-next { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; }

/* ---------- footer (one footer, P1-03; from milan-footer.php) ---------- */
#footer { position: relative; overflow: hidden; background: var(--forest); color: var(--footer-text); padding: clamp(64px, 11vh, 120px) var(--gutter) clamp(48px, 7vh, 84px); }
@media (max-width: 720px) { #footer { padding-left: var(--gutter-mobile); padding-right: var(--gutter-mobile); } }
.ft-cols { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2.4rem; }
.ft-label { display: block; margin-bottom: 1.3rem; color: var(--footer-muted); font: 500 .75rem/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.ft-brand { max-width: 24ch; margin-bottom: 1.1rem; color: #D9DDD9; font: 400 clamp(1rem, 1.2vw, 1.15rem)/1.5 var(--serif); }
.ft-note { color: var(--footer-muted); font: 400 .8rem/1.5 var(--mono); letter-spacing: .03em; }
.ft-col ul { list-style: none; }
.ft-col a { display: flex; align-items: center; width: max-content; max-width: 100%; min-height: 44px; color: var(--footer-text); font: 400 clamp(1rem, 1.15vw, 1.1rem)/1.2 var(--sans); text-decoration: none; transition: color .2s ease; }
@media (hover: hover) { .ft-col a:hover { color: #FFFFFF; } }
.ft-col .ft-label + ul + .ft-label { margin-top: 2rem; }
.ft-muted { display: block; color: var(--footer-muted); font: 400 1rem/1.5 var(--sans); }
@media (max-width: 900px) { .ft-cols { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; } }
@media (max-width: 520px) { .ft-cols { grid-template-columns: 1fr; } }
.ft-brandmark { margin-top: clamp(64px, 10vh, 120px); }
.ft-wordmark { display: block; width: 100%; height: auto; color: #E8ECEC; }
.ft-rule { border: 0; border-top: 1px solid var(--rule-footer); margin: clamp(22px, 3.5vh, 44px) 0 clamp(16px, 2.2vh, 26px); }
.ft-legal { text-align: center; color: var(--footer-muted); font: 400 .8rem/1.6 var(--mono); letter-spacing: .05em; }
.ft-legal a { color: var(--footer-muted); text-decoration: underline; text-decoration-color: rgba(138, 152, 155, .5); text-underline-offset: 3px; }
@media (hover: hover) { .ft-legal a:hover { color: #FFFFFF; } }
@media (max-width: 640px) { .ft-legal .ft-dot { display: none; } .ft-legal .ft-links { display: block; } }

/* ---------- blog ---------- */
.blog-hero { padding-top: clamp(120px, 18vh, 190px); }
.post-list { margin-top: clamp(40px, 6vh, 72px); list-style: none; border-top: 1px solid var(--rule); }
.post-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: clamp(16px, 2.4vw, 40px); align-items: start; padding: clamp(26px, 3.6vh, 40px) 0; border-bottom: 1px solid var(--rule); }
.post-idx { padding-top: .35rem; color: var(--label); font: 500 var(--label-size)/1 var(--mono); letter-spacing: .12em; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--label); font: 500 var(--label-size)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.post-meta .post-cat { color: var(--forest-deep); }
.post-meta a { color: var(--forest-deep); }
.post-ttl { margin-top: 14px; max-width: 30ch; font: 530 clamp(1.3rem, 2vw, 1.8rem)/1.18 var(--sans); letter-spacing: -.028em; text-wrap: balance; }
.post-ttl a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
@media (hover: hover) { .post-ttl a:hover { color: var(--accent-ink); } }
.post-exc { margin-top: 14px; max-width: 60ch; color: var(--ink-muted); font: 400 clamp(.98rem, 1.08vw, 1.08rem)/1.62 var(--serif); }
.post-go { align-self: end; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: clamp(32px, 5vh, 56px); font: 500 .8rem/1 var(--mono); letter-spacing: .08em; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; color: var(--forest-deep); border: 1px solid var(--rule-strong); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--forest-deep); color: var(--paper); border-color: var(--forest-deep); }
@media (max-width: 720px) { .post-row { grid-template-columns: 1fr; gap: 12px; } .post-idx { display: none; } .post-go { align-self: start; } }

/* article */
.post-head { padding-top: clamp(120px, 18vh, 190px); }
.post-h1 { margin-top: 22px; max-width: 20ch; font: 510 clamp(2.2rem, 4.2vw, 4.2rem)/1.02 var(--sans); letter-spacing: -.05em; text-wrap: balance; }
.post-sub { margin-top: 24px; max-width: 36rem; color: var(--ink-muted); font: 400 clamp(1.05rem, 1.25vw, 1.25rem)/1.55 var(--serif); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 26px; color: var(--ink-soft); font: 500 .95rem/1.4 var(--sans); }
.byline .eyebrow { letter-spacing: .1em; }
.post-grid { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); margin-top: clamp(44px, 7vh, 80px); padding-top: clamp(28px, 4vh, 44px); border-top: 1px solid var(--rule); }
.post-toc { position: sticky; top: 6.5rem; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.toc-label { padding-bottom: 12px; border-bottom: 1px solid var(--rule); color: var(--forest-deep); font: 600 var(--label-size)/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.toc-list { display: flex; flex-direction: column; gap: 8px; }
.toc-list a { padding-left: 12px; border-left: 1px solid var(--rule); color: var(--ink-muted); font: 400 .92rem/1.45 var(--serif); text-decoration: none; }
@media (hover: hover) { .toc-list a:hover { color: var(--forest-deep); border-color: var(--forest-deep); } }
@media (max-width: 1024px) { .post-grid { grid-template-columns: 1fr; gap: 24px; } .post-toc { display: none; } }
.article { min-width: 0; max-width: var(--measure); }
.article > * + * { margin-top: 1.4rem; }
.article p, .article li { color: var(--ink-soft); font: 400 clamp(1.05rem, 1.15vw, 1.18rem)/1.72 var(--serif); }
.article strong { color: var(--ink); font-weight: 600; }
.article a { color: var(--forest-deep); text-decoration: underline; text-decoration-color: rgba(23, 58, 45, .45); text-underline-offset: 3px; }
.article h2 { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); color: var(--ink); font: 530 clamp(1.5rem, 2.2vw, 2rem)/1.15 var(--sans); letter-spacing: -.035em; scroll-margin-top: 90px; }
.article h3 { margin-top: 2.2rem; color: var(--ink); font: 530 clamp(1.2rem, 1.6vw, 1.4rem)/1.2 var(--sans); letter-spacing: -.025em; }
.article ul, .article ol { padding-left: 1.25rem; }
.article ul { list-style: none; }
.article ul li { position: relative; padding-left: 1rem; }
.article ul li + li, .article ol li + li { margin-top: .5rem; }
.article ul li::before { content: ''; position: absolute; left: 0; top: .8em; width: .4rem; height: 1px; background: var(--accent-ink); }
.article ol li::marker { color: var(--forest-deep); font: 600 .85rem var(--mono); }
.article blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.5rem; border-left: 2px solid var(--accent-ink); color: var(--ink); font: italic 400 clamp(1.15rem, 1.4vw, 1.35rem)/1.5 var(--serif); }
.article code { padding: .1rem .35rem; background: var(--paper-sunk); border: 1px solid var(--rule); color: var(--forest-deep); font: 400 .88em var(--mono); }
.article pre { padding: 1.25rem; overflow-x: auto; background: var(--forest); color: var(--paper); font: 400 .88rem/1.6 var(--mono); }
.article pre code { background: none; border: 0; padding: 0; color: inherit; }
.article hr { margin: 3rem 0; border: 0; border-top: 1px solid var(--rule); }
.article .table-wrap { margin: 2rem 0; }
.article table { width: 100%; border-collapse: collapse; }
.article th, .article td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.article th { color: var(--forest-deep); font: 600 var(--label-size)/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.article td { color: var(--ink-soft); font: 400 .98rem/1.55 var(--serif); }
.post-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; margin-top: clamp(40px, 6vh, 64px); padding-top: 26px; border-top: 1px solid var(--rule); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.post-tags li { padding: 8px 12px; border: 1px solid var(--rule-strong); color: var(--forest-deep); font: 500 var(--label-size)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.post-share { display: flex; align-items: center; gap: 8px; color: var(--label); font: 500 var(--label-size)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--rule-strong); color: var(--forest-deep); }
.author-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: clamp(32px, 5vh, 48px); padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.author-mark { display: grid; place-items: center; width: 56px; height: 56px; background: var(--forest-deep); color: var(--accent); font: 600 1rem var(--mono); letter-spacing: .04em; }
.author-name { color: var(--ink); font: 530 1rem/1.2 var(--sans); }
.author-role { margin-top: 5px; color: var(--forest-deep); font: 500 var(--label-size)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.author-bio { margin-top: 10px; color: var(--ink-muted); font: 400 .98rem/1.55 var(--serif); }
.related { margin-top: clamp(64px, 10vh, 112px); padding-bottom: clamp(64px, 10vh, 112px); }
.related-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.related-title { margin-top: 14px; font: 510 clamp(1.7rem, 2.8vw, 2.6rem)/1.05 var(--sans); letter-spacing: -.045em; }
.related-list { margin-top: 28px; list-style: none; border-top: 1px solid var(--rule); }
.related-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: clamp(16px, 2.4vw, 40px); align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.related-idx, .related-date { color: var(--label); font: 500 var(--label-size)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.related-date { white-space: nowrap; }
.related-ttl { color: var(--ink); font: 530 clamp(1.1rem, 1.5vw, 1.35rem)/1.2 var(--sans); letter-spacing: -.025em; }
@media (hover: hover) { .related-row:hover .related-ttl { color: var(--accent-ink); } }
@media (max-width: 720px) { .related-row { grid-template-columns: 1fr; gap: 8px; } .related-idx { display: none; } }

/* ---------- ROI calculator (P0-03 markup, restyled) ---------- */
.calc-wrap { max-width: 860px; overflow-wrap: anywhere; }
.calc-wrap *, .calc-wrap *::before, .calc-wrap *::after { min-width: 0; }
.calc-hero { padding: clamp(120px, 18vh, 190px) 0 clamp(32px, 5vh, 56px); }
.calc-hero h1 { margin-top: 20px; max-width: 18ch; font: var(--display-weight) var(--display)/1 var(--sans); letter-spacing: var(--display-tracking); }
.calc-hero p { margin-top: 24px; max-width: 36rem; color: var(--ink-muted); font: 400 clamp(1.05rem, 1.3vw, 1.25rem)/1.55 var(--serif); }
.calc-card, .calc-results { margin-bottom: 24px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--rule); background: #FAF9F5; }
.calc-card h2 { margin-bottom: 24px; color: var(--label); font: 600 var(--label-size)/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.calc-fields { display: grid; gap: 22px; }
.calc-field { display: flex; flex-direction: column; gap: 8px; }
.calc-field label { color: var(--ink); font: 600 .95rem/1.35 var(--sans); }
.calc-field select, .calc-field input[type="number"] { width: 100%; max-width: 100%; padding: 10px 0 9px; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0; font: 400 1.05rem/1.4 var(--sans); }
.calc-field select:focus-visible, .calc-field input:focus-visible { outline: var(--focus); outline-offset: 2px; }
.calc-slider-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.calc-field input[type="range"] { flex: 1 1 10rem; width: 100%; accent-color: var(--button); cursor: pointer; }
.calc-slider-val { min-width: 6.5rem; text-align: right; color: var(--ink); font: 600 1rem/1.2 var(--mono); }
.calc-results { background: var(--paper); border-color: var(--rule-strong); }
.calc-results-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 520px) { .calc-results-grid { grid-template-columns: minmax(0, 1fr); } }
.calc-result { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--paper); }
.calc-result-label { color: var(--label); font: 500 var(--label-size)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.calc-result-value { color: var(--ink); font: 500 clamp(1.6rem, 3vw, 2.2rem)/1.05 var(--sans); letter-spacing: -.04em; }
.calc-result-value.large { font-size: clamp(2rem, 4vw, 2.8rem); }
.calc-priority { display: inline-flex; align-items: center; gap: .45rem; margin-top: .25rem; padding: .4rem .8rem; border: 1px solid var(--rule-strong); color: var(--ink); font: 600 .9rem/1.3 var(--sans); }
.calc-priority-alta { background: var(--forest-deep); color: var(--on-dark); border-color: var(--forest-deep); }
.calc-priority-media { background: var(--paper-sunk); }
.calc-priority-base { background: transparent; }
.calc-note { margin-top: 18px; color: var(--ink-soft); font: 400 1rem/1.6 var(--serif); }
.calc-disclaimer { margin: 28px 0 clamp(56px, 9vh, 96px); color: var(--ink-muted); font: 400 .95rem/1.6 var(--serif); }

/* ---------- parent widgets (audit overlay, chat): accent with AA contrast ---------- */
.polara-modal-overlay, .polara-chat-panel, .polara-chat-launcher, .polara-audit-cta { --accent: var(--accent-ink); font-family: var(--sans); }
.polara-audit-cta { min-height: 44px; }

/* Overhaul 20/10: the homepage's services and "Come lavoriamo" blocks on the AI service pages. */
.ov-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.ov-col { display: flex; flex-direction: column; gap: 14px; padding: 26px clamp(18px, 2.4vw, 40px) 8px; border-left: 1px solid var(--rule); }
.ov-col:first-child { padding-left: 0; border-left: 0; }
.ov-col:last-child { padding-right: 0; }
.ov-num { color: var(--ink-muted); font: 500 .75rem/1 var(--mono); letter-spacing: .14em; }
.ov-col h3, .ov-steps h3 { color: var(--ink); font: 500 clamp(1.5rem, 2.2vw, 2.1rem)/1.05 var(--sans); letter-spacing: -.045em; }
.ov-col p, .ov-steps p { max-width: 34ch; color: var(--ink-soft); font: 400 var(--body)/1.6 var(--serif); }
.ov-col .link-arrow { margin-top: auto; align-self: flex-start; }
.ov-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 44px); }
.ov-steps li { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 2px solid var(--ink); }
.ov-tag { align-self: flex-start; padding: 6px 10px; background: #dff5ec; color: #0f5a45; font: 500 .72rem/1 var(--mono); letter-spacing: .08em; }
.ov-alt { margin-top: clamp(36px, 6vh, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--ink-soft); font: 400 1.02rem/1.5 var(--sans); }
@media (max-width: 860px) {
  .ov-cols, .ov-steps { grid-template-columns: 1fr; }
  .ov-col, .ov-col:first-child { padding: 24px 0 14px; border-left: 0; border-top: 1px solid var(--rule); }
  .ov-col:first-child { border-top: 0; }
}

/* header CTA matches the homepage: mint button */
.nav-cta.btn-primary { background: var(--accent); border-color: var(--accent); color: #062218; }
@media (hover: hover) { .nav-cta.btn-primary:hover { background: #63DDBE; border-color: #63DDBE; color: #062218; } }

/* v4 (21/10): roundness, matching the homepage */
.btn, .nav-cta, .nav-lang { border-radius: 999px; }
.proof { border-radius: 18px; overflow: hidden; }
.form-card { border-radius: 18px; }
.form-card .polara-form input[type="text"], .form-card .polara-form input[type="email"], .form-card .polara-form input[type="tel"], .form-card .polara-form textarea { border-radius: 12px; }
.ov-tag { border-radius: 999px; padding: 6px 12px; }
.eyebrow::before { border-radius: 50%; }

/* v5 (21/10): responsive fixes (QA) */
.brand { flex-shrink: 0; }
@media (max-width: 380px) { .nav-cta { white-space: nowrap; font-size: .8rem; padding: .55rem .75rem; } }
@media (max-width: 560px) { .page-hero .actions { padding-right: 64px; } }
.ft-links a, .post-meta a { display: inline-flex; align-items: center; min-height: 44px; }
.proof-tag, .ov-tag { font-size: .75rem; }

/* v5 (21/10): /blog/ index as cards, same language as the homepage blog cards */
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.7vw, 24px); border-top: 0; }
.post-row { display: flex; flex-direction: column; gap: 14px; padding: 24px 24px 22px; border: 1px solid var(--rule); border-radius: 18px; background: #F8F7F2; transition: background .25s ease, border-color .25s ease, transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease; }
@media (hover: hover) { .post-row:hover { background: #FBFAF6; transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(13,20,17,.4); } }
.post-row .post-idx { display: none; }
.post-row .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.post-row .post-cat { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: #DFF5EC; color: #0F5A45; }
.post-row .post-ttl { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.22; letter-spacing: -.02em; }
.post-row .post-exc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-row .post-go { margin-top: auto; align-self: flex-start; }
@media (max-width: 1000px) { .post-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-list { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .site-header .nav-cta { display: none; } }

/* 22/10: more projects on the service pages */
.pj-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.pj-card { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 26px; border: 1px solid var(--rule); border-radius: 18px; background: #F8F7F2; }
.pj-sector { align-self: flex-start; display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: #DFF5EC; color: #0F5A45; font: 500 .75rem/1 var(--sans); }
.pj-card h3 { color: var(--ink); font: 500 clamp(1.15rem, 1rem + .4vw, 1.35rem)/1.22 var(--sans); letter-spacing: -.02em; }
.pj-card p { color: var(--ink-soft); font: 400 var(--body)/1.6 var(--serif); }
@media (max-width: 1000px) { .pj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pj-grid { grid-template-columns: 1fr; } }

/* 22/10: feature hero for service and vertical pages (night, grid, mint glow, illustration) */
.page-hero--feature { position: relative; overflow: hidden; background: #0D1411; color: #F2F0E8; padding: clamp(120px, 16vh, 168px) 0 clamp(48px, 7vh, 80px);
  background-image: radial-gradient(60% 70% at 85% 30%, rgba(62,207,170,.16), transparent 70%), linear-gradient(rgba(242,240,232,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(242,240,232,.045) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px; }
.page-hero--feature .phf-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.page-hero--feature .eyebrow { color: #3ECFAA; }
.page-hero--feature .display { margin-top: 18px; color: #F2F0E8; max-width: 16ch; }
.page-hero--feature .lede { margin-top: 24px; color: #C9CFCA; max-width: 36rem; }
.page-hero--feature .actions { margin-top: 32px; }
.page-hero--feature .btn-primary { background: #3ECFAA; border-color: #3ECFAA; color: #062218; }
.page-hero--feature .btn-secondary { background: transparent; border-color: rgba(242,240,232,.4); color: #F2F0E8; }
@media (hover: hover) { .page-hero--feature .btn-primary:hover { background: #63DDBE; border-color: #63DDBE; } .page-hero--feature .btn-secondary:hover { border-color: #F2F0E8; } }
.page-hero--feature .hero-chips li { border-color: rgba(242,240,232,.25); color: #E3E7E4; }
.phf-visual { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 24px; background: linear-gradient(155deg, #E9E6DC 0%, #EEF4EE 100%); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.phf-visual .illo { width: 84%; }
.phf-figures { margin-top: clamp(48px, 7vh, 80px); }
.page-hero--feature .figures { border-top: 1px solid rgba(242,240,232,.16); }
.page-hero--feature .figures li + li { border-left-color: rgba(242,240,232,.16); }
.page-hero--feature .figures strong { color: #F2F0E8; }
.page-hero--feature .figures span { color: #AAB3AD; }
.illo { display: block; width: 100%; height: auto; }
.illo .fl { stroke-dasharray: 2 9; animation: illoflow 1.4s linear infinite; }
.illo .pulse { transform-box: fill-box; transform-origin: center; animation: illopulse 2.6s cubic-bezier(.22,.61,.36,1) infinite; }
.illo .bar { transform-box: fill-box; transform-origin: bottom; animation: illobar 3.2s cubic-bezier(.22,.61,.36,1) infinite alternate; }
@keyframes illoflow { to { stroke-dashoffset: -22; } }
@keyframes illopulse { 50% { transform: scale(1.12); } }
@keyframes illobar { from { transform: scaleY(.82); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .illo .fl, .illo .pulse, .illo .bar { animation: none; } }
@media (max-width: 860px) { .page-hero--feature .phf-inner { grid-template-columns: 1fr; } .phf-visual { max-width: 420px; aspect-ratio: 16 / 10; } }
/* 22/10: header over the night hero stays paper (no grey tint), menu button right on small phones */
.site-header { background: rgba(242, 240, 232, .97) !important; }
@media (max-width: 400px) { .site-header .nav-toggle { margin-left: auto; } }

/* v18 (22/10): four services in the strip; four-step paths on consulting and training */
.ov-cols.ov-cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ov-steps.ov-steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ov-cols.ov-cols--4, .ov-steps.ov-steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ov-cols.ov-cols--4, .ov-steps.ov-steps--4 { grid-template-columns: 1fr; } }

/* ===== v25 (22/10): mobile layout precision (review-mobile/layout.md) and perf (perf.md) ===== */
@media (max-width: 560px) { .form-card .polara-form .row.two, .form-card .polara-form .frow { grid-template-columns: 1fr; } }
.cols { row-gap: clamp(32px, 6vw, 56px); }
body:has(#polara-chat-launcher) main:has(> .cta-band:last-child) { padding-bottom: 0; }
@media (max-width: 767px) { body:has(#polara-chat-launcher) #footer { padding-bottom: calc(clamp(48px, 7vh, 84px) + 72px); } }
@media (max-width: 480px) {
  .page-hero .actions { flex-direction: column; align-items: stretch; padding-right: 0; }
  .page-hero .actions .btn { width: 100%; justify-content: space-between; }
}
.post-meta { align-items: center; }
.ft-links .pc-reopen { min-height: 44px; }
#wm-back { min-height: 44px; display: inline-flex; align-items: center; }
#wm-mute { width: 44px; height: 44px; }
@media (max-width: 600px) { body:has(#wm-wrap) .pc-reopen-float { left: auto; right: 8px; bottom: auto; top: 8px; } }
.nav-toggle { border-radius: 50%; }
/* illustrations animate only while visible (they cost a layout per frame) */
.illo .fl, .illo .pulse, .illo .bar { animation-play-state: paused; }
.illo.is-on .fl, .illo.is-on .pulse, .illo.is-on .bar { animation-play-state: running; }

/* ===== v26 (24/10): phone and tablet pass (audits 24/10) ===== */
/* phone menu: the same full-width sheet as the homepage (was a 210px box) */
@media (max-width: 899px) {
  .mobile-menu { left: 16px; right: 16px; min-width: 0; gap: 0; padding: 6px 20px; border-radius: 20px; box-shadow: 0 18px 40px rgba(13, 20, 17, .18); }
  .mobile-menu a { min-height: 52px; padding: 0; border: 0; border-bottom: 1px solid rgba(20, 32, 31, .12); }
  .mobile-menu a:last-child { border-bottom: 0; }
}
/* 320px: the chat launcher sat on the right end of the full-width hero buttons */
@media (max-width: 360px) { body:has(#polara-chat-launcher) .page-hero .actions { padding-right: 64px; } }
/* reading text ran to ~100 characters per line: 66ch resolved in the container's font */
.section-body p, .section-body li, .rows p, .faq p, .prose p, .prose li, .article p, .article li { max-width: 36rem; }
/* tablet: three columns left one card alone on its row */
@media (min-width: 640px) and (max-width: 1099px) {
  .cols:has(> .col:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols > .col:nth-child(3):last-child { grid-column: 1 / -1; }
}
/* headings: no single-word last lines */
.prose h2, .prose h3, .article h2, .article h3, .pj-card h3, .ov-steps h3 { text-wrap: balance; }
/* phone landscape: the fixed header took a fifth of the height */
@media (max-height: 500px) and (orientation: landscape) { .site-header { padding-top: 8px; padding-bottom: 8px; } }
