/* Libre Panel's website: the app's tokens (src/libre_panel/editor/app/app.css) on a page.
   One file for both languages; fonts and pictures are on this site, nothing comes from
   elsewhere. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/Barlow-Regular.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/Barlow-Medium.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/Barlow-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("fonts/Barlow-Bold.ttf") format("truetype"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 500; font-display: swap; src: url("fonts/JetBrainsMono-Medium.ttf") format("truetype"); }

:root {
  --bg: #0a0e13;
  --bg-deep: #06090d;
  --stage: #090d12;
  --stage-dot: #16202b;
  --panel: #0c1117;
  --surface: #111820;
  --surface-2: #141c26;
  --surface-3: #1c2633;
  --picture: #0b1016;
  --line: #18212c;
  --line-2: #1b2430;
  --line-3: #1f2a36;
  --line-4: #263241;
  --text: #e8eef4;
  --text-2: #c9d3de;
  --muted: #93a1b2;
  --dim: #5f6e80;
  --accent: #2ee6d6;
  --accent-hi: #7ff3ea;
  --accent-ink: #04211e;
  --accent-soft: rgba(46, 230, 214, 0.12);
  --accent-softer: rgba(46, 230, 214, 0.07);
  --warn: #f5c46b;
  --ok: #34d399;
  --cpu: #2ee6d6;
  --gpu: #a3aeff;
  --ram: #e0a8ff;
  --net: #7ee8a6;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wide: 1200px;
  --gutter: 24px;
  --radius: 14px;
  --shadow-pop: 0 24px 60px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(46, 230, 214, 0.3); color: var(--text); }
h1, h2, h3 { color: var(--text); margin: 0; line-height: 1.12; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
code, kbd, pre { font-family: var(--mono); font-size: 0.86em; }
code { color: var(--text); background: var(--surface-2); border: 1px solid var(--line-3); border-radius: 6px; padding: 0.06em 0.4em; }
pre code { background: none; border: 0; border-radius: 0; padding: 0; font-size: inherit; color: inherit; }
kbd { color: var(--text); border: 1px solid var(--line-4); border-bottom-width: 2px; border-radius: 6px; padding: 0.05em 0.45em; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip:focus { top: 10px; color: var(--accent-ink); }

/* -- the top bar, as the app's ----------------------------------------------------------- */

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(12, 17, 23, 0.86); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar-in { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: 0.2px; white-space: nowrap; border-radius: 8px; }
.brand:hover { color: var(--text); }
.brand .icon { width: 24px; height: 24px; color: var(--accent); }
.tabs { display: flex; gap: 2px; margin-left: 14px; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); }
.tabs a { padding: 6px 14px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 15px; white-space: nowrap; transition: color 0.12s, background 0.12s; }
.tabs a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.grow { flex: 1; }
.lang { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; }
.lang:hover { color: var(--text); background: var(--surface); }
.lang .icon { width: 16px; height: 16px; }

/* -- buttons ------------------------------------------------------------------------------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line-4); background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; transition: border-color 0.12s, background 0.12s, filter 0.12s, transform 0.12s; }
.btn:hover { color: var(--text); border-color: var(--dim); background: var(--surface-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 34px rgba(46, 230, 214, 0.22); }
.btn-primary:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); filter: brightness(1.08); }
.btn-lg { min-height: 58px; padding: 10px 22px 10px 18px; border-radius: 12px; font-size: 17px; text-align: left; }
.btn-lg .icon { width: 22px; height: 22px; }
.btn-lg span { display: flex; flex-direction: column; }
.btn-lg small { font-size: 13px; font-weight: 500; opacity: 0.78; }
.btn:active { transform: translateY(1px); }

/* -- hero ---------------------------------------------------------------------------------- */

.hero { position: relative; padding: 52px 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -240px -10% auto; height: 760px; pointer-events: none;
  background: radial-gradient(ellipse 52% 46% at 50% 38%, rgba(46, 230, 214, 0.16), transparent 72%); }
.hero-copy { position: relative; text-align: center; }
.news { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-3); color: var(--text-2); font-size: 14.5px; }
.news .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }
.news a { padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; white-space: nowrap; }
.news a:hover { background: rgba(46, 230, 214, 0.2); }
.hero h1 { margin: 20px auto 0; max-width: 1100px; font-size: clamp(38px, 6.6vw, 76px); font-weight: 700; letter-spacing: -0.8px; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--accent); text-shadow: 0 0 34px rgba(46, 230, 214, 0.5); }
.lead { max-width: 760px; margin: 18px auto 0; color: var(--text-2); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 14px; }
.fineprint { color: var(--muted); font-size: 14.5px; }
.fineprint a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-4); text-underline-offset: 3px; }
.fineprint a:hover { color: var(--accent-hi); text-decoration-color: currentColor; }
.sep { color: var(--dim); padding: 0 6px; }

.stage { position: relative; margin-top: 36px; padding: 36px 0 52px; background-color: var(--stage);
  background-image: radial-gradient(var(--stage-dot) 1.2px, transparent 1.3px); background-size: 22px 22px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stage::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; pointer-events: none; background: linear-gradient(transparent, rgba(6, 9, 13, 0.6)); }
.stage .caption { position: relative; z-index: 1; margin-top: 14px; text-align: center; color: var(--muted); font-size: 14.5px; }
.facts { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 26px auto 0; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: rgba(17, 24, 32, 0.88); border: 1px solid var(--line-3); color: var(--text-2); font-size: 14.5px; white-space: nowrap; }
.facts .dot { width: 7px; height: 7px; border-radius: 50%; }

/* -- media: video with a poster, its GIF without scripts, and a pause button ---------------- */

.media { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--picture); border: 1px solid var(--line-3); box-shadow: var(--shadow-pop); }
.media video, .media img { width: 100%; }
.media-hero { max-width: 1160px; margin: 0 auto; border: 0; background: transparent; box-shadow: none; border-radius: 22px; }
.media-plain { border: 0; background: transparent; box-shadow: none; }
.no-js .media video[data-lazy] { display: none; }
.toggle { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: none; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(10, 14, 19, 0.72); color: var(--text); cursor: pointer; opacity: 0.6; transition: opacity 0.15s, background 0.15s; }
.js .toggle { display: inline-flex; }
.media:hover .toggle, .toggle:focus-visible, .toggle[data-playing="false"] { opacity: 1; }
@media (hover: hover) { .media:not(:hover) .toggle[data-playing="true"]:not(:focus-visible) { opacity: 0; } }
.toggle:hover { background: rgba(28, 38, 51, 0.92); }
.toggle .icon { width: 16px; height: 16px; }
.toggle .i-play, .toggle[data-playing="false"] .i-pause { display: none; }
.toggle[data-playing="false"] .i-play { display: block; }
.media-hero .toggle { right: 18px; bottom: 18px; }

/* -- sections ------------------------------------------------------------------------------ */

section { padding: 96px 0; }
section + section { border-top: 1px solid var(--line); }
.kicker { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: 2.4px; text-transform: uppercase; }
.head { max-width: 780px; margin-bottom: 44px; }
.head h2 { margin-top: 10px; font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.4px; }
.head p { margin-top: 16px; color: var(--muted); font-size: 18.5px; }
.label { display: inline-block; color: var(--muted); font-weight: 600; font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.feature + .feature { margin-top: 88px; }
.feature.flip .feature-copy { order: 2; }
.feature h3 { margin-top: 8px; font-size: clamp(24px, 2.6vw, 30px); }
.feature-copy p { margin-top: 14px; }
.feature-copy p.note { color: var(--muted); font-size: 15.5px; }
.feature-wide { grid-template-columns: minmax(0, 1fr); gap: 26px; }
.feature-wide .feature-copy { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 12px 56px; align-items: start; }
.feature-wide .feature-copy p { margin-top: 30px; }
.feature-wide .feature-copy p.note { margin-top: 0; grid-column: 2; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair .media { box-shadow: none; }

/* -- the feature grid: a still of each feature, leading to its part of the tour ----------- */

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.tiles a { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); transition: border-color 0.15s, transform 0.15s; }
.tiles a:hover { color: var(--muted); border-color: var(--line-4); transform: translateY(-2px); }
.tiles img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: var(--picture); border-bottom: 1px solid var(--line-2); }
.tiles span { display: block; padding: 13px 16px 16px; font-size: 15px; line-height: 1.5; }
.tiles b { display: block; margin-bottom: 3px; color: var(--text); font-size: 17px; font-weight: 600; line-height: 1.3; }
.tiles small { display: block; font-size: inherit; }

/* -- several panels at once ---------------------------------------------------------------- */

.media-panels { max-width: 1040px; margin: 0 auto; }
.points.points-three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
.points-three + .feature { margin-top: 72px; }

/* -- "More": the rest of a part of the tour, folded ----------------------------------------- */

.more { margin-top: 14px; }
.more summary { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; cursor: pointer; list-style: none; color: var(--accent); font-weight: 600; font-size: 15px; border-radius: 6px; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { color: var(--accent-hi); }
.more summary .icon { width: 16px; height: 16px; transition: transform 0.18s; }
.more[open] summary .icon { transform: rotate(180deg); }
.feature-copy .more p, .feature-wide .feature-copy .more p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.more .media { margin-top: 14px; box-shadow: none; }
.more-block { margin-top: 22px; }
.more-block > summary { font-size: 16px; }
.more-block[open] > summary { margin-bottom: 18px; }
.more-block .points { margin-top: 0; }
.more-block .table + .two { margin-top: 26px; }

/* -- the app ------------------------------------------------------------------------------- */

.app-main { margin-bottom: 26px; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.tile { margin: 0; padding: 14px 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); }
.tile .media { box-shadow: none; border-radius: 9px; }
.tile figcaption { padding: 14px 6px 0; color: var(--muted); font-size: 15.5px; }
.tile figcaption strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 18px; font-weight: 600; }
.app-main figcaption { padding-top: 16px; }
.views { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.views li { padding: 6px 12px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); font-size: 15px; }
.views b { color: var(--text); font-weight: 600; }

/* -- themes, as the app's gallery ---------------------------------------------------------- */

.themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.theme { display: flex; flex-direction: column; margin: 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
.theme:hover { border-color: var(--line-4); }
.theme.wide { grid-column: span 2; }
.theme-picture { display: flex; align-items: center; justify-content: center; height: 230px; padding: 18px; background: var(--picture); border-bottom: 1px solid var(--line-2); }
.theme.wide .theme-picture { height: auto; padding: 20px; }
.theme-picture img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); }
.theme.wide .theme-picture img { width: 100%; max-height: none; }
.theme-picture img.round { border-radius: 50%; }
.theme-picture img.pixel { width: 82%; }
.theme figcaption { flex: 1; padding: 14px 16px 16px; font-size: 15px; color: var(--muted); }
.theme-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--text); font-weight: 600; font-size: 18px; }
.chip { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip-accent { background: var(--accent); color: var(--accent-ink); }
.chip-quiet { background: var(--surface-3); color: var(--text-2); }
.size { margin-left: auto; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.theme.mine { grid-column: span 3; flex-direction: row; }
.theme.mine .theme-picture { flex: 1.15; height: auto; border-bottom: 0; border-right: 1px solid var(--line-2); }
.theme.mine .theme-picture img { width: 100%; }
.theme.mine figcaption { display: flex; flex-direction: column; justify-content: center; }
.legacy { margin-top: 22px; color: var(--muted); font-size: 15.5px; }

.fits { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 56px; align-items: center; margin-top: 88px; }
.fits h3 { margin-top: 8px; font-size: clamp(24px, 2.6vw, 30px); }
.fits ul { margin: 16px 0 0; padding: 0; list-style: none; }
.fits li { position: relative; margin-top: 10px; padding-left: 22px; }
.fits li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* -- sensors and services ------------------------------------------------------------------ */

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.card { padding: 24px 24px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); }
.card h3 { font-size: 21px; }
.card > p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.rows { margin: 16px 0 0; padding: 0; list-style: none; }
.rows li { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 15.5px; }
.rows li:first-child { border-top: 0; }
.rows b { color: var(--text); font-weight: 600; }
.rows span.desc { grid-column: 1 / -1; color: var(--muted); }
.rows .chip { align-self: start; }
.off { background: var(--surface-3); color: var(--muted); }

/* -- panels -------------------------------------------------------------------------------- */

.table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--surface); font-size: 15.5px; }
.table th, .table td { padding: 13px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-2); }
.table thead th { border-top: 0; background: var(--panel); color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; }
.table tbody th { color: var(--text); font-weight: 600; }
.table td.status { min-width: 150px; }
.state { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.state.ok::before { background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, 0.6); }
.state.wait::before { background: var(--warn); }
.state + small { display: block; color: var(--muted); font-size: 14px; }
.callout { display: flex; gap: 16px; align-items: flex-start; margin-top: 22px; padding: 18px 20px; border-radius: var(--radius); background: var(--accent-softer); border: 1px solid rgba(46, 230, 214, 0.26); }
.callout .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.callout strong { color: var(--text); }
.callout + .two { margin-top: 26px; }

/* -- privacy ------------------------------------------------------------------------------- */

.promise { position: relative; padding: 40px; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, rgba(46, 230, 214, 0.1), rgba(17, 24, 32, 0.4) 46%), var(--surface); border: 1px solid rgba(46, 230, 214, 0.24); }
.promise h2 { max-width: 760px; font-size: clamp(28px, 3.6vw, 40px); }
.promise > p { max-width: 760px; margin-top: 14px; color: var(--text-2); font-size: 18px; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 34px; margin: 30px 0 0; padding: 0; list-style: none; }
.points li { padding-top: 16px; border-top: 1px solid var(--line-3); color: var(--muted); font-size: 15.5px; }
.points b { display: block; margin-bottom: 4px; color: var(--text); font-size: 17px; font-weight: 600; }

/* -- install ------------------------------------------------------------------------------- */

.os { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.os .card { display: flex; flex-direction: column; }
.os .card p { flex: 1; }
.os .btn { align-self: flex-start; margin-top: 18px; }
.os small { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 44px 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding-top: 52px; color: var(--muted); font-size: 15.5px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); border: 1px solid rgba(46, 230, 214, 0.4); color: var(--accent); font-weight: 700; }
.steps b { display: block; margin-bottom: 4px; color: var(--text); font-size: 17px; font-weight: 600; }
pre { margin: 0; padding: 18px 20px; overflow-x: auto; border-radius: 12px; background: var(--bg-deep); border: 1px solid var(--line-2); color: var(--text); line-height: 1.75; font-size: 14px; }
pre .c { color: var(--muted); }
.python { margin-top: 44px; }
.python p { margin-bottom: 12px; color: var(--muted); }

/* -- FAQ, as the app's settings cards ------------------------------------------------------- */

.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); }
.faq details[open] { border-color: var(--line-4); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; cursor: pointer; list-style: none; color: var(--text); font-weight: 600; font-size: 17.5px; border-radius: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform 0.18s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 18px; color: var(--text-2); font-size: 16px; }
.faq .answer p + p { margin-top: 10px; }

/* -- where it started ------------------------------------------------------------------------ */

.origin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.origin p { margin-top: 14px; }
.origin h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 10px; }

/* -- footer -------------------------------------------------------------------------------- */

footer { padding: 52px 0 64px; border-top: 1px solid var(--line); background: var(--bg-deep); color: var(--muted); font-size: 15px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)); gap: 40px; }
.foot p + p { margin-top: 10px; }
.foot h2 { margin-bottom: 12px; color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li + li { margin-top: 6px; }
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--accent-hi); }

/* -- smaller screens ----------------------------------------------------------------------- */

@media (max-width: 1240px) {
  .tabs a { padding: 6px 10px; }
}
@media (max-width: 1080px) {
  .tabs { display: none; }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme.mine { grid-column: auto; flex-direction: column; }
  .theme.mine .theme-picture { flex: none; height: auto; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .feature, .fits, .origin { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .feature.flip .feature-copy { order: 0; }
  .feature + .feature, .fits { margin-top: 64px; }
  .feature-wide .feature-copy { grid-template-columns: minmax(0, 1fr); }
  .feature-wide .feature-copy p, .feature-wide .feature-copy p.note { margin-top: 0; grid-column: auto; }
  .two, .os, .points { grid-template-columns: minmax(0, 1fr); }
  .tiles, .points.points-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .topbar-in { gap: 6px; height: 56px; }
  .brand span, .hide-sm { display: none; }
  .topbar .btn { min-height: 36px; padding: 6px 12px; font-size: 14px; }
  .lang { padding: 6px 8px; }
  .hero { padding-top: 36px; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn-lg { justify-content: flex-start; }
  .stage { margin-top: 36px; padding: 22px 0 34px; }
  .media-hero { border-radius: 12px; }
  .toggle, .media-hero .toggle { right: 8px; bottom: 8px; width: 28px; height: 28px; }
  .toggle .icon { width: 13px; height: 13px; }
  .head { margin-bottom: 30px; }
  .app-grid, .pair { grid-template-columns: minmax(0, 1fr); }
  .tiles { gap: 12px; }
  .tiles span { padding: 10px 11px 12px; font-size: 13.5px; }
  .tiles b { font-size: 15px; }
  .points.points-three { grid-template-columns: minmax(0, 1fr); }
  .themes { grid-template-columns: minmax(0, 1fr); }
  .theme.wide { grid-column: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .promise { padding: 26px 20px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table tr { padding: 12px 16px; border-top: 1px solid var(--line-2); }
  .table tr:first-child { border-top: 0; }
  .table th, .table td { padding: 2px 0; border: 0; }
  .table td[data-label]::before { content: attr(data-label) ": "; color: var(--dim); }
  .callout { flex-direction: column; gap: 8px; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
