/* The Empathy Lab website. Tokens taken from the app design in Figma (Start screen). */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --mustard-100: #fff4cc;
  --mustard-200: #fde6a8;
  --mustard-300: #fbdb88;
  --mustard-400: #f9d174;
  --mustard-500: #f8c761;
  --mustard-600: #e0ae45;
  --brand-purple: #130d2a;
  --ink-900: var(--brand-purple);
  --ink-700: #3f3a5d;
  --ink-600: #4a4470;
  --ink-50: #f3f1fa;
  --lilac-100: #eceaf5;
  --lilac-500: #585081;
  --cta: var(--brand-purple);
  --cta-hover: #241e3f;
  --link: var(--brand-purple);
  --pink-600: #e8678c;
  --white: #ffffff;
  --error: #b3261e;

  --radius-card: 16px;
  --radius-band: 32px;
  --radius-pill: 40px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1080px;
  --gutter: 20px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink-900);
}

h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.2; }
h3 { font-size: 18px; line-height: 1.3; font-family: var(--font-body); font-weight: 800; font-variation-settings: normal; letter-spacing: 0; }

p { margin: 0; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink-900); color: var(--white); padding: 8px 12px;
}
.skip:focus { left: 8px; top: 8px; z-index: 10; }

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

/* Header */

.site-header { padding: 20px 0 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.logo {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink-900);
}
.logo .brand-logo { width: min(350px, calc(100vw - 40px)); height: auto; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 0.95;
}

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 800; font-size: 16px; line-height: 20px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-primary { background: var(--cta); color: var(--white); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-soft {
  background: var(--mustard-100); color: var(--ink-900);
  border-color: var(--mustard-500);
  padding: 10px 16px; font-size: 14px;
}
.btn-soft:hover { background: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hero */

.hero {
  background: var(--mustard-500);
  border-radius: 0 0 var(--radius-band) var(--radius-band);
  padding: 0 0 56px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 40px;
  padding-top: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--mustard-100);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 14px; font-weight: 800;
  margin-bottom: 18px;
}
.hero p.lead { font-size: 19px; color: var(--ink-700); margin: 18px 0 28px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 14px; color: var(--ink-700); }

/* Hero visual: the app's "Was brauchst du gerade?" cards */

.app-preview {
  background: var(--white);
  border-radius: 28px;
  padding: 18px;
  max-width: 400px;
  width: 100%;
  justify-self: center;
  box-shadow: 0 2px 0 rgba(19, 13, 42, 0.06);
}
.app-preview h3.preview-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 20px;
  margin: 2px 2px 12px;
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--mustard-200);
  border-radius: var(--radius-card);
  padding: 10px 12px 12px;
  min-height: 112px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.card::after {
  /* soft organic shape behind the bird, as in the app cards */
  content: "";
  position: absolute;
  right: -28px; bottom: -36px;
  width: 104px; height: 96px;
  background: var(--mustard-300);
  border-radius: 58% 42% 50% 50% / 52% 46% 54% 48%;
  z-index: 0;
}
.card > * { position: relative; z-index: 1; }
.card-title { font-weight: 800; font-size: 15px; line-height: 19px; }
.card-sub { font-size: 13px; line-height: 18px; color: var(--ink-700); }
.card-meta { display: flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; color: rgba(19, 13, 42, 0.8); }
.card .bird {
  position: absolute; right: 4px; bottom: 6px;
  width: 52px; height: 52px; object-fit: contain;
  z-index: 1;
}
.tag {
  background: var(--pink-600); color: var(--white);
  border-radius: var(--radius-pill);
  padding: 1px 8px; font-size: 12.5px; font-weight: 700;
}

/* Sections */

section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--ink-700); margin-top: 12px; font-size: 18px; }

.features {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.feature {
  background: var(--ink-50);
  border-radius: var(--radius-card);
  padding: 22px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--ink-700); font-size: 16px; }
.feature .feature-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--mustard-400);
  display: grid; place-items: center;
  margin-bottom: 14px;
  font-weight: 900;
}

/* Lernweg highlight, styled like the active chapter card in the app */

.path-card {
  background: var(--lilac-100);
  border: 2px solid var(--lilac-500);
  border-radius: var(--radius-card);
  padding: 22px;
  display: grid;
  gap: 18px;
}
.path-label { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: rgba(19, 13, 42, 0.7); }
.path-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.path-steps li {
  background: var(--white);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  display: flex; justify-content: space-between; gap: 12px;
}
.path-steps li span { color: var(--ink-600); font-weight: 600; font-size: 14px; white-space: nowrap; }

/* Beta signup */

.beta {
  background: var(--ink-900);
  color: var(--mustard-100);
  border-radius: var(--radius-band);
  padding: 40px 24px;
  display: grid;
  gap: 32px;
}
.beta h2 { color: var(--mustard-100); }
.beta p { color: rgba(255, 244, 204, 0.85); }
.beta ul { margin: 16px 0 0; padding-left: 20px; color: rgba(255, 244, 204, 0.85); }
.beta li { margin: 4px 0; }

.signup {
  background: var(--mustard-100);
  color: var(--ink-900);
  border-radius: 24px;
  padding: 24px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 800; font-size: 15px; }
.field input[type="email"] {
  font: inherit;
  font-size: 17px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 2px solid var(--mustard-500);
  background: var(--white);
  color: var(--ink-900);
  width: 100%;
}
.field input[type="email"]:focus { outline: none; border-color: var(--lilac-500); }

fieldset { border: 0; margin: 0; padding: 0; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.platform input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.platform span {
  display: block;
  text-align: center;
  padding: 12px 10px;
  border-radius: 14px;
  border: 2px solid var(--mustard-500);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}
.platform input:checked + span { background: var(--cta); border-color: var(--cta); color: var(--white); }
.platform input:focus-visible + span { outline: 3px solid var(--lilac-500); outline-offset: 2px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-700); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--cta); flex: none; }

.form-status { font-size: 15px; font-weight: 700; min-height: 1.4em; }
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--ink-900); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup-done { display: none; text-align: left; }
.signup.is-done form { display: none; }
.signup.is-done .signup-done { display: grid; gap: 8px; }

/* Footer */

.site-footer { padding: 28px 0 32px; color: var(--ink-700); font-size: 14px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }
.site-footer a { color: var(--ink-900); font-weight: 700; }
.site-footer a[aria-current="page"] { text-decoration-thickness: 2px; }
.footer-credit { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; order: 1; }
.footer-credit span + span { font-size: 13px; }
.contact-page { min-height: 48vh; }
.contact-card { background: var(--ink-50); border-radius: 24px; padding: 28px; margin-top: 28px; }
.contact-card h2 { margin-top: 0; }
.contact-details { display: grid; gap: 22px; margin: 24px 0; }
.contact-details dt { font-size: 14px; color: var(--ink-700); }
.contact-details dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 800; }

/* Legal pages */

.legal-hero {
  background: var(--mustard-500);
  border-radius: 0 0 var(--radius-band) var(--radius-band);
  padding: 0 0 40px;
}
.legal-hero h1 { font-size: clamp(30px, 5vw, 44px); margin-top: 28px; }
.legal-hero p { color: var(--ink-700); margin-top: 8px; }
.legal { max-width: 720px; padding-top: 40px; padding-bottom: 24px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { color: rgba(19, 13, 42, 0.85); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0 0; }
.legal li { margin: 4px 0; }
.legal .box {
  background: var(--mustard-200);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  margin-top: 24px;
}

/* Simple one-screen landing page */

.simple .hero { min-height: calc(100vh - 110px); display: flex; flex-direction: column; }
.simple .hero-grid { flex: 1; }
.simple .signup { box-shadow: 0 2px 0 rgba(19, 13, 42, 0.06); max-width: 460px; width: 100%; justify-self: center; }

/* Larger screens */

@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; padding-top: 64px; gap: 56px; }
  .hero { padding-bottom: 72px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .path-card { grid-template-columns: 1fr 1fr; align-items: center; padding: 28px; }
  .beta { grid-template-columns: 1fr 1fr; padding: 56px; align-items: start; }
  section { padding: 96px 0; }
}
@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}

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