/* Strux landing. Paper, ink and the app's amber (StruxColors in :core:design-system).
   Fonts are self-hosted on purpose: firebase.json's CSP is `font-src 'self'`, and a page that
   says "not in someone's cloud" should not hand every visitor's IP to a font CDN.
   Barlow / Barlow Condensed / JetBrains Mono, OFL — licences in /fonts. */
:root {
  --paper: #f1ece2;
  --ink:   #16181d;
  --text:  #2a2c31;
  --muted: #6b6558;
  --rule:  #d9d2c3;
  --amber: #ffb020;
  --amber-ink: #4a3000;   /* text on amber */
  --brown: #8a5a10;       /* step labels on paper */
  --dim:   #b7b0a2;       /* body on ink */
  --gutter: 16px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/barlow-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/barlow-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/barlow-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/barlow-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-condensed-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-condensed-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/barlow-condensed-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/barlow-condensed-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.5 Barlow, system-ui, sans-serif;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--brown); }
h1, h2, .display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  /* German and Turkish carry single words wider than a phone column. */
  overflow-wrap: anywhere;
  hyphens: auto;
}
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* Hero */
.hero { background: var(--amber); padding: 20px 0 56px; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 26px/1 var(--display); color: var(--ink); text-decoration: none; }
.brand svg { width: 36px; height: 36px; }
.hero-grid { display: grid; gap: 28px; margin-top: 40px; }
/* The four verbs. The size is per language because the words are: one width that fits
   SCHNEIDEN. on a phone leaves AÇ. BUL. looking lost, so each locale sets its own --k
   (vw per character run) and --max (desktop ceiling). */
.hero h1 {
  font-size: min(calc(var(--k, 23) * 1vw), var(--max, 176px));
  line-height: var(--lh, 0.86);
  overflow-wrap: normal;
  hyphens: none;
}
:lang(es) { --k: 25; --max: 176px; }
:lang(de) { --k: 18.5; --max: 150px; --lh: 0.95; }  /* room for Ö */
:lang(fr) { --k: 22; --max: 170px; }
:lang(it) { --k: 25; --max: 176px; }
:lang(pt) { --k: 20.5; --max: 160px; }
:lang(tr) h2 { line-height: 1.12; }
:lang(tr) { --k: 27; --max: 190px; --lh: 1.02; }  /* Ç Ş Ö İ above and below the line */
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.lead { font-size: 19px; line-height: 1.45; color: #1a1204; }
.formats { font: 600 17px/1.3 var(--display); letter-spacing: 0.02em; color: var(--amber-ink); }
.badge { align-self: flex-start; }
.badge img { width: 200px; height: auto; }
.tm { margin-top: 12px; font-size: 13px; }

/* The file */
.file { background: var(--ink); padding: 32px 0; }
.file-grid { display: grid; gap: 20px; align-items: center; }
.file pre {
  margin: 0; font: 400 11px/1.7 "JetBrains Mono", ui-monospace, monospace; color: #7d8594;
  white-space: pre-wrap; overflow-wrap: anywhere;   /* breaks at the <wbr> after each comma first */
}
.file pre b { font-weight: 400; color: var(--amber); }
.file h2 { font-size: 34px; line-height: 1; color: var(--paper); }
.file p { color: var(--dim); margin-top: 12px; }

/* Numbers */
.stats { display: grid; border-bottom: 1px solid var(--rule); }
.stat { padding: 24px 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.stat:first-child { border-top: 0; }
.stat b { font: 800 56px/1 var(--display); color: var(--ink); }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 64px; padding-top: 56px; }
.step { display: grid; gap: 16px; }
.step img {
  width: 260px; height: auto; aspect-ratio: 9 / 20; object-fit: cover; justify-self: center;
  border: 3px solid var(--ink); border-radius: 22px;
}
.label { font: 600 17px/1 var(--display); color: var(--brown); letter-spacing: 0.02em; }
.step h2 { font-size: 40px; line-height: 1; margin: 10px 0 12px; }

/* Privacy + limits */
.facts {
  margin-top: 64px; background: var(--ink); border-radius: 10px; padding: 28px 20px;
  display: grid; gap: 28px;
}
.facts h2 { font-size: 30px; color: var(--paper); margin-bottom: 8px; }
.facts h2.hot { color: var(--amber); }
.facts p { color: #c9c2b4; line-height: 1.6; }
.facts a { color: var(--amber); }

/* Close */
.close { margin-top: 56px; display: flex; flex-direction: column; gap: 20px; }
.close h2 { font-size: 44px; line-height: 0.95; }
.close .badge { align-self: center; }
.close .badge img { width: 220px; }

/* Footer */
footer { margin-top: 64px; border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.foot { display: flex; flex-direction: column; gap: 10px; }
.langbar { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.langbar a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.langbar a.current { color: var(--ink); font-weight: 500; text-decoration: underline; }

@media (min-width: 900px) {
  :root { --gutter: 96px; }
  .wrap { padding: 0 var(--gutter); }
  .hero { padding: 32px 0 96px; }
  .brand { font-size: 30px; }
  .brand svg { width: 40px; height: 40px; }
  .hero-grid { grid-template-columns: 8fr 4fr; align-items: end; gap: 32px; margin-top: 56px; }
  .hero h1 { font-size: min(calc(var(--k, 23) * 0.55vw), var(--max, 176px)); }
  .hero-copy { padding-bottom: 12px; }
  .lead { font-size: 22px; }
  .file { padding: 56px 0; }
  .file-grid { grid-template-columns: 7fr 4fr; gap: 64px; }
  .file pre { font-size: 14px; }
  .file h2 { font-size: 44px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 40px 32px; border-top: 0; border-left: 1px solid var(--rule); }
  .stat:first-child { padding-left: 0; border-left: 0; }
  .stat b { font-size: 76px; }
  .steps { gap: 104px; padding-top: 112px; }
  .step { grid-template-columns: 4fr 7fr; gap: 32px 64px; align-items: center; }
  .step img { width: 100%; justify-self: stretch; }
  .step:nth-child(even) { grid-template-columns: 7fr 4fr; }
  .step:nth-child(even) img { order: 2; }
  .step h2 { font-size: 56px; }
  .step p { font-size: 20px; }
  .facts { margin-top: 120px; padding: 56px; grid-template-columns: 1fr 1fr; gap: 56px; }
  .facts h2 { font-size: 40px; }
  .close { margin-top: 96px; flex-direction: row; justify-content: space-between; align-items: center; }
  .close h2 { font-size: 64px; max-width: 14ch; }
  .close .badge img { width: 240px; }
  .foot { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
}
