/* Production components expressed in the supplied Refract design tokens. */
:root[data-theme="light"] {
  --ch-void: 250 249 246; --ch-deep-teal: 246 245 242;
  --ch-dark-forest: 241 242 240; --ch-forest: 235 238 236;
  --ch-white: 15 33 45; --ch-black: 255 255 255; --ch-muted: 92 109 122;
  --ch-card-border: 218 225 228; --ch-shade-30: 57 76 89;
  --ch-shade-50: 92 109 122; --ch-shade-60: 108 123 135;
  --ch-neon: 0 112 151; --ch-link-mint: 0 112 151;
  --shadow-card-rest: var(--shadow-card); --shadow-high: var(--shadow-cast);
}
:root[data-theme="dark"] {
  --ch-void: 17 24 33; --ch-deep-teal: 24 33 43;
  --ch-dark-forest: 30 41 53; --ch-forest: 36 49 62;
  --ch-white: 236 242 248; --ch-black: 17 24 33; --ch-muted: 187 204 216;
  --ch-card-border: 66 85 102; --ch-shade-30: 215 225 234;
  --ch-shade-50: 187 204 216; --ch-shade-60: 164 185 202;
  --ch-neon: 82 182 224; --ch-link-mint: 82 182 224;
  --shadow-card-rest: var(--shadow-card); --shadow-high: var(--shadow-cast);
}
html { background: var(--color-paper); font-feature-settings: normal; }
html[data-theme="light"] { color-scheme: light; }
body { font-family: var(--font-body); font-weight: 400; }
main { padding-top: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; box-shadow: none; }
ul.hero-list { list-style: disc; }
.section { padding-block: var(--section-gap); }
.section--sm { padding-block: var(--space-2xl); }
.section .container, .hero .container { padding-inline: var(--gutter); }
.section .fx { display: none; }
.bg-deep-teal { background: var(--color-paper-2); }
.t-h2 { font-family: var(--font-display); font-size: var(--text-section); line-height: 1.1; font-weight: 400; letter-spacing: var(--tracking-display); }
.t-body-lg { font-size: var(--text-lead); font-weight: 400; letter-spacing: normal; color: var(--color-muted); }
.t-overline { font-size: var(--text-xs); color: var(--color-muted); }
.sec-head { text-align: left; margin: 0 0 var(--space-xl); }
.sec-head h2, .sec-head p { margin-left: 0; margin-right: 0; }
.sec-head p { max-width: 65ch; margin-top: var(--space-md); }
.btn.btn-primary, .btn.btn-outline { min-height: 48px; padding: 0 var(--space-lg); font-family: var(--font-body); font-size: var(--text-md); font-weight: 500; }
.btn.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); border: 1px solid transparent; box-shadow: var(--shadow-card); }
.btn.btn-primary:hover { background: var(--color-accent-hi); }
.btn.btn-outline { color: var(--color-ink); background: var(--color-paper); border: 1px solid var(--color-rule); }

/* Keep all existing header links and responsive controls. */
#hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--color-paper) 94%, transparent); border-bottom: 1px solid var(--color-rule); backdrop-filter: blur(6px); }
#hdr[data-scrolled] { background: color-mix(in oklab, var(--color-paper) 96%, transparent); }
.hdr-in { max-width: 1440px; padding-inline: 24px; gap: 20px; }
.brand { gap: 12px; }
.brand-title { font-size: 22px; font-weight: 500; color: var(--color-ink); }
.brand-sub { font-size: 12px; color: var(--color-muted); }
.nav { min-height: auto; border: 0; gap: 4px; margin-left: 0; }
.nav-item { font-size: 14px; padding-inline: 10px; color: var(--color-ink-2); letter-spacing: normal; }
.hdr-right { gap: 8px; }
.hdr-right .btn { min-height: 36px; padding-inline: 16px; font-size: 14px; }
.ddg-inner, .lng-menu, .drawer { background: var(--color-paper); }
.ddg-link { padding: 8px 12px; }
.ddg-t b { font-size: 16px; }
.ddg-t span { font-size: 14px; }
.ddg-new { font-size: 10px; }
.ddg:not([data-open]) .ddg-panel { opacity: 0; pointer-events: none; }
.ddg[data-open] .ddg-panel { opacity: 1; transform: none; pointer-events: auto; }
.thm, .acct, .lng-btn { background: var(--color-paper-2); color: var(--color-ink); }
.drawer { visibility: hidden; }
.drawer[data-open] { visibility: visible; }
.drawer a { font-size: 16px; }
@media (max-width: 1250px) { .nav { display: none; } #burger { display: inline-flex !important; flex: none; } }
@media (max-width: 639px) { .brand-txt { display: flex; } .brand-title { font-size: 18px; } .brand-sub { font-size: 9px; } .hdr-in { padding-inline: 16px; gap: 4px; } }
@media (max-width: 359px) { .brand-txt { display: none; } }

/* First screen follows the reference: flowing light, large type, robot at right. */
.hero { min-height: calc(100svh - 64px); padding-block: 64px; overflow: hidden; }
.hero::before, .hero::after { display: none; }
[data-theme="dark"] .hero-light { opacity: .4; }
.hero .container { grid-template-columns: minmax(0, 700px) minmax(0, 480px); gap: 64px; }
.hero h1 { max-width: 14ch; font-family: var(--font-display); font-size: var(--text-display); line-height: 1.02; font-weight: 400; letter-spacing: var(--tracking-display); }
.hero .actions { justify-content: flex-start; }
.hero .mark { height: clamp(500px, 74svh, 660px); min-width: 0; }
.hero .mark-img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.hero-para { padding-left: 0; }
.hero .free-note { text-align: left; }
@media (max-width: 960px) {
  .hero { min-height: auto; padding-block: 56px 24px; }
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero .mark { height: 420px; width: 100%; justify-self: center; }
  .hero .mark-img { height: 100%; }
}
@media (max-width: 480px) { .hero .mark { height: 340px; } .hero-list { font-size: 17px; } .hero .actions { gap: 10px; } .hero .actions .btn { padding-inline: 18px; } .free-note-text { font-size: 16px; } }

/* The three retained sections share the reference's paper, blue accent and soft edges. */
.figs { grid-template-columns: 1fr; margin-top: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.figs > div, .cat, .inst-card, .cmp-card { border-radius: var(--radius-card); background: var(--color-paper); border: 1px solid var(--color-rule); box-shadow: var(--shadow-card); }
.figs > div { padding: 28px; background: var(--color-paper-2); }
.figs b { font-family: var(--font-display); font-weight: 400; font-size: 36px; letter-spacing: var(--tracking-display); }
.cats { gap: 24px; margin-top: 24px; }
.cat { padding: 28px; }
.cat b { font-family: var(--font-display); font-size: 32px; font-weight: 400; letter-spacing: var(--tracking-display); }
.cat:hover { transform: none; border-color: var(--color-accent); }
.cat-go { color: var(--color-accent); }
.hero-chip { margin-top: 48px; text-align: center; }
.chip-link { background: var(--color-paper); border-color: var(--color-rule); color: var(--color-ink); box-shadow: var(--shadow-card); }
#compare .cmp-grid { gap: 24px; }
#compare .cmp-card { border-color: var(--color-rule); }
#compare .cmp-card--good { border-color: color-mix(in oklab, var(--color-accent) 40%, var(--color-rule)); }
.cmp-q { background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: var(--radius-inner); }
.cmp-q svg { color: var(--color-accent); }
.cmp-body::after { background: linear-gradient(transparent, var(--color-paper)); }
.cmp-body h4 { color: var(--color-ink); }
.cmp-table-wrap { border-radius: var(--radius-inner); background: var(--color-paper); border-color: var(--color-rule); }
.cmp-table td { border-bottom-color: var(--color-rule); }
.cmp-table { min-width: 480px; }
.cmp-table th:nth-child(n+2), .cmp-table td:nth-child(n+2) { width: 27%; }
.cmp-more { min-height: 44px; background: var(--color-paper); border-color: var(--color-rule); }
#app .inst { gap: 24px; }
.inst-card { padding: 28px; }
.inst-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; }
.inst-steps { gap: 16px; }
.inst-steps li { min-width: 0; font-size: 16px; line-height: 1.5; }
.inst-steps li > span, .inst-steps li > p { display: block; margin-top: 12px; font-size: 16px; }
.car-nav { background: var(--color-paper); border-color: var(--color-rule); color: var(--color-ink); }
.car-dot[aria-current="true"] { background: var(--color-accent); }
.car--phones .car-frame { border-color: var(--color-rule); }
.pillar, .swarm, .step, .eco-card, .res { border-color: var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); box-shadow: var(--shadow-card); }
.eco-card:hover { background: var(--color-paper-2); }
.faq details { background: transparent; border-color: var(--color-rule); border-radius: 0; box-shadow: none; }
.faq summary { font-family: var(--font-display); font-size: 22px; }
.faq details p { max-width: 80ch; }
footer { background: var(--color-paper-2); border-color: var(--color-rule); }
.ft-in { max-width: 1440px; padding-inline: var(--gutter); }
.ft-bottom { border-color: var(--color-rule); }
.band .statement { max-width: 26ch; }
.guide-video { height: auto; }
.guide-steps { list-style: none; }
.guide-steps li { padding-block: 4px; }
.guide-steps li.guide-step { margin-top: 16px; padding-top: 0; }
.guide-steps li.guide-step::before { display: none; }
.guide-kicker { color: var(--color-accent); font-size: 13px; margin-bottom: 4px; }
.guide-step h4 { font-family: var(--font-display); font-size: 20px; line-height: 1.3; font-weight: 500; }
.guide-item { scroll-margin-top: 88px; }
.examples { align-items: start; }
.examples .example img { object-fit: contain; }
.example-zoom { display: block; width: 100%; cursor: zoom-in; padding: 0; }
dialog.lbx { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; }
dialog.lbx::backdrop { background: rgba(0,0,0,.94); }
.lbx-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--color-paper); color: var(--color-ink); font-size: 30px; line-height: 1; }
.disclaimer { max-width: 80ch; margin: 32px auto 0; font-size: 14px; color: var(--color-muted); text-align: center; }
@media (max-width: 640px) {
  .hero .actions { flex-direction: row; }
  .hero .actions .btn { width: auto; flex: 1 0 auto; padding-inline: 16px; font-size: 14px; }
  .hero .actions .btn:first-child { width: 100%; }
  .figs b { font-size: 30px; } .cat b { font-size: 28px; }
  .cat, .figs > div, .inst-card { padding: 22px; }
  .cmp-srcs { text-align: left; }
  .cmp-cta .btn { width: 100%; }
  .guide-item { gap: 24px; }
  .guide-media { justify-self: center; width: min(100%, 280px); }
  .guide-video { max-width: 100%; }
  .faq summary { font-size: 20px; }
}
