/* Sahm website. Quiet graphite page, one amber accent, the download window is the bright element.
   Design pass: unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. */

:root {
  --bg: #111213;
  --bg-2: #16171a;
  --surface: #1b1c1f;
  --raised: #232427;
  --line: rgba(237, 237, 237, .08);
  --line-2: rgba(237, 237, 237, .14);
  --t1: #ededed;
  --t2: #a3a3a8;
  --t3: #8a8a90;
  --accent: #e0912a;
  --accent-hover: #eaa042;
  --accent-ink: #1d1405;
  --ok: #4cc38a;

  /* the app window, light like the real program */
  --w-bg: #f4f4f5;
  --w-card: #ffffff;
  --w-line: #e2e3e6;
  --w-t1: #1c1c1e;
  --w-t2: #5b5b61;
  --w-t3: #77777d;
  --w-amber: #d9861a;
  --w-amber-d: #b06a10;
  --w-track: #e6e7ea;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --page: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font: 400 16px/1.6 var(--font);
  font-variant-numeric: tabular-nums;
}
[lang="ar"] body { font-size: 17px; line-height: 1.75; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--page); margin-inline: auto; padding-inline: 32px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* Arabic units sit next to the figures, so keep the Arabic family there (it has tabular digits) */
[lang="ar"] .num { font-family: var(--font); }
bdi { unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(17, 18, 19, .86); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 4px; margin-inline-start: 8px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--t2); font-size: 15px; transition: color .15s var(--ease), background-color .15s var(--ease); }
.nav-links a:hover { color: var(--t1); background: var(--surface); }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang { padding: 8px 12px; color: var(--t2); font-size: 15px; border-radius: 8px; transition: color .15s var(--ease); }
.lang:hover { color: var(--t1); }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding-inline: 20px; border-radius: 10px; font-size: 16px; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-quiet { background: var(--raised); border-color: var(--line); color: var(--t1); }
.btn-quiet:hover { background: #2b2c30; }
.btn-sm { height: 36px; padding-inline: 16px; font-size: 15px; }

/* ------------------------------------------------------------ hero */
.hero { padding-block: 80px 96px; min-height: calc(100vh - 64px); display: flex; align-items: center; }
.hero .wrap { width: 100%; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.hero h1 { margin: 0; font-size: 52px; line-height: 1.25; font-weight: 500; letter-spacing: 0; }
[lang="en"] .hero h1 { font-size: 56px; line-height: 1.06; letter-spacing: -.03em; }
.hero .lead { margin: 20px 0 0; max-width: 36rem; font-size: 19px; line-height: 1.75; color: var(--t2); }
[lang="en"] .hero .lead { line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { margin-top: 16px; color: var(--t3); font-size: 14px; }
.hero-meta > * + *::before { content: "·"; margin-inline: 8px; }
.hero-meta .ver { color: var(--t2); transition: color .15s var(--ease); }
.hero-meta .ver span { margin-inline-start: 8px; color: var(--accent); }
.hero-meta .ver:hover { color: var(--t1); }
.hero-meta .ver:hover span { text-decoration: underline; text-underline-offset: 3px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line); color: var(--t2); font-size: 15px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .i { width: 16px; height: 16px; color: var(--ok); stroke-width: 2; }

/* ------------------------------------------------------------ the app window (moment) */
.window {
  background: var(--w-bg);
  color: var(--w-t1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 32px 64px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
  overflow: hidden;
  font-size: 14px;
  line-height: 20px;
}
.titlebar { display: flex; align-items: center; gap: 10px; height: 40px; padding-inline: 12px; background: #e9e9eb; border-bottom: 1px solid var(--w-line); }
.titlebar img { width: 16px; height: 16px; border-radius: 4px; }
.titlebar .title { font-size: 13px; color: var(--w-t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titlebar .ctl { margin-inline-start: auto; display: flex; gap: 20px; color: var(--w-t2); }
.titlebar .ctl i { display: block; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; }
.titlebar .ctl i:first-child { height: 0; border-width: 0 0 1.5px; align-self: center; }
.titlebar .ctl i:last-child { border: 0; position: relative; }
.titlebar .ctl i:last-child::before, .titlebar .ctl i:last-child::after { content: ""; position: absolute; inset-inline-start: 4px; top: -2px; width: 1.5px; height: 14px; background: currentColor; transform: rotate(45deg); }
.titlebar .ctl i:last-child::after { transform: rotate(-45deg); }
.wbody { padding: 20px 24px 24px; }
.facts { display: grid; grid-template-columns: 128px 1fr; row-gap: 8px; column-gap: 16px; margin: 0; }
.facts dt { color: var(--w-t2); }
.facts dd { margin: 0; color: var(--w-t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { position: relative; height: 12px; margin-top: 20px; background: var(--w-track); border: 1px solid var(--w-line); overflow: hidden; }
.bar .fill { position: absolute; inset: 0; background: var(--w-amber); transform-origin: var(--start, left) center; transform: scaleX(0); }
[dir="rtl"] .bar .fill, [dir="rtl"] .seg .fill { --start: right; }
.wbtns { display: flex; gap: 8px; margin-top: 16px; }
.wbtn { height: 32px; padding-inline: 16px; display: inline-flex; align-items: center; background: var(--w-card); border: 1px solid var(--w-line); border-radius: 6px; color: var(--w-t1); font-size: 13px; }
.wbtn.end { margin-inline-start: auto; }
.wsub { margin-top: 20px; color: var(--w-t2); font-size: 13px; }
.segs { position: relative; height: 20px; margin-top: 8px; background: var(--w-track); border: 1px solid var(--w-line); overflow: hidden; }
.seg { position: absolute; top: 0; bottom: 0; }
.seg + .seg { border-inline-start: 1px solid #fff; }
.seg .fill { position: absolute; inset: 0; background: var(--w-amber-d); transform-origin: var(--start, left) center; transform: scaleX(0); }
.seg.on .fill { background: var(--w-amber); }
.conns { width: 100%; margin-top: 12px; border-collapse: collapse; background: var(--w-card); border: 1px solid var(--w-line); font-size: 13px; }
.conns th { text-align: start; font-weight: 400; color: var(--w-t2); padding: 6px 12px; border-bottom: 1px solid var(--w-line); }
.conns td { padding: 4px 12px; color: var(--w-t1); }
.conns td:first-child, .conns th:first-child { width: 40px; color: var(--w-t3); }
.conns td.r, .conns th.r { text-align: end; }

/* ------------------------------------------------------------ sections */
section { scroll-margin-top: 80px; }
.section { padding-block: 96px; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.section h2 { margin: 0; font-size: 36px; line-height: 1.35; font-weight: 500; }
[lang="en"] .section h2 { line-height: 1.15; letter-spacing: -.01em; }
.section .intro { margin: 16px 0 0; max-width: 40rem; color: var(--t2); font-size: 18px; }
.strip { display: flex; gap: 3px; width: 88px; margin-bottom: 20px; }
.strip i { flex: 1; height: 4px; border-radius: 1px; background: var(--raised); }
.strip i:nth-child(-n+3) { background: var(--accent); }

/* how it works */
.how { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; margin-top: 48px; }
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.dfile { display: flex; justify-content: space-between; gap: 16px; color: var(--t2); font-size: 14px; }
.dfile .num { color: var(--t1); }
.dbar { position: relative; height: 44px; margin-top: 16px; background: var(--raised); border-radius: 6px; overflow: hidden; }
.dbar .seg + .seg { border-inline-start: 2px solid var(--surface); }
.dbar .seg .fill { background: #9a6517; }
.dbar .seg.on .fill { background: var(--accent); }
.dbar .seg.done .fill { background: #b47a24; }
.dlegend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; color: var(--t3); font-size: 14px; }
.dlegend span { display: inline-flex; align-items: center; gap: 8px; }
.dlegend b { width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }
.dlegend b.done { background: #b47a24; }
.dlegend b.wait { background: var(--raised); border: 1px solid var(--line-2); }
.dfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--t2); font-size: 14px; }
.dfoot .num { color: var(--t1); }
.replay { height: 32px; padding-inline: 12px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--t2); cursor: pointer; transition: color .15s var(--ease), border-color .15s var(--ease); }
.replay:hover { color: var(--t1); border-color: var(--line-2); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 28px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--mono); color: var(--accent); font-size: 15px; line-height: 28px; }
.steps h3 { margin: 0; font-size: 18px; font-weight: 500; }
.steps p { margin: 4px 0 0; color: var(--t2); font-size: 16px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.feature { background: var(--bg-2); padding: 28px 28px 32px; }
.section:not(.alt) .feature { background: var(--bg); }
.feature .i { color: var(--t2); }
.feature h3 { margin: 16px 0 0; font-size: 18px; font-weight: 500; }
.feature p { margin: 8px 0 0; color: var(--t2); font-size: 16px; }

/* extension */
.ext { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.ext ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--t2); }
.ext li { display: flex; gap: 12px; }
.ext li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 12px; border-radius: 50%; background: var(--accent); }
.browser { background: #26272b; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 48px rgba(0, 0, 0, .35); }
.browser .chrome { display: flex; align-items: center; gap: 12px; height: 44px; padding-inline: 16px; background: #1f2023; border-bottom: 1px solid var(--line); }
.browser .addr { flex: 1; height: 28px; border-radius: 14px; background: #2e2f33; color: var(--t3); font-size: 13px; display: flex; align-items: center; padding-inline: 14px; }
.browser .ext-ico { width: 20px; height: 20px; border-radius: 5px; }
.browser .stage { position: relative; height: 340px; background: linear-gradient(#202124, #1c1d20); }
.page { position: absolute; inset: 24px; inset-inline-end: 340px; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; background: #2b2c30; }
.play { position: absolute; inset: 50% auto auto 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.play::after { content: ""; position: absolute; inset: 16px auto auto 20px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent rgba(255, 255, 255, .6); }
.page .line { display: block; height: 10px; margin-top: 16px; border-radius: 5px; background: #2b2c30; }
.page .line + .line { margin-top: 10px; }
.page .w70 { width: 70%; } .page .w40 { width: 40%; }
.popup { position: absolute; top: 12px; inset-inline-end: 16px; width: 300px; background: #fff; color: #171717; border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .4); overflow: hidden; font-size: 14px; }
.popup header { display: flex; align-items: center; gap: 10px; height: 48px; padding-inline: 16px; border-bottom: 1px solid rgba(23, 23, 23, .08); font-weight: 600; }
.popup header img { width: 20px; height: 20px; border-radius: 5px; }
.popup .pbody { padding: 12px 16px 16px; }
.popup h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.pvid { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; background: #f4f4f5; border-radius: 8px; }
[dir="rtl"] .pvid { padding: 8px 12px 8px 8px; }
.pvid + .pvid { margin-top: 4px; }
.pvid .info { flex: 1; min-width: 0; }
.pvid .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pvid .m { color: #737373; font-size: 12px; }
.pvid button { height: 28px; padding-inline: 12px; border: 0; border-radius: 6px; background: var(--w-amber); color: var(--accent-ink); font-size: 12px; font-weight: 500; }
.pstatus { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: #525252; font-size: 13px; }
.pstatus i { width: 6px; height: 6px; border-radius: 50%; background: #2e9e62; }

/* screenshots */
.shots { margin-top: 40px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; width: fit-content; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tabs button { height: 36px; padding-inline: 16px; border: 0; border-radius: 8px; background: transparent; color: var(--t2); font-size: 15px; cursor: pointer; transition: color .15s var(--ease), background-color .15s var(--ease); }
.tabs button:hover { color: var(--t1); }
.tabs button[aria-selected="true"] { background: var(--raised); color: var(--t1); box-shadow: inset 0 0 0 1px var(--line); }
.stage { position: relative; margin-top: 24px; aspect-ratio: 1540 / 1010; }
.shot { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.shot[hidden] { display: none; }
.shot img { min-height: 0; max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; border-radius: 8px; border: 1px solid var(--line-2); box-shadow: 0 24px 48px rgba(0, 0, 0, .4); }
.shot figcaption { color: var(--t3); font-size: 14px; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .shot:not([hidden]) img { animation: fade .25s var(--ease); }
  @keyframes fade { from { opacity: 0; } }
}

/* download page */
.dl-head { padding-block: 64px 48px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.dl-head h1 { margin: 0; font-size: 44px; line-height: 1.3; font-weight: 500; }
[lang="en"] .dl-head h1 { line-height: 1.1; letter-spacing: -.02em; }
.dl-head .lead { margin: 16px 0 0; color: var(--t2); font-size: 18px; max-width: 34rem; }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.dl-card .btn { width: 100%; }
.dl-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 20px 0 0; font-size: 15px; }
.dl-card dt { color: var(--t3); }
.dl-card dd { margin: 0; text-align: end; }
.hash { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.hash .lbl { display: flex; align-items: center; justify-content: space-between; color: var(--t3); font-size: 14px; }
.hash code { display: block; margin-top: 8px; font: 400 13px/1.6 var(--mono); color: var(--t2); word-break: break-all; direction: ltr; text-align: left; }
.copy { height: 28px; padding-inline: 10px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--t2); font-size: 13px; cursor: pointer; transition: color .15s var(--ease), border-color .15s var(--ease); }
.copy:hover { color: var(--t1); border-color: var(--line-2); }
.dl-body { display: grid; gap: 64px; padding-block: 48px 96px; border-top: 1px solid var(--line); }
.dl-body h2 { margin: 0; font-size: 26px; line-height: 1.35; font-weight: 500; }
.install { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; counter-reset: s; }
.install > li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding: 24px 28px; background: var(--bg); }
.install > li::before { counter-increment: s; content: counter(s); font-family: var(--mono); color: var(--accent); font-size: 15px; line-height: 28px; }
.install h3 { margin: 0; font-size: 18px; font-weight: 500; }
.install p { margin: 4px 0 0; color: var(--t2); }
.install kbd, .dl-body kbd { display: inline-block; padding: 0 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--raised); color: var(--t1); font: 400 13px/22px var(--mono); }
.note { margin-top: 16px; padding: 16px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--t2); font-size: 15px; }
.note b { color: var(--t1); font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.req { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.req li { display: flex; justify-content: space-between; gap: 24px; padding-block: 12px; border-bottom: 1px solid var(--line); color: var(--t2); }
.req li span:last-child { color: var(--t1); text-align: end; }
.dl-body .sub { margin: 12px 0 0; color: var(--t2); }
.cmd { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font: 400 14px/1.6 var(--mono); color: var(--t1); direction: ltr; text-align: left; overflow-x: auto; white-space: nowrap; }
.dl-body a.link, .log a.link, .dl-card a.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.alt-dl { margin: 16px 0 0; color: var(--t3); font-size: 14px; }
.num-mono { font: 400 12px/1.6 var(--mono); word-break: break-all; color: var(--t3); }

/* changelog */
.log { max-width: 46rem; padding-block: 64px 96px; }
.log h1 { margin: 0; font-size: 40px; line-height: 1.3; font-weight: 500; }
.log .lead { margin: 12px 0 0; color: var(--t2); }
.release { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.release header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.release h2 { margin: 0; font-size: 28px; font-weight: 500; }
.release time { color: var(--t3); font-size: 15px; }
.release .tag { padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--t2); font-size: 13px; line-height: 24px; }
.release h3 { margin: 28px 0 0; font-size: 17px; font-weight: 500; color: var(--t1); }
.release ul { margin: 8px 0 0; padding-inline-start: 20px; color: var(--t2); }
.release li + li { margin-top: 6px; }

/* support page */
.support { max-width: 52rem; padding-block: 64px 96px; }
.support h1 { margin: 0; font-size: 40px; line-height: 1.3; font-weight: 500; }
.support .lead { margin: 12px 0 0; max-width: 40rem; color: var(--t2); font-size: 18px; }
.support section { margin-top: 48px; }
.support h2 { margin: 0; font-size: 22px; font-weight: 500; }
.goes ul { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.goes li { display: grid; grid-template-columns: minmax(0, 14rem) 1fr; gap: 8px 24px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.goes b { font-weight: 500; }
.goes span { color: var(--t2); }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.ways.one { grid-template-columns: minmax(0, 26rem); }
.way { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.way h3 { margin: 0; font-size: 18px; font-weight: 500; }
.way p { margin: 0 0 8px; color: var(--t2); font-size: 15px; }
.way .btn { margin-top: auto; }
.handle { margin-top: auto; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.handle code { flex: 1; font: 400 15px/1.4 var(--mono); color: var(--t1); word-break: break-all; }
.fine { margin: 16px 0 0; color: var(--t3); font-size: 14px; }
.plain { margin: 16px 0 0; padding-inline-start: 20px; color: var(--t2); }
.plain li + li { margin-top: 8px; }
.support a.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .ways, .goes li { grid-template-columns: 1fr; }
  .support h1 { font-size: 34px; }
}

/* browser extension page */
.browser-list { display: grid; gap: 12px; margin-top: 32px; }
.support .browser-card { margin: 0; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.browser-card.mine { border-color: var(--accent); }
.browser-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.browser-card h2 { font-size: 20px; }
.browser-card p { margin: 0; color: var(--t2); font-size: 15px; }
.browser-card .soon { color: var(--t1); margin-bottom: 4px; }
.browser-card .yours { padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--accent); font-size: 13px; line-height: 24px; }
.browser-card [hidden] { display: none; }

/* free band */
.free .wrap { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.free h2 { max-width: 34rem; }

/* faq */
.faq { margin-top: 40px; max-width: 48rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--t3); transition: transform .2s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { margin: 0 0 20px; color: var(--t2); max-width: 42rem; }

.faq details p a.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* footer */
footer { padding-block: 40px; border-top: 1px solid var(--line); color: var(--t3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
footer nav { display: flex; gap: 20px; margin-inline-start: auto; }
footer a { transition: color .15s var(--ease); }
footer a:hover { color: var(--t1); }

/* legal page */
.legal { max-width: 46rem; padding-block: 64px 96px; }
.legal h1 { margin: 0; font-size: 40px; line-height: 1.3; font-weight: 500; }
.legal .updated { margin-top: 8px; color: var(--t3); font-size: 14px; }
.legal h2 { margin: 40px 0 0; font-size: 22px; font-weight: 500; }
.legal p, .legal li { color: var(--t2); }
.legal ul { padding-inline-start: 20px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* entrance: one short fade and rise for the hero */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .5s var(--ease) both; }
  .rise.d1 { animation-delay: .06s; }
  .rise.d2 { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}

/* ------------------------------------------------------------ small screens */
@media (max-width: 960px) {
  .hero .wrap, .how, .ext { grid-template-columns: 1fr; gap: 48px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .free .wrap { flex-direction: column; align-items: flex-start; }
  .dl-head, .two { grid-template-columns: 1fr; gap: 40px; }
  .stage { aspect-ratio: auto; }
  .shot { position: static; }
  .shot img { max-height: none; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }
  .nav-links { display: none; }
  .hero { padding-block: 48px 64px; }
  .hero h1, [lang="en"] .hero h1 { font-size: 38px; line-height: 1.3; }
  [lang="en"] .hero h1 { line-height: 1.1; }
  .section { padding-block: 64px; }
  .section h2 { font-size: 28px; }
  .features { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 104px 1fr; }
  .conns, .wsub, .segs { display: none; }
  .wbody { padding: 16px; }
  .popup { inset-inline: 12px; width: auto; }
  .page { inset-inline-end: 24px; }
  .dfile span + span { display: none; }
  footer nav { margin-inline-start: 0; flex-wrap: wrap; }
  .tabs { width: 100%; }
  .tabs button { flex: 1 1 auto; padding-inline: 12px; font-size: 14px; }
  .dl-head h1 { font-size: 34px; }
  .install > li { padding: 20px; }
}
