/*
 * Guide pages (/guides/<slug>/ and /de/guides/<slug>/): light article layout in the landing's
 * colours and type, no JavaScript. Fonts: ABC Areal WOFF2, self-hosted (see the licence note in
 * /styles.css). Referenced with absolute paths so the German pages under /de/ can use it too.
 */

@font-face { font-family: "LC Areal"; src: url("/assets/fonts/ABCAreal-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "LC Areal"; src: url("/assets/fonts/ABCAreal-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --font: "LC Areal", "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bg: #0B090D;
  --bg-2: #141117;
  --fg: #F4F3EF;
  --fg-2: rgba(244, 243, 239, .74);
  --fg-3: rgba(244, 243, 239, .52);
  --line: rgba(244, 243, 239, .14);
  --accent: #F2CFD8;
  --gutter: 16px;
  --col: 680px;
  color-scheme: dark;
}
@media (min-width: 600px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--fg); background: var(--bg);
  font: 500 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
@media (min-width: 600px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #0B0B0B; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 10; background: var(--fg); color: #0B0B0B; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; max-width: calc(1040px + 2 * var(--gutter)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--font); letter-spacing: -.02em; white-space: nowrap; }
.brand svg { width: 16px; height: 15px; fill: var(--accent); flex: none; }
.top__right { display: flex; align-items: center; gap: 14px; }
.top__lang { color: var(--fg-2); text-decoration: none; font-size: 15px; }
.top__lang:hover { color: var(--fg); }
.top__cta { font: 500 15px/1 var(--font); text-decoration: none; padding: .75em 1.1em; border-radius: 999px; background: var(--fg); color: #0B0B0B; white-space: nowrap; }

/* article */
main { padding-block: 40px 24px; }
@media (min-width: 600px) { main { padding-block: 72px 32px; } }
h1, h2, h3 { font-family: var(--font); font-weight: 700; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(32px, 6.4vw, 52px); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(25px, 4vw, 34px); line-height: 1.12; letter-spacing: -.028em; margin-top: 2.2em; }
h3 { font-size: clamp(20px, 2.6vw, 23px); line-height: 1.25; letter-spacing: -.018em; margin-top: 1.9em; }
p, ul, ol { margin: .9em 0 0; }
.article p, .article li { color: var(--fg-2); text-wrap: pretty; }
.article strong { color: var(--fg); font-weight: 700; }
.article ul, .article ol { padding-left: 1.3em; }
.article li + li { margin-top: .45em; }
.article ul li::marker { color: var(--accent); }
.article ol li::marker { color: var(--fg-3); }
.article a:not(.badge) { color: var(--fg); text-decoration-color: rgba(242, 207, 216, .6); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.article a:not(.badge):hover { text-decoration-color: var(--fg); }

.answer { margin-top: 24px; font-size: clamp(19px, 2.4vw, 22px); line-height: 1.5; }
.article .answer { color: var(--fg); }

.note { margin-top: 28px; padding: 18px 20px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); font-size: 16px; }
.note p { margin: 0; }
.note p + p { margin-top: .6em; }
.article .note .checked { color: var(--fg); }

.source { font-size: 15px; }
.article .source a { word-break: break-all; }

/* screenshots */
.shot { margin: 28px 0 0; }
.shot img { width: min(300px, 72vw); border-radius: 28px; border: 1px solid var(--line); background: var(--bg-2); }
.shot figcaption { margin-top: 10px; font-size: 15px; color: var(--fg-3); max-width: 30em; }

/* comparison table: a table from 700px, stacked cards below (no sideways scrolling on phones) */
.compare { margin-top: 24px; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.compare thead th { color: var(--fg-3); font-weight: 500; }
.compare tbody th { color: var(--fg); font-weight: 700; }
.compare .us th { color: var(--accent); }
@media (min-width: 700px) {
  .compare { width: min(1040px, calc(100vw - 2 * var(--gutter))); margin-left: 50%; transform: translateX(-50%); }
  .compare th:first-child, .compare td:first-child { padding-left: 0; }
}
@media (max-width: 699px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tr { padding: 14px 16px; margin-top: 12px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
  .compare tbody th, .compare td { padding: 0; border: 0; }
  .compare tbody th { font-size: 17px; margin-bottom: 6px; }
  .compare td { margin-top: 6px; }
  .compare td::before { content: attr(data-label); display: block; color: var(--fg-3); font-size: 13px; }
}
.compare-note { font-size: 15px; }

/* FAQ */
.faq { margin-top: 2.2em; }
.faq > h2 { margin-top: 0; }
.faq h3 { margin-top: 1.5em; }
.faq h3 + p { margin-top: .4em; }

/* store call to action */
.get { margin-top: 56px; padding: 28px 24px; border-radius: 22px; background: radial-gradient(120% 140% at 0% 0%, rgba(110, 34, 66, .55), rgba(110, 34, 66, .12) 60%, transparent), var(--bg-2); border: 1px solid var(--line); }
.get h2 { margin-top: 0; font-size: clamp(23px, 3.4vw, 30px); }
.get .badge { display: inline-block; margin-top: 18px; line-height: 0; border-radius: 10px; }
.get .badge img { height: 54px; width: auto; }
.article .get p { font-size: 16px; }
.get__more { margin-top: 14px; }

/* footer */
.foot { margin-top: 56px; padding-block: 32px 40px; border-top: 1px solid var(--line); font-size: 15px; color: var(--fg-3); }
.foot .wrap { max-width: calc(1040px + 2 * var(--gutter)); display: grid; gap: 24px; }
@media (min-width: 800px) { .foot .wrap { grid-template-columns: 1fr 1fr; } }
.foot h2 { margin: 0 0 8px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--fg-3); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li + li { margin-top: 4px; }
.foot a { color: var(--fg-2); text-decoration: none; display: inline-block; padding-block: 4px; }
.foot a:hover { color: var(--fg); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot .foot__legal li { margin-top: 0; }
.foot__small { grid-column: 1 / -1; margin: 0; font-size: 14px; }

/* very small phones: keep brand, language link and store button on one line */
@media (max-width: 420px) { .brand { font-size: 16px; gap: 8px; } .top .wrap { gap: 10px; } .top__right { gap: 12px; } .top__lang { font-size: 14px; } .top__cta { font-size: 14px; padding: .7em .95em; } }
