/* Landing page "/" and "/en" – concept A "Ruhe statt Chaos". Same warm paper look as the app.
   No inline styles: the CSP of these pages only allows style-src 'self'. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-600.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f6f2ea;
  --card: #fffdf9;
  --ink: #2b2620;
  --soft: #6b6154;
  --line: #e9e1d4;
  --clay: #a14a24;
  --clay-deep: #8a3b19;
  --accent: #a84d26;
  --clay-soft: #f7e5da;
  --moss: #33663d;
  --honey: #7d570b;
  --honey-soft: #f6ead0;
  --night: #2b2620;
  --night-text: #f3ede4;
  --night-soft: #c9bfb1;
  --night-accent: #ee9669;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --wrap: 1180px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; }
a { color: var(--clay); }
a:hover { color: var(--clay-deep); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible { outline-color: var(--night-accent); }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
h1, h2, .display { font-family: var(--display); font-weight: 600; }
h1, h2, h3 { text-wrap: balance; }
.lead { margin: 0; color: var(--soft); }
.section-title { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; max-width: 18em; }

/* Header ------------------------------------------------------------------------------- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
}
.brand:hover { color: var(--ink); }
.brand img { border-radius: 10px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; font-size: 15px; }
.site-nav a { color: var(--soft); text-decoration: none; padding: 8px 0; }
.site-nav a:hover { color: var(--ink); }
.site-nav .pill {
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.site-nav .pill:hover { color: #fff; background: #000; }
@media (max-width: 720px) {
  .site-nav .optional { display: none; }
}
/* Phones: brand and language switch in one row; the hero's store button follows right below. */
@media (max-width: 440px) {
  .site-header { flex-wrap: nowrap; }
  .site-nav { flex-wrap: nowrap; }
  .site-nav .pill { display: none; }
}

/* Hero --------------------------------------------------------------------------------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
}
.hero-copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.tag {
  align-self: flex-start;
  background: var(--clay-soft);
  color: var(--clay-deep);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 14px;
}
.hero h1 { margin: 0; font-size: clamp(42px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.02em; }
.hero .lead { font-size: 20px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.cta-note { font-size: 15px; color: var(--soft); }
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  min-height: 52px;
}
.store-button:hover { color: #fff; background: #000; }
.store-button.is-soon:hover { background: var(--ink); }
.store-button svg { flex: none; }
.store-button span { display: flex; flex-direction: column; line-height: 1.15; }
.store-button small { font-size: 12px; opacity: 0.85; }
.store-button strong { font-size: 18px; font-weight: 600; }
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--soft); }
.checks li { display: flex; gap: 8px; align-items: center; }

.hero-media { flex: 1 1 380px; display: flex; justify-content: center; position: relative; min-height: 0; }
.hero-media .phone { width: min(300px, 78vw); position: relative; z-index: 1; }
.hero-media .phone.behind {
  position: absolute;
  z-index: 0;
  width: 260px;
  top: 56px;
  left: calc(50% - 250px);
  transform: rotate(-5deg);
  opacity: 0.96;
}
.hero-media.has-behind .phone:not(.behind) { margin-left: 150px; }
@media (max-width: 900px) {
  .hero-media .phone.behind { display: none; }
  .hero-media.has-behind .phone:not(.behind) { margin-left: 0; }
}

/* Phone frame around real app media ------------------------------------------------------ */
.phone {
  margin: 0;
  border-radius: 46px;
  background: var(--night);
  padding: 10px;
  box-shadow: 0 30px 60px -22px rgba(90, 58, 34, 0.42), 0 2px 6px rgba(43, 38, 32, 0.12);
}
.screen {
  position: relative;
  border-radius: 37px;
  overflow: hidden;
  background: var(--paper);
  padding: 30px 0 12px;
}
/* Dynamic Island and home indicator: the web recordings have no iOS status bar. */
.screen::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 31%;
  height: 15px;
  margin-left: -15.5%;
  border-radius: 999px;
  background: var(--night);
}
.screen::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 34%;
  height: 4px;
  margin-left: -17%;
  border-radius: 999px;
  background: rgba(43, 38, 32, 0.55);
}
.screen img, .screen video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 786 / 1704;
  background: var(--paper);
}

/* Problem strip ------------------------------------------------------------------------- */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.questions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.questions h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; }
.questions p { margin: 0; color: var(--soft); }

/* Features ------------------------------------------------------------------------------ */
.features { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h3 { margin: 0; font-size: 20px; }
.card p { margin: 0; color: var(--soft); }
.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--clay-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Showcase ------------------------------------------------------------------------------ */
.showcase { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.showcase .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 72px; }
.showcase-head { display: flex; flex-direction: column; gap: 14px; }
.showcase-head .lead { max-width: 36em; font-size: 19px; }
.demo {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 32rem);
  gap: 32px 80px;
  align-items: center;
  justify-content: center;
}
.demo:nth-of-type(even) { grid-template-columns: minmax(0, 32rem) minmax(0, 320px); }
.demo:nth-of-type(even) .demo-media { order: 2; }
.demo-copy { display: flex; flex-direction: column; gap: 14px; }
.demo-copy .step {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}
.demo-copy h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.demo-copy p { margin: 0; color: var(--soft); font-size: 18px; }
.demo-copy ol { margin: 4px 0 0; padding-left: 1.3em; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.demo-media {
  position: relative;
  width: 100%;
  max-width: 320px;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.demo-media .phone { width: 100%; }
/* Pause / play below the phone, so it never covers the recording. */
.video-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  font: 600 15px/1 var(--body);
  cursor: pointer;
}
.video-toggle:hover { background: var(--paper); }
.video-toggle[hidden] { display: none; }
.video-toggle svg { flex: none; }
.video-toggle .i-play, .video-toggle.paused .i-pause { display: none; }
.video-toggle.paused .i-play { display: block; }
/* Not started yet (reduced motion): a big play button in the middle of the phone. */
.video-toggle.start {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  padding: 16px 24px;
  border: 0;
  background: rgba(43, 38, 32, 0.9);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 10px 30px -8px rgba(43, 38, 32, 0.5);
}
.video-toggle.start:hover { background: var(--ink); }
@media (max-width: 760px) {
  .demo, .demo:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
  .demo:nth-of-type(even) .demo-media { order: 0; }
  .demo-media { max-width: 290px; }
  .demo-copy { max-width: none; }
}

.gallery-head { display: flex; flex-direction: column; gap: 8px; }
.gallery-head h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3vw, 30px); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.gallery li { display: flex; flex-direction: column; gap: 14px; }
.gallery .phone { border-radius: 36px; padding: 8px; }
.gallery .screen { border-radius: 29px; padding: 24px 0 10px; }
.gallery .screen::before { top: 7px; height: 12px; }
.gallery p { margin: 0; color: var(--soft); font-size: 15px; text-align: center; }
.gallery strong { display: block; color: var(--ink); font-size: 16px; }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .gallery { gap: 18px 14px; } .gallery .phone { border-radius: 28px; padding: 6px; } .gallery .screen { border-radius: 23px; } }

/* Steps (dark) ----------------------------------------------------------------------------- */
.night { background: var(--night); color: var(--night-text); }
.night .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 36px; }
.night h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.steps li { display: flex; flex-direction: column; gap: 8px; }
.steps .num { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1.1; color: var(--night-accent); }
.steps strong { font-size: 20px; }
.steps span:last-child { color: var(--night-soft); }

/* Price -------------------------------------------------------------------------------------- */
.price { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.price-copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.price-copy .lead { max-width: 32em; }
.price-card {
  flex: 1 1 320px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price-amount .display { font-size: 56px; line-height: 1; }
.price-amount span:last-child { color: var(--soft); }
.price-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { flex: none; margin-top: 4px; }
.button {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 600;
  min-height: 48px;
}
.button:hover { background: var(--clay-deep); color: #fff; }

/* FAQ ------------------------------------------------------------------------------------- */
.faq { background: var(--card); border-top: 1px solid var(--line); }
.faq .wrap { max-width: 820px; padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 4px; }
.faq h2 { margin: 0 0 18px; font-size: clamp(30px, 4vw, 40px); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--clay); font-size: 24px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--soft); }

/* Final CTA ------------------------------------------------------------------------------------ */
.final { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding-top: 96px; padding-bottom: 96px; }
.final h2 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
.final .cta-note { margin: 0; }

/* Footer ----------------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 36px;
  font-size: 14px;
  color: var(--soft);
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav a { padding: 4px 0; }

@media (max-width: 520px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero { padding-top: 16px; gap: 44px; padding-bottom: 64px; }
  .hero .lead { font-size: 18px; }
  .features, .price { padding-top: 64px; padding-bottom: 64px; }
  .showcase .wrap { padding-top: 64px; padding-bottom: 64px; gap: 56px; }
  .card, .price-card { padding: 24px; }
  .brand { font-size: 19px; }
}
