/* PLAI Solutions — shared styles for every page.
   Palette from the logo: true black, white, metallic gold. */
:root {
  --paper: #ffffff;
  --ivory: #f7f6f2;
  --ink: #000000;
  --char: #141414;
  --gold: #c9a227;
  --gold-bright: #e0b93a;
  --gold-text: #7a5e12;
  --muted: #5e5b55;
  --muted-dark: #aaa392;
  --rule: #e7e3d8;
  --rule-dark: #2a2822;
  --measure: 66ch;
  --radius: 10px;
}

/* Icons: Flaticon UIcons, thin straight (subset to the glyphs used here). */
@font-face {
  font-family: "uicons-plai";
  src: url("/assets/uicons-plai.woff") format("woff");
  font-display: block;
}
.fi { font-family: "uicons-plai"; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; }
.fi-stethoscope::before { content: "\fc31"; }
.fi-browser::before { content: "\f2da"; }
.fi-cloud-check::before { content: "\f439"; }
.fi-comment-alt-dots::before { content: "\f471"; }
.fi-clipboard-list-check::before { content: "\f414"; }
.fi-laptop-code::before { content: "\f800"; }
.fi-rocket-lunch::before { content: "\faba"; }
.fi-hospital-user::before { content: "\f763"; }
.fi-house-medical::before { content: "\f781"; }
.fi-truck-tow::before { content: "\fd56"; }
.fi-dashboard-monitor::before { content: "\f4eb"; }
.fi-mobile-notch::before { content: "\f8cb"; }
.fi-brain-circuit::before { content: "\f2c5"; }
.fi-map-location-track::before { content: "\f875"; }
.fi-shield-keyhole::before { content: "\fb2e"; }
.fi-database::before { content: "\f4ee"; }
.fi-code-branch::before { content: "\f459"; }
.fi-envelope-open::before { content: "\f59b"; }
.fi-cloud-code::before { content: "\f43a"; }
.fi-cocktail::before { content: "\f457"; }
.fi-glass-cheers::before { content: "\f6a3"; }
.fi-camera-movie::before { content: "\f322"; }
.fi-qrcode::before { content: "\fa52"; }
.fi-video-camera::before { content: "\fdbf"; }
.fi-sparkles::before { content: "\fbc5"; }
.fi-paper-plane-top::before { content: "\f966"; }
.fi-party-horn::before { content: "\f971"; }
.fi-robot::before { content: "\fab8"; }
.fi-file-csv::before { content: "\f614"; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--gold); }
.wrap { --gutter: clamp(16px, 7vw, 120px); width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.site-head .brand img { width: 168px; height: auto; }
.site-head nav { display: flex; align-items: center; gap: 30px; font-size: 0.98rem; }
.site-head nav a { text-decoration: none; color: var(--muted); padding-block: 6px; border-bottom: 1px solid transparent; }
.site-head nav a:hover { color: var(--ink); }
.site-head nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.site-head nav .button { padding: 10px 18px; color: #fff; border: 0; }
.menu-toggle { display: none; }

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 14px 26px; border-radius: 3px;
  text-decoration: none; font-weight: 500; font-size: 1rem;
  border: 1px solid var(--ink);
  transition: background .15s, color .15s;
}
.button:hover { background: #262626; }
.button.gold { background: var(--gold); border-color: var(--gold); color: #000; }
.button.gold:hover { background: var(--gold-bright); }
.button.ghost { background: transparent; color: inherit; border-color: currentColor; }
.button.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.text-link { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--gold-text); }
.dark .text-link:hover { color: var(--gold); }
.arrow-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.arrow-link:hover { color: var(--gold-text); }
.dark .arrow-link:hover { color: var(--gold); }

/* ---------- Type ---------- */
h1, h2 { font-weight: 300; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.12; margin-bottom: 16px; }
h3 { margin: 0; }
.lede { color: var(--muted); max-width: var(--measure); font-size: 1.15rem; margin: 0 0 48px; }
.dark .lede { color: var(--muted-dark); }
.kicker { color: var(--gold-text); font-size: 1.05rem; margin: 0 0 10px; }
.dark .kicker { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding-block: 104px; }
.section.tight { padding-block: 72px; }
.section.ivory { background: var(--ivory); }
.dark { background: var(--ink); color: #f4efe2; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head .lede { margin-bottom: 0; }

/* Thin gold peaks, echoing the logo's A, used as a background texture. */
.ridge {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='70' viewBox='0 0 120 70'%3E%3Cpath d='M0 70 L30 14 L60 70 M60 70 L90 14 L120 70' fill='none' stroke='%23C9A227' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E");
  background-position: center bottom;
  background-repeat: repeat-x;
  background-size: 120px 70px;
}

/* ---------- Lists ---------- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.6em; width: 12px; height: 8px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M.7 7.5 6 1l5.3 6.5' fill='none' stroke='%23C9A227' stroke-width='1.5'/%3E%3C/svg%3E");
}
.ticks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }

/* Icon in a thin gold ring */
.ring {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  color: var(--gold-text); font-size: 1.65rem;
  margin-bottom: 22px;
  background: #fff;
}
.dark .ring { background: transparent; color: var(--gold); }
.ring.sm { width: 48px; height: 48px; font-size: 1.25rem; margin-bottom: 16px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 60% 70% at 78% 40%, rgba(201, 162, 39, 0.20), transparent 70%), var(--ink);
  color: #fff;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 40px; min-height: min(78vh, 720px); padding-block: 88px 120px; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 28px; }
.hero p { color: #cfc8b6; font-size: 1.22rem; max-width: 46ch; margin: 0 0 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.hero-peak { justify-self: end; width: 100%; max-width: 440px; }
.hero-peak svg { width: 100%; height: auto; overflow: visible; }
.hero-peak .main {
  fill: none; stroke: url(#goldline); stroke-width: 6;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  animation: draw 1.8s cubic-bezier(.6,.05,.3,1) .2s forwards;
}
.hero-peak .echo { fill: none; stroke: var(--gold); stroke-opacity: .22; stroke-width: 1.2; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-peak .main { animation: none; stroke-dashoffset: 0; } }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; }

/* Brand strip */
.brands { border-bottom: 1px solid var(--rule); }
.brands .wrap { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding-block: 36px; }
.brands p { margin: 0; color: var(--muted); font-size: 0.98rem; max-width: 14ch; }
.brand-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.brand-row img, .brand-row .colab-logo { height: 56px; width: auto; object-fit: contain; }
.brand-row .round, .brand-row .tall { height: 84px; }
.brand-row .tile-dark { height: 56px; border-radius: 4px; }

/* Co.Lab Health wordmark (their mark + type) */
.colab-logo { display: inline-flex; align-items: center; gap: 10px; color: #0a6e72; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.7rem; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.colab-logo svg { width: 36px; height: 36px; }
.colab-logo b { color: #b8924a; }
.colab-logo span { color: #1d2b2b; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 36px 32px; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -28px rgba(0,0,0,.35); border-color: var(--gold); }
.card h3 { font-weight: 500; font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0 0 22px; }
.card .ticks { font-size: 0.98rem; margin-bottom: 8px; }
.card .more { margin-top: auto; padding-top: 18px; font-weight: 500; color: var(--gold-text); }

/* Browser frame around screenshots */
.browser { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid #d9d4c7; box-shadow: 0 30px 70px -36px rgba(0,0,0,.45); }
.browser-bar { height: 34px; background: #f1efe9; border-bottom: 1px solid #e2ddd0; display: flex; align-items: center; gap: 7px; padding-inline: 14px; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d2ccbd; display: block; }
.browser-bar span { margin-left: 14px; font-size: 0.8rem; color: var(--muted); background: #fff; border-radius: 20px; padding: 2px 14px; }
.browser img { width: 100%; height: auto; aspect-ratio: 1492 / 690; object-fit: cover; object-position: top; }

/* ---------- Featured work (home) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.feature { text-decoration: none; color: inherit; display: block; }
.feature .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 20px; }
.feature h3 { font-weight: 400; font-size: 1.5rem; }
.feature .kind { color: var(--muted); font-size: 0.98rem; }
.feature:hover h3 { color: var(--gold-text); }
.feature .browser { transition: transform .25s ease; }
.feature:hover .browser { transform: translateY(-4px); }

/* ---------- Product band ---------- */
.product-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.product-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule-dark); }
.product-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.solea-mark { width: 210px; border-radius: 4px; margin-bottom: 28px; }

/* ---------- CTA band ---------- */
.cta { background: var(--gold); color: #000; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-block: 64px; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; font-size: 1.12rem; max-width: 52ch; }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--ivory); border-bottom: 1px solid var(--rule); }
.page-head .wrap { padding-block: 88px 76px; position: relative; }
.page-head h1 { max-width: 18ch; margin-bottom: 20px; }
.page-head .lede { margin: 0; }
.page-head.dark { background: radial-gradient(ellipse 55% 80% at 85% 30%, rgba(201,162,39,.18), transparent 70%), var(--ink); border-bottom: 0; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; position: relative; }
.steps li { counter-increment: step; position: relative; }
.steps .num { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.steps .num::before { content: counter(step, decimal-leading-zero); font-weight: 300; font-size: 2.4rem; line-height: 1; color: var(--gold-text); }
.steps .num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.steps h3 { font-weight: 500; font-size: 1.2rem; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.steps h3 .fi { color: var(--gold-text); font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Technology ---------- */
.tech { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tech .card { padding: 30px 28px; }
.tech .card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tech .card p { margin: 0; font-size: 0.98rem; }

/* ---------- Work page ---------- */
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; padding-block: 88px; border-top: 1px solid var(--rule); }
.project:first-of-type { border-top: 0; }
.project.flip > :first-child { order: 2; }
.project-logo { height: 64px; width: auto; margin-bottom: 26px; }
.project h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: 6px; }
.project .kind { color: var(--muted); display: block; margin-bottom: 22px; }
.project p { margin: 0 0 24px; max-width: 60ch; }
.project .built { font-weight: 500; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.project .built .fi { color: var(--gold-text); font-size: 1.15rem; }
.project .links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.private-tag { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.95rem; border: 1px solid var(--rule); border-radius: 20px; padding: 4px 14px; }
.logo-panel { background: var(--ivory); border: 1px solid var(--rule); border-radius: var(--radius); padding: 48px 36px; display: grid; gap: 40px; justify-items: center; }
.logo-panel img { max-height: 150px; width: auto; }
.logo-panel .wide { max-width: 360px; max-height: none; }
.logo-panel figcaption { color: var(--muted); font-size: 0.95rem; text-align: center; margin-top: 12px; }
.logo-panel figure { margin: 0; display: grid; justify-items: center; }

/* ---------- Soléa page ---------- */
.experiences { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.experiences li { border: 1px solid var(--rule-dark); border-radius: var(--radius); padding: 30px 26px; background: var(--char); }
.experiences h3 { font-weight: 500; font-size: 1.12rem; margin-bottom: 6px; }
.experiences p { margin: 0; color: var(--muted-dark); font-size: 0.97rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.split h3 { font-weight: 500; font-size: 1.25rem; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.split h3 .fi { color: var(--gold-text); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 40px 36px; box-shadow: 0 30px 70px -44px rgba(0,0,0,.35); }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 0.95rem; margin-bottom: 6px; font-weight: 500; }
.form .optional { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfcabd; border-radius: 3px; padding: 12px 14px; }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold-text); outline-offset: 0; border-color: var(--gold-text); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button { font: inherit; cursor: pointer; justify-self: start; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form-status { grid-column: 1 / -1; margin: 0; min-height: 1.6em; }
.form-status.error { color: #a1260d; }
.form-done h3 { font-weight: 400; font-size: 1.7rem; margin-bottom: 8px; }
.form-done p { margin: 0; color: var(--muted); }
.next-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.next-steps li::before { content: counter(n); width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold-text); font-size: 0.95rem; }
.next-steps b { font-weight: 500; display: block; }
.next-steps span { color: var(--muted); font-size: 0.98rem; }
.contact-line { display: flex; gap: 14px; align-items: center; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.contact-line .ring { margin: 0; }
.contact-line small { display: block; color: var(--muted); font-size: 0.9rem; }
.contact-line a { text-decoration: none; border-bottom: 1px solid var(--gold); font-size: 1.15rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #cfc8b6; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 64px 40px; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 1.35rem; font-weight: 300; letter-spacing: 0.32em; }
.foot-brand svg { width: 30px; height: 26px; }
.site-foot p { margin: 14px 0 0; max-width: 36ch; }
.site-foot h3 { color: #fff; font-weight: 500; font-size: 1rem; margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.foot-base { border-top: 1px solid var(--rule-dark); }
.foot-base .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 22px; grid-template-columns: none; font-size: 0.9rem; color: var(--muted-dark); }
.foot-base a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .tech, .cards, .experiences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  .site-foot .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .site-head nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; }
  .site-head nav.open { display: flex; }
  .site-head nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .site-head nav .button { margin-top: 14px; justify-content: center; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; font: inherit; background: none; border: 1px solid var(--rule); border-radius: 3px; padding: 8px 14px; cursor: pointer; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-block: 56px 88px; }
  .hero-peak { justify-self: start; max-width: 200px; order: -1; }
  .brands .wrap { grid-template-columns: 1fr; gap: 20px; }
  .brands p { max-width: none; }
  .brand-row { justify-content: flex-start; }
  .feature-grid, .product-band .wrap, .project, .split, .contact-grid { grid-template-columns: 1fr; }
  .project.flip > :first-child { order: 0; }
  .section { padding-block: 72px; }
  .project { padding-block: 64px; gap: 36px; }
}
@media (max-width: 600px) {
  .tech, .cards, .experiences, .ticks.two, .form { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .site-head .brand img { width: 132px; }
  .brand-row img, .brand-row .colab-logo { height: 44px; }
  .form-card { padding: 28px 20px; }
}

.round { border-radius: 50%; }
.site-head nav .button[aria-current="page"] { color: #fff; border-bottom: 0; }

/* ---------- Product logos ---------- */
.solea-logo { display: inline-grid; justify-items: center; line-height: 1; font-family: "Cormorant Garamond", "Didot", Georgia, serif; font-size: 16px; }
.solea-logo .sl-name {
  font-weight: 600; font-size: 3.4em; letter-spacing: 0.1em; padding-left: 0.1em;
  background: linear-gradient(180deg, #f6dd8e 0%, #d4ac3a 48%, #9a7418 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.solea-logo .sl-sub { font-style: italic; font-weight: 500; font-size: 1.6em; color: #d9b44a; margin-top: 0.15em; display: flex; align-items: center; gap: 0.5em; }
.solea-logo .sl-sub::before, .solea-logo .sl-sub::after { content: ""; width: 1.6em; height: 1px; background: #c9a227; }
.solea-logo .sl-star { width: 5em; height: auto; margin-top: 0.45em; }
.solea-logo.lg { font-size: 22px; }
.solea-logo.sm { font-size: 11px; }

.assistant-logo { display: inline-flex; align-items: center; gap: 14px; font-size: 1.55rem; font-weight: 300; letter-spacing: 0.22em; line-height: 1; white-space: nowrap; }
.assistant-logo svg { width: 40px; height: 36px; }
.assistant-logo em { font-style: normal; color: var(--gold); letter-spacing: 0.08em; }
.brand-row .assistant-logo { font-size: 1.15rem; }
.brand-row .assistant-logo svg { width: 30px; height: 27px; }
.solea-tile { background: #000; border-radius: 4px; padding: 10px 16px; display: inline-flex; }

/* ---------- Showcase rows (home) ---------- */
.showcase .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.showcase.flip .wrap > :first-child { order: 2; }
.showcase .logo-slot { min-height: 96px; display: flex; align-items: center; margin-bottom: 28px; }
.showcase .logo-slot img { max-height: 96px; width: auto; }
.showcase h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 8px; }
.showcase .kind { color: var(--muted); display: block; margin-bottom: 20px; font-size: 1.05rem; }
.dark .kind { color: var(--muted-dark); }
.showcase p.desc { margin: 0 0 22px; max-width: 54ch; }
.dark .ticks li { color: #e2dccd; }
.showcase .ticks { margin-bottom: 32px; }
.index-num { font-size: 0.95rem; color: var(--gold-text); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.index-num::after { content: ""; width: 48px; height: 1px; background: var(--gold); }
.dark .index-num { color: var(--gold); }

/* Clinic logo board */
.logo-board { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 30px 70px -40px rgba(0,0,0,.35); overflow: hidden; }
.logo-board .pair { display: grid; grid-template-columns: 1fr 1fr; }
.logo-board figure { margin: 0; padding: 44px 28px; display: grid; justify-items: center; align-content: center; gap: 16px; }
.logo-board figure + figure { border-left: 1px solid var(--rule); }
.logo-board img { max-height: 120px; width: auto; }
.logo-board figcaption { color: var(--muted); font-size: 0.92rem; text-align: center; }
.logo-board .portals { border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 24px; background: var(--ivory); }
.logo-board .portals span { border: 1px solid var(--rule); background: #fff; border-radius: 20px; padding: 4px 14px; font-size: 0.9rem; display: inline-flex; gap: 8px; align-items: center; }
.logo-board .portals .fi { color: var(--gold-text); }

/* Example chat window */
.chat { margin: 0; background: #111; border: 1px solid var(--rule-dark); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(201,162,39,.35); color: #eee7d6; }
.chat-bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--rule-dark); font-weight: 500; color: #fff; }
.chat-bar small { margin-left: auto; color: var(--muted-dark); font-weight: 400; font-size: 0.82rem; }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #5fd38a; box-shadow: 0 0 0 4px rgba(95,211,138,.15); }
.chat-body { padding: 24px 20px; display: grid; gap: 14px; }
.msg { margin: 0; max-width: 86%; padding: 12px 16px; border-radius: 14px; font-size: 0.97rem; line-height: 1.5; }
.msg.me { justify-self: end; background: var(--gold); color: #111; border-bottom-right-radius: 4px; }
.msg.ai { justify-self: start; background: #1d1c19; border: 1px solid var(--rule-dark); border-bottom-left-radius: 4px; }
.msg .file { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid #3a372f; border-radius: 8px; font-size: 0.9rem; color: #fff; }
.msg .file .fi { color: var(--gold); font-size: 1.2rem; }
.chat-input { margin: 0 20px 20px; border: 1px solid #3a372f; border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; color: var(--muted-dark); font-size: 0.92rem; }
.chat-input .fi { color: var(--gold); }

@media (max-width: 860px) {
  .showcase .wrap { grid-template-columns: 1fr; gap: 40px; }
  .showcase.flip .wrap > :first-child { order: 0; }
  .logo-board .pair { grid-template-columns: 1fr; }
  .logo-board figure + figure { border-left: 0; border-top: 1px solid var(--rule); }
  .solea-logo.lg { font-size: 17px; }
}

.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards.four, .cards.two { grid-template-columns: 1fr; } }

/* Brand marquee: two identical sets slide left forever; pause on hover. */
.brands .wrap { grid-template-columns: 9rem minmax(0, 1fr); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; gap: 72px; padding-right: 72px; flex-shrink: 0; }
.marquee-set img, .marquee-set .colab-logo { height: 56px; width: auto; flex-shrink: 0; }
.marquee-set .round, .marquee-set .tall { height: 84px; }
.marquee-set .solea-tile { flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-set { flex-wrap: wrap; gap: 28px 48px; padding-right: 0; }
  .marquee-set[aria-hidden="true"] { display: none; }
}
@media (max-width: 860px) { .brands .wrap { grid-template-columns: 1fr; } .marquee-set { gap: 48px; padding-right: 48px; } .marquee-set img, .marquee-set .colab-logo { height: 44px; } .marquee-set .round, .marquee-set .tall { height: 64px; } }

/* Brand strip label: one small line above the marquee */
.brands .wrap { grid-template-columns: 1fr; gap: 18px; padding-block: 28px 32px; }
.brands p { max-width: none; font-size: 0.85rem; text-align: center; color: var(--muted); }

/* Marquee runs edge to edge of the window */
.brands { overflow-x: clip; }
.brands .marquee {
  width: 100vw; margin-left: calc(50% - 50vw);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { animation-duration: 40s; }
.marquee-set { gap: 120px; padding-right: 120px; }
@media (max-width: 860px) { .marquee-set { gap: 72px; padding-right: 72px; } }
.marquee-set { gap: 180px; padding-right: 180px; }
@media (max-width: 860px) { .marquee-set { gap: 96px; padding-right: 96px; } }
/* Each set is at least one window wide, so no logo is ever on screen twice. */
.marquee-set { min-width: 100vw; justify-content: space-around; gap: 120px; padding-inline: 60px; padding-right: 60px; }
@media (max-width: 860px) { .marquee-set { min-width: 0; justify-content: flex-start; gap: 96px; padding-inline: 48px; } }
