/* FoolDog — Marketing-Websäit
 * Faarwen a Formen identesch mat lib/core/theme.dart an de Store-Frames.
 * Eng eenzeg Datei fir all Säiten. Keng externe Ressourcen, kee JavaScript.
 */

/* ---------------------------------------------------------------- Fonts --- */
/* Variabel Schrëften, lokal gehost — kee Google-CDN.
   Gebaut vun web/tools/build_assets.py aus store/fonts/. */
@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/baloo2.woff2") format("woff2-variations");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-display: swap;
}

/* --------------------------------------------------------------- Tokens --- */
:root {
  --amber: #ffc94d;
  --amber-dark: #e9a825;
  --brown: #c67a46;
  --brown-dark: #8a4b2a;
  --cream: #f1dcbb;
  --ink: #2b2018;
  --tongue: #ef6b72;
  --bg: #fff8ec;

  --surface: #ffffff;
  --border: rgba(0, 0, 0, 0.07);
  /* Deckkraaft esou gewielt, datt béid Wäerter WCAG AA op --bg erreechen
     (0.62 koum just op 4.45:1, 0.45 just op 2.72:1). */
  --muted: rgba(43, 32, 24, 0.68);
  --faint: rgba(43, 32, 24, 0.56);
  --shadow: 0 18px 46px -24px rgba(90, 60, 30, 0.55);

  /* Interaktiv Flächen benotzen brown-dark: bei wäissem Text sinn dat 6.4:1
     Kontrast (WCAG AA), wärend --brown just op 3.1:1 kënnt. */
  --action: #8a4b2a;
  --action-hover: #723c21;
  --on-action: #ffffff;
  --link: #8a4b2a;

  --radius-card: 20px;
  --radius-btn: 16px;
  --measure: 68ch;
  --gutter: clamp(20px, 5vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1512;
    --surface: #251d18;
    --ink: #f4e9da;
    --border: rgba(255, 255, 255, 0.09);
    --muted: rgba(244, 233, 218, 0.62);
    --faint: rgba(244, 233, 218, 0.42);
    --shadow: 0 18px 46px -24px rgba(0, 0, 0, 0.8);

    --action: var(--amber);
    --action-hover: #ffd775;
    --on-action: #241a12;
    --link: var(--amber);
  }
}

/* ---------------------------------------------------------------- Basis --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Baloo 2", "Trebuchet MS", -apple-system, sans-serif;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 6.2vw, 3.6rem);
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}
h3 {
  font-size: 1.16rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}

img,
svg {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--amber-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: var(--radius-btn);
  z-index: 20;
}
.skip:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose {
  max-width: var(--measure);
}

/* --------------------------------------------------------------- Header --- */
.site-header {
  position: relative;
  z-index: 3;
  padding-block: 20px;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand svg {
  width: 38px;
  height: 38px;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 26px);
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 0.97rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.75;
}
.site-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Sproochewiessel: reng Linken, kee JavaScript, kee Cookie. */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.86rem;
}
.lang a,
.lang span {
  padding: 3px 11px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}
.lang [aria-current="true"] {
  background: var(--amber);
  color: #241a12;
}

/* ----------------------------------------------------------------- Hero --- */
.hero {
  position: relative;
  padding-block: clamp(32px, 6vw, 72px) clamp(48px, 8vw, 96px);
  overflow: hidden;
}

/* Waarme Schäin hannert dem Titel — deeselwechte Effet wéi an de Store-Frames. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto;
  height: 780px;
  background: radial-gradient(
    ellipse 58% 46% at 50% 34%,
    rgba(255, 201, 77, 0.5),
    rgba(255, 201, 77, 0) 70%
  );
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .hero::before {
    background: radial-gradient(
      ellipse 58% 46% at 50% 34%,
      rgba(255, 201, 77, 0.16),
      rgba(255, 201, 77, 0) 70%
    );
  }
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero__copy {
  text-align: center;
}
@media (min-width: 900px) {
  .hero__copy {
    text-align: left;
  }
}

.hero__lead {
  font-size: clamp(1.06rem, 2.1vw, 1.24rem);
  color: var(--muted);
  margin: 18px 0 28px;
  max-width: 34ch;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .hero__lead {
    margin-inline: 0;
  }
}

.hero__art {
  display: flex;
  justify-content: center;
}

/* Dekorativ Kréngel a Fonkelen, wéi am store/tools/compose.py. */
.doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--brown);
  opacity: 0.22;
}
@media (prefers-color-scheme: dark) {
  .doodles {
    opacity: 0.3;
  }
}

/* -------------------------------------------------------------- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  background: var(--action);
  color: var(--on-action);
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.16s ease;
}
.btn:hover {
  background: var(--action-hover);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--brown);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
@media (min-width: 900px) {
  .hero__copy .actions {
    justify-content: flex-start;
  }
}

/* App-Store-Badge — nach net verëffentlecht, dofir e statesche Wartestand.
   Bei Release: .badge durch de richtege Apple-Badge-Link ersetzen. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  text-align: left;
  line-height: 1.25;
}
.badge svg {
  width: 26px;
  height: 26px;
  flex: none;
  opacity: 0.85;
}
.badge__top {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge__main {
  display: block;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
}

/* --------------------------------------------------------- Geräterahmen --- */
/* De Rahmen ass reng CSS: de Screenshot bleift esou op all Opléisung schaarf. */
.device {
  --screen-w: clamp(212px, 52vw, 292px);
  --bezel: 10px;
  position: relative;
  width: calc(var(--screen-w) + 2 * var(--bezel));
  padding: var(--bezel);
  border-radius: 46px;
  background: #181614;
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
  flex: none;
}
.device__screen {
  position: relative;
  display: block;
  width: var(--screen-w);
  aspect-ratio: 390 / 847;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
}
.device__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Dynamic Island */
.device__screen::after {
  content: "";
  position: absolute;
  top: 2.6%;
  left: 50%;
  translate: -50% 0;
  width: 31%;
  aspect-ratio: 125 / 37;
  border-radius: 999px;
  background: #000;
}

/* ------------------------------------------------------------ Sektiounen --- */
.section {
  padding-block: clamp(44px, 7vw, 84px);
}
.section--tint {
  background: color-mix(in srgb, var(--amber) 14%, var(--bg));
}
@media (prefers-color-scheme: dark) {
  .section--tint {
    background: color-mix(in srgb, var(--amber) 7%, var(--bg));
  }
}

.section__head {
  max-width: 46ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section__head p {
  color: var(--muted);
  margin-top: 12px;
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brown-dark);
  background: color-mix(in srgb, var(--amber) 46%, transparent);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) {
  .eyebrow {
    color: var(--amber);
    background: rgba(255, 201, 77, 0.14);
  }
}

/* -------------------------------------------------------------- Features --- */
.feature {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  grid-template-columns: 1fr;
  justify-items: center;
  padding-block: clamp(26px, 3.5vw, 40px);
}
.feature__copy {
  text-align: center;
}
.feature__copy h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 800;
}
@media (min-width: 860px) {
  .feature {
    /* Text kritt méi Plaz wéi d'Gerät — soss verléiert en sech niewent him. */
    grid-template-columns: 1.15fr 0.85fr;
    justify-items: stretch;
  }
  .feature__copy {
    text-align: left;
  }
  .feature__art {
    display: flex;
    justify-content: center;
  }
  /* Ofwiesselnd: all zweet Rei spigelt sech. */
  .features > .feature:nth-child(even) .feature__art {
    order: -1;
  }
}
/* An de Feature-Reien ass d'Gerät méi kleng wéi am Hero. */
.feature__art .device {
  --screen-w: clamp(190px, 42vw, 236px);
}
.feature__copy p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 44ch;
  margin-inline: auto;
}
@media (min-width: 860px) {
  .feature__copy p {
    margin-inline: 0;
  }
}
.feature__icon {
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}

/* ----------------------------------------------------------------- Cards --- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  /* `start`, soss zéie sech all Kaarte op d'Héicht vun der längster. */
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 26px;
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
}
.card__icon {
  font-size: 1.7rem;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.list-check li {
  position: relative;
  padding-left: 30px;
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--brown);
  border-bottom: 3px solid var(--brown);
  rotate: -45deg;
}
@media (prefers-color-scheme: dark) {
  .list-check li::before {
    border-color: var(--amber);
  }
}

/* ------------------------------------------------------------------- CTA --- */
.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(30px, 5vw, 54px);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta p {
  color: var(--muted);
  margin: 14px auto 26px;
  max-width: 44ch;
}

/* ------------------------------------------------------------- Inhaltssäit --- */
.page-head {
  padding-block: clamp(30px, 5vw, 56px) clamp(20px, 3vw, 34px);
}
.page-head .updated {
  color: var(--faint);
  margin-top: 10px;
}

.doc {
  padding-bottom: clamp(56px, 8vw, 96px);
}
.doc h2 {
  font-size: 1.25rem;
  margin-top: 42px;
  margin-bottom: 10px;
}
.doc h2:first-of-type {
  margin-top: 0;
}
.doc h3 {
  margin-top: 26px;
  margin-bottom: 6px;
}
.doc ul,
.doc ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}
.doc li {
  margin: 0.35em 0;
}
.doc table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 0.95rem;
}
.doc th,
.doc td {
  text-align: left;
  padding: 11px 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.doc th {
  font-weight: 800;
}
/* Breed Inhalter scrollen an hirem eegene Container, ni de Body. */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 24px;
  margin: 20px 0;
}
.note--warn {
  border-color: color-mix(in srgb, var(--amber-dark) 55%, var(--border));
  background: color-mix(in srgb, var(--amber) 12%, var(--surface));
}

code {
  background: color-mix(in srgb, var(--amber) 28%, transparent);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* --------------------------------------------------------------- Presskit --- */
.swatches {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  margin: 20px 0 8px;
  padding: 0;
  list-style: none;
}
.swatch {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}
.swatch__chip {
  height: 62px;
}
.swatch__meta {
  padding: 10px 13px;
  font-size: 0.85rem;
  line-height: 1.4;
}
.swatch__meta b {
  display: block;
  font-family: "Baloo 2", sans-serif;
}
.swatch__meta span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sw-amber {
  background: #ffc94d;
}
.sw-amber-dark {
  background: #e9a825;
}
.sw-brown {
  background: #c67a46;
}
.sw-brown-dark {
  background: #8a4b2a;
}
.sw-cream {
  background: #f1dcbb;
}
.sw-ink {
  background: #2b2018;
}
.sw-tongue {
  background: #ef6b72;
}
.sw-bg {
  background: #fff8ec;
}

.shots {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: 0;
  margin: 20px 0;
  list-style: none;
}
.shots img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
}

/* --------------------------------------------------------------- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(36px, 5vw, 56px);
  font-size: 0.95rem;
}
.site-footer__grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 30px;
}
.site-footer h2 {
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
  font-weight: 700;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.site-footer a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.8;
}
.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

/* -------------------------------------------------------------- Bewegung --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:hover {
    transform: none;
  }
}
