/* geteverycorner.com — the landing page. Same palette and type as the app and the join page, so the
   screenshots sit in their own colours. One accent, hairlines where they carry information, the
   phone frames are plain CSS. Language blocks: landing.js puts lang-en or lang-de on <html>. */
:root {
  color-scheme: light dark;
  --bg: #f4f3fb;
  --card: #ffffff;
  --text: #1b1b2a;
  --muted: #5f5f73;
  --accent: #5551d6;
  --on-accent: #ffffff;
  --border: #dcdbee;
  --frame: #1b1b2a;
  --measure: 34em;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121220;
    --card: #1c1c2c;
    --text: #f1f0fa;
    --muted: #a9a8c0;
    --accent: #8f8aff;
    --on-accent: #121220;
    --border: #353552;
    --frame: #2a2a40;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 0 20px 48px;
}

/* Scoped to body descendants so the rule can never match the <html> element that carries the class. */
body .lang-en, body .lang-de { display: none; }
html.lang-en body .lang-en, html.lang-de body .lang-de { display: block; }
html.lang-en body span.lang-en, html.lang-de body span.lang-de { display: inline; }
html.lang-en body nav.lang-en, html.lang-de body nav.lang-de { display: flex; }

a { color: var(--accent); }
h1, h2 { font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5.5vw, 54px); line-height: 1.06; max-width: 12em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; max-width: 14em; }
p { margin: 0 0 16px; max-width: var(--measure); }
.lead { font-size: 20px; line-height: 1.45; color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); }

/* Header */
.top {
  max-width: 1040px;
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { border-radius: 9px; }

/* Sections */
main { max-width: 1040px; margin: 0 auto; }
section { padding: 48px 0; }
section + section { border-top: 1px solid var(--border); }
.band + section { border-top: 0; }

.band { margin: 0 calc(50% - 50vw); padding: 0 20px 56px; background: linear-gradient(160deg, #e4e1fb 0%, #f4f3fb 78%); }
.hero { padding: 16px 0 0; }
body { overflow-x: clip; }
.hero .wrap { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (prefers-color-scheme: dark) { .band { background: linear-gradient(160deg, #1f1d3a 0%, #121220 78%); } }
.hero-text { text-align: left; }
.store {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  border-radius: 999px;
  min-height: 52px;
  line-height: 52px;
  padding: 0 26px;
  margin: 8px 0 14px;
}
.store:focus-visible, footer a:focus-visible, .brand:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Phone frames: a plain rounded frame around the real capture, nothing that pretends to be hardware. */
.phone {
  margin: 0 auto;
  width: min(300px, 78vw);
  border: 9px solid var(--frame);
  border-radius: 42px;
  background: var(--frame);
  overflow: hidden;
  line-height: 0;   /* no descender gap under the image */
}
.phone img { display: block; width: 100%; height: auto; border-radius: 33px; }
.phone.small { width: min(260px, 70vw); }

/* The timeline: every chore sits where its interval falls, from a week to two years. On a phone it
   becomes a plain vertical list in the same order, with the interval written out. */
.knows-text p { color: var(--muted); }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.timeline .axis, .timeline .tick { display: none; }
.timeline .item { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.timeline .item:last-child { border-bottom: 1px solid var(--border); }
.timeline .item img { width: 48px; height: 48px; border-radius: 10px; background: var(--card); }
.timeline .item .name { font-weight: 600; font-size: 16px; }
.timeline .item .when { color: var(--accent); font-weight: 600; font-size: 15px; white-space: nowrap; }

/* The features: four full-width bands, white and lavender in turn, text and one phone each. */
.feature { margin: 0 calc(50% - 50vw); padding: 48px 20px; border-top: 0; }
.feature:nth-of-type(even) { background: var(--card); }   /* the first feature band is white, right after the lavender timeline */
@media (prefers-color-scheme: dark) { .feature:nth-of-type(even) { background: #1c1c2c; } }
.feature .wrap { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.kicker { color: var(--accent); font-weight: 700; font-size: 14px; margin: 0 0 8px; }
.feature-text h2 { margin-bottom: 10px; }
.feature-text p { color: var(--muted); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: var(--bg); color: var(--accent); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 6px 12px; }
.feature:nth-of-type(odd) .facts li { background: var(--card); }
.feature .phone { margin: 0 auto; }

/* Closing band: privacy and price on the left, the store button on the right. */
.closeband { margin: 0 calc(50% - 50vw); padding: 56px 20px 64px; background: linear-gradient(160deg, #e4e1fb 0%, #f4f3fb 100%); border-top: 0; }
@media (prefers-color-scheme: dark) { .closeband { background: linear-gradient(160deg, #1f1d3a 0%, #121220 100%); } }
.closeband .wrap { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.closeband h2 { max-width: none; }
.closeband p { color: var(--muted); }
.closeband-cta { text-align: left; }
.closeband-cta .store { margin: 0 0 10px; }
.closeband-cta .fine { margin: 0; }

footer {
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
footer p { margin-bottom: 8px; }
footer nav { gap: 18px; flex-wrap: wrap; }
footer nav a { min-height: 44px; display: inline-flex; align-items: center; }

@media (min-width: 820px) {
  section { padding: 72px 0; }
  .band { padding-bottom: 72px; }
  .hero { padding-top: 28px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .hero .phone { margin: 0 0 0 auto; }
  .knows { display: block; }
  .knows-text { max-width: 40em; }
  .timeline { height: 380px; margin-top: 40px; }
  .timeline .axis { display: block; position: absolute; left: 0; right: 0; top: 236px; height: 2px; background: var(--border); }
  .timeline .tick { display: block; position: absolute; left: var(--x); top: 226px; width: 2px; height: 22px; background: var(--border); }
  .timeline .tick span { position: absolute; top: 28px; left: 0; transform: translateX(-50%); font-size: 13px; color: var(--muted); white-space: nowrap; display: none; }
  html.lang-en .timeline .tick span.lang-en, html.lang-de .timeline .tick span.lang-de { display: block; }
  .timeline .item { position: absolute; left: var(--x); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; width: 104px; padding: 0; border: 0; text-align: center; }
  .timeline .item:last-child { border: 0; }
  .timeline .item img { width: 72px; height: 72px; border-radius: 0; background: transparent; }
  .timeline .item .name { font-size: 12.5px; line-height: 1.2; }
  .timeline .item .when { display: none; }
  .timeline .item.high { top: 0; }
  .timeline .item.low { top: 112px; }
  .timeline .item.below { top: 278px; }
  /* Each chore is pinned to the axis: a hairline down (or up) to a dot on the line. */
  .timeline .item::before, .timeline .item::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); }
  .timeline .item::after { width: 1px; background: var(--border); }
  .timeline .item::before { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); box-sizing: content-box; z-index: 1; }
  .timeline .item.high::after { top: 100px; height: 130px; }
  .timeline .item.high::before { top: 230px; }
  .timeline .item.low::after { top: 100px; height: 18px; }
  .timeline .item.low::before { top: 118px; }
  .timeline .item.below::after { top: -36px; height: 30px; }
  .timeline .item.below::before { top: -48px; }
  .timeline .tick { background: transparent; border-left: 1px dashed var(--border); width: 0; top: 236px; height: 14px; }
  .timeline .tick span { top: 18px; }
  .feature { padding: 72px 20px; }
  .feature .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .feature .phone { margin: 0 0 0 auto; width: 280px; }
  .feature:nth-of-type(odd) .feature-text { order: 2; }
  .feature:nth-of-type(odd) .phone { order: 1; margin: 0 auto 0 0; }
  .closeband .wrap { grid-template-columns: 1.2fr 0.8fr; gap: 48px; }
  .closeband-cta { text-align: right; }

}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

