/* Shared by index.html (English) and de/index.html (German). Colors follow the app icon. */
:root {
  color-scheme: light dark;
  --bg: #f5f7fb; --surface: #ffffff; --fg: #111a2e; --muted: #5a6578; --line: #dfe5ee;
  --navy: #14213d; --deep: #0a1324; --blue: #4ea1ff; --pale: #e0e6ef;
  --link: #1f6feb; --accent: #1f6feb;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c1220; --surface: #131c2e; --fg: #e6ebf3; --muted: #9aa6b8; --line: #243049;
          --link: #6cb4ff; --accent: #6cb4ff; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
       color: var(--fg); background: var(--bg); }
a { color: var(--link); }
code { font-size: .9em; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }

/* Hero: the icon's navy with its trace. */
header.hero { color: #fff; background: linear-gradient(135deg, #1d3157 0%, var(--navy) 55%, var(--deep) 100%);
              position: relative; overflow: hidden; }
header.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
                      background-image: linear-gradient(rgba(224,230,239,.06) 1px, transparent 1px),
                                        linear-gradient(90deg, rgba(224,230,239,.06) 1px, transparent 1px);
                      background-size: 2.5rem 2.5rem; }
nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; position: relative; }
nav .brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
nav .brand img { width: 2.2rem; height: 2.2rem; border-radius: .45rem; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
nav .links a { color: rgba(224,230,239,.8); text-decoration: none; margin-left: 1.2rem; font-size: .95rem; font-weight: 500; }
nav .links a:hover { color: #fff; }
nav .right { display: flex; align-items: center; }
nav .lang { margin-left: 1.4rem; font-size: .9rem; color: rgba(224,230,239,.5); white-space: nowrap; }
nav .lang a { color: rgba(224,230,239,.8); text-decoration: none; font-weight: 600; padding: .15rem .35rem; border-radius: .4rem; }
nav .lang a:hover { color: #fff; }
nav .lang a[aria-current="page"] { color: #fff; background: rgba(78,161,255,.25); }
.hero-body { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 3rem 0 4rem; position: relative; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1.05; margin: 0 0 .6rem; letter-spacing: -.02em; }
.hero .lead { font-size: 1.3rem; margin: 0 0 .4rem; max-width: 34rem; color: var(--pale); }
.hero .tags { color: var(--blue); font-weight: 700; margin: 0 0 2rem; }
.hero-shot { width: 15rem; height: auto; border-radius: 1.6rem; border: .45rem solid #0b1222; box-shadow: 0 1.5rem 3rem rgba(0,0,0,.4); display: block; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600;
       text-decoration: none; font-size: 1rem; }
.btn-primary { background: var(--blue); color: var(--deep); }
.btn-primary:hover { background: #7bb9ff; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(224,230,239,.45); }
.btn-ghost:hover { border-color: #fff; }
.hero .note { font-size: .9rem; color: rgba(224,230,239,.7); margin-top: 1rem; }

section { padding: 4rem 0 1rem; }
h2 { font-size: 1.8rem; margin: 0 0 .4rem; letter-spacing: -.01em; }
.sub { color: var(--muted); margin: 0 0 2rem; max-width: 42rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.2rem 1.3rem; }
.feature h3 { margin: 0 0 .3rem; font-size: 1.05rem; display: flex; gap: .55rem; align-items: center; }
.feature h3 svg { flex: none; width: 1.3rem; height: 1.3rem; color: var(--accent); }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.feature-new { grid-column: 1 / -1; border: 1.5px solid var(--blue); }
.feature-new p { max-width: 48rem; }

/* Screenshots: phone (portrait), then the Linux app (landscape) */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; max-width: 56rem; margin: 0 auto; }
.shots figure { margin: 0; text-align: center; }
.shots a { display: block; }
.shots img { width: 100%; height: auto; border-radius: 1.1rem; border: .3rem solid #0b1222; display: block;
             box-shadow: 0 .6rem 1.5rem rgba(0,0,0,.18); transition: transform .15s; }
.shots a:hover img { transform: translateY(-4px); }
.shots figcaption { color: var(--muted); font-size: .9rem; margin-top: .6rem; }
.shots-title { margin: 3rem 0 1.2rem; }
/* Sample PDF report */
.report { display: grid; grid-template-columns: 16rem 1fr; gap: 2rem; align-items: center; margin-top: 3rem;
          background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 2rem; }
.report img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: .3rem;
              box-shadow: 0 .6rem 1.5rem rgba(0,0,0,.18); transition: transform .15s; background: #fff; }
.report a:hover img { transform: translateY(-4px); }
.report h3 { margin-top: 0; }
.report .btn { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) {
  .report .btn { background: var(--blue); color: var(--deep); }
}
.wide-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1.5rem; }
.wide-shots figure { margin: 0; text-align: center; }
.wide-shots a { display: block; }
.wide-shots img { width: 100%; height: auto; border-radius: .7rem; border: 1px solid var(--line); display: block;
                  box-shadow: 0 .8rem 2rem rgba(10,19,36,.18); transition: transform .15s; }
.wide-shots a:hover img { transform: translateY(-4px); }
.wide-shots figcaption { color: var(--muted); font-size: .9rem; margin-top: .7rem; }

/* Supported hardware */
.hardware { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem 1.6rem;
            display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.hardware > svg { width: 2.4rem; height: 2.4rem; color: var(--accent); }
.hardware p { margin: 0 0 .6rem; }
.hardware ul { margin: 0 0 .6rem; padding-left: 1.2rem; color: var(--muted); }

/* Download */
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; }
.dl { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.4rem; display: flex; flex-direction: column; }
.dl h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.dl .badge, .feature .badge { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
             color: var(--accent); margin-bottom: .6rem; }
.dl p { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }
.dl .btn { align-self: flex-start; background: var(--navy); color: #fff; }
.dl .btn:hover { background: #24396a; }
.dl .meta { font-size: .8rem; color: var(--muted); margin-top: .8rem; word-break: break-all; }
.dl .meta code { font-size: .78rem; }
.dl .debs { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.dl .debs li { border-top: 1px solid var(--line); padding-top: .9rem; }
.dl .debs .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dl .debs strong { font-size: 1rem; }
.dl .debs .btn { padding: .5rem 1rem; font-size: .9rem; }
.dl .debs .meta { margin-top: .4rem; }
.dl .changes { align-self: flex-start; margin-top: auto; padding-top: 1rem; font-size: .9rem; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .dl .btn { background: var(--blue); color: var(--deep); }
  .dl .btn:hover { background: #7bb9ff; }
}
.install { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; }
.install div { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue);
               border-radius: .6rem; padding: 1rem 1.3rem; font-size: .95rem; }
.install ol { margin: .4rem 0 0; padding-left: 1.3rem; }
.install p { margin: .4rem 0 0; }

.repo { margin-top: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.4rem; }
.repo h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.repo > p { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }
.repo input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.distros { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.distros label { cursor: pointer; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--line);
                 font-size: .9rem; font-weight: 600; color: var(--muted); }
.distros label:hover { border-color: var(--blue); color: var(--fg); }
#distro-trixie:checked ~ .distros label[for="distro-trixie"],
#distro-testing:checked ~ .distros label[for="distro-testing"],
#distro-unstable:checked ~ .distros label[for="distro-unstable"] { background: var(--blue); border-color: var(--blue); color: var(--deep); }
#distro-trixie:focus-visible ~ .distros label[for="distro-trixie"],
#distro-testing:focus-visible ~ .distros label[for="distro-testing"],
#distro-unstable:focus-visible ~ .distros label[for="distro-unstable"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.repo .sources { display: none; }
#distro-trixie:checked ~ .steps .sources-trixie,
#distro-testing:checked ~ .steps .sources-testing,
#distro-unstable:checked ~ .steps .sources-unstable { display: block; }
.steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 1rem; font-size: .95rem; }
.steps > li { min-width: 0; }
.steps p { margin: 0 0 .4rem; overflow-wrap: anywhere; }
.steps .hint { color: var(--muted); font-size: .85rem; margin: .4rem 0 0; }
.repo pre { position: relative; margin: 0; padding: .8rem 1rem; padding-right: 5.5rem; border-radius: .6rem;
            background: var(--bg); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.repo pre code { font-size: .85rem; }
.repo .copy { position: absolute; top: .5rem; right: .5rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
              padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.repo .copy:hover { border-color: var(--blue); }
@media (max-width: 40rem) {
  .repo { padding: 1.1rem; }
  .repo pre { padding: 2.6rem .8rem .8rem; }
}

/* Changelog dialog, opened from the download cards */
.changelog { width: min(42rem, calc(100% - 2rem)); max-width: none; max-height: min(85vh, 48rem); padding: 0;
             border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); color: var(--fg);
             box-shadow: 0 1.5rem 4rem rgba(0,0,0,.35); }
.changelog[open] { display: flex; flex-direction: column; }
.changelog:focus { outline: none; }
.changelog::backdrop { background: rgba(5,10,20,.6); }
body:has(.changelog[open]) { overflow: hidden; }
.changelog .head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.4rem .6rem;
                   border-bottom: 1px solid var(--line); }
.changelog h2 { font-size: 1.35rem; margin: 0; }
.changelog form { margin: 0; }
.changelog .close { font: inherit; font-size: 1.5rem; line-height: 1; width: 2.2rem; height: 2.2rem; border-radius: 50%; cursor: pointer;
                    border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.changelog .close:hover { border-color: var(--blue); }
.changelog .panels { overflow-y: auto; flex: 1; min-height: 0; padding: 0 1.4rem 1.2rem; }
.changelog article { padding: 1rem 0; border-top: 1px solid var(--line); }
.changelog article:first-of-type { border-top: 0; }
.changelog h3 { margin: 0 0 .3rem; font-size: 1.05rem; display: flex; align-items: baseline; gap: .7rem; }
.changelog time { color: var(--muted); font-size: .85rem; font-weight: 400; }
.changelog article li { font-size: .95rem; }
.changelog ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.changelog .note { color: var(--muted); font-size: .9rem; margin: 1rem 0 0; }
@media (max-width: 40rem) {
  .changelog .head { padding-left: 1rem; padding-right: 1rem; }
  .changelog .panels { padding: 0 1rem 1rem; }
}

/* Privacy */
.privacy { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem 1.6rem;
           display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.privacy svg { width: 2.4rem; height: 2.4rem; color: var(--accent); }
.privacy p { margin: 0 0 .6rem; }

footer { margin-top: 4rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }

@media (max-width: 760px) {
  .hero-body { grid-template-columns: 1fr; padding: 2rem 0 3rem; }
  .hero-shot { display: none; }
  nav .links a:not(:last-child) { display: none; }
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto;
           scroll-snap-type: x mandatory; padding-bottom: 1rem; }
  .shots figure { scroll-snap-align: center; }
  .wide-shots { grid-template-columns: 1fr; }
  .report { grid-template-columns: 1fr; padding: 1.4rem; }
  .report img { width: 60%; margin: 0 auto; }
  .hardware, .privacy { grid-template-columns: 1fr; }
}
