/* Knodl Life marketing site. Colours and fonts match the app (src/index.css). */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("fonts/dm-serif-display-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f6f1;
  --fg: #252a36;
  --card: #ffffff;
  --muted: #f3f4f6;
  --muted-fg: #818898;
  --border: #e6e8ec;
  --primary: #ff2e80;
  --primary-fg: #ffffff;
  --accent: #42977b;
  --shadow: 0 18px 40px -18px rgba(37, 42, 54, .28);
  --radius: 18px;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "DM Serif Display", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111419;
    --fg: #dde0e5;
    --card: #171b22;
    --muted: #1f242d;
    --muted-fg: #818898;
    --border: #252b35;
    --accent: #4aa688;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; line-height: 1.1; margin: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }
.muted { color: var(--muted-fg); }

/* Brand mark: KN◯DL LIFE, the ring spins like in the app */
.logo { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: 19px; text-decoration: none; color: var(--fg); white-space: nowrap; }
.ring {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(from 0deg, #ff2e80, #ff8cbc, #ff2e80, #d80e60, #ff2e80);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } html { scroll-behavior: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap;
  transition: opacity .15s, background .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { border: 1px solid var(--border); color: var(--fg); }
.btn-ghost:hover { background: var(--muted); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.nav { display: flex; align-items: center; gap: 14px; }
.nav a.link { font-size: 14px; font-weight: 500; text-decoration: none; }
.nav a.link:hover { color: var(--primary); }
.lang { display: flex; gap: 2px; font-size: 12px; font-weight: 600; }
.lang a { text-decoration: none; padding: 4px 6px; border-radius: 6px; color: var(--muted-fg); }
.lang a[aria-current="page"] { color: var(--fg); background: var(--muted); }
@media (max-width: 560px) { .nav a.link { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 0 56px; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); margin-top: 14px; }
.hero p.lead { font-size: 18px; color: var(--muted-fg); max-width: 30em; margin: 20px 0 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.phone { width: 250px; margin: 0 auto; border-radius: 36px; padding: 10px; background: linear-gradient(#2b2e36, #16181d); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.phone img { border-radius: 27px; border: 1px solid #000; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 40px; } }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 64px; }
.fact { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.fact strong { display: block; font-family: var(--font-heading); font-size: 30px; font-weight: 400; color: var(--primary); line-height: 1.1; }
.fact span { font-size: 14px; color: var(--muted-fg); }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }

/* Sections */
section { padding: 64px 0; }
section h2 { font-size: clamp(28px, 4vw, 36px); margin-top: 8px; }
.band { background: var(--muted); border-block: 1px solid var(--border); }

/* Features */
.features { margin-top: 36px; border-top: 1px solid var(--border); }
.feature { display: grid; grid-template-columns: 56px 1fr 150px; gap: 24px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--border); }
.feature .num { font-family: var(--font-heading); font-size: 14px; color: var(--muted-fg); }
.feature h3 { font-size: 22px; }
.feature p { margin: 8px 0 0; color: var(--muted-fg); font-size: 15px; max-width: 32em; }
.feature img { width: 130px; justify-self: end; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); }
@media (max-width: 640px) {
  .feature { grid-template-columns: 1fr; gap: 14px; }
  .feature img { justify-self: start; }
}

/* Recipes */
.recipes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.recipe { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.recipe img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.recipe figcaption { padding: 12px 14px 14px; font-size: 14px; font-weight: 600; }
.recipe figcaption span { display: block; font-weight: 400; font-size: 13px; color: var(--muted-fg); }
@media (max-width: 760px) { .recipes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .recipes { grid-template-columns: 1fr; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.plan h3 { font-size: 22px; }
.plan ul { margin: 14px 0 0; padding: 0; list-style: none; font-size: 14.5px; }
.plan li { padding: 5px 0 5px 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.plan.highlight { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }

/* Status + CTA */
.status { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; font-size: 15px; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #f59e0b; flex-shrink: 0; }
.cta { text-align: center; }
.cta p { color: var(--muted-fg); margin: 12px auto 26px; max-width: 32em; }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: 40px; margin-bottom: 24px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--fg); }
.todo { background: color-mix(in srgb, #f59e0b 16%, transparent); border-radius: 4px; padding: 0 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 36px; font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted-fg); text-underline-offset: 3px; }
.site-footer nav a:hover { color: var(--fg); }

/* "Schon ein Konto? Anmelden" under the hero buttons -- the header's
   Anmelden link is hidden on phones. */
.login-hint { margin-top: 14px; font-size: 14px; }
.login-hint a { color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
