/* DoItClever landing — hand-written CSS mirroring the app's Tailwind look:
   slate-50 page, white rounded cards with a slate ring, indigo-600 actions,
   amber for coins, emoji as icons, system font stack. No external assets. */

:root {
  --bg: #f8fafc;            /* slate-50  */
  --card: #ffffff;
  --ring: #e2e8f0;          /* slate-200 */
  --text: #0f172a;          /* slate-900 */
  --text-2: #475569;        /* slate-600 */
  --muted: #64748b;         /* slate-500 */
  --primary: #4f46e5;       /* indigo-600 */
  --primary-hover: #4338ca; /* indigo-700 */
  --primary-soft: #eef2ff;  /* indigo-50 */
  --primary-ring: #c7d2fe;  /* indigo-200 */
  --amber-soft: #fffbeb;    /* amber-50  */
  --amber-ring: #fde68a;    /* amber-200 */
  --amber-text: #92400e;    /* amber-800 */
  --ok: #059669;            /* emerald-600 */
  --err: #e11d48;           /* rose-600  */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* height:auto is load-bearing: without it a width-constrained img keeps its
   height ATTRIBUTE and stretches vertically (the phone frames did exactly that). */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ring);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.5rem; }
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none;
}
.brand img { width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.site-nav a.nav-link { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
.site-nav a.nav-link:hover { color: var(--text); }
@media (max-width: 44rem) { .site-nav .nav-link { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.55rem 1.35rem; border-radius: 1rem; border: 0;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-ghost { background: var(--card); color: var(--primary); box-shadow: inset 0 0 0 1px var(--ring); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-small { min-height: 38px; padding: 0.35rem 1rem; font-size: 0.9rem; }

/* ---------- Sections & typography ---------- */
/* section.wrap (not bare `section`): the .wrap class rule sets a padding
   shorthand and would win over an element selector, zeroing the rhythm. */
section.wrap { padding: 3.5rem 1.25rem; }
h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.2;
  margin: 0 0 1.25rem; letter-spacing: -0.015em;
}
.lead-2 { font-size: 1.1rem; color: var(--text-2); max-width: 38rem; margin: 0 0 1rem; }
.section-note { color: var(--muted); font-size: 0.9rem; margin-top: 1.25rem; max-width: 38rem; }

/* ---------- Split sections: text beside phone screenshots ----------
   Media alternates sides via .flip; on small screens everything stacks. */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split-media { display: flex; gap: 1.25rem; justify-content: center; align-items: flex-start; }
@media (min-width: 52rem) {
  .split { grid-template-columns: minmax(0, 1fr) auto; }
  .split.flip .split-media { order: -1; }
  .split.flip { grid-template-columns: auto minmax(0, 1fr); }
}

.phone {
  margin: 0; width: min(13.5rem, 42vw);
  background: var(--card); border: 1px solid var(--ring); border-radius: 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12); overflow: hidden; padding: 0.5rem;
}
.split-media.single .phone { width: min(15rem, 72vw); }
.phone img { border-radius: 1.5rem; }
.phone figcaption { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 0.5rem 0 0.25rem; }

/* ---------- Hero ---------- */
.hero.wrap { padding: 3.5rem 1.25rem 3rem; }
.badge {
  display: inline-flex; gap: 0.4rem; align-items: center;
  background: var(--amber-soft); color: var(--amber-text);
  border: 1px solid var(--amber-ring); border-radius: 999px;
  padding: 0.25rem 0.8rem; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem); line-height: 1.12;
  margin: 0 0 1rem; letter-spacing: -0.02em;
}
.hero .lead { font-size: 1.15rem; color: var(--text-2); max-width: 34rem; margin: 0 0 1.75rem; }
.hero .cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  background: var(--card); border: 1px solid var(--ring); border-radius: 999px;
  padding: 0.3rem 0.85rem; font-size: 0.85rem; color: var(--text-2); white-space: nowrap;
}
@media (max-width: 51.99rem) {
  .hero .split-text { text-align: center; }
  .hero .cta, .hero .chips { justify-content: center; }
  .hero .lead { margin-inline: auto; }
}

/* ---------- Day steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--card); border: 1px solid var(--ring); border-radius: 1.25rem;
  padding: 1rem 1.25rem 1rem 3.5rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 1rem; top: 1.05rem;
  width: 1.75rem; height: 1.75rem; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.steps p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

/* ---------- Tagesmoment ---------- */
.quiet { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.3rem; }
.quiet li { font-weight: 700; font-size: 1.05rem; }
.afterthought { color: var(--muted); font-style: italic; max-width: 34rem; margin: 0; }

/* ---------- Trust / feature lists ---------- */
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 44rem) { .trust { grid-template-columns: 1fr 1fr; } }
.trust.trust-stack { grid-template-columns: 1fr; max-width: 38rem; }
.trust li {
  background: var(--card); border: 1px solid var(--ring); border-radius: 1rem;
  padding: 0.8rem 1rem; color: var(--text-2); font-size: 0.95rem;
  display: flex; gap: 0.7rem; align-items: baseline;
}
.trust li strong { color: var(--text); }

/* ---------- Founder story ---------- */
.founder-card {
  background: var(--primary-soft); border: 1px solid var(--primary-ring);
  border-radius: 1.5rem; padding: 2rem; max-width: 44rem; margin: 0 auto;
}
.founder-card h2 { font-size: clamp(1.3rem, 2.8vw, 1.7rem); }
.founder-card p { color: var(--text-2); margin: 0 0 1rem; }
.founder-card p:last-child { margin-bottom: 0; }

/* ---------- Inhalte + Vertrauen: one visual band, two sections ---------- */
.band { background: var(--card); border-top: 1px solid var(--ring); border-bottom: 1px solid var(--ring); }
.band .trust li { background: var(--bg); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; max-width: 44rem; }
.faq details { background: var(--card); border: 1px solid var(--ring); border-radius: 1rem; }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 0.9rem 1.1rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { margin: 0; padding: 0 1.1rem 1rem; color: var(--text-2); font-size: 0.95rem; }
.faq details a { color: var(--primary); }

/* ---------- Cards (beta form) ---------- */
.card {
  background: var(--card); border: 1px solid var(--ring); border-radius: 1.5rem;
  padding: 1.5rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.card .emoji { font-size: 2rem; display: block; margin-bottom: 0.6rem; }
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.card p { margin: 0 0 1rem; color: var(--text-2); font-size: 0.95rem; }

/* ---------- Waitlist form ---------- */
.narrow-card { max-width: 34rem; margin: 0 auto; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.field input[type='email'],
.field input[type='text'] {
  width: 100%; min-height: 44px; border: 1px solid var(--ring); border-radius: 1rem;
  padding: 0.5rem 0.9rem; font: inherit; background: #fff; color: var(--text);
}
.field input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--text-2); }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; flex: none; }
/* Honeypot: visually gone, still in the DOM for bots that fill every field. */
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: 1rem; font-weight: 600; display: none; }
.status.ok { display: block; color: var(--ok); }
.status.err { display: block; color: var(--err); }

/* ---------- Legal pages ---------- */
.legal { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.legal h1 { font-size: 1.8rem; letter-spacing: -0.01em; }
.legal h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
.legal p { color: var(--text-2); }
.back { display: inline-block; margin-bottom: 1.5rem; color: var(--text-2); text-decoration: none; }
.back:hover { color: var(--text); }
.muted { color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ring); margin-top: 3rem; padding: 2rem 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .spacer { flex: 1; }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 3rem 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
