/* Shared visual language drawn from the studio header, hero, and offers. */
:root {
  --ink: var(--studio-ink);
  --paper: var(--studio-paper);
  --green: var(--studio-lime);
  --muted: #505c51;
  --line: #c9cec2;
  --dark: #13261b;
  --surface: #fbfaf6;
  --surface-soft: #e8ebe1;
  --control-line: #798578;
  --focus: #356344;
  --radius-control: 7px;
  --radius-card: 10px;
  --radius-panel: 12px;
  --pad-card: clamp(18px, 2.5vw, 34px);
  --section-space: clamp(36px, 6vw, 82px);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--studio-sans);
  line-height: 1.5;
}

.wrap { width: var(--studio-width); max-width: 1360px; padding-inline: 0; }
.section { padding-block: var(--section-space); }

.page-top, .privacy-page > h1, .rights-page > h1 {
  margin-block-end: clamp(22px, 4vw, 46px);
}
.page-top {
  padding: clamp(32px, 6vw, 80px) 0 clamp(24px, 4vw, 44px);
  border-bottom: 1px solid var(--studio-line);
}
.page-top h1, .privacy-page > h1, .rights-page > h1 {
  max-width: 19ch;
  font: 780 clamp(2.15rem, 5.1vw, 4.5rem)/1.04 var(--studio-sans);
  letter-spacing: -.047em;
  overflow-wrap: anywhere;
}
.page-top p:not(.eyebrow) {
  max-width: 56ch;
  color: var(--muted);
  font: 450 clamp(1rem, 1.5vw, 1.18rem)/1.5 var(--studio-sans);
}
.section h2, .process h2, .callout h2 {
  font: 770 clamp(1.75rem, 3.75vw, 3.35rem)/1.09 var(--studio-sans);
  letter-spacing: -.044em;
}
.section-head { gap: 12px 24px; flex-wrap: wrap; }
.eyebrow, .status, .badge, .table th, .portal-head small, .metric small {
  font-family: var(--mono);
}
.eyebrow { color: var(--muted); letter-spacing: .045em; }
.eyebrow .dot { display: none; }
.small, .muted, .form-hint { overflow-wrap: anywhere; }

.btn {
  background: var(--green);
  border-color: var(--studio-line);
  border-radius: var(--radius-control);
  color: var(--ink);
  font: 730 .94rem/1.25 var(--studio-sans);
  gap: 12px;
  padding: 11px 17px;
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
}
.btn:hover, .btn.green:hover { background: #c2e560; color: var(--ink); }
.btn.green { background: var(--green); border-color: var(--studio-line); color: var(--ink); }
.btn.light { background: transparent; color: var(--ink); border-color: var(--control-line); }
.btn.light:hover { background: var(--surface-soft); }
.btn.small { min-height: 44px; font-size: .875rem; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.text-link {
  font-weight: 690;
  font-size: .95rem;
  white-space: normal;
  border: 0;
  padding-bottom: 0;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.section-head .text-link { font-size: .95rem; }
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
:where(.process,.lab-preview,.studio-terminal) :focus-visible { outline-color: var(--green); }

.panel, .metric, .service-card, .product-grid > article, .callout,
.empty-state, .stage-edit, .notice, .cookie-notice, .toast {
  border-radius: var(--radius-card);
}
.panel, .metric, .service-card, .product-grid > article, .callout {
  background: var(--surface);
  border: 1px solid var(--line);
}
.panel, .service-card, .callout { padding: var(--pad-card); }
.panel h2, dialog h2 { font: 760 clamp(1.35rem, 2.3vw, 2rem)/1.18 var(--studio-sans); letter-spacing: -.033em; }
.panel h3, .product-info h3 { font-weight: 740; letter-spacing: -.023em; }
.panel p, dialog p, .lab-detail p, .service-card p, .callout p {
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.55;
}
.panel p, .panel h2, .panel h3 { overflow-wrap: anywhere; }
.record-text { overflow-wrap: anywhere; }
.service-grid, .product-grid { gap: clamp(14px, 2.4vw, 30px); }
.service-card { border-color: var(--studio-line); }
.service-card h3 { font: 750 clamp(1.4rem, 2.5vw, 2rem)/1.15 var(--studio-sans); letter-spacing: -.035em; }
.service-card .card-top { color: var(--muted); }
.service-card .price { color: var(--ink); font-weight: 740; }
.service-card .price small { color: var(--muted); }
.catalog-price-value {
  display: inline;
  padding: .08em .38em;
  border-radius: 4px;
  background: var(--green);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.product-grid > article { overflow: hidden; }
.product-info { align-items: flex-start; flex-wrap: wrap; padding: clamp(14px, 2vw, 24px); }
.product-visual { height: clamp(150px, 24vw, 255px); }
.product-visual svg { max-width: 84%; max-height: 80%; }

.lab-section { background: var(--surface-soft); border-block: 1px solid var(--line); }
.lab-preview, .process {
  background: linear-gradient(135deg, var(--dark), #102219);
  color: #f6f6ef;
}
.lab-preview { border-radius: var(--radius-panel); border: 1px solid #14271c; }
.lab-preview .scan-line { border-color: #455d48; }
.lab-preview .scan-line span { color: var(--green); }
.process .steps { border-color: #455d48; }
.process .step { border-color: #455d48; }
.process .step p { color: #d2ddcf; }

.portal { column-gap: clamp(18px, 3vw, 40px); }
.portal-head h1 { font: 770 clamp(1.75rem, 3.3vw, 2.65rem)/1.12 var(--studio-sans); letter-spacing: -.038em; }
.sidebar { border-color: var(--line); }
.sidebar button, .sidebar a { border-radius: var(--radius-control); color: var(--ink); font-size: .9rem; }
.sidebar button:hover, .sidebar a:hover { background: var(--surface-soft); }
.sidebar button.active { background: var(--green); color: var(--ink); }
.metric b { font-weight: 730; }
.table { font-size: .875rem; }
.table th { font-size: .75rem; }

.field, .check { font-size: .9375rem; }
.field input, .field textarea, .field select {
  min-height: 44px;
  border: 1px solid var(--control-line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font: 450 1rem/1.35 var(--studio-sans);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--focus); }
.notice { background: #edf1e4; border-color: #b8c5ad; color: var(--ink); }
.status { border-radius: var(--radius-control); white-space: normal; overflow-wrap: anywhere; }
.empty-state { border-color: var(--control-line); background: var(--surface); }
dialog { border-color: var(--studio-line); border-radius: var(--radius-panel); background: var(--surface); }
dialog::backdrop { background: #0c130f99; }
.conversation-dialog .record-card { padding-inline: 0; }
#close-modal { min-width: 44px; min-height: 44px; }

footer {
  width: var(--studio-width);
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: 6px;
  border-color: var(--studio-line);
}
footer b { font-size: .77rem; letter-spacing: .04em; }
footer div > a:not(.logo), footer button, footer p { font-size: .875rem; }
footer div > a:hover, footer button:hover { text-decoration: underline; text-underline-offset: .2em; }
footer small { font-size: .72rem; }

@media (max-width: 760px) {
  .section-head { align-items: flex-start; }
  .form-shell { padding-bottom: var(--section-space); }
}
@media (max-width: 580px) {
  .page-top { margin-block-end: 24px; }
  .panel, .form-shell .panel { padding: 17px; }
  .product-info .btn { width: 100%; }
  .portal-head .status { font-size: .75rem; }
  footer { gap: 22px 16px; }
}

/* Interactive preview in the home page terminal. */
.studio-terminal .studio-demo {
  padding: clamp(15px, 2vw, 28px);
}
.studio-demo-context {
  margin: 0 0 12px;
  color: #cbd8ca;
  font-size: clamp(.72rem, 1.25vw, .875rem);
}
.studio-demo-stage {
  border-bottom: 1px solid #455d48;
}
.studio-demo-stage:first-of-type {
  border-top: 1px solid #455d48;
}
.studio-demo-stage > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .65em;
  align-items: center;
  min-height: 44px;
  padding: 6px 8px;
  color: #f6f6ef;
  font-size: clamp(.8rem, 1.45vw, 1.06rem);
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.studio-demo-stage > summary::-webkit-details-marker { display: none; }
.studio-demo-stage > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.studio-demo-stage[open] > summary { color: var(--studio-lime); }
.studio-demo-stage[open] > summary::after { transform: rotate(225deg); }
.studio-demo-stage > summary:hover { background: #20382a; }
.studio-demo-stage > summary:focus-visible { outline-offset: -2px; }
.studio-demo-number {
  color: #aebfaf;
  font-size: .78em;
  font-variant-numeric: tabular-nums;
}
.studio-demo-screen {
  margin: 0 0 10px 8px;
  padding: 9px 12px;
  border-inline-start: 2px solid var(--studio-lime);
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
  background: #0c1a13;
  font: 450 clamp(.82rem, 1.35vw, 1rem)/1.4 var(--studio-sans);
}
.studio-demo-screen strong { font-weight: 750; color: #f6f6ef; }
.studio-demo-screen p { margin: 3px 0 0; color: #d4ded1; }
.studio-terminal .studio-demo-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  font-size: clamp(.8rem, 1.35vw, .95rem);
}

.studio-demo-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid #455d48;
  border-radius: var(--radius-control);
  background: #0c1a13;
}
.studio-demo-transcript {
  margin-top: 8px;
  border-bottom: 1px solid #455d48;
}
.studio-demo-transcript > summary {
  min-height: 44px;
  padding-block: 11px;
  cursor: pointer;
  color: #e1ebdd;
  font-size: clamp(.8rem, 1.35vw, .95rem);
}
.studio-demo-transcript[open] > summary { color: var(--studio-lime); }
.studio-demo-transcript .studio-demo-context { margin-top: 6px; }
