/* MacBIT site styles. Fonts are self-hosted (latin + latin-ext subsets). */

/* Bricolage Grotesque, latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bricolage Grotesque, latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Geist, latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist, latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Geist Mono, latin-ext */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/geist-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist Mono, latin */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/geist-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------ tokens */
:root {
  --ground: #F6F7F4;
  --surface: #FFFFFF;
  --ink: #0D0F0C;
  --ink-2: #2A2F27;
  --muted: #5B6157;
  --line: #E3E6DF;
  --line-2: #D5D9D0;
  --accent: #C6F432;
  --accent-ink: #1B2117;
  --moss: #3F5E00;
  --warn: #8A5300;
  --dark: #0D0F0C;
  --dark-2: #161A14;
  --dark-line: #2A2F27;
  --dark-text: #EEF1EA;
  --dark-dim: #B8BDB2;
  --dark-faint: #8C9387;
  --navy: #0B1220;
  --navy-line: #263552;
  --navy-text: #E6ECF5;
  --navy-dim: #B7C4D6;
  --navy-faint: #8FA3BF;
  --orange: #F2A93B;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
  --radius: 28px;
}

/* -------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--moss); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* --------------------------------------------------------- typography */
.h1, .h2, .h3, .big-number, .brand__name { font-family: var(--display); letter-spacing: -0.035em; }
.h1 { font-size: clamp(44px, 6.6vw, 100px); line-height: 0.93; font-weight: 800; }
.h2 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1; font-weight: 800; }
.h2--big { font-size: clamp(38px, 5.4vw, 76px); line-height: 0.95; }
.h3 { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 46ch; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.highlight { background: linear-gradient(transparent 62%, var(--accent) 62%); padding: 0 6px; margin: 0 -6px; }
.big-number { font-size: 56px; font-weight: 800; line-height: 1; }
.text-link { font-weight: 600; text-decoration: none; }
.dim { color: var(--dark-dim); }

/* ----------------------------------------------------------- buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, color .15s; }
.btn--small { min-height: 44px; font-size: 15px; padding: 0 20px; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #B4E21F; color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--ground); }
.btn--dark:hover { background: var(--ink-2); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ground); }
.btn--light { border-color: #3A4036; color: var(--dark-text); }
.btn--light:hover { background: var(--dark-text); color: var(--ink); }
.band--navy .btn--light, .hero--navy .btn--light { border-color: #34466A; }

.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink); text-transform: none; }
.pill--accent { background: var(--accent); border-color: var(--accent); font-weight: 600; text-transform: uppercase; }
.pill--dark { background: var(--ink); border-color: var(--ink); color: var(--dark-text); font-weight: 600; }
.pill--start { align-self: flex-start; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; }
.chips--dark .chip, .hero--navy .chip { border-color: var(--navy-line); color: #C9D4E5; }

/* -------------------------------------------------------------- topbar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(246, 247, 244, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar__inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.brand__name .mono { font-weight: 600; letter-spacing: 0; }
.brand__name--light { color: var(--dark-text); font-size: 26px; }
.menu { display: flex; align-items: center; gap: 22px; flex: 1; }
.menu__links { display: flex; gap: 22px; margin-left: 24px; }
.menu__links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 12px 4px; }
.menu__links a:hover, .menu__links a[aria-current] { color: var(--moss); }
.menu__links a[aria-current] { font-weight: 600; }
.langs { display: flex; gap: 2px; margin-left: auto; font-size: 13px; }
.langs a { color: var(--muted); text-decoration: none; padding: 10px 6px; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { color: var(--ink); font-weight: 600; }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 15px var(--sans); cursor: pointer; }
.menu-toggle__bars { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px currentColor, 0 5px currentColor; }
@media (max-width: 900px) {
  .js .menu-toggle { display: inline-flex; }
  .js .menu { display: none; }
  .js .menu.is-open { display: flex; }
  .menu { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px var(--gutter) 24px; background: var(--ground); border-bottom: 1px solid var(--line); }
  .menu__links { flex-direction: column; gap: 0; margin: 0; }
  .menu__links a { display: block; font-size: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .langs { margin-left: 0; }
  .topbar__inner { position: relative; }
  html:not(.js) .menu { position: static; padding: 0 0 16px; border: 0; }
  html:not(.js) .topbar__inner { flex-wrap: wrap; }
}

/* ------------------------------------------------------------ layout */
.section { padding-block: var(--section); }
/* Two grey sections in a row share one gap; after a white band (or anything
   else) a grey section keeps its full top padding. */
.section:not(.section--white) + .section:not(.section--white) { padding-top: 0; }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
.section--tight { padding-block: 0 var(--section); }
.section--flush { padding-top: 0; }
.stack { display: flex; flex-direction: column; gap: 40px; }
.stack--tight { gap: 22px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 72px); }
.split--center { align-items: center; }
.grid { display: grid; gap: 16px; }
.grid--240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--270 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--340 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.head { display: flex; flex-direction: column; gap: 14px; }
.head--split { flex-direction: row; flex-wrap: wrap; gap: 16px 40px; align-items: end; justify-content: space-between; }
.head__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.head--split .head__main .h2 { max-width: 18ch; }   /* next to an intro: keep it compact */
.head:not(.head--split) .head__main { width: 100%; }  /* on its own: use the full width */
.head__lead { font-size: 18px; color: var(--muted); max-width: 44ch; }

/* -------------------------------------------------------------- tiles */
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tile--pad { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.tile--link { text-decoration: none; color: var(--ink); }
.card { border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card--plain { background: var(--surface); border: 1px solid var(--line); }
.card--soft { background: var(--ground); }
.card--dark { background: var(--dark); color: var(--dark-text); }
.card--dark p { color: var(--dark-dim); }
.card--dark .card__link { color: var(--accent); }
.card p { color: var(--muted); font-size: 16px; }
.card__number { font-size: 13px; font-weight: 600; }
.card__icon { color: var(--ink); }
.card__link { font-weight: 600; text-decoration: none; margin-top: auto; padding-top: 4px; }
.step-number { font-family: var(--display); font-size: 56px; font-weight: 800; line-height: 1; align-self: flex-start; padding: 0 4px; background: linear-gradient(transparent 55%, var(--accent) 55%); }
.rules > div { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }

/* --------------------------------------------------------------- hero */
.hero { padding-block: clamp(48px, 7vw, 104px) clamp(56px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero__grid--single { grid-template-columns: minmax(0, 860px); }
.hero__text { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero__text .lead { color: var(--ink-2); }
.hero__icon { width: 112px; height: 112px; border-radius: 26px; }
.hero--dark { background: var(--dark); color: var(--dark-text); }
.hero--dark .eyebrow { color: var(--dark-faint); }
.hero--dark .lead { color: var(--dark-dim); }
.hero--navy { background: var(--navy); color: var(--navy-text); }
.hero--navy .eyebrow { color: var(--navy-faint); }
.hero--navy .lead { color: #C9D4E5; }
.hero--navy .highlight { color: var(--ink); }

/* home visual */
.home-visual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.home-visual .terminal { grid-row: span 2; }
.home-visual__product { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.home-visual__product img { border-radius: 15px; }
.home-visual__product:hover { border-color: var(--ink); }
.home-visual__founded { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.home-visual .muted { font-size: 14px; line-height: 1.45; }
@media (max-width: 520px) { .home-visual { grid-template-columns: 1fr; } .home-visual .terminal { grid-row: auto; } }

.terminal { background: var(--dark); color: #D8DDD2; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 320px; min-width: 0; }
.terminal__dots { display: flex; gap: 7px; }
.terminal__dots span { width: 11px; height: 11px; border-radius: 50%; background: #3A4036; }
.terminal__caption { font-size: 12px; color: var(--dark-faint); font-family: var(--mono); }
.terminal__lines { font-size: 13px; line-height: 1.9; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.terminal__lines .dim, .terminal .dim { color: var(--dark-faint); }
.terminal__lines .human { color: var(--orange); }
.terminal .ok, .terminal .good dd { color: var(--accent); }
.terminal .warn dd { color: var(--orange); }
.terminal .dim dd { color: var(--dark-faint); }
.terminal--table { background: var(--dark-2); border: 1px solid var(--dark-line); font-size: 13px; line-height: 2; min-height: 0; }
.terminal--table dl > div { display: flex; justify-content: space-between; gap: 16px; }
.terminal--table dl > div:last-child { border-top: 1px solid var(--dark-line); margin-top: 10px; padding-top: 10px; }

/* network diagram */
.diagram { padding: 28px; display: flex; flex-direction: column; min-width: 0; }
.diagram .eyebrow { margin-bottom: 18px; }
.node { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; text-align: center; align-self: center; min-width: min(260px, 100%); }
.node .mono { font-size: 12px; color: var(--muted); }
.node--dark { background: var(--dark); border-color: var(--dark); color: var(--dark-text); font-weight: 600; min-width: 200px; }
.node--accent { background: var(--accent); border-color: var(--accent); }
.node--accent .mono { color: var(--ink-2); }
.wire { width: 2px; height: 22px; background: #B8BDB2; margin: 0 auto; }
.wire--short { height: 14px; }
.diagram__bus { height: 2px; background: #B8BDB2; margin: 0 16%; }
.diagram__leaves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.diagram__leaf { display: flex; flex-direction: column; }
.diagram__leaf .node { min-width: 0; align-self: stretch; }

/* qlik pipeline */
.pipeline { padding: 26px; display: flex; flex-direction: column; min-width: 0; }
.pipeline .eyebrow { margin-bottom: 16px; }
.pipeline__step { border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.pipeline__step--ground { background: var(--ground); }
.pipeline__step--dark { background: var(--dark); color: var(--dark-text); }
.pipeline__step--accent { background: var(--accent); }
.pipeline__label { font-size: 12px; color: var(--muted); }
.pipeline__step--dark .pipeline__label { color: var(--dark-faint); }
.pipeline__step--accent .pipeline__label { color: var(--ink-2); }
.pipeline__text { font-size: 14px; color: var(--dark-dim); }
.pipeline__arrow { text-align: center; color: var(--dark-faint); font-size: 18px; line-height: 1; padding: 6px 0; }

/* proposal card */
.proposal { padding: 28px; display: flex; flex-direction: column; gap: 6px; min-width: 0; box-shadow: 0 24px 60px rgba(13, 15, 12, 0.08); }
.proposal__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.proposal__top .pill { background: var(--ground); border-color: var(--ground); }
.proposal__checks > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.proposal__checks > div:last-child { border-bottom: 0; }
.proposal__checks dd { font-weight: 600; }
.proposal__checks dd.warn { color: var(--warn); }
.proposal__advice { margin-top: 12px; padding: 16px; border-radius: 16px; background: var(--accent); font-size: 15px; }

/* screenshots */
.shot { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.shot img { width: 100%; filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45)); }
.shot figcaption { font-size: 12px; color: var(--navy-faint); }
.figure { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.figure img { width: 100%; }
.figure figcaption { font-size: 15px; color: var(--muted); }

/* -------------------------------------------------------------- logos */
.logos { background: var(--surface); border-block: 1px solid var(--line); }
.logos__row { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.logos__label { flex: none; }
.logos__viewport { flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
          mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.logos__track { display: flex; gap: 44px; width: max-content; padding-inline: 22px; animation: logos-scroll 38s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos__item { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.02em; white-space: nowrap; }
@keyframes logos-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logos__track { animation: none; }
  .logos__viewport { overflow-x: auto; scrollbar-width: none; }
  .logos__viewport::-webkit-scrollbar { display: none; }
  .logos__item[aria-hidden] { display: none; }
}
@media (max-width: 640px) { .logos__row { gap: 16px; } .logos__item { font-size: 17px; } .logos__track { gap: 32px; } }

/* -------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento__item { border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 260px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.bento__item:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(13, 15, 12, 0.10); color: var(--ink); }
.bento__item--wide { grid-column: span 2; min-height: 300px; }
.bento__item--dark, .bento__item--dark:hover { background: var(--dark); border-color: var(--dark); color: var(--dark-text); }
.bento__item--dark .eyebrow { color: var(--dark-faint); }
.bento__item--dark .bento__text { color: var(--dark-dim); }
.bento__item--dark .bento__link { color: var(--accent); }
.bento__item--accent { background: var(--accent); border-color: var(--accent); }
.bento__item--accent .eyebrow { color: var(--ink-2); }
.bento__item--accent .bento__text { color: var(--accent-ink); }
.bento__item--accent .bento__link { color: var(--ink); }
.bento__item--navy, .bento__item--navy:hover { background: var(--navy); border-color: var(--navy); color: var(--navy-text); }
.bento__item--navy .eyebrow { color: var(--navy-faint); }
.bento__item--navy .bento__text { color: var(--navy-dim); }
.bento__item--navy .bento__link { color: var(--accent); }
.bento__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bento__icon { border-radius: 10px; }
.bento__body { display: flex; flex-direction: column; gap: 12px; }
.bento__title { max-width: 20ch; }
.bento__item--wide .bento__title { font-size: clamp(30px, 3.4vw, 46px); }
.bento__text { color: var(--muted); font-size: 16px; max-width: 52ch; }
.bento__link { font-weight: 600; color: var(--moss); }
.arrow { display: inline-block; transition: transform .2s ease; }
.bento__item:hover .arrow { transform: translateX(4px); }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento__item--wide { grid-column: auto; } }

/* --------------------------------------------------------- feature band */
.band { padding-block: var(--section); }
.band--navy { background: var(--navy); color: var(--navy-text); }
.band--navy .eyebrow { color: var(--navy-faint); }
.band--navy .lead { color: var(--navy-dim); }
.feature__top { display: flex; align-items: center; gap: 14px; }
.feature__icon { border-radius: 17px; }

/* ------------------------------------------------------------ timeline */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); border-top: 2px solid var(--ink); }
.timeline li { padding: 28px 24px 8px 0; display: flex; flex-direction: column; gap: 12px; }
.timeline p { color: var(--muted); font-size: 16px; }
.timeline__label { font-size: 14px; font-weight: 600; }

/* ------------------------------------------------------------- checks */
.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { padding: 20px 24px; display: flex; gap: 16px; align-items: flex-start; font-size: 17px; }
.checks__mark { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

/* -------------------------------------------------------------- panels */
.panel { border-radius: 36px; padding: clamp(32px, 5vw, 64px); }
.panel--dark { background: var(--dark); color: var(--dark-text); }
.panel--dark .lead { color: var(--dark-dim); }
.panel--dark .eyebrow { color: var(--dark-faint); }
.panel--accent { background: var(--accent); display: flex; flex-direction: column; gap: 20px; }
.panel--accent .lead { color: var(--accent-ink); }
.outline-list { display: flex; flex-direction: column; gap: 10px; }
.outline-list li { border: 1px solid var(--dark-line); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.outline-list .h3 { font-size: 21px; }
.outline-list .dim { font-size: 15px; }
.outline-list--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.outline-list--grid li { border-radius: 16px; padding: 16px; }
@media (max-width: 480px) { .outline-list--grid { grid-template-columns: 1fr; } }
.numbered { display: flex; flex-direction: column; gap: 18px; }
.numbered li { display: flex; gap: 16px; align-items: flex-start; }
.numbered__n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.note { font-size: 15px; color: var(--dark-dim); border-left: 3px solid var(--accent); padding-left: 14px; }
.code { margin: 0; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 20px; padding: 24px; font: 14px/1.9 var(--mono); color: #D8DDD2; overflow-x: auto; }

/* --------------------------------------------------------------- about */
.quote { padding: 28px; border-radius: var(--radius); background: var(--ground); display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { font-family: var(--display); font-size: clamp(20px, 1.9vw, 24px); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.quote figcaption { font-size: 15px; color: var(--muted); }
.section:not(.section--white) .quote { background: var(--surface); border: 1px solid var(--line); }

/* -------------------------------------------------------------- table */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th { text-align: left; font: 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0 0 14px; border-bottom: 2px solid var(--ink); }
.compare td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare td:last-child { font-weight: 600; }

/* ----------------------------------------------------------------- cta */
.cta-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.cta-grid--single { grid-template-columns: 1fr; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }
.cta__address { font-size: 15px; color: var(--accent-ink); }
.also { justify-content: flex-start; }
.also__link { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); padding: 6px 0; }
.also__link:hover { color: var(--moss); }
.link-row { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 28px; text-decoration: none; color: var(--ink); }
.link-row .h2 { font-size: clamp(26px, 3vw, 40px); max-width: 26ch; }

/* --------------------------------------------------------------- prose */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.03em; margin-top: 1.6em; }
.prose h3 { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; margin-top: 1.4em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose p, .prose li { color: var(--ink-2); }

/* -------------------------------------------------------------- footer */
.footer { background: var(--dark); color: var(--dark-dim); padding-top: 56px; }
.footer a { color: var(--dark-text); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; padding-bottom: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__title { font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-faint); margin-bottom: 12px; }
.footer ul li a { display: inline-block; padding: 6px 0; font-size: 15px; }
.footer__bottom { border-top: 1px solid var(--dark-line); padding-block: 24px 32px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: 13px; }
.footer__bottom .langs { margin: 0; gap: 14px; }
.footer__bottom .langs a { color: var(--dark-dim); padding: 6px 0; }
.footer__bottom .langs a[aria-current] { color: var(--dark-text); }

/* Row alignment: in a row of cards, features or steps, each item spans four
   rows of its parent grid (label, title, text, link) through subgrid. A title
   that wraps to two lines then pushes the text down in its neighbours too, so
   every text in the row starts at the same height. Browsers without subgrid
   keep the plain stacked layout. */
@supports (grid-template-rows: subgrid) {
  .grid:not(.no-align) > .card,
  .grid:not(.no-align) > .tile--pad,
  .rules > div,
  .timeline > li { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .grid:not(.no-align) > .card > .card__icon,
  .grid:not(.no-align) > .card > .card__number,
  .grid:not(.no-align) > .tile--pad > .step-number,
  .timeline > li > .timeline__label { grid-row: 1; margin-bottom: 14px; }
  .grid:not(.no-align) > .card > h3,
  .grid:not(.no-align) > .tile--pad > h3,
  .rules > div > h3,
  .timeline > li > h3 { grid-row: 2; margin-bottom: 10px; align-self: start; }
  .grid:not(.no-align) > .card > p,
  .grid:not(.no-align) > .tile--pad > p,
  .rules > div > p,
  .timeline > li > p { grid-row: 3; }
  .grid:not(.no-align) > .card > .card__link { grid-row: 4; margin-top: 14px; align-self: end; }
}
