/* Kerno — Landingpage
   Editorial, handgebaut. Papier + Tinte + botanisches Grün, Amber als Streak-Akzent. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&display=swap');

:root {
  --paper:   #F4F1E9;
  --paper-2: #FBF9F3;
  --ink:     #17150F;
  --ink-2:   #4A463C;
  --muted:   #7C766A;
  --line:    #DED7C6;
  --line-2:  #E9E3D6;
  --green:   #1E4D38;
  --green-2: #2C6A4E;
  --green-bright: #3FA06B;
  --clay:    #BC5A33;
  --gold:    #C29433;
  --radius:  14px;
  --maxw:    1140px;
  --serif: 'Fraunces', ui-serif, 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-card: 0 1px 0 rgba(23,21,15,.02), 0 18px 40px -28px rgba(23,21,15,.30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: light; }
a, button, summary, .btn { touch-action: manipulation; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Feine Papierkörnung — nimmt der Seite die "digitale" Glätte */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Lesefortschritt oben — über transform (kein Layout-Animieren) */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--green); z-index: 100; transform: scaleX(0); transform-origin: left; transition: transform .1s linear; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
a { color: inherit; }
::selection { background: var(--green); color: var(--paper); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.06; letter-spacing: -0.015em; margin: 0; font-optical-sizing: auto; }

/* Section-Label */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--green); display: inline-block; }

/* --- Navigation --- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: baseline; justify-content: space-between; height: 70px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 25px; letter-spacing: -0.02em; text-decoration: none; }
.brand .dot { color: var(--green); }
.nav-links { display: flex; gap: 32px; align-items: baseline; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 0; background: var(--green); transition: width .25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-size: 15px; font-weight: 600; font-family: var(--sans);
  padding: 14px 24px; border-radius: 11px; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green); color: #F7F4EC; box-shadow: 0 10px 24px -12px rgba(30,77,56,.7); }
.btn-primary:hover { background: var(--green-2); box-shadow: 0 14px 30px -12px rgba(30,77,56,.75); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.soon {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); border: 1px solid var(--green); border-radius: 999px; padding: 8px 15px;
}
.soon .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(30,77,56,.5);} 70%{box-shadow:0 0 0 9px rgba(30,77,56,0);} 100%{box-shadow:0 0 0 0 rgba(30,77,56,0);} }

/* --- Hero --- */
.hero { padding: 92px 0 64px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(46px, 6.4vw, 80px); }
.hero h1 em { font-style: italic; color: var(--green); position: relative; white-space: nowrap; }
/* handgezogene Unterstreichung */
.hero h1 em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .12em;
  background: var(--green-bright); opacity: .35; border-radius: 2px;
  transform: scaleX(0); transform-origin: left; animation: underline 1s var(--ease) .5s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero p.lead { font-size: 20.5px; color: var(--ink-2); max-width: 31ch; margin: 26px 0 32px; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-meta { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; gap: 26px; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; gap: 9px; align-items: center; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green-bright); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 48px; } .hero { padding: 56px 0; } }

/* --- Phone Mockup (reines CSS) --- */
.phone-stage { position: relative; display: grid; place-items: center; }
.phone {
  width: 290px; height: 590px; background: #0E0D0A; border-radius: 46px; padding: 11px; position: relative;
  box-shadow: 0 2px 1px rgba(0,0,0,.1), 0 40px 80px -28px rgba(23,21,15,.5), inset 0 0 0 1px rgba(255,255,255,.07);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: linear-gradient(180deg, #1c1b16 0%, #131210 100%); color: #EDE9DF; padding: 26px 20px 18px; position: relative; }
.phone .island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 88px; height: 27px; background: #000; border-radius: 16px; z-index: 3; }
.scr-top { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.scr-top .date { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #908a7d; }
.scr-top h4 { font-family: var(--serif); font-size: 27px; font-weight: 600; margin: 4px 0 0; color: #F3EFE5; }
.ring { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--green-bright) 0% 66%, rgba(255,255,255,.10) 66% 100%); }
.ring i { width: 38px; height: 38px; border-radius: 50%; background: #15140f; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #C7E8D2; font-style: normal; font-variant-numeric: tabular-nums; }
.habit { display: flex; align-items: center; gap: 13px; padding: 14px; margin-top: 13px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; }
.habit .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 13px; }
.habit .nm { flex: 1; font-size: 14.5px; color: #E7E2D6; }
.habit .nm small { display: block; color: #8d8678; font-size: 11.5px; }
.check { width: 24px; height: 24px; border-radius: 50%; border: 1.8px solid #4b483f; flex: none; display: grid; place-items: center; }
.check.on { background: var(--green-bright); border-color: var(--green-bright); }
.check.on::after { content: "✓"; color: #0e1a12; font-size: 13px; font-weight: 800; }

/* schwebendes Lockscreen-Widget neben dem Phone */
.float-widget {
  position: absolute; right: -14px; bottom: 64px; z-index: 4; width: 168px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow-card); animation: floaty 7s ease-in-out infinite .6s;
}
.float-widget .fw-top { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.float-widget .fw-big { font-family: var(--serif); font-size: 30px; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.float-widget .fw-sub { font-size: 12.5px; color: var(--ink-2); }
.float-widget .bars { display: flex; gap: 4px; margin-top: 12px; align-items: flex-end; height: 30px; }
.float-widget .bars i { flex: 1; background: var(--green-bright); border-radius: 2px; opacity: .85; }
@media (max-width: 380px) { .float-widget { display: none; } }

/* --- Sections --- */
section.band { padding: 92px 0; border-top: 1px solid var(--line); position: relative; }
.sec-head { max-width: 60ch; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(31px, 4.2vw, 48px); margin-top: 18px; }
.sec-head p { color: var(--ink-2); font-size: 19px; margin-top: 16px; }

/* Werte-Streifen */
.values { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.values .wrap { display: flex; flex-wrap: wrap; gap: 14px 48px; padding: 26px 28px; align-items: center; justify-content: space-between; }
.values .v { font-family: var(--serif); font-size: clamp(17px, 2.3vw, 22px); color: var(--ink); display: inline-flex; align-items: center; gap: 12px; }
.values .v b { color: var(--green); font-weight: 600; }
.values .v span { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }

/* Manifest */
.manifest { font-family: var(--serif); font-size: clamp(28px, 3.7vw, 46px); line-height: 1.26; max-width: 20ch; }
.manifest b { color: var(--green); font-weight: 600; }
.manifest-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.manifest-side p { color: var(--ink-2); }
.manifest-side p + p { margin-top: 18px; }
@media (max-width: 820px){ .manifest-grid { grid-template-columns: 1fr; gap: 34px; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.feature { padding: 34px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease, transform .25s var(--ease); position: relative; }
.features .feature:nth-child(3n) { border-right: none; }
.features .feature:nth-last-child(-n+3) { border-bottom: none; }
.feature:hover { background: #fff; }
.feature .num { position: absolute; top: 22px; right: 24px; font-family: var(--mono); font-size: 12px; color: var(--line); transition: color .25s ease; }
.feature:hover .num { color: var(--green); }
.feature .ficon { width: 40px; height: 40px; color: var(--green); margin-bottom: 18px; }
.feature h3 { font-size: 21px; }
.feature p { color: var(--ink-2); font-size: 15.5px; margin: 10px 0 0; }
@media (max-width: 820px){
  .features { grid-template-columns: 1fr; }
  .feature, .features .feature:nth-child(3n) { border-right: none; }
  .feature { border-bottom: 1px solid var(--line); }
  .features .feature:last-child { border-bottom: none; }
}

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; background: var(--paper-2); transition: transform .25s var(--ease), box-shadow .25s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.plan.pro { background: var(--ink); color: var(--paper); border-color: var(--ink); position: relative; overflow: hidden; }
.plan.pro::before { content: ""; position: absolute; top: -40%; right: -20%; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(194,148,51,.22), transparent 70%); }
.plan h3 { font-size: 24px; }
.plan .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan.pro .tag { color: var(--gold); }
.plan .price { font-family: var(--serif); font-size: 42px; margin: 14px 0 4px; font-variant-numeric: tabular-nums; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; }
.plan li { padding: 10px 0; padding-left: 28px; position: relative; font-size: 15.5px; border-top: 1px solid var(--line); }
.plan.pro li { border-top-color: rgba(255,255,255,.13); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan.pro li::before { border-color: var(--gold); }
.plan .note { font-size: 13px; color: var(--muted); margin-top: 18px; }
.plan.pro .note { color: #b8b2a3; }
@media (max-width: 700px){ .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-family: var(--serif); font-size: 21px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; transition: color .2s ease; }
.faq summary:hover { color: var(--green); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-family: var(--sans); font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); margin: 16px 0 0; max-width: 70ch; }

/* CTA band */
.cta { text-align: center; }
.cta h2 { font-size: clamp(34px, 5.4vw, 60px); }
.cta h2 em { font-style: italic; color: var(--green); }
.cta p { color: var(--ink-2); font-size: 19px; margin: 18px auto 30px; max-width: 44ch; }

/* Footer */
footer { background: var(--ink); color: #C9C3B4; padding: 66px 0 38px; position: relative; z-index: 2; }
footer a { color: #E7E2D5; text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-brand { font-family: var(--serif); font-size: 30px; color: var(--paper); }
.foot-brand .dot { color: var(--green-bright); }
.foot-grid h2 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8b8576; margin: 0 0 14px; font-weight: 500; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 5px 0; font-size: 15px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 50px; padding-top: 22px; font-size: 13.5px; color: #8b8576; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 720px){ .foot-grid { grid-template-columns: 1fr; gap: 30px; } }

/* --- Scroll-Reveal --- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }

/* Legal pages */
.legal { padding: 60px 0 90px; max-width: 760px; }
.legal .eyebrow { margin-bottom: 16px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal h3 { font-size: 19px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin: 12px 0; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--green); }
.legal .back { font-size: 15px; display: inline-block; margin-bottom: 30px; text-decoration: none; color: var(--muted); }
.legal .back:hover { color: var(--ink); }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 48px; border-top: 1px solid var(--line); padding-top: 18px; }

/* --- Reduced Motion: alles ruhig --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 em::after { transform: scaleX(1); }
}
