/* Outfit is the wordmark's face, used for the app name; subset to Latin and German */
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-700-900-1.100.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --card: #151517;
  --card-line: rgba(255, 255, 255, 0.07);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --line: rgba(255, 255, 255, 0.1);
  --yellow: #fdc705;
  --yellow-hover: #ffd23a;
  --black: #0f0e0c;
  --link: #5ea8ff;
  --error: #ff6961;
  --ok: #32d74b;
  --wordmark: "Outfit", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sys: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: 20px;
  color-scheme: dark;
}
@media (min-width: 720px) {
  :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;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 var(--sys);
  -webkit-font-smoothing: antialiased;
}
html[lang="de"] .l-en,
html:not([lang="de"]) .l-de { display: none !important; }
main { overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
p, h1, h2, h3, h4, figure { margin: 0; }
p { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
code { font: 0.9em/1.4 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- Pill buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font: 600 14px/1 var(--sys);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms var(--ease-out);
}
.pill:active { transform: scale(0.97); }
.pill svg { flex: none; }
.pill-large { min-height: 46px; padding: 0 22px; font-size: 16px; gap: 9px; }
.pill-download { background: var(--yellow); color: var(--black); }
.pill-download:hover { background: var(--yellow-hover); color: var(--black); }
/* GitHub's own button, as it looks in GitHub's dark theme */
.pill-github { background: #21262d; color: #f0f6fc; box-shadow: inset 0 0 0 1px #3d444d; }
.pill-github:hover { background: #2a313a; color: #f0f6fc; box-shadow: inset 0 0 0 1px #59636e; }

/* ---------- Navigation ---------- */
.nav { border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand span { font: 800 19px/1 var(--wordmark); letter-spacing: -0.01em; }

/* ---------- Hero: black down to where the two tapes cross; the tapes are its edge, yellow below ---------- */
.hero {
  --tape-w: 4000px;
  --tape-h: 1200px;
  position: relative;
  isolation: isolate;
  overflow: clip;
  text-align: center;
}
.hero-head { position: relative; z-index: 1; padding-block: 88px 104px; }
.hero-stage {
  position: relative;
  padding-block: 56px 80px;
  background: linear-gradient(180deg, #fdc705 0%, #fdc705 30%, #f4b800 100%);
}
/* the crossing sits on the stage's top edge; above it the SVG fills yellow up to the tapes */
.hero-stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--tape-h) / -2);
  height: var(--tape-h);
  background: url("img/hero-tape.svg") 50% 50% / var(--tape-w) var(--tape-h) no-repeat;
  pointer-events: none;
}
.hero-icon { width: 112px; height: 112px; margin: 0 auto; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.6)); }
.hero h1 { margin-top: 22px; font: 900 64px/1 var(--wordmark); letter-spacing: -0.02em; }
/* the tagline is part of the h1, set in the text face */
.tagline { display: block; margin-top: 16px; font: 650 1.5rem/1.3 var(--sys); letter-spacing: -0.012em; }
.sub { max-width: 31em; margin: 12px auto 0; font-size: 1.0625rem; color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.facts { margin-top: 18px; font-size: 0.8125rem; color: var(--text-3); }
.hero-shot { position: relative; max-width: 820px; margin: 0 auto; }
.hero-shot picture { width: 100%; }
.hero-shot img { width: 100%; }
@media (max-width: 719px) {
  .hero { --tape-w: 3000px; --tape-h: 900px; }
  .hero-head { padding-block: 56px 76px; }
  .hero-stage { padding-block: 40px 48px; }
  .hero-icon { width: 92px; height: 92px; }
  .hero h1 { font-size: 46px; }
  .tagline { font-size: 1.25rem; }
  .hero-shot { margin-inline: calc(-1 * var(--gutter)); }
  .hero-shot img { width: 107.7%; max-width: none; margin-left: -3.85%; }
}

/* ---------- Bento ---------- */
.bento { padding-block: 88px 104px; }
.grid { display: grid; gap: 16px; }
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--card-line);
}
.card-text { padding: 28px 30px 0; }
.card h2 { font-size: 1.3125rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.012em; }
.card-text p { margin-top: 8px; max-width: 36em; color: var(--text-2); font-size: 1rem; }

/* every picture sits on its own panel inside the card, 10px in, so the corners stay concentric */
.panel { flex: 1; display: grid; place-items: center; margin: 24px 10px 10px; padding: 36px 28px; border-radius: 14px; overflow: hidden; }
.panel-yellow { background: linear-gradient(165deg, #ffda4d 0%, #fdc705 50%, #eeaa00 100%); padding-block: 40px; }
.panel-yellow picture { width: 100%; max-width: 720px; }
.panel-yellow img { width: 100%; }
.panel-light { background: linear-gradient(180deg, #ececef 0%, #dedee2 100%); }
.panel-light img { width: 100%; max-width: 420px; border-radius: 10px; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08), 0 14px 32px rgba(0, 0, 0, 0.18); }
.panel-dark { background: #1d1d20; box-shadow: inset 0 0 0 1px var(--card-line); }

/* the attributes on a downloaded file: one goes, the rest stay */
.info { width: 100%; max-width: 420px; }
.info-file { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; }
.attr { margin-top: 8px; color: var(--text-2); font: 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.attr-gone { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

/* macOS's own wording for files in quarantine */
.alerts { display: grid; gap: 14px; width: 100%; max-width: 520px; margin: 0; padding: 0; list-style: none; }
.alerts li { display: flex; align-items: flex-start; gap: 12px; }
.alerts li + li { padding-top: 14px; border-top: 1px solid var(--line); }
.alert-icon { flex: none; margin-top: 1px; color: var(--yellow); }
.alerts p { font-size: 0.9375rem; line-height: 1.45; color: var(--text-2); }
.alerts strong { display: block; font-weight: 600; color: var(--text); }

@media (min-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .card-wide { grid-column: 1 / -1; flex-direction: row; }
  .card-wide .card-text { flex: 0 0 42%; align-self: center; padding: 30px 12px 30px 34px; }
  .card-wide .panel { margin: 10px 10px 10px 0; }
}
@media (max-width: 719px) {
  .card { border-radius: 20px; }
  .card-text { padding: 22px 22px 0; }
  .panel { margin: 20px 8px 8px; padding: 22px 14px; border-radius: 12px; }
  .panel-yellow { padding-block: 22px; }
  .attr { font-size: 12px; }
  .alerts p { font-size: 0.875rem; }
}

/* ---------- Closing ---------- */
.closing { padding-block: 24px 104px; text-align: center; }
.closing h2 { font-size: 2rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.closing .actions { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  .pill { transition: none; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--text-3); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 24px calc(24px + env(safe-area-inset-bottom)); }
.by { display: inline-flex; align-items: baseline; gap: 0.3em; color: var(--text-3); text-decoration: none; white-space: nowrap; }
.by-name { font: 600 0.9375rem/1.2 var(--sys); letter-spacing: -0.01em; color: var(--text); }
.by:hover .by-name { text-decoration: underline; text-underline-offset: 0.2em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--text-2); text-decoration: none; }
.foot-links a:hover,
.foot-links a[aria-current="page"] { color: var(--text); }
.foot-lang { display: flex; gap: 14px; margin-left: auto; }
.foot-lang a { color: var(--text-3); text-decoration: none; }
.foot-lang a:hover { color: var(--text); }
html[lang="de"] .foot-lang a[hreflang="de"],
html:not([lang="de"]) .foot-lang a[hreflang="en"] { color: var(--text); }

/* ---------- Support, privacy and 404 ---------- */
.doc { width: 100%; max-width: calc(40rem + 2 * var(--gutter)); margin-inline: auto; padding: 56px var(--gutter) 88px; font-size: 16px; color: #d1d1d6; }
.doc h1 { font-size: 2.25rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; color: #fff; }
.doc .lede { margin-top: 12px; font-size: 1.125rem; color: var(--text-2); }
.doc h2 { margin-top: 44px; font-size: 1.375rem; line-height: 1.25; color: #fff; }
.doc h3 { margin-top: 26px; font-size: 1.0625rem; line-height: 1.3; color: #fff; }
.doc h4 { margin-top: 18px; font-size: 1rem; color: #fff; }
.doc p, .doc address, .doc ul { margin-top: 10px; }
.doc ul { padding-left: 1.2em; }
.doc address { font-style: normal; }
.doc .note { margin-top: 44px; color: var(--text-2); font-size: 0.875rem; }

/* Support form */
.support { position: relative; margin-top: 32px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.field .opt { font-weight: 400; color: var(--text-2); }
.support input,
.support textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: inherit;
}
.support input::placeholder { color: var(--text-3); }
.support textarea { min-height: 10em; resize: vertical; }
.support input:focus-visible,
.support textarea:focus-visible { outline: 2px solid var(--yellow); outline-offset: 1px; border-color: transparent; border-radius: 10px; }
.support [aria-invalid="true"],
.support [aria-invalid="true"]:focus-visible { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); outline-color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.support button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--black);
  font: 600 15px/1 var(--sys);
  cursor: pointer;
}
.support button:active { transform: scale(0.97); }
.support button:disabled { opacity: 0.6; cursor: progress; }
.form-status { min-height: 1.5em; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--error); }
.mail-alt { margin-top: 20px; color: var(--text-2); }
