@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ink: #151a4a;
  --ink-soft: #454b7d;
  --paper: #f4f6ff;
  --white: #ffffff;
  --volt: #3346ff;
  --flamingo: #ff4f9a;
  --sun: #ffc83d;
  --mint: #16c79a;
  --line: rgba(21, 26, 74, 0.16);
  --sans: "Bricolage Grotesque", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gut: clamp(1.1rem, 4vw, 2.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--volt); }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--sun); }

h1, h2, h3 { line-height: 1.05; margin: 0 0 0.5em; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.5rem, 7vw, 5.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 750; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code, .code { font-family: var(--mono); font-size: 0.86em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.prose { max-width: 68ch; }
.lead { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section + .section { padding-top: 0; }
.sep { display: inline-block; width: 1px; height: 1em; background: currentColor; opacity: 0.4; margin: 0 0.7em; vertical-align: middle; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--sun); padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-head { position: relative; z-index: 20; }
.head-row { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; text-decoration: none; flex-shrink: 0; }
.logo svg { width: 30px; height: 30px; }
.nav-main { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav-main a { text-decoration: none; font-weight: 550; font-size: 1rem; }
.nav-main a:hover, .nav-main a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--volt); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--ink); color: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 0.72rem 1.35rem; font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--volt); border-color: var(--volt); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.nav-mobile { display: none; margin-left: auto; }
.nav-mobile summary { list-style: none; cursor: pointer; font-weight: 650; border: 2px solid var(--ink); border-radius: 999px; padding: 0.45rem 1rem; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--ink); color: var(--white); }
.nav-mobile ul { position: absolute; left: var(--gut); right: var(--gut); top: 72px; list-style: none; margin: 0; padding: 0.6rem; background: var(--white); border: 2px solid var(--ink); border-radius: 20px; box-shadow: 8px 8px 0 var(--ink); }
.nav-mobile li a { display: block; padding: 0.7rem 0.8rem; text-decoration: none; font-weight: 600; border-radius: 12px; }
.nav-mobile li a:hover { background: var(--paper); }
@media (max-width: 960px) {
  .nav-main, .head-cta { display: none; }
  .nav-mobile { display: block; }
}

/* Hero */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero h1 { max-width: 13ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.mosaic { list-style: none; margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(128px, auto); gap: 12px; }
.mosaic li { display: flex; }
.tile { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 22px; text-decoration: none; min-width: 0; }
.tile-name { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.1; }
.tile .code { font-size: 0.8rem; line-height: 1.45; overflow-wrap: anywhere; opacity: 0.92; }
.tile:hover .tile-name { text-decoration: underline; text-decoration-thickness: 3px; }
.mosaic .big { grid-column: span 3; grid-row: span 2; }
.mosaic .big .tile-name { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.mosaic .big .code { font-size: 0.95rem; }
.mosaic .wide { grid-column: span 2; }
.mosaic .one { grid-column: span 1; }
@media (max-width: 960px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .mosaic .big { grid-column: span 4; grid-row: span 1; }
  .mosaic .one { grid-column: span 2; }
}
@media (max-width: 560px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(112px, auto); }
  .mosaic .big { grid-column: span 2; }
  .mosaic .wide, .mosaic .one { grid-column: span 1; }
  .tile-name { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .mosaic li { animation: pop 0.5s cubic-bezier(.2,.9,.3,1.25) both; }
  .mosaic li:nth-child(2) { animation-delay: .04s } .mosaic li:nth-child(3) { animation-delay: .08s }
  .mosaic li:nth-child(4) { animation-delay: .12s } .mosaic li:nth-child(5) { animation-delay: .16s }
  .mosaic li:nth-child(6) { animation-delay: .2s } .mosaic li:nth-child(7) { animation-delay: .24s }
  .mosaic li:nth-child(8) { animation-delay: .28s } .mosaic li:nth-child(9) { animation-delay: .32s }
  .mosaic li:nth-child(10) { animation-delay: .36s } .mosaic li:nth-child(11) { animation-delay: .4s }
  .mosaic li:nth-child(12) { animation-delay: .44s } .mosaic li:nth-child(13) { animation-delay: .48s }
  .mosaic li:nth-child(14) { animation-delay: .52s }
}
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }

.t-volt { background: var(--volt); color: var(--white); }
.t-flamingo { background: var(--flamingo); color: var(--ink); }
.t-sun { background: var(--sun); color: var(--ink); }
.t-mint { background: var(--mint); color: var(--ink); }
.t-ink { background: var(--ink); color: var(--white); }

/* Section heads */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.sec-head h2 { margin: 0; max-width: 18ch; }
.sec-head p { margin: 0; max-width: 46ch; color: var(--ink-soft); }

/* Row list */
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0.4rem 2rem; padding: 1.35rem 0; text-decoration: none; align-items: baseline; }
.rows .r-name { font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }
.rows .r-text { color: var(--ink-soft); }
.rows a:hover .r-name { color: var(--volt); }
@media (max-width: 720px) { .rows a { grid-template-columns: 1fr; } }

/* Cases */
.cases { display: grid; gap: 1.5rem; }
.case { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: 2rem; align-items: center; border-radius: 32px; padding: clamp(1.6rem, 4vw, 3.2rem); overflow: hidden; }
.case h2, .case h3 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.case p { max-width: 50ch; }
.case .pkg { font-family: var(--mono); font-size: 0.85rem; overflow-wrap: anywhere; opacity: .9; }
.case .btn { margin-top: 0.6rem; }
.case.t-volt .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.case.t-flamingo .btn { background: var(--ink); color: var(--white); }
@media (max-width: 820px) { .case { grid-template-columns: 1fr; } }

.phone { width: min(250px, 70vw); aspect-ratio: 9 / 18.5; margin: 0 auto; background: var(--ink); border-radius: 38px; padding: 10px; box-shadow: 14px 14px 0 rgba(21,26,74,.35); transform: rotate(4deg); }
.case:nth-child(2) .phone { transform: rotate(-4deg); }
.screen { height: 100%; background: var(--white); border-radius: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 18px; position: relative; }
.scan-frame { position: relative; width: 74%; aspect-ratio: 1; display: grid; place-items: center; }
.scan-frame::before, .scan-frame::after { content: ""; position: absolute; inset: 0; border: 4px solid var(--c); border-radius: 18px; clip-path: polygon(0 0, 30% 0, 30% 4px, 4px 4px, 4px 30%, 0 30%, 0 100%, 30% 100%, 30% calc(100% - 4px), 4px calc(100% - 4px), 4px 70%, 0 70%, 0 0, 100% 0, 100% 30%, calc(100% - 4px) 30%, calc(100% - 4px) 4px, 70% 4px, 70% 0, 100% 0, 100% 100%, 70% 100%, 70% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 70%, 100% 70%); }
.scan-frame svg { width: 78%; height: auto; }
.bar { height: 10px; border-radius: 6px; background: #dfe3f7; width: 80%; }
.bar.s { width: 55%; }
.bar.c { background: var(--c); width: 62%; height: 30px; border-radius: 12px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--sun); font-weight: 800; margin-bottom: 0.8rem; }
.steps p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Band */
.band { border-radius: 32px; padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 1.5rem 2rem; align-items: center; }
.band h2 { margin: 0 0 0.4rem; }
.band p { margin: 0; max-width: 52ch; }
@media (max-width: 720px) { .band { grid-template-columns: 1fr; } }

/* Inner page head */
.page-head { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 0; margin: 0 0 1.6rem; padding: 0; font-size: 0.95rem; }
.crumbs li + li::before { content: "/"; margin: 0 0.55rem; opacity: 0.5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hello { display: block; margin-top: 1.6rem; padding: 1rem 1.2rem; border-radius: 16px; background: rgba(255,255,255,.14); font-family: var(--mono); font-size: clamp(0.9rem, 2vw, 1.15rem); overflow-x: auto; white-space: pre; max-width: 100%; }
.t-sun .hello, .t-mint .hello, .t-flamingo .hello { background: rgba(21,26,74,.1); }
.page-head.t-volt, .page-head.t-ink { color: var(--white); }
.page-head.tone { border-radius: 0 0 36px 36px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.page-head .lead { color: inherit; opacity: 0.92; }

/* Detail layout */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
.detail h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2.4rem; }
.detail h2:first-child { margin-top: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li { position: relative; padding: 0.55rem 0 0.55rem 2rem; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 14px; height: 14px; border-radius: 4px; background: var(--volt); }
.aside { position: sticky; top: 1.5rem; background: var(--white); border: 2px solid var(--ink); border-radius: 24px; padding: 1.5rem; }
.aside h2 { font-size: 1.15rem; margin: 0 0 0.7rem; letter-spacing: 0; }
.aside h2 + ul { margin-bottom: 1.4rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chips li { border: 1.5px solid var(--line); border-radius: 999px; padding: 0.2rem 0.75rem; font-size: 0.95rem; }
.chips a { text-decoration: none; }
.chips a:hover { text-decoration: underline; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .aside { position: static; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 2.4rem 1.1rem 0; font-weight: 650; font-size: 1.15rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 0.8rem; font-size: 1.7rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.2rem; color: var(--ink-soft); max-width: 68ch; }

/* Grid cards for hubs */
.tiles-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tiles-grid .tile { min-height: 190px; }
.tiles-grid .tile p { margin: 0; font-size: 1rem; }

/* Compare table */
.table-scroll { overflow-x: auto; border: 2px solid var(--ink); border-radius: 22px; background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th { font-size: 1.05rem; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.yes, td.no { text-align: center; font-weight: 700; }
td.yes span { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--mint); }
td.no { color: var(--ink-soft); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Forms */
.form-wrap { background: var(--white); border: 2px solid var(--ink); border-radius: 28px; padding: clamp(1.4rem, 4vw, 2.6rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: 1rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
input[type="text"], input[type="email"], select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 0.75rem 0.9rem; width: 100%; }
textarea { min-height: 150px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 1rem; }
.check input { width: 1.3rem; height: 1.3rem; margin-top: 0.2rem; accent-color: var(--volt); flex-shrink: 0; }
.err { color: #b0003a; font-size: 0.95rem; font-weight: 600; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.error-list { background: #ffe3ee; border: 2px solid #b0003a; border-radius: 16px; padding: 1rem 1.2rem 1rem 2.4rem; margin: 0 0 1.5rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Legal */
.legal { max-width: 74ch; }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 2.4rem; }
.legal h3 { margin-top: 1.6rem; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: 0.4rem; }
.legal table { min-width: 560px; font-size: 1rem; }
.updated { color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.contact-card { font-size: 1.15rem; }
.contact-card address { font-style: normal; margin-bottom: 1.2rem; }
.contact-card .big-mail { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 750; overflow-wrap: anywhere; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { background: var(--ink); color: var(--white); margin-top: clamp(3rem, 8vw, 6rem); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem 2rem; }
.site-foot h2 { font-size: 1.05rem; letter-spacing: 0; margin: 0 0 0.8rem; color: var(--sun); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.35rem; font-size: 0.98rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: var(--sun); }
.foot-langs { columns: 2; column-gap: 1rem; }
.linklike { background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.company { font-size: 0.98rem; line-height: 1.55; }
.company address { font-style: normal; }
.company p { margin: 0.6rem 0 0; }
.foot-base { border-top: 1px solid rgba(255,255,255,.2); margin-top: 2.5rem; padding-top: 1.4rem; font-size: 0.92rem; opacity: 0.85; }
.site-foot .logo { color: var(--white); margin-bottom: 1rem; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Consent dialog */
dialog.consent { border: 2px solid var(--ink); border-radius: 24px; padding: 1.6rem; max-width: 520px; width: calc(100% - 2rem); color: var(--ink); box-shadow: 10px 10px 0 var(--ink); }
dialog.consent::backdrop { background: rgba(21,26,74,.45); }
dialog.consent h2 { font-size: 1.5rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.consent-actions .btn { flex: 1 1 180px; }
.banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 40; max-width: 640px; margin: 0 auto; background: var(--white); border: 2px solid var(--ink); border-radius: 22px; padding: 1.2rem 1.3rem; box-shadow: 8px 8px 0 var(--ink); }
.banner[hidden] { display: none; }
.banner p { margin: 0 0 0.8rem; font-size: 1rem; }

.big-404 { font-size: clamp(6rem, 22vw, 14rem); line-height: .9; font-weight: 800; letter-spacing: -0.05em; margin: 0; }

@media (max-width: 960px) and (min-width: 561px) { .mosaic li:last-child { grid-column: span 4; } }
@media (max-width: 560px) { .mosaic li:last-child { grid-column: span 2; } }
.case-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 2rem; align-items: center; }
@media (max-width: 820px) { .case-head { grid-template-columns: 1fr; } }
.stack-map { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.stack-map > li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0.6rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.stack-map .layer { font-weight: 700; font-size: 1.2rem; }
@media (max-width: 640px) { .stack-map > li { grid-template-columns: 1fr; } }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.2rem; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

code, .code, .hello { font-variant-ligatures: none; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 1.5rem 3rem; align-items: end; }
.hero-top h1 { max-width: 14ch; margin: 0; }
.hero-top .lead { margin: 0; }
@media (max-width: 900px) { .hero-top { grid-template-columns: 1fr; } }
.tile .code { overflow-wrap: break-word; }
.mosaic .big p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 34ch; margin: 0; line-height: 1.4; }
.tiles-grid .tile p { max-width: 40ch; }
@media (max-width: 820px) { .case-head .phone { width: min(200px, 56vw); } }
