/*
 * Inter, self-hosted rather than fetched from Google Fonts: a visitor's
 * browser contacts no one but Kinjam (the owner's rule — nothing external).
 * One variable file covers every weight the pages use (400–900).
 * Licence: fonts/LICENSE-Inter.txt (SIL Open Font License 1.1).
 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/InterVariable.woff2") format("woff2");
}

/*
 * Styles shared by every page of the landing site (home and FAQ, in every
 * language): the charter tokens, the base typography, the masthead, the
 * language switcher, the buttons, the closing card and the footer.
 * Page-specific layout stays inline in each page template, so one page can
 * change without touching the other, and the tokens exist exactly once.
 */
/*
  The palette is the product's own, transcribed from
  frontend/src/styles/_tokens.scss. A landing page that invented its own
  identity would be the first thing a visitor saw and the last thing they
  recognised when they opened the app.
*/
:root {
  --ink: #17213b;
  --muted: #6f7890;
  --card: #ffffff;
  --line: #e4e9f2;
  --soft: #edf3ff;
  --ground: #f5f8fc;
  --ground-top: #eaf2ff;

  --blue: #2f7cf6;
  /* --fq-blue-deep: brand-blue text on a soft ground, readable at small sizes. */
  --accent-text: #2861bf;
  --violet: #6558e8;
  --green: #2db879;

  /* The three rising dots of the mark. */
  --coral: #ff8b5c;
  --sky: #5bc0ff;
  --leaf: #4fd17a;
  --sun: #ffe177;
  --sun-deep: #ffc861;

  --on-brand: #ffffff;
  /* Always the deep blue: the light button sits on the brand gradient in both themes. */
  --accent-text-on-light: #2861bf;
  --shadow-card: 0 10px 30px rgba(30, 48, 90, 0.08);
  --shadow-raised: 0 22px 50px rgba(30, 48, 90, 0.18);

  --radius-card: 24px;
  --radius-pill: 999px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 62ch;
}

/*
  The product ships light-only, but a landing page is opened wherever the
  reader happens to be. The dark set keeps the same brand gradient and warm
  badge on a deepened ground rather than inverting the palette.
*/
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef2fb;
    --muted: #9aa4bd;
    --card: #1a2135;
    --line: #2a3350;
    --soft: #212a44;
    --ground: #121829;
    --ground-top: #161d33;
    --accent-text: var(--sky);
    --on-brand: #ffffff;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-raised: 0 22px 50px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="dark"] {
  --ink: #eef2fb;
  --muted: #9aa4bd;
  --card: #1a2135;
  --line: #2a3350;
  --soft: #212a44;
  --ground: #121829;
  --ground-top: #161d33;
  --accent-text: var(--sky);
  --on-brand: #ffffff;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-raised: 0 22px 50px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(var(--ground-top), var(--ground) 420px);
  background-color: var(--ground);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding-inline: 20px;
}

section {
  padding-block: clamp(48px, 7vw, 82px);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 7vw, 68px);
}

h2 {
  font-size: clamp(28px, 4.2vw, 42px);
}

h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.lede {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: var(--measure);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--soft);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* The mark's three dots, reused as a rhythm motif rather than as decoration. */
.dots {
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
}

.dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dots i:nth-child(1) {
  background: var(--coral);
}

.dots i:nth-child(2) {
  background: var(--sky);
  transform: translateY(-4px);
}

.dots i:nth-child(3) {
  background: var(--leaf);
  transform: translateY(-8px);
}

/* --- Header ------------------------------------------------------------ */

.masthead {
  padding-block: 28px 0;
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  height: 52px;
  width: auto;
}

.masthead__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--blue), var(--violet));
  color: var(--on-brand);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--shadow-raised);
  white-space: nowrap;
}

.btn-cta--small {
  padding: 10px 20px;
  font-size: 14px;
  box-shadow: none;
}

.byline {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

/* The logo leads home from every page but the home page itself. */
.logo-link {
  display: inline-flex;
  border-radius: 12px;
}

/* The one text link of the masthead: to the FAQ, or back to the home page. */
.masthead__link {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-text);
  text-decoration: none;
}

.masthead__link:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* --- Language switcher --------------------------------------------------- */

/*
  Real links, one per language page (/, /en/, /de/), so a crawler can follow
  them; styled exactly as the buttons they replaced.
*/
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--soft);
}

.lang-switch a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  background: var(--card);
  color: var(--accent-text);
  box-shadow: var(--shadow-card);
}

/*
  The first-visit language suggestion (lang-hint.js). Only ever inserted by
  the script, for a visitor whose browser prefers another language than the
  page's; it never redirects, so crawlers and everyone else see the page as
  built.
*/
.lang-hint {
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
}

.lang-hint__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding-block: 8px;
}

.lang-hint a {
  color: var(--accent-text);
  font-weight: 800;
}

.lang-hint button {
  margin-left: auto;
  appearance: none;
  border: none;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lang-hint button:hover {
  color: var(--ink);
}

.section-lede {
  margin-top: 16px;
}

/* --- Closing call to action --------------------------------------------- */

.closing__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(36px, 6vw, 60px) clamp(22px, 5vw, 56px);
  border-radius: var(--radius-card);
  background: linear-gradient(120deg, var(--blue), var(--violet));
  color: var(--on-brand);
  text-align: center;
  box-shadow: var(--shadow-raised);
}

.closing__card p {
  max-width: 56ch;
  font-size: 18px;
}

.closing__card .dots i:nth-child(1) { background: var(--sun); }

.btn-cta--light {
  background: var(--on-brand);
  color: var(--accent-text-on-light);
  box-shadow: none;
}

/* --- Footer ------------------------------------------------------------ */

footer {
  border-top: 1px solid var(--line);
  padding-block: 40px 56px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.footer__brand {
  font-weight: 800;
  color: var(--ink);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer__nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer__nav a[aria-current="page"] {
  color: var(--ink);
}

@media (max-width: 520px) {
  .btn-cta {
    white-space: normal;
    text-align: center;
  }

  .masthead__right {
    gap: 10px;
  }

  .byline {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
