/* Platomed — styles.css
   Tokens first, then base, layout, components, pages. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #0b2a3a;
  --ink-2: #2c4553;
  --muted: #4a5e69;
  --line: #e1e8ec;
  --field-border: #7b8d97;   /* 3.4:1 on bg and white (WCAG 1.4.11) */
  --accent: #0a8fc0;         /* decorative + large text only (3.5:1 on bg) */
  --accent-text: #006a8a;    /* small coloured text (5.9:1 on bg) */
  --tint-ai: #e0f2fb;
  --tint-sf: #e6eefb;
  --tint-web: #e3f4ee;
  --tint-soft: #eef6fa;
  --radius-lg: 32px;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 20px 40px -24px rgba(11, 42, 58, .35);
  --container: 1180px;
  --header-h: 76px;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; } /* author display rules (e.g. fieldset grid) must not override hidden */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 1.0625rem; touch-action: manipulation; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
main p a:not(.btn), main td a, main .box li a, .prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
main p a:not(.btn):hover, main td a:hover, main .box li a:hover, .prose a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 80px; }
.section--tight { padding-block: 48px; }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.875rem); font-weight: 800; letter-spacing: -.03em; margin: 8px 0 12px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Buttons & pills ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }
.btn--secondary { background: var(--surface); border-color: var(--line); }
.btn--secondary:hover { background: var(--tint-soft); }
.btn--light { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pill { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: .875rem; font-weight: 600; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11, 42, 58, .4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand img { width: 86px; height: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; padding: 0; }
.nav__list a[aria-current="page"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.nav__list > li { position: relative; }
.nav__list a, .nav__list .nav__btn { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; font-weight: 500; transition: background-color .15s ease, color .15s ease; }
.nav__btn { border: 0; background: none; cursor: pointer; }
.nav__list .chev { width: 12px; height: 12px; opacity: .7; transition: transform .15s ease; }
.nav__list > li:hover > a, .nav__list > li:hover > .nav__btn, .nav__list > li:focus-within > a, .nav__list > li:focus-within > .nav__btn { background: var(--tint-soft); }
.has-sub:hover .chev, .has-sub:focus-within .chev, .has-sub.is-open .chev { transform: rotate(180deg); }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; list-style: none; padding: 8px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); z-index: 70; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { display: block; }
.has-sub.is-closed > .sub { display: none !important; }
.sub a { display: block; border-radius: 12px; padding: 10px 14px; white-space: nowrap; }
.sub a:hover { background: var(--tint-soft); }
.header-cta { display: inline-flex; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.is-open { display: block; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(11, 42, 58, .45); }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--bg); padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overscroll-behavior: contain; box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .35); }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer__panel nav a { display: block; padding: 14px 12px; border-radius: 12px; font-size: 1.125rem; font-weight: 600; }
.drawer__panel nav a:hover, .drawer__panel nav a[aria-current="page"] { background: var(--surface); }
.drawer__panel .drawer-sub { list-style: none; padding: 0 0 6px 14px; margin: 0; }
.drawer__panel .drawer-sub a { font-size: 1rem; font-weight: 500; padding: 10px 12px; color: var(--ink-2); }
.drawer__panel .btn { justify-content: center; margin-top: auto; }

/* ---------- Hero (home) ---------- */
.hero { text-align: center; padding-block: 84px 56px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.5rem); line-height: .98; letter-spacing: -.04em; font-weight: 800; max-width: 14ch; margin: 20px auto 0; }
.hero .hl { color: var(--accent); }
.hero .lead { margin: 22px auto 0; }
.hero .btn-row { justify-content: center; margin-top: 30px; }
.hero .pill-row { justify-content: center; margin-top: 28px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: 56px 40px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; font-size: .9375rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; max-width: 18ch; margin: 18px 0 18px; }
.page-hero .hl { color: var(--accent); }
.page-hero .answer { font-size: 1.25rem; color: var(--ink-2); max-width: 62ch; }
.page-hero .btn-row { margin-top: 26px; }
.updated { display: block; margin-top: 18px; font-size: .875rem; color: var(--muted); }

/* ---------- Practice cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 10px; min-height: 330px; transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card h2, .card h3 { font-size: 2rem; line-height: 1.05; font-weight: 800; }
.card p { color: var(--ink-2); }
.card .pill { background: rgba(255, 255, 255, .8); border-color: transparent; font-size: .9375rem; }
.card__go { margin-top: auto; font-weight: 700; }
.card--ai { background: var(--tint-ai); }
.card--sf { background: var(--tint-sf); }
.card--web { background: var(--tint-web); }
.card--white { background: var(--surface); border: 1px solid var(--line); min-height: 0; }

/* ---------- Feature grid / boxes ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.box h3 { font-size: 1.375rem; margin-bottom: 8px; }
.box p { color: var(--muted); }
.box ul { margin-top: 10px; padding-left: 20px; color: var(--muted); }
.box ul li + li { margin-top: 4px; }
.box--ai { background: var(--tint-ai); border-color: transparent; }
.box--sf { background: var(--tint-sf); border-color: transparent; }
.box--web { background: var(--tint-web); border-color: transparent; }
.box--ai p, .box--sf p, .box--web p, .box--ai ul, .box--sf ul, .box--web ul { color: var(--ink-2); }
.box--flagship { border: 2px solid var(--ink); }
.badge { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 10px; margin-bottom: 12px; }

/* ---------- Spotlight + pillars ---------- */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.spot h2 { font-size: clamp(2rem, 3.8vw, 2.875rem); font-weight: 800; letter-spacing: -.03em; }
.spot p { color: var(--muted); font-size: 1.125rem; margin-top: 14px; }
.spot .btn { margin-top: 22px; }
.pillars { display: grid; gap: 14px; list-style: none; padding: 0; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.pillar .pillar__n { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--tint-ai); display: grid; place-items: center; font-weight: 800; color: var(--ink); }
.pillar b { display: block; font-size: 1.125rem; }
.pillar span { color: var(--muted); }

/* ---------- Steps ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; }
.panel > h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 22px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; counter-reset: step; }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps li { border-left: 3px solid var(--accent); padding-left: 14px; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-size: .8125rem; font-weight: 800; color: var(--accent-text); }
.steps b { display: block; font-size: 1.125rem; }
.steps span { color: var(--muted); }

/* ---------- Partners band ---------- */
.band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 44px; display: grid; grid-template-columns: 1fr 2fr; gap: 28px; align-items: center; }
.band h2 { font-size: clamp(1.75rem, 3.6vw, 2.625rem); font-weight: 800; }
.band p { color: #d6d4de; margin-top: 8px; }
.band ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.band ul a { display: block; height: 100%; background: rgba(255, 255, 255, .08); border-radius: 20px; padding: 18px; transition: background-color .15s ease; color: #fff; text-decoration: none; }
.band ul a:hover { background: rgba(255, 255, 255, .16); }
.band :focus-visible { outline-color: #fff; }
.band b { display: block; font-size: 1.1875rem; }
.band span { color: #d6d4de; font-size: .875rem; }

/* ---------- References ---------- */
.refs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; }
.refs li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.refs img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Logo cards (partners + references) ---------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; }
.logos--3 { grid-template-columns: repeat(3, 1fr); }
.logo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.logo-card__img { display: grid; place-items: center; height: 96px; }
.logo-card__img img { width: 100%; max-width: 190px; height: 80px; object-fit: contain; } /* fixed box: a 0x0 lazy image may never load */
.logo-card b { display: block; font-size: 1.0625rem; line-height: 1.2; }
.logo-card .where { color: var(--muted); font-size: .9375rem; }
.logo-card p { color: var(--ink-2); font-size: .9375rem; }
a.logo-card { transition: transform .2s ease, box-shadow .2s ease; }
a.logo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-card--lg .logo-card__img { height: 120px; }
.logo-card--lg .logo-card__img img { max-width: 230px; height: 100px; }
.logo-card__img img.small-logo, .logo-card--lg .logo-card__img img.small-logo { width: 105px; height: 50px; }

/* ---------- Text-only logo (when no logo file is available) ---------- */
.wordmark { font-weight: 800; font-size: 1.375rem; letter-spacing: .01em; color: var(--ink-2); text-align: center; line-height: 1.1; }

/* ---------- Final CTA ---------- */
.final { text-align: center; padding-block: 24px 88px; }
.final h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
.final p { color: var(--muted); margin: -6px auto 20px; max-width: 52ch; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
caption { text-align: left; padding: 16px 20px 0; color: var(--muted); font-size: .9375rem; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .875rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 700; }

/* ---------- FAQ (details) ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 1.125rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent-text); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); }
.faq details > div p + p { margin-top: 10px; }

/* ---------- Tabs ---------- */
.tabs__list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs__tab { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 18px; font-weight: 700; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.tabs__tab:hover { background: var(--tint-soft); }
.tabs__tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tabs__panel h3 { font-size: 1.5rem; margin-bottom: 12px; }
.tabs__panel h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 8px; }
.no-js .tabs__list { display: none; }
.js-ready [data-tab-hidden] { display: none; } /* only once main.js is running, so content never gets stuck hidden */
.no-js .tabs__panel + .tabs__panel { margin-top: 16px; }

/* Prompt-level demo */
.prompt { display: grid; gap: 14px; }
.prompt__bubble { background: var(--tint-soft); border-radius: 18px 18px 18px 6px; padding: 16px 18px; font-size: 1.0625rem; }
.prompt__why { color: var(--muted); }
.parts { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; }
.parts li { border: 1px dashed var(--line); border-radius: 999px; padding: 4px 12px; font-size: .875rem; font-weight: 700; color: var(--muted); }
.parts li.is-on { border-style: solid; border-color: var(--ink); background: var(--ink); color: #fff; }

/* Use-case list */
.usecases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; list-style: none; padding: 0; }
.usecases li b { display: block; }
.usecases li span { color: var(--muted); font-size: .9375rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; border-left: 2px dashed var(--line); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.timeline time { display: block; font-weight: 800; }
.timeline b { color: var(--accent-text); }

/* ---------- Callout ---------- */
.callout { background: var(--tint-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.callout strong { display: block; margin-bottom: 4px; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: .9375rem; }
.field .req { color: var(--accent-text); }
.field .hint { font-size: .875rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--field-border); background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease; }
.field select { background-color: var(--bg); color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11, 42, 58, .15); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .error { color: #b3261e; font-size: .875rem; font-weight: 600; }
.field .error:empty { display: none; }
fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 14px; min-width: 0; }
fieldset legend { padding: 0 6px; font-weight: 800; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; padding: 4px 0; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--ink); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__summary { border-radius: 12px; background: #fdecea; color: #8a1c14; padding: 12px 14px; font-weight: 600; }
.form__summary:empty { display: none; }
.privacy { font-size: .875rem; color: var(--muted); }
.contact-card { display: grid; gap: 18px; }
.contact-card dl { display: grid; gap: 14px; }
.contact-card dt { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-card dd { margin: 2px 0 0; font-size: 1.0625rem; overflow-wrap: anywhere; }
.contact-card dd a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h2 { font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-brand img { width: 110px; height: auto; margin-bottom: 12px; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8125rem; }

/* ---------- Reveal (progressive) ---------- */

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }
.prose { max-width: 70ch; }
.prose p + p { margin-top: 12px; }
.prose h2 { font-size: 1.75rem; margin: 28px 0 10px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Without JS the drawer cannot open, so show the plain menu instead. */
  .no-js .nav-toggle { display: none; }
  .no-js .nav { display: block; }
  .no-js .site-header__inner { height: auto; flex-wrap: wrap; padding-block: 10px; }
  .no-js .nav__list { flex-wrap: wrap; }
  .no-js .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; background: transparent; }
  .no-js .nav__btn .chev, .no-js .nav__list .chev { display: none; }
}
@media (max-width: 900px) {
  .section { padding-block: 60px; }
  .cards, .grid-3, .spot, .band, .band ul, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-4, .steps, .steps--5, .steps--3, .logos, .logos--3, .footer-grid { grid-template-columns: 1fr 1fr; }
  .card { min-height: 0; }
  .panel, .band { padding: 28px; }
  .usecases { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .hero { padding-block: 56px 40px; }
  .form { padding: 22px; }
  .form__row, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .logos, .logos--3 { grid-template-columns: 1fr 1fr; }
  .logo-card { padding: 14px; min-width: 0; }
  .logo-card b { overflow-wrap: anywhere; }
  .steps, .steps--5, .steps--3 { grid-template-columns: 1fr; }
  .card, .tabs__panel { padding: 24px; }
}

@media (max-width: 380px) {
  .logos, .logos--3 { grid-template-columns: 1fr; }
}

/* ---------- Shopify page: Shopify green palette (page-level theme) ---------- */
.theme-shopify {
  --sh-deep: #004c3f;
  --sh-green: #008060;
  --sh-lime: #95bf47;
  --sh-ink: #0d2620;
  --bg: #f6faf7;
  --ink: #0d2620;
  --ink-2: #2a443b;
  --muted: #4b625a;
  --line: #d9e7e0;
  --accent: #008060;
  --accent-text: #00634b;
  --tint-web: #e3f1ec;
  --tint-soft: #edf6f1;
}
.theme-shopify .site-header { background: rgba(246, 250, 247, .92); }
.sh-hero { background: linear-gradient(135deg, var(--sh-deep) 0%, #00614a 100%); color: #fff; padding-bottom: 24px; }
.sh-hero .page-hero { padding-bottom: 32px; }
.sh-hero .page-hero h1 { color: #fff; }
.sh-hero .hl { color: var(--sh-lime); }
.sh-hero .answer { color: #eaf5f0; }
.sh-hero .breadcrumbs ol, .sh-hero .breadcrumbs a, .sh-hero .breadcrumbs span { color: #cfe5dc; }
.sh-hero .breadcrumbs li + li::before { color: #7fb09f; }
.sh-hero .updated { color: #cfe5dc; }
.sh-hero .btn--primary { background: var(--sh-lime); color: var(--sh-ink); }
.sh-hero .btn--primary:hover { background: #a7d058; }
.sh-hero .btn--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.sh-hero :focus-visible { outline-color: #fff; }
.theme-shopify .box--web { border-left: 5px solid var(--sh-lime); border-radius: var(--radius); }
.theme-shopify .final { background: var(--sh-deep); color: #fff; border-radius: var(--radius-lg); padding: 56px 24px; margin-bottom: 64px; }
.theme-shopify .final p { color: #cfe5dc; }
.theme-shopify .final .btn--primary { background: var(--sh-lime); color: var(--sh-ink); }
.theme-shopify .final :focus-visible { outline-color: #fff; }
.theme-shopify .faq summary::after { color: var(--sh-green); }
.theme-shopify .site-footer { background: transparent; }

/* ---------- Home cards in brand colours (white text >= 4.5:1 on each) ---------- */
.card--ai { --brand: #005470; background: var(--brand); }   /* Platomed logo teal, 8.4:1 */
.card--sf { --brand: #0176d3; background: var(--brand); }   /* Salesforce blue, 4.6:1 */
.card--web { --brand: #004c3f; background: var(--brand); }  /* Shopify deep green, 9.7:1 */
.card--ai, .card--sf, .card--web { color: #fff; }
.card--ai h2, .card--sf h2, .card--web h2,
.card--ai p, .card--sf p, .card--web p,
.card--ai .card__kicker, .card--sf .card__kicker, .card--web .card__kicker { color: #fff; }
.card--ai .pill, .card--sf .pill, .card--web .pill { background: #fff; color: var(--brand); }
a.card--ai:hover, a.card--sf:hover, a.card--web:hover { box-shadow: 0 24px 40px -20px var(--brand); }
.cards a.card:focus-visible { outline-offset: 4px; }

/* ---------- Additions for the current page texts ---------- */
.nw { white-space: nowrap; }
.h-box { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.card--soft { background: var(--tint-web); }
.card--soft h3 { font-size: 1.75rem; }
.timeline li > b { display: block; }
.panel > h2 { margin-bottom: 14px; }
.panel .muted { margin-bottom: 4px; }
.fmt { gap: 20px 28px; }
.fmt b { display: block; font-size: 1.0625rem; }
.steps li > span:only-child { color: var(--ink-2); }
.figure { margin: 0; }
.figure svg { width: 100%; height: auto; }
.figure .flow--tall { display: none; max-width: 340px; margin-inline: auto; }
@media (max-width: 640px) { .figure .flow--wide { display: none; } .figure .flow--tall { display: block; } }
.figure figcaption { font-size: .9375rem; color: var(--muted); margin-top: 12px; }
.final > p:only-child { margin: 0 auto; }
.spot .callout p { color: var(--ink-2); font-size: 1.0625rem; margin-top: 0; }
:root { --tint-sf: #e3f1fd; }
.box--sf h3 { color: #032d60; }
.quote { margin: 0; background: var(--tint-ai); border-radius: var(--radius-lg); padding: 40px 44px; position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 6px; left: 22px; font-size: 5rem; line-height: 1; font-weight: 800; color: var(--accent); opacity: .5; }
.quote p { font-size: clamp(1.375rem, 2.6vw, 1.875rem); font-weight: 700; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); max-width: 46ch; position: relative; }
@media (max-width: 560px) { .quote { padding: 32px 22px 26px; } .quote::before { left: 12px; top: 0; } }
.page-hero--media { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px 56px; align-items: center; }
.portrait { margin: 0; text-align: center; }
.portrait img { width: 220px; height: 220px; margin: 0 auto; border-radius: 50%; box-shadow: 0 0 0 10px var(--tint-ai), var(--shadow); }
.portrait figcaption { font-size: .8125rem; color: var(--muted); margin-top: 20px; line-height: 1.4; }
@media (max-width: 900px) { .page-hero--media { grid-template-columns: 1fr; } .page-hero--media .portrait { justify-self: start; text-align: left; } .portrait img { width: 128px; height: 128px; margin: 0; box-shadow: 0 0 0 6px var(--tint-ai); } .portrait figcaption { margin-top: 12px; } }
.pillar .how { display: block; margin-top: 6px; }
.pillar .how strong { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pillar .how--flow strong { color: var(--accent-text); }
.pillar .how--flow { color: var(--ink); font-weight: 600; }
.quote-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; }
.quote-row__photo img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--tint-ai); }
.quote__by { margin-top: 14px; font-size: .9375rem; color: var(--muted); position: relative; }
.quote__by b { color: var(--ink); }
@media (max-width: 700px) { .quote-row { grid-template-columns: 1fr; gap: 18px; justify-items: start; } .quote-row__photo img { width: 96px; height: 96px; } }
