/* ===== German by Example — landing page =====
   Palette mirrors the app's design system (Theme.swift). Aesthetic: refined
   soft-UI — friendly rounded shapes and pastel accents, but crisp shadows,
   strong type hierarchy and generous whitespace for a professional feel. */

:root {
  --coral: #FF7D75;
  --coral-dark: #E85F56;
  --coral-deep: #C74A42;
  --coral-tint: #FFE9E7;
  --sky: #62B4FF;
  --sky-dark: #2E8FE0;
  --sky-tint: #E0F0FF;
  --purple: #B19FFB;
  --purple-dark: #7B62E3;
  --purple-tint: #EFEBFF;
  --sage: #88D998;
  --sage-dark: #3E8F52;
  --sage-tint: #E6F8EA;
  --yellow: #FFD166;
  --yellow-dark: #F0A800;
  --yellow-deep: #8A6300;
  --yellow-tint: #FFF3D6;

  --ground: #FBF4EE;
  --ink: #222B45;
  --card: #FFFFFF;
  --text-primary: #222B45;
  --text-body: #4C5670;
  --text-muted: #6B7488;
  --hairline: #ECE5DD;

  --sh-sm: 0 4px 14px rgba(34,43,69,.06);
  --sh-md: 0 12px 30px rgba(34,43,69,.09);
  --sh-lg: 0 28px 60px rgba(34,43,69,.14);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 40px);

  --focus: 0 0 0 3px var(--ground), 0 0 0 6px var(--sky-dark);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: var(--ground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 700;
  overflow-wrap: break-word;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
em { font-style: normal; color: var(--coral-dark); }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* Icons */
.ico {
  width: 1.35em; height: 1.35em;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto;
}
.ico-star { fill: var(--yellow-dark); stroke: none; width: 1.05em; height: 1.05em; }

/* A11y */
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 12px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 12px; font-weight: 800; z-index: 200; transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  display: inline-block; font-family: "Nunito", sans-serif; font-size: 0.76rem;
  font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--coral-deep); background: var(--coral-tint);
  padding: 7px 15px; border-radius: var(--radius-pill);
}
.eyebrow-sky { color: var(--sky-dark); background: var(--sky-tint); }
.eyebrow-purple { color: var(--purple-dark); background: var(--purple-tint); }

.hl { background: linear-gradient(180deg, transparent 58%, rgba(255,209,102,.6) 58%); padding: 0 .06em; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Nunito", sans-serif; font-weight: 800; font-size: 1rem;
  padding: 14px 24px; border-radius: var(--radius-pill); border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap;
}
.btn .ico { width: 1.2em; height: 1.2em; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-primary { background: var(--coral-dark); color: #fff; box-shadow: 0 8px 20px rgba(232,95,86,.35); }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(199,74,66,.4); }
.btn-ghost { background: var(--card); color: var(--text-primary); box-shadow: var(--sh-sm); }
.btn-ghost:hover { transform: translateY(-2px); color: var(--coral-dark); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--sh-md); }
.btn-light:hover { transform: translateY(-2px); }

/* ===== Header (elevated, always visible) ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* Noticeably translucent (frosted glass) once the page is scrolled */
.site-header.scrolled {
  background: rgba(255,255,255,.45);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--hairline);
  box-shadow: 0 6px 24px rgba(34,43,69,.10);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.06rem; flex: 0 0 auto; }
.brand img { border-radius: 11px; flex: 0 0 auto; }
.brand span { white-space: nowrap; }
.brand em { color: var(--sky-dark); font-weight: 700; margin: 0 -2px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 700; color: var(--text-body); }
.nav a { padding: 6px 2px; position: relative; }
.nav a:hover { color: var(--coral-dark); }
.header-cta { flex: 0 0 auto; margin-left: auto; }
.nav + .header-cta { margin-left: 8px; }

/* ===== Hero ===== */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(32px,6vw,56px) var(--gutter) 40px;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px,5vw,56px); align-items: center;
}
.hero-copy { min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.7rem); font-weight: 800; }
.lede { margin-top: 18px; font-size: clamp(1.02rem,2.4vw,1.16rem); color: var(--text-body); max-width: 37ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-proof {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  margin-top: 22px; color: var(--text-muted); font-weight: 600; font-size: .94rem;
}
.hero-proof strong { color: var(--text-primary); }
.stars { display: inline-flex; gap: 2px; }

.hero-art { position: relative; display: flex; justify-content: center; min-width: 0; }
.hero-art::before {
  content: ""; position: absolute; inset: 4% 6%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,125,117,.24), transparent 56%),
    radial-gradient(circle at 74% 72%, rgba(98,180,255,.24), transparent 56%),
    radial-gradient(circle at 60% 10%, rgba(255,209,102,.20), transparent 52%);
  filter: blur(6px); z-index: 0;
}
.hero-art img { position: relative; z-index: 1; width: min(320px, 76%); filter: drop-shadow(var(--sh-lg)); border-radius: 40px; }
.float-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); padding: 9px 14px; border-radius: var(--radius-pill);
  font-weight: 800; font-size: .86rem; box-shadow: var(--sh-md);
}
.float-chip .ico { width: 1.1em; height: 1.1em; }
.chip-a { top: 16%; left: 6%; color: var(--yellow-deep); }
.chip-a .ico { stroke: var(--yellow-dark); }
.chip-b { bottom: 18%; right: 5%; color: var(--sky-dark); }

/* ===== Stats strip ===== */
.stats { max-width: var(--maxw); margin: 0 auto; padding: 6px var(--gutter); }
.stats-inner {
  background: var(--ink); color: #EAF0FF;
  border-radius: var(--radius-lg); padding: 26px clamp(16px,4vw,32px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; box-shadow: var(--sh-lg);
}
.stat { text-align: center; min-width: 0; }
.stat strong { display: block; font-family: "Baloo 2", sans-serif; font-size: clamp(1.4rem,3.6vw,1.8rem); color: #fff; line-height: 1.1; }
.stat span { font-size: .82rem; color: #AEB7D4; font-weight: 600; }

/* ===== Section heads ===== */
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); }
.section-sub { margin-top: 12px; color: var(--text-body); font-size: 1.04rem; }

/* ===== Features ===== */
.features { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px,9vw,88px) var(--gutter); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--card); border-radius: var(--radius-lg); padding: 30px 26px;
  box-shadow: var(--sh-sm); border: 1px solid var(--hairline);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.feature-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-body); font-size: 0.97rem; }
.feat-icon {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 17px;
  margin-bottom: 18px; color: #fff;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -5px 10px rgba(0,0,0,.10);
}
.feat-icon .ico { width: 1.55rem; height: 1.55rem; }
.c-coral  .feat-icon { background: linear-gradient(160deg, var(--coral), var(--coral-dark)); }
.c-sky    .feat-icon { background: linear-gradient(160deg, var(--sky), var(--sky-dark)); }
.c-purple .feat-icon { background: linear-gradient(160deg, var(--purple), var(--purple-dark)); }
.c-sage   .feat-icon { background: linear-gradient(160deg, var(--sage), var(--sage-dark)); }
.c-yellow .feat-icon { background: linear-gradient(160deg, var(--yellow), var(--yellow-dark)); color: var(--yellow-deep); }

/* ===== Screens gallery (boxed, centered) ===== */
.screens { padding: 12px 0 clamp(56px,9vw,88px); }
.screen-gallery {
  margin: 0 auto;                         /* fills the shared .wrap width → edges align with other sections */
  background: linear-gradient(180deg, #FFFFFF 0%, #FBF3EB 100%);
  border: 1px solid var(--hairline);
  border-radius: 34px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--sh-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: clamp(22px, 3vw, 36px);
}
.screen-gallery figure { margin: 0; width: 100%; display: flex; justify-content: center; }
.screen-gallery img {
  width: 100%;
  max-width: 220px;
  border-radius: 26px;
  box-shadow: var(--sh-md);
  transition: transform .18s ease, box-shadow .18s ease;
}
.screen-gallery img:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

/* ===== Loved / social proof ===== */
.loved { max-width: var(--maxw); margin: 0 auto; padding: 28px var(--gutter) clamp(56px,9vw,88px); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card {
  margin: 0; background: var(--card); border-radius: var(--radius-lg); padding: 28px 26px;
  box-shadow: var(--sh-sm); border: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 14px;
}
.quote-card .stars .ico { width: 1.1rem; height: 1.1rem; }
.quote-card blockquote { margin: 0; font-size: 1.04rem; font-weight: 600; color: var(--text-primary); line-height: 1.5; }
.quote-card figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; color: var(--text-muted); font-weight: 700; font-size: .9rem; }
.avatar {
  width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 50%; background: color-mix(in srgb, var(--a) 20%, white); color: var(--a); font-weight: 900;
}

/* ===== Languages ===== */
.languages {
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter) clamp(60px,10vw,92px);
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px,5vw,56px); align-items: center;
}
.lang-copy { min-width: 0; }
.lang-copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 16px 0; }
.lang-copy p { color: var(--text-body); font-size: 1.06rem; }
.lang-list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.lang-list li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.lang-list .ico { color: var(--sage-dark); width: 1.3rem; height: 1.3rem; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--card);
  box-shadow: var(--sh-sm); border: 1px solid var(--hairline); padding: 11px 18px;
  border-radius: var(--radius-pill); font-weight: 800;
}
.chip .ico { width: 1.1em; height: 1.1em; }
.chip-rtl { direction: rtl; background: var(--sky-tint); border-color: transparent; color: var(--sky-dark); }
.lang-art { display: flex; justify-content: center; min-width: 0; }
.lang-art img { width: min(310px, 76%); border-radius: 38px; filter: drop-shadow(var(--sh-lg)); }

/* ===== CTA ===== */
.cta { max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter) clamp(60px,10vw,92px); }
.cta-inner {
  background: linear-gradient(135deg, #2A3355 0%, #222B45 60%, #1B2138 100%);
  color: #fff; border-radius: 34px; padding: clamp(44px,7vw,64px) var(--gutter);
  text-align: center; position: relative; overflow: hidden; box-shadow: var(--sh-lg);
}
.cta-inner::before, .cta-inner::after { content: ""; position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; }
.cta-inner::before { width: 240px; height: 240px; background: radial-gradient(circle, rgba(255,125,117,.55), transparent 70%); top: -70px; left: -50px; }
.cta-inner::after  { width: 280px; height: 280px; background: radial-gradient(circle, rgba(98,180,255,.5), transparent 70%); bottom: -100px; right: -60px; }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner img { margin: 0 auto 18px; border-radius: 18px; }
.cta-inner h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.cta-inner em { color: var(--yellow); }
.cta-inner > p { color: #C7CEE4; margin-top: 14px; font-size: 1.04rem; }
.cta-buttons { margin-top: 26px; display: flex; justify-content: center; }
.cta-fine { margin-top: 16px; color: #9AA3C0; font-size: 0.88rem; }

/* ===== FAQ ===== */
.faq { max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter) clamp(64px,10vw,96px); }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq details { background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; padding: 2px 22px; box-shadow: var(--sh-sm); }
.faq summary {
  cursor: pointer; font-family: "Baloo 2", sans-serif; font-weight: 600; font-size: 1.08rem;
  padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--coral-dark); font-weight: 700; transition: transform .2s ease; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-body); padding: 0 0 18px; }

/* ===== Legal / content pages ===== */
.legal { max-width: 820px; margin: 0 auto; padding: clamp(32px,6vw,64px) var(--gutter) clamp(48px,8vw,80px); }
.legal .eyebrow { margin-bottom: 16px; }
.legal h1 { font-size: clamp(2rem,5vw,2.8rem); margin-bottom: 10px; }
.legal .updated { color: var(--text-muted); font-weight: 600; margin-bottom: 8px; }
.legal .intro { color: var(--text-body); font-size: 1.08rem; margin: 18px 0 8px; }
.legal h2 { font-size: clamp(1.3rem,3vw,1.6rem); margin: 40px 0 12px; }
.legal h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.legal p { color: var(--text-body); margin-bottom: 12px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; color: var(--text-body); }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--sky-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--text-primary); }
.legal .callout {
  background: var(--card); border: 1px solid var(--hairline); border-left: 4px solid var(--sky);
  border-radius: 14px; padding: 16px 18px; margin: 18px 0; box-shadow: var(--sh-sm);
}
.legal .back { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; font-weight: 800; color: var(--coral-dark); text-decoration: none; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--hairline); max-width: var(--maxw); margin: 0 auto;
  padding: 38px var(--gutter); display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center;
}
.foot-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.foot-brand img { border-radius: 10px; }
.foot-brand em { color: var(--sky-dark); font-weight: 700; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 700; color: var(--text-body); }
.foot-nav a:hover { color: var(--coral-dark); }
.foot-legal { width: 100%; color: var(--text-muted); font-size: 0.88rem; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 34px; }
  .hero-copy .eyebrow { margin-inline: auto; }
  .lede { margin-inline: auto; }
  .hero-cta, .hero-proof { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .languages { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .lang-list { align-items: center; }
  .lang-list li { justify-content: center; }
  .lang-chips { justify-content: center; }
  .lang-art { order: -1; }
}
@media (max-width: 860px) {
  .screen-gallery { grid-template-columns: repeat(2, minmax(0, 220px)); }
}
@media (max-width: 620px) {
  .nav { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-art img { width: min(300px, 88%); }
}
@media (max-width: 460px) {
  /* Compact icon-only CTA keeps the brand wordmark visible and the row on one line */
  .header-cta .cta-label { display: none; }
  .header-cta { padding: 10px; border-radius: 50%; }
  .header-cta .ico { width: 1.25em; height: 1.25em; }
  .float-chip { display: none; }
  .screen-gallery { grid-template-columns: minmax(0, 240px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
