:root {
  color-scheme: light;
  --page: #fbfaf8;
  --surface: #fff;
  --soft: #f2eef5;
  --selected: #f0e7fa;
  --ink: #181523;
  --muted: #514e5c;
  --line: #e1dde6;
  --control: #81768b;
  --accent: #573aa9;
  --focus: #8163d5;
  --night: #21172e;
  --on-night: #d9d2e5;
  --accent-light: #d6befa;
  --step-1: 4px;
  --step-2: 8px;
  --step-3: 12px;
  --step-4: 16px;
  --step-5: 24px;
  --step-6: 32px;
  --step-7: 48px;
  --step-8: 64px;
  --section: clamp(82px, 8.6vw, 128px);
  --gutter: clamp(16px, 4.6vw, 72px);
  --shell: 1320px;
  --radius-control: 8px;
  --radius-image: 15px;
  --radius-surface: 20px;
  --radius-panorama: 32px;
  --ease: cubic-bezier(.22, .7, .28, 1);
  --quick: 220ms;
  --underline-time: 240ms;
  --reveal: 280ms;
  --elevation: 0 1px 2px #251b3820, 0 10px 20px -8px #251b3835, 0 26px 54px -22px #2b19475c;
  font: 17px/1.55 Figtree, system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body, h1, h2, h3, p, figure, ul, fieldset { margin: 0; }
a { color: inherit; }
img, picture { display: block; width: 100%; }
img { height: auto; }
fieldset { min-inline-size: 0; border: 0; padding: 0; }
input, select { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
p { max-width: 65ch; }
h1, h2, h3 { font-weight: 670; line-height: 1.06; letter-spacing: -.052em; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(47px, 5vw, 77px); }
h2 { font-size: clamp(35px, 4.02vw, 58px); }
h3 { font-size: clamp(24px, 2vw, 34px); }
.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: var(--section); }
.small { color: var(--muted); font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.lab-header, .lab-footer { background: var(--surface); }
.lab-header-inner, .lab-footer-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: var(--step-4); }
.lab-header-inner nav { display: flex; gap: clamp(16px, 3.2vw, 46px); }
.lab-header-inner nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-underline-offset: .25em; font-size: 15px; font-weight: 620; text-decoration: none; }
.lab-header-inner nav a:hover { color: var(--accent); text-decoration: underline; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; text-decoration: none; font-size: 20px; font-weight: 730; letter-spacing: -.052em; white-space: nowrap; }
.brand img { width: 32px; border-radius: 9px; }
.brand span { padding-inline-start: 9px; border-inline-start: 1px solid var(--line); }
.lab-footer { border-top: 1px solid var(--line); }

.panorama { width: min(1740px, calc(100% - 40px)); margin-inline: auto; }
.mast { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #2c213d; border-radius: var(--radius-panorama); background: var(--night); color: white; }
.mast::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, #21172eec, #21172ebf 42%, #21172e40), url(assets/folio-hero.webp) right center / cover no-repeat; }
.mast-inner { min-height: clamp(480px, 44vw, 635px); padding-block: clamp(48px, 7vw, 104px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6.1fr); align-items: center; gap: clamp(26px, 5vw, 76px); }
.eyebrow { margin-bottom: var(--step-3); color: var(--accent); font-size: 14px; font-weight: 720; }
.mast .eyebrow, .mast em { color: var(--accent-light); font-style: normal; }
.mast h1 { text-wrap: initial; }
.mast .lead { max-width: 35ch; margin-block: var(--step-5); color: var(--on-night); font-size: clamp(17px, 1.35vw, 20px); }
.mast-shot { transform: rotate(-2deg); }
.mast-shot img { border-radius: var(--radius-image); border: 1px solid #ede6f7ce; box-shadow: 0 24px 48px #120a2270; }
.mast-shot figcaption { padding-top: var(--step-3); color: #f4e9ff; font-size: 13px; }

.pill, .text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; font-size: 15px; font-weight: 680; text-decoration: none; }
.pill { justify-content: center; border: 1px solid transparent; padding: 6px 7px 6px 17px; border-radius: 100px; background: var(--ink); color: white; transition: transform var(--quick) var(--ease), box-shadow var(--quick) var(--ease), background-color var(--quick) var(--ease); }
.pill-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: #2d2144; background: #ebe4f7; font-size: 17px; transition: rotate var(--quick) var(--ease); }
.pill-light { color: var(--night); background: white; }
.pill:focus-visible { outline-offset: 4px; }
.mast :focus-visible { outline-color: var(--accent-light); }
.text-link { color: var(--accent); }
.link-label { position: relative; }
.link-label::after { position: absolute; inset: auto 0 -.12em; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--underline-time) var(--ease); content: ""; }
.text-link:focus-visible .link-label::after { transform: scaleX(1); }
@media (hover: hover) {
  .pill:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #19132444; background: #32283f; }
  .pill-light:hover { background: #f5eefc; }
  .pill:hover .pill-icon { rotate: 11deg; }
  .text-link:hover .link-label::after { transform: scaleX(1); }
}
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--step-2) var(--step-5); }
.action-row > a { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

.section-intro { max-width: 780px; }
.section-intro h2 + p { margin-top: var(--step-4); color: var(--muted); }
.specs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6.1fr); gap: var(--step-7); margin-top: var(--step-7); border-block: 1px solid var(--line); padding-block: var(--step-5); }
.spec-title { font-weight: 720; font-size: 14px; }
.type-word { font-size: clamp(46px, 6.3vw, 90px); line-height: 1.03; letter-spacing: -.065em; font-weight: 670; margin-block: var(--step-2); }
.type-word span { color: var(--accent); }
.type-data { font-size: 14px; color: var(--muted); }
.palette { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--step-2); margin-top: var(--step-3); padding: 0; list-style: none; }
.swatch { min-height: 92px; display: grid; align-content: end; padding: var(--step-3); border-radius: var(--radius-control); font-size: 14px; }
.swatch code { font: 12px/1.4 ui-monospace, monospace; }
.paper { border: 1px solid var(--line); }
.lavender { background: var(--soft); }
.violet { background: var(--accent); color: white; }
.night { background: var(--night); color: white; }
.action-spec { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--step-4); padding-top: var(--step-5); }

.product-band { background: var(--soft); border-block: 1px solid var(--line); }
.product-example { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6.1fr); align-items: center; gap: clamp(24px, 5vw, 76px); margin-top: var(--step-7); }
.flow-options { display: grid; gap: var(--step-2); }
.flow-options label, .segments label { display: block; position: relative; cursor: pointer; }
.flow-options input, .segments input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.flow-label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--step-3); min-height: 66px; padding: var(--step-3); border: 1px solid transparent; border-radius: 13px; transition: background-color var(--quick) var(--ease), border-color var(--quick) var(--ease); }
.flow-options label:hover .flow-label { background: #f5eef9; }
.flow-options input:checked + .flow-label { background: var(--selected); border-color: #d4c3e5; }
.flow-options input:focus-visible + .flow-label, .segments input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (forced-colors: active) {
  .flow-options input:checked + .flow-label { border-color: Highlight !important; }
  .flow-options input:checked + .flow-label .flow-number { text-decoration: underline 2px; text-underline-offset: .16em; }
}
.flow-label small { display: block; color: var(--muted); font-size: 14px; }
.flow-label > :last-child { color: var(--accent); }
.flow-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); color: var(--accent); font-size: 13px; font-weight: 720; }
.flow > a { margin-top: var(--step-2); }
.evidence { display: grid; gap: var(--step-5); }
.evidence figure, .pattern-proof figure { overflow: hidden; border-radius: var(--radius-image); background: var(--surface); box-shadow: var(--elevation); }
.evidence figure.is-entering { animation: enter var(--reveal) var(--ease) both; }
.evidence figcaption, .pattern-proof figcaption { padding: var(--step-3) var(--step-4); color: var(--muted); font-size: 13px; }
@keyframes enter { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.pricing-example { display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 6.6fr); align-items: start; gap: clamp(24px, 5vw, 76px); margin-top: var(--step-7); }
.trial, .rate-card, .contact-spec { border: 1px solid var(--line); border-radius: var(--radius-surface); padding: clamp(20px, 3vw, 40px); }
.trial { background: var(--soft); }
.trial h3 { margin-top: var(--step-2); }
.trial h3 + p { margin-top: var(--step-3); color: var(--muted); }
.trial .pill { margin-top: var(--step-5); }
.rate-card { background: var(--surface); }
.rate-heading { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: var(--step-4); }
.segments { display: flex; gap: var(--step-1); padding: var(--step-1); border: 1px solid var(--line); border-radius: 100px; background: var(--page); }
.segments span { display: grid; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 100px; color: var(--muted); font-size: 14px; font-weight: 690; }
.segments input:checked + span { color: white; background: var(--accent); }
.rate-card table { width: 100%; margin-block: var(--step-5) var(--step-4); border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rate-card :is(th,td) { padding: 9px 5px; border-bottom: 1px solid var(--line); text-align: end; font-size: 15px; }
.rate-card th:first-child { padding-inline-start: 0; text-align: start; }
.rate-card thead th { color: var(--muted); font-size: 13px; font-weight: 640; }
.rate-card td:nth-child(2) { font-weight: 720; color: var(--accent); }

.page-patterns { border-top: 1px solid var(--line); }
.pattern-list { margin-top: var(--step-6); }
.pattern-list details { border-top: 1px solid var(--line); }
.pattern-list details:last-child { border-bottom: 1px solid var(--line); }
.pattern-list summary { display: grid; grid-template-columns: 34px 1fr auto 24px; align-items: center; gap: var(--step-4); min-height: 60px; padding-block: var(--step-2); cursor: pointer; font-weight: 670; list-style: none; }
.pattern-list summary::-webkit-details-marker { display: none; }
.pattern-list summary::after { content: "+"; color: var(--accent); font-size: 22px; text-align: center; }
.pattern-list details[open] summary::after { content: "−"; }
.pattern-number, .pattern-kind { color: var(--accent); font-size: 13px; font-weight: 650; }
.pattern-list details p { margin: 0 0 var(--step-4) 50px; color: var(--muted); }
.pattern-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--step-5); margin: 0 0 var(--step-6) 50px; padding: 0; list-style-position: inside; color: var(--ink); }
.pattern-steps li { padding-block: var(--step-3); border-top: 1px solid var(--line); }
.pattern-steps li::marker { color: var(--accent); font-weight: 720; }
.pattern-proof { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6.1fr); align-items: start; gap: var(--step-6); margin: 0 24px var(--step-6) 50px; }
.pattern-proof figure { max-width: 610px; }
.pattern-list .pattern-proof p { margin-inline: 0; }

.contact-band { background: var(--soft); border-top: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr); align-items: center; gap: clamp(24px, 5vw, 76px); }
.contact-layout .action-row { margin-top: var(--step-5); }
.contact-spec { background: var(--surface); }
.contact-selector { display: grid; gap: var(--step-2); margin-bottom: var(--step-4); }
.contact-selector label { font-weight: 680; font-size: 15px; }
.contact-selector select { width: 100%; min-height: 48px; background: var(--surface); color: var(--ink); border: 1px solid var(--control); border-radius: var(--radius-control); padding-inline: var(--step-3); }
.notice { padding: var(--step-4); border: 1px solid var(--line); border-inline-start: 3px solid var(--accent); border-radius: var(--radius-control); background: var(--soft); }
.notice p { font-size: 15px; margin-top: var(--step-1); }
.notice[data-tone="error"] { border-inline-start-color: #9a2735; background: #fcf0f0; }
.notice[data-tone="success"] { border-inline-start-color: #23593c; background: #edf6ed; }
.contact-note { margin-top: var(--step-3); }

@media (max-width: 920px) {
  .mast-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .swatch { padding-inline: var(--step-2); }
}
@media (max-width: 740px) {
  :root { --section: 69px; }
  .lab-header-inner { flex-wrap: wrap; padding-block: var(--step-2); }
  .lab-header-inner nav { order: 2; width: 100%; }
  .lab-header-inner, .lab-footer-inner { gap: 0 var(--step-2); }
  .panorama { width: calc(100% - 24px); }
  .mast { border-radius: 24px; }
  .mast-inner, .specs, .product-example, .pricing-example, .contact-layout, .pattern-proof { grid-template-columns: 1fr; }
  .mast-inner { width: calc(100% - 2 * var(--gutter)); }
  .mast .lead { margin-block: var(--step-4) var(--step-5); }
  .mast-shot { max-width: 510px; transform: none; }
  .specs { gap: var(--step-5); }
  .pattern-steps { grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--step-3); }
  .pattern-proof { gap: var(--step-4); }
  .product-example, .pricing-example { margin-top: var(--step-6); }
}
@media (max-width: 420px) {
  h1 { font-size: clamp(38px, 11vw, 47px); }
  h2 { font-size: clamp(32px, 9vw, 38px); }
  .brand { font-size: 17px; }
  .brand img { width: 29px; }
  .text-link { gap: 5px; font-size: 14px; }
  .home-preview { font-size: 13px; }
  .palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatch { min-height: 68px; }
  .rate-card :is(th,td) { font-size: 13px; }
  .rate-card { padding-inline: var(--step-3); }
  .pattern-list summary { grid-template-columns: 24px 1fr 24px; gap: var(--step-3); }
  .pattern-kind { display: none; }
  .pattern-list details p { margin-inline-start: 36px; }
  .pattern-steps, .pattern-proof { margin-inline: 36px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pill:hover { transform: none; }
  .pill:hover .pill-icon { rotate: 0deg; }
}
