/* somalab.app home: the redesign of 03.11.2026. Other pages keep site.css. */
/* Unbounded and Wix Madefor Text: SIL Open Font License 1.1, text and copyrights in /assets/OFL.txt. */
@font-face { font-family: "Unbounded"; src: url("/assets/Unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Wix Madefor Text"; src: url("/assets/WixMadeforText-2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
/* Tokens: the app's (app/lib/core/tokens.dart) — ground, raised cards, sunken insets, ink, status red and yellow —
   plus what only a web page needs: --band (an alternate section), --control (a grey button), --accent (the logo's coral,
   the site's agreed exception: buttons, the Pro badge, Soma's column). No shadows, no card outlines, the app's radii
   (10, 16, 24, 28, pill); body text 17 px, a step above the app's 16 for reading at a desk. The logo's coral leads the page (buttons, the highlighted column, Pro);
   red and yellow dots inside the example charts still mean out of range and borderline, as in the app. */
:root {
  --surface: #f2f2f4; --raised: #ffffff; --sunken: #e6e6ea; --band: #e9e9ed; --control: #e6e6ea; --ink: #141414; --muted: #636368; --hairline: #e2e2e6; --field: #7a7a80;
  --red: #d32f2f; --yellow: #f5b400; --red-ink: #b3261e; --g1: #57575c; --g2: #a8a8ae; --band-line: #cccccc;
  --accent: #ff7062; --on-accent: #141414; --accent-soft: rgba(255, 112, 98, .12); --accent-glow: rgba(255, 100, 120, .28);
  --accent-grad: linear-gradient(135deg, #ff8259, #ff598b);
  --display: "Unbounded", "Arial Black", sans-serif; --text: "Wix Madefor Text", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0b0b0c; --raised: #1c1c1e; --sunken: #26262a; --band: #121214; --control: #3a3a3f; --ink: #f2f2f2; --muted: #a8a8ae; --hairline: #2c2c30; --field: #7c7c82;
    --red: #ff5a4e; --yellow: #f2d04b; --red-ink: #ff8a80; --g1: #8f8f94; --g2: #4a4a4f; --band-line: #47474b;
    --accent: #ff7a66; --on-accent: #141414; --accent-soft: rgba(255, 122, 102, .10); --accent-glow: rgba(255, 100, 130, .22);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
h1, h2, h3 { margin: 0; }
h2 { font: 500 clamp(24px, 3.4vw, 34px)/1.15 var(--display); letter-spacing: -.3px; text-wrap: balance; }
h3 { font: 500 17px/1.3 var(--display); }
p { margin: 0; }
.muted { color: var(--muted); }
a { color: var(--ink); text-underline-offset: 3px; }


/* Header: sticky, with its own button once you scroll. */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hairline); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font: 600 22px/1 var(--display); text-decoration: none; letter-spacing: -.3px; }
.logo svg { width: 28px; height: 28px; }
header nav { display: flex; align-items: center; gap: 22px; }
header nav a.link { color: var(--muted); text-decoration: none; font-size: 15px; }
header nav a.link:hover { color: var(--ink); }
header nav a.link[aria-current="page"] { color: var(--ink); text-decoration: underline 2px var(--accent); text-underline-offset: 6px; }
/* Narrow screens: the links don't hide, they move to a second row under the logo and the button. */
@media (max-width: 640px) {
  header.top .wrap { display: grid; grid-template-columns: minmax(0, 1fr); height: auto; padding-top: 10px; padding-bottom: 2px; }
  header.top .logo { grid-area: 1 / 1 / 3 / 2; align-self: start; justify-self: start; margin-top: 4px; position: relative; z-index: 1; }
  header nav { grid-area: 1 / 1 / 3 / 2; display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); gap: 0 18px; align-items: center; }
  header nav > :last-child { grid-row: 1; grid-column: 1 / -1; justify-self: end; }
  header nav a.link { grid-row: 2; font-size: 14px; padding: 10px 0; }
}

.button { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1 var(--text); color: var(--on-accent); background: var(--accent-grad); border: 0; border-radius: 999px; padding: 16px 26px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease; }
.button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.button:active { transform: translateY(1px); filter: brightness(.96); }
.button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.button.small { padding: 11px 18px; font-size: 14px; }
.button.ghost { background: var(--control); color: var(--ink); }
.button.ghost:hover { filter: brightness(.96); }
.button svg { width: 18px; height: 18px; }
.textlink { color: var(--ink); font-weight: 600; font-size: 16px; }

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.sec-head { max-width: 680px; margin-bottom: 40px; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .kicker { justify-content: center; }
.band { background: var(--band); }

/* Hero: words left, the app right on a soft yellow light. */
.hero { padding: 56px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
.hero h1 { font: 500 clamp(34px, 5vw, 56px)/1.06 var(--display); letter-spacing: -1px; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom .06em / 0 .16em; animation: underline .9s .5s cubic-bezier(.2,.7,.2,1) forwards; }
/* A background, not an ::after: it runs under every line when the words wrap (Polish, 08.11). */
@keyframes underline { to { background-size: 100% .16em; } }
.hero .lead { font-size: 20px; color: var(--muted); margin: 24px 0 0; max-width: 34ch; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; padding: 0; list-style: none; }
.pills li { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--text); padding: 10px 14px; border-radius: 999px; background: var(--raised); }
.pills svg { width: 16px; height: 16px; color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.works { margin-top: 28px; font-size: 14px; color: var(--muted); }
.works b { color: var(--ink); font-weight: 600; }

.stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.stage::before { content: ""; position: absolute; width: min(520px, 100%); aspect-ratio: 1; height: auto; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-glow), transparent); filter: blur(10px); }
.phone { position: relative; width: 300px; height: 610px; border-radius: 46px; background: #0d0d0d; padding: 12px; box-shadow: inset 0 0 0 1.5px #2a2a2a; transform: rotate(-3deg); }
.screen { width: 100%; height: 100%; border-radius: 36px; background: var(--surface); overflow: hidden; position: relative; padding: 34px 0 0; }
.screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen::before { z-index: 1; }
.screen::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #0d0d0d; }
.app-title { font: 500 22px/1.1 var(--display); margin: 6px 0 14px; }
.app-card { background: var(--sunken); border-radius: 18px; padding: 14px; margin-bottom: 10px; }
.app-card .n { font-size: 13px; font-weight: 600; }
.app-card .v { font: 500 22px/1.1 var(--display); margin-top: 4px; }
.app-card .v small { font: 400 12px var(--text); color: var(--muted); margin-left: 3px; }
.app-card .s { font-size: 12px; color: var(--muted); }
.app-row { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--hairline); font-size: 13px; }
.app-row:last-child { border: 0; }
.app-row i { width: 8px; height: 8px; border-radius: 50%; }
.app-row b { font-weight: 600; }
.app-row span { color: var(--muted); font-size: 12px; }
.float { position: absolute; background: var(--raised); border-radius: 16px; padding: 12px 14px;  font-size: 13px; }
.float.a { left: max(0px, calc(50% - 230px)); bottom: 16px; transform: rotate(-6deg); animation: bob 6s ease-in-out infinite; }
.float.b { right: max(0px, calc(50% - 270px)); top: 70px; transform: rotate(4deg); animation: bob 7s ease-in-out -2s infinite; }
.float b { display: block; font: 500 16px var(--display); }
@keyframes bob { 50% { translate: 0 -8px; } }
@media (max-width: 520px) { .float.a { left: 50%; bottom: 0; translate: -50% 0; } .float.b { display: none; } .stage { min-height: 500px; } .phone { width: 250px; height: 510px; border-radius: 40px; } .screen { border-radius: 30px; } }

/* Charts: the app's language — an ink line 1.5, ranges dashed; red and yellow only for status. */
svg { overflow: visible; }
.l-ink { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.l-dash { fill: none; stroke: var(--muted); stroke-opacity: .5; stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.l-hair { stroke: var(--muted); stroke-opacity: .35; stroke-width: 1; }
.s-ink { fill: var(--ink); } .s-red { fill: var(--red); } .s-yellow { fill: var(--yellow); } .s-card { fill: var(--sunken); } .s-surface { fill: var(--surface); }
.s-g1 { fill: var(--g1); } .s-g2 { fill: var(--g2); } .s-past { fill: var(--ink); fill-opacity: .45; }
.t-axis { font: 400 12px var(--text); fill: var(--muted); }

/* Motion: lines draw, dots and bars rise once the part comes into view. Off when the reader asks for less motion. */
.draw { stroke-dasharray: 3000; stroke-dashoffset: 3000; }
.in .draw { transition: stroke-dashoffset 1.6s cubic-bezier(.3,.6,.2,1) var(--d, 0s); stroke-dashoffset: 0; }
.pop { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; }
.in .pop { transition: opacity .3s ease var(--d, 0s), transform .45s cubic-bezier(.3,1.6,.4,1) var(--d, 0s); opacity: 1; transform: none; }
.grow { transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; }
.in .grow { transition: transform .7s cubic-bezier(.3,.8,.2,1) var(--d, 0s); transform: none; }
.rise { opacity: 0; transform: translateY(18px); }
.rise.in { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); opacity: 1; transform: none; }
/* Hidden only while home.js is there to show it (it sets html.js first thing): with scripts off nothing hides,
   and if the script never arrives, everything shows after two seconds anyway. */
.rise, .compare.rise tbody tr, .draw, .pop, .grow { animation: shown 0s 2s forwards; }
@keyframes shown { to { opacity: 1; transform: none; stroke-dashoffset: 0; } }
.js .rise, .js .compare.rise tbody tr, .js .draw, .js .pop, .js .grow { animation: none; }
@media (scripting: none) { .rise, .compare.rise tbody tr, .pop, .grow { opacity: 1; transform: none; } .draw { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  .pop, .grow, .rise { opacity: 1; transform: none; }
  .hero h1 em { animation: none; background-size: 100% .16em; }
  .float.a, .float.b { animation: none; }
  html { scroll-behavior: auto; }
}

/* Pointer light on cards, the phone tilting to the pointer, numbers counting up. */
.cell, .plan, .mock { --mx: 50%; --my: 50%; }
.cell::before, .plan::before, .mock::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx) var(--my), var(--accent-soft), transparent 60%); }
.cell:hover::before, .plan:hover::before, .mock:hover::before { opacity: 1; }
.mock { position: relative; }
.cell > *, .plan > *, .mock > * { position: relative; }
.cell > .tag, .plan > .tag { position: absolute; }
.phone { transition: transform .4s cubic-bezier(.2,.7,.2,1); transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) rotate(-3deg); }
.compare tbody tr { transition: background .2s; }
.compare tbody tr:hover th, .compare tbody tr:hover td:not(.soma) { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.rise .compare tbody tr, .compare.rise tbody tr { opacity: 0; transform: translateX(-8px); }
.compare.in tbody tr { transition: opacity .5s ease var(--d, 0s), transform .5s ease var(--d, 0s); opacity: 1; transform: none; }
.swap-unit { cursor: pointer; border: 0; transition: background .2s; font: inherit; color: inherit; }
.swap-unit:hover { background: var(--control); }
.swap-unit svg { width: 14px; height: 14px; align-self: center; color: var(--muted); }
.bars-hit rect { transition: opacity .2s; }
.bars-hit:hover rect { opacity: .35; }
.bars-hit .day:hover rect { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .phone { transition: none; transform: rotate(-3deg); } .compare.rise tbody tr { opacity: 1; transform: none; } }

/* Comparison: Soma's column lit, header to last row. */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 1.45; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--hairline); }
.compare thead th { font: 500 17px/1.3 var(--display); border-bottom: 0; padding-top: 20px; }
.compare thead th:nth-child(3) { color: var(--muted); }
.compare tbody th { font-weight: 600; width: 28%; padding-left: 0; }
.compare .soma { background: var(--raised); border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.compare thead .soma { border-top: 2px solid var(--accent); border-radius: 16px 16px 0 0; }
.compare tbody tr:last-child .soma { border-bottom: 2px solid var(--accent); border-radius: 0 0 16px 16px; }
.compare tbody td:nth-child(3) { color: var(--muted); }
/* No rule above the first row or under the last: the rows are the table's only lines. */
.compare thead td { border-bottom: 0; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.yes, .no { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 10px; align-items: start; }
.yes svg, .no svg { width: 20px; height: 20px; margin-top: 2px; }
.yes svg { color: var(--ink); } .yes svg circle { fill: var(--accent); stroke: none; }
.no svg { color: var(--muted); }
@media (max-width: 640px) {
  .compare thead td { display: none; }
  .compare tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .compare tbody th { grid-column: 1 / -1; width: auto; border-bottom: 0; padding: 18px 0 8px; }
  .compare th, .compare td { padding: 12px; font-size: 15px; }
  .compare .soma { border-radius: 10px !important; border: 2px solid var(--accent) !important; }
  .compare thead th { padding: 0 12px 10px; } .compare thead .soma { border: 0 !important; background: none; }
}
.fine { font-size: 14px; color: var(--muted); margin-top: 20px; max-width: 80ch; }

/* Features: a bento of seven. */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cell { background: var(--raised); border-radius: 24px; padding: 26px; position: relative; overflow: hidden; grid-column: span 2; display: flex; flex-direction: column; gap: 10px; transition: transform .25s ease, background .25s ease; }
.cell:hover { transform: translateY(-3px); }
.cell.wide { grid-column: span 3; }
.cell.full { grid-column: span 6; }
.cell .ic { width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; background: var(--sunken); margin-bottom: 6px; }
.cell .ic svg { width: 22px; height: 22px; }
svg.i { flex: none; }
.cell p { color: var(--muted); font-size: 16px; }
.cell .tag { position: absolute; top: 22px; right: 22px; }
.cell p .tag.inline { position: static; vertical-align: 2px; margin-right: 4px; }
.tag { display: inline-block; font: 600 12px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--on-accent); background: var(--accent-grad); border-radius: 999px; padding: 5px 9px; }
.tag.plain { background: var(--sunken); color: var(--muted); }
.cell .viz { margin-top: auto; padding-top: 14px; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cell, .cell.wide { grid-column: span 1; } .cell.full { grid-column: span 2; } }
@media (max-width: 560px) { .bento { grid-template-columns: minmax(0, 1fr); } .cell, .cell.wide, .cell.full { grid-column: span 1; } }
.chip { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; background: var(--sunken); border-radius: 10px; padding: 9px 13px; font-size: 14px; }
.chip b { font-weight: 600; } .chip span { color: var(--muted); }
.check-rows { display: grid; gap: 6px; }
.check-rows div { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; gap: 8px; align-items: center; background: var(--sunken); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.check-rows svg { width: 16px; height: 16px; }
.check-rows span { color: var(--muted); }

/* Reads: lab reports tall on the left. */
.reads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.reads .cell { grid-column: auto; }
.reads .tall { grid-row: span 2; }
@media (max-width: 900px) { .reads { grid-template-columns: repeat(2, minmax(0, 1fr)); } .reads .tall { grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px) { .reads { grid-template-columns: minmax(0, 1fr); } .reads .tall { grid-column: auto; } }
.paper { background: var(--sunken); border-radius: 16px; padding: 16px; font-size: 12px; line-height: 1.5; }
.paper .ph { display: flex; justify-content: space-between; color: var(--muted); border-bottom: 1px solid var(--hairline); padding-bottom: 8px; margin-bottom: 6px; }
.paper .r { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--hairline); font-variant-numeric: tabular-nums; position: relative; }
.paper .r span { color: var(--muted); }
.paper .r.hit::after { content: ""; position: absolute; inset: 1px -6px; border-radius: 6px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); opacity: 0; }
.in .paper .r.hit::after { animation: scan 3.6s ease var(--d, 0s) infinite; }
@keyframes scan { 0%, 100% { opacity: 0; } 15%, 45% { opacity: 1; } 60% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .in .paper .r.hit::after { animation: none; opacity: 1; } }
.typed { display: flex; align-items: center; justify-content: space-between; background: var(--sunken); border-radius: 16px; padding: 12px 14px;  }
.typed b { font: 500 22px var(--display); }
.typed .caret { display: inline-block; width: 2px; height: 22px; background: var(--accent); margin-left: 2px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Devices. */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
.mock { background: var(--raised); border-radius: 24px; padding: 22px; margin: 0; display: flex; flex-direction: column;  }
.mock .name { font: 600 16px/1.3 var(--text); }
.mock .val { font: 500 28px/1.1 var(--display); margin: 6px 0 2px; }
.mock .val small { font: 400 14px var(--text); color: var(--muted); margin-left: 4px; }
.mock .sub { color: var(--muted); font-size: 14px; }
.mock svg.chart { width: 100%; height: auto; margin-top: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: auto 0 0; padding: 14px 0 0; list-style: none; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.dash { width: 14px; height: 0; border-top: 1px dashed var(--muted); border-radius: 0; }

/* Assistant. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.split p + p { margin-top: 14px; }
.chat { display: grid; gap: 12px; background: var(--raised); border-radius: 28px; padding: 28px; }
.bubble { border-radius: 24px; padding: 14px 18px; font-size: 16px; line-height: 1.5; max-width: 88%; }
.bubble.me { justify-self: end; background: var(--ink); color: var(--surface); border-bottom-right-radius: 6px; }
.bubble.bot { justify-self: start; background: var(--sunken); border-bottom-left-radius: 6px; }
.bubble.bot p + p { margin-top: 8px; }
.typing { justify-self: start; display: inline-flex; gap: 5px; padding: 14px 16px; background: var(--sunken); border-radius: 20px; border-bottom-left-radius: 6px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
/* Every step keeps its place from the start, so the block never changes size while it plays. */
.chat .step { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.chat .step.show { opacity: 1; transform: none; }
.chat .answer { position: relative; display: grid; }
.chat .answer .typing { position: absolute; left: 0; top: 0; }
.minicard { background: var(--sunken); border-radius: 16px; padding: 14px 16px; max-width: 320px; }

/* Plans: Free and Pro across the width, Pro lit. */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { border-radius: 28px; padding: 32px; background: var(--raised); border: 2px solid transparent; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan.pro { border-color: var(--accent); }
.plan .price { font: 500 30px/1 var(--display); }
.plan .price small { font: 400 15px var(--text); color: var(--muted); margin-left: 6px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 10px; font-size: 16px; }
.plan li svg { width: 20px; height: 20px; margin-top: 2px; }
.plan li svg circle { fill: var(--sunken); stroke: none; }
.plan.pro li svg circle { fill: var(--accent); }
.plan .button { margin-top: auto; align-self: flex-start; }
.plan .tag { position: absolute; top: 22px; right: 22px; }

/* Questions. */
.faq { max-width: 780px; }
details { border-bottom: 1px solid var(--hairline); }
summary { list-style: none; cursor: pointer; font: 600 18px/1.4 var(--text); padding: 22px 44px 22px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .25s ease, margin .25s ease; }
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
summary:hover::after { border-color: var(--ink); }
details p { color: var(--muted); padding: 0 0 22px; max-width: 64ch; }

/* Waitlist. */
.wl { background: var(--ink); color: var(--surface); border-radius: 28px; padding: 56px 32px; text-align: center; position: relative; overflow: hidden; }
.wl::before { content: ""; position: absolute; width: 600px; height: 600px; left: 50%; top: -340px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, var(--accent-glow), transparent); }
.wl > * { position: relative; }
.wl h2 { color: var(--surface); }
.wl p { color: color-mix(in srgb, var(--surface) 70%, var(--ink)); max-width: 52ch; margin: 14px auto 0; }
/* The card is ink on surface turned round, so its links take the surface colour, underlined. */
.wl a { color: var(--surface); text-decoration: underline; }
.wl input[aria-invalid="true"] { border-color: var(--accent); }
.wl form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 520px; margin: 28px auto 0; }
.wl input { flex: 1 1 240px; min-width: 0; font: 400 17px/1.4 var(--text); color: var(--surface); background: color-mix(in srgb, var(--surface) 10%, var(--ink)); border: 1px solid color-mix(in srgb, var(--surface) 22%, var(--ink)); border-radius: 999px; padding: 14px 20px; }
.wl input::placeholder { color: color-mix(in srgb, var(--surface) 62%, var(--ink)); }
.wl input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.wl .note { min-height: 0; margin-top: 14px; font-size: 15px; }
.wl .note:empty { display: none; }

footer { border-top: 1px solid var(--hairline); padding: 40px max(24px, calc((100% - 1072px) / 2)) 56px; color: var(--muted); font-size: 14px; margin-top: 88px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
footer a { color: var(--muted); }
@media (max-width: 480px) { footer { padding-left: 16px; padding-right: 16px; } }
.disc { font-size: 14px; color: var(--muted); max-width: 80ch; margin: 40px auto 0; text-align: center; }

/* The exam card's ECG runs on, one strip after another, as on a monitor. */
svg.ecg { overflow: hidden; }
.ecg-run { animation: ecg 6s linear infinite; }
@keyframes ecg { to { transform: translateX(-240px); } }
@media (prefers-reduced-motion: reduce) { .ecg-run { animation: none; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.logo img { height: 28px; width: auto; display: block; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { .logo-light { display: none !important; } .logo-dark { display: block !important; } }
.wl .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl .button:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
#waitlist.done .note { color: var(--surface); }
/* Footer: as on the other pages. */
footer .foot-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 32px; padding-bottom: 20px; margin-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.foot-h { font: 600 12px/1.3 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.foot-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.foot-index a { color: var(--ink); text-decoration: none; font-size: 15px; display: inline-block; padding: 6px 0; }
.foot-index a:hover { text-decoration: underline; }
footer .wrap { display: block; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; align-items: baseline; }
footer .more { font-size: 13px; opacity: .8; }
/* The language switcher: a menu in the header (globe and the language's code), a row in the footer. Each lists the
   same page in the languages it exists in. A <details>, so it works without scripts. */
header.top nav { flex-wrap: nowrap; }
header.top nav .nav-links { display: flex; align-items: center; gap: 22px; }
header.top .lang-menu { position: relative; border: 0; }
header.top .lang-menu > summary { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 6px; margin: 0; border-radius: 10px;
  color: var(--muted); font: 600 13px/1 var(--text); letter-spacing: .04em; cursor: pointer; list-style: none; }
header.top .lang-menu > summary::after { content: none; }
header.top .lang-menu > summary:hover, header.top .lang-menu[open] > summary { color: var(--ink); }
header.top .lang-menu > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
header.top .lang-menu svg { width: 18px; height: 18px; flex: none; }
header.top .lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 172px; margin: 0; padding: 6px; list-style: none;
  background: var(--raised); border-radius: 16px; }
header.top .lang-menu li a { display: block; margin: 0; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; line-height: 1.3; text-decoration: none; }
header.top .lang-menu li a:hover { background: var(--sunken); }
header.top .lang-menu li a[aria-current] { font-weight: 600; }
.foot-langs ul { display: flex; flex-wrap: wrap; gap: 0 18px; margin: -4px 0 12px; padding: 0; list-style: none; }
.foot-langs a { display: inline-block; padding: 6px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.foot-langs a:hover { color: var(--ink); text-decoration: underline; }
.foot-langs a[aria-current] { color: var(--ink); font-weight: 600; }
/* Up to a tablet: two rows, as compact in every language. Logo, menu and button on top; the section links below in
   one line that scrolls sideways when a language's words are long. The menu opens under the header's right edge. */
@media (max-width: 860px) {
  header.top .wrap { display: grid; grid-template-columns: minmax(0, 1fr); height: auto; padding-top: 10px; padding-bottom: 2px; }
  header.top .logo { grid-area: 1 / 1 / 3 / 2; align-self: start; justify-self: start; margin-top: 4px; position: relative; z-index: 1; }
  header.top nav { grid-area: 1 / 1 / 3 / 2; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 4px; align-items: center; }
  header.top nav .nav-links { grid-row: 2; grid-column: 1 / -1; min-width: 0; contain: inline-size; gap: 18px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  header.top nav .nav-links::-webkit-scrollbar { display: none; }
  header.top nav .nav-links a.link { flex: none; font-size: 14px; padding: 10px 0; }
  header.top nav .lang-menu { grid-row: 1; grid-column: 2; position: static; }
  header.top nav > :last-child { grid-row: 1; grid-column: 3; justify-self: end; }
  header.top .lang-menu ul { right: 24px; top: 52px; }
}
@media (max-width: 480px) { header.top .lang-menu ul { right: 16px; } }
@media (max-width: 400px) { header.top .button.small { padding-left: 14px; padding-right: 14px; font-size: 13px; } }
@media (max-width: 360px) { header.top .lang-menu > summary span { display: none; } header.top img { height: 24px; width: auto; } }
/* A long button label (German, French) wraps inside its card instead of pushing the page wider. */
.cta-card .button { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
/* Long words in a heading (German «Laboruntersuchungen» in a 320 px column) break with a hyphen. */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }

/* Listings that link back to Soma (footer.SEEN): small and muted, so they read as a footnote. */
.foot-seen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
.foot-seen img { display: block; height: 36px; width: auto; opacity: .7; }
.foot-seen a:hover img { opacity: 1; }
