/* LabArt marketing site
   Palette and visual language borrowed from winmedica.gr:
   teal #307884, ground #f2f2f2, greys #77858d / #9fa9aa, mist #81acc1,
   light-weight teal headlines, dotted eyebrows, pill buttons, ruled stats.
   Type: IBM Plex Sans throughout (WinMedica's fallback face). */

:root {
  --teal: #307884;
  --teal-deep: #245f69;
  --teal-ink: #1d4c55;
  --ink: #1f2b2f;
  --ink-2: #4a585d;
  --slate: #77858d;
  --slate-2: #9fa9aa;
  --mist: #81acc1;
  --mist-soft: #e3edf1;
  --ground: #f2f2f2;
  --paper: #ffffff;
  --paper-2: #f8f9f9;
  --line: #dde3e5;
  --line-2: #eceff0;
  --mark: #a8472f;
  --mark-soft: #f6e4de;

  --sans: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1160px;
  --gutter: 24px;
  --r-card: 14px;
  --r-corner: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 400 17px/1.55 var(--sans);
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5 { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: 6px; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto; }

/* ---------- Type ---------- */
h1 { font-weight: 300; font-size: clamp(2.4rem, 1.5rem + 2.8vw, 4rem); line-height: 1.06; letter-spacing: -0.02em; color: var(--teal); text-wrap: balance; }
h2 { font-weight: 300; font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.9rem); line-height: 1.12; letter-spacing: -0.015em; color: var(--teal); text-wrap: balance; }
h3 { font-weight: 400; font-size: 1.35rem; line-height: 1.3; color: var(--teal-ink); }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 22px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }
.eyebrow-light { color: #d7e7eb; }
.eyebrow-light::before { background: #d7e7eb; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.95rem/1 var(--sans);
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.button:hover { text-decoration: none; }
.button .arrow { width: 15px; height: 15px; transition: transform .2s ease; }
.button:hover .arrow { transform: translateX(3px); }
.button-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.button-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.button-quiet { background: transparent; color: var(--teal-ink); border-color: var(--line); }
.button-quiet:hover { border-color: var(--teal); }
.button-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.button-outline:hover { background: var(--teal); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line-2); }
.header-row { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; color: var(--teal); }
.brand:hover { text-decoration: none; }
.brand-name { font-weight: 500; font-size: 1.45rem; letter-spacing: -0.02em; }
.brand-by { font-size: 0.85rem; color: var(--slate); }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--ink-2); font-size: 0.95rem; }
.site-nav a:hover { color: var(--teal); text-decoration: none; }
.header-cta { padding: 11px 18px; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); }
.mobile-nav { border-top: 1px solid var(--line-2); background: #fff; padding: 8px var(--gutter) 16px; display: grid; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.mobile-nav a:last-child { border-bottom: 0; color: var(--teal); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-white { background: var(--paper); }
.section-head { max-width: 42em; margin-bottom: 52px; }
.section-lede { margin-top: 18px; color: var(--ink-2); font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 96px; background: linear-gradient(180deg, #fff 0%, var(--ground) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero-copy .lede { margin-top: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-visual {
  margin: 0; padding: 8px;
  background: radial-gradient(120% 110% at 15% 10%, #ffffff 0%, var(--mist-soft) 55%, #cfe0e7 100%);
  border-radius: var(--r-card) var(--r-card) var(--r-corner) var(--r-card);
  border: 1px solid #d6e2e7;
}
.align-svg { width: 100%; height: auto; }

/* ---------- Cards ---------- */
.cards-label { margin: -24px 0 18px; font-size: 0.95rem; color: var(--slate); }
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border-radius: var(--r-card); padding: 30px 30px 26px; }
.card h3 { margin-bottom: 12px; }
.card p { margin: 0; color: var(--ink-2); }
.card-quiet { background: var(--mist-soft); }
.section-white .card { background: var(--paper-2); }

/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; align-items: start; }
.steps { list-style: none; margin: 44px 0 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 30px 60px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -3px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--teal); color: var(--teal); font: 400 0.95rem/34px var(--sans); text-align: center; background: #fff;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 38px; bottom: 2px; width: 1px; background: var(--line); }
.steps h3 { margin-bottom: 6px; font-size: 1.2rem; }
.steps p { color: var(--ink-2); margin: 0; }
.how-figure { margin: 0; position: sticky; top: 104px; }
.figure-panel { padding: 28px; background: var(--ground); border-radius: var(--r-card) var(--r-card) var(--r-corner) var(--r-card); }
.page-svg { width: 100%; height: auto; filter: drop-shadow(0 12px 30px rgba(22,58,65,.10)); }
.how-figure figcaption { margin-top: 18px; font-size: 0.9rem; color: var(--slate); line-height: 1.5; max-width: 34em; }

/* ---------- Workflows ---------- */
.workflow-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.workflow-list .card { padding-top: 26px; }
.wf-icon { width: 40px; height: 40px; color: var(--teal); margin-bottom: 18px; }
.workflow-list h3 { font-size: 1.25rem; }

/* ---------- Review ---------- */
.review-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.review-lede p { color: var(--ink-2); font-size: 1.1rem; margin-bottom: 0.8em; }
.review-lede p:last-child { margin-bottom: 0; }

/* App mock, modelled on the real review page */
.app {
  background: #f4f6f7; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(22,58,65,.06), 0 30px 70px -30px rgba(22,58,65,.30);
  font-size: 12.5px; line-height: 1.45; color: var(--ink);
}
.app-top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--line-2); }
.app-logo { width: 118px; height: auto; }
.app-title { display: grid; line-height: 1.2; padding-left: 16px; border-left: 1px solid var(--line); }
.app-kicker { font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.app-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.app-user { margin-left: auto; color: var(--slate); font-size: 11.5px; }
.app-body { padding: 16px 20px 20px; display: grid; gap: 12px; }
.app-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.app-link { color: var(--teal); font-weight: 600; font-size: 11.5px; }
.app-toolbar h4 { font-size: 20px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.app-buttons { display: flex; gap: 6px; }
.app-btn { padding: 7px 12px; border-radius: 6px; background: #e6ebed; color: var(--ink); font-weight: 600; font-size: 11.5px; cursor: default; user-select: none; }
.app-btn-primary { background: var(--teal); color: #fff; }
#mock-prev, #mock-next { cursor: pointer; }
.app-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-note, .app-issue, .app-table-card, .app-viewer { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; }
.app-note { padding: 12px 14px; display: grid; gap: 6px; }
.app-tiny { font-size: 10.5px; color: var(--slate); }
.app-note-body { font-size: 14px; }
.app-issue { padding: 14px 16px 16px; }
.app-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--mist-soft); color: var(--teal-deep); font-weight: 600; font-size: 11px; border: 1px solid #cfe0e7; margin-bottom: 8px; }
.app-issue h5 { font-size: 14px; font-weight: 600; color: var(--ink); }
.app-issue p { margin: 3px 0 0; color: var(--ink-2); }
.app-issue-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.app-legend { display: flex; gap: 6px; flex-wrap: wrap; }
.app-legend span { padding: 4px 9px 4px 5px; border: 1px solid var(--line); border-radius: 999px; font-size: 10.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.app-legend b { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--mist-soft); color: var(--teal-deep); font-size: 9.5px; }
.app-focus { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.app-focus-panel { border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px 12px; display: grid; gap: 8px; justify-items: center; }
.app-focus-title { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.crop {
  width: 100%; background: #fdfdfc; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px;
  font-family: Georgia, "Times New Roman", serif; font-size: 12px; line-height: 1.5; color: #333;
  background-image: linear-gradient(0deg, rgba(0,0,0,.015) 50%, transparent 50%); background-size: 100% 3px;
}
.crop-art { background-color: #fbfaf7; }
.crop p { margin: 0 0 4px; }
.crop .crop-h { font-weight: 700; margin-bottom: 6px; }
.crop mark { background: var(--mark-soft); color: inherit; outline: 1.5px solid var(--mark); outline-offset: 1px; border-radius: 1px; padding: 0 1px; }
.crop .gap { display: inline-block; width: 100%; height: 14px; background: var(--mark-soft); outline: 1.5px solid var(--mark); outline-offset: 1px; border-radius: 1px; vertical-align: middle; }
.crop-cap { justify-self: center; }
.app-table-card { padding: 12px 14px 4px; }
.app-table-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.app-table-head h5 { font-size: 13px; font-weight: 600; }
.app-filters { display: flex; gap: 5px; }
.app-filters button { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid var(--teal); background: #fff; color: var(--teal); font: 600 10px var(--sans); cursor: pointer; }
.app-filters button.is-on { background: var(--teal); color: #fff; }
.app-table tr.is-filtered { display: none; }
.app-table { width: 100%; border-collapse: collapse; }
.app-table th { text-align: left; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 6px 10px; border-bottom: 1px solid var(--line-2); font-weight: 600; }
.app-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--ink-2); }
.app-table td:first-child { font-weight: 600; color: var(--ink); width: 14%; }
.app-table td:nth-child(2) { width: 16%; }
.app-table tr:last-child td { border-bottom: 0; }
.app-table tbody tr[data-issue] { cursor: pointer; }
.app-table tbody tr[data-issue]:hover td { background: var(--paper-2); }
.app-table tr.is-selected td { background: var(--mist-soft); }
.app-table tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--teal); }
.app-viewers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-viewer { padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 12px; }

.feature-grid { margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.feature-grid dt { font-weight: 500; font-size: 1.05rem; color: var(--teal-ink); margin-bottom: 8px; padding-top: 14px; border-top: 1px solid var(--teal); }
.feature-grid dd { margin: 0; color: var(--ink-2); }

/* ---------- In production (teal band) ---------- */
.section-teal { background: var(--teal); color: #e8f0f2; }
.section-teal h2 { color: #fff; }
.section-teal p { color: #d7e7eb; font-size: 1.1rem; max-width: 32em; margin-top: 20px; }
.section-teal .side-note { font-size: 0.92rem; color: #b6d1d8; border-left: 2px solid rgba(255,255,255,.35); padding-left: 14px; margin-top: 28px; }
.production-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; align-self: center; }
.stats div { border-left: 1px solid rgba(255,255,255,.35); padding-left: 22px; }
.stats dt { font-weight: 300; font-size: clamp(2.6rem, 2rem + 1.8vw, 3.8rem); line-height: 1; letter-spacing: -0.03em; color: #fff; }
.stats dd { margin: 12px 0 0; font-size: 0.98rem; color: #d7e7eb; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card { border-radius: var(--r-card); padding: 44px 44px 40px; background: var(--paper); display: flex; flex-direction: column; align-items: flex-start; }
.contact-card h2 { font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.3rem); }
.contact-card p { margin-top: 18px; color: var(--ink-2); font-size: 1.05rem; max-width: 30em; }
.contact-card .button { margin-top: auto; }
.contact-card-dark { background: var(--teal-ink); }
.contact-card-dark h2 { color: #fff; }
.contact-card-dark p { color: #cfe0e5; }
.contact-emails { margin-top: auto; padding-top: 12px; display: grid; gap: 8px; }
.contact-emails a { color: #fff; font-size: 1.05rem; font-weight: 500; text-underline-offset: 4px; }
.contact-emails a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { padding: 0 0 40px; background: linear-gradient(180deg, var(--ground), #e6ecee); }
.footer-card { background: var(--paper); border-radius: var(--r-card); padding: 40px 44px 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line-2); }
.footer-logo { display: inline-block; padding: 14px 22px; border: 1px solid var(--line); border-radius: 999px; }
.footer-logo img { width: 150px; height: auto; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-2); font-size: 0.92rem; }
.footer-bottom { padding-top: 22px; color: var(--slate); font-size: 0.92rem; }
.footer-bottom p { max-width: 46em; margin: 0 0 8px; }
.footer-legal { color: var(--slate-2); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .cards.three, .workflow-list, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; gap: 56px; }
  .how-figure { position: static; max-width: 460px; }
  .review-head, .production-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (min-width: 1081px) { .mobile-nav { display: none !important; } }
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
  .cards.three, .workflow-list, .feature-grid, .stats { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; justify-content: center; }
  .app-notes, .app-focus, .app-viewers { grid-template-columns: 1fr; }
  .app-body { padding: 12px; }
  .app-user { display: none; }
  .app-table td:nth-child(4), .app-table th:nth-child(4) { display: none; }
  .contact-card { padding: 32px 26px; }
  .footer-card { padding: 28px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
