/* BMI & Kcal Rechner — landing page styles.
   Bright, friendly health theme: mint/teal accent (from the app icon) on light backgrounds,
   warm coral as secondary accent. Pure CSS, no framework. */

:root {
  /* palette — bright & friendly */
  --bg: #f4fbfa;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --line: #e3eeec;
  --line-2: #d2e6e2;
  --text: #143230;
  --muted: #5d7976;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --teal-soft: #e7f7f4;
  --coral: #ff7a59;
  --coral-soft: #fff0eb;
  --mint: #5eead4;
  --amber: #f6b73c;
  /* BMI categories */
  --cat-under: #4aa9e0;
  --cat-normal: #2bb673;
  --cat-over: #f6b73c;
  --cat-obese: #ef5e57;

  --radius: 20px;
  --radius-sm: 13px;
  --container: 1140px;
  --shadow: 0 18px 44px rgba(20, 184, 166, 0.12);
  --shadow-sm: 0 6px 18px rgba(20, 50, 48, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.02em; font-weight: 800; }
a { color: inherit; text-decoration: none; }
.accent { color: var(--teal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; font-family: inherit;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(20,184,166,.32); }
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20,184,166,.4); }
.btn--ghost { background: var(--teal-soft); color: var(--teal-dark); }
.btn--ghost:hover { background: #d6f1ec; transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand__icon { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav__links a:hover { color: var(--teal-dark); }
.nav__right { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
.lang { display: flex; gap: 4px; background: var(--teal-soft); padding: 4px; border-radius: 999px; }
.lang__btn { display: grid; place-items: center; width: 34px; height: 28px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; opacity: .55; transition: opacity .15s, background .15s; }
.lang__btn svg { border-radius: 3px; display: block; }
.lang__btn--active { opacity: 1; background: #fff; box-shadow: var(--shadow-sm); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero__blob {
  position: absolute; top: -180px; right: -160px; width: 620px; height: 620px; z-index: 0;
  background: radial-gradient(circle at center, rgba(94,234,212,.5), rgba(20,184,166,0) 65%);
  filter: blur(10px); pointer-events: none;
}
.hero__copy { position: relative; z-index: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line-2); color: var(--teal-dark);
  padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-sm);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.18); }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 18px 0 14px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 30ch; }
.hero__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 26px 0 16px; }
.hero__rating { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.stars { color: var(--amber); letter-spacing: 2px; }
.trust-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; }
.trust-chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--teal-dark); }
.trust-chips svg { width: 17px; height: 17px; color: var(--teal); background: var(--teal-soft); border-radius: 50%; padding: 2px; }
.store-badge img { height: 52px; display: block; transition: transform .15s; }
.store-badge:hover img { transform: translateY(-2px); }

/* ---------- calculator ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero__tool { position: relative; z-index: 1; }
.calc { padding: 26px; }
.calc__head h2 { font-size: 1.4rem; }
.calc__head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.calc__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide, .field--gender { grid-column: 1 / -1; }
.field__label { font-size: 13.5px; font-weight: 700; color: var(--text); display: flex; gap: 6px; align-items: baseline; }
.field__unit { color: var(--muted); font-weight: 600; font-size: 12px; }
.field input, .field select {
  font-family: inherit; font-size: 16px; font-weight: 600; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fbfffe; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.14); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg__opt span {
  display: block; text-align: center; padding: 11px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-2); font-weight: 700; font-size: 14.5px; color: var(--muted);
  cursor: pointer; transition: all .15s; background: #fbfffe;
}
.seg__opt input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.calc__buttons { display: flex; gap: 10px; margin-top: 4px; }
.calc__buttons .btn--primary { flex: 1; }
.calc__placeholder { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 16px; }
.calc__privacy { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 11px 14px; background: var(--teal-soft); border-radius: var(--radius-sm); color: var(--teal-dark); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.calc__privacy svg { width: 18px; height: 18px; flex-shrink: 0; }

.calc__result { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result__bmi, .result__kcal { background: var(--teal-soft); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.result__kcal { background: var(--coral-soft); }
.result__label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.result__value { font-size: 2.1rem; font-weight: 800; line-height: 1; }
.result__unit { font-size: 13px; font-weight: 700; color: var(--muted); }
.badge-cat { align-self: flex-start; margin-top: 4px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #fff; }
.bmi-scale { position: relative; height: 10px; margin: 18px 0 8px; }
.bmi-scale__bar { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--cat-under) 0 18%, var(--cat-normal) 18% 50%, var(--cat-over) 50% 70%, var(--cat-obese) 70% 100%); }
.bmi-scale__marker { position: absolute; top: -4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--text); transform: translateX(-50%); transition: left .4s ease; left: 0; box-shadow: var(--shadow-sm); }
.result__hint { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.result__cta { display: block; text-align: center; margin-top: 14px; font-weight: 700; color: var(--teal-dark); }
.result__cta:hover { text-decoration: underline; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section__head p { color: var(--muted); font-size: 1.05rem; margin-top: 10px; }

/* ---------- features ---------- */
.grid { display: grid; gap: 20px; }
.grid--features { grid-template-columns: repeat(3, 1fr); }
.feature { padding: 26px; transition: transform .18s, box-shadow .18s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature h3 { font-size: 1.18rem; margin: 16px 0 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; }
.feature__icon svg { width: 26px; height: 26px; }

/* ---------- privacy ---------- */
.section--privacy { background: linear-gradient(180deg, var(--teal-soft) 0%, var(--bg) 60%); }
.priv-shield { display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: var(--teal); color: #fff; box-shadow: 0 12px 28px rgba(20,184,166,.34); }
.priv-shield svg { width: 34px; height: 34px; }
.priv-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 26px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- screenshots ---------- */
.showcase { display: flex; justify-content: center; align-items: flex-end; gap: 26px; flex-wrap: wrap; }
.phone { width: 248px; border-radius: 32px; padding: 9px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.phone:nth-child(2) { transform: translateY(-18px) scale(1.02); }
.phone__shot { width: 100%; border-radius: 24px; display: block; }

/* ---------- ad slot ---------- */
.ad-slot { margin: 8px auto 0; max-width: 970px; min-height: 110px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--bg-alt); position: relative; }
.ad-slot__label { position: absolute; top: 8px; left: 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

/* ---------- premium ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 22px; justify-content: center; }
.plan { padding: 30px; position: relative; }
.plan__name { font-size: 1.25rem; }
.plan__price { font-size: 2.4rem; font-weight: 800; margin: 6px 0 18px; color: var(--teal-dark); }
.plan__list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }
.plan__list li { padding-left: 30px; position: relative; font-weight: 600; color: var(--text); }
.plan__list li.ok::before { content: "✓"; position: absolute; left: 0; color: var(--cat-normal); font-weight: 800; }
.plan__list li.no::before { content: "✕"; position: absolute; left: 0; color: var(--muted); font-weight: 800; }
.plan__list li.no { color: var(--muted); }
.plan--pro { border: 2px solid var(--teal); box-shadow: 0 22px 50px rgba(20,184,166,.2); }
.plan--pro .btn { width: 100%; }
.plan__badge { position: absolute; top: -13px; right: 24px; background: var(--coral); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 13px; border-radius: 999px; }

/* ---------- affiliate ---------- */
.grid--aff { grid-template-columns: repeat(3, 1fr); }
.aff { padding: 26px; text-align: center; transition: transform .18s, box-shadow .18s; }
.aff:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.aff__emoji { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 16px; background: var(--coral-soft); color: var(--coral); display: grid; place-items: center; }
.aff__emoji svg { width: 30px; height: 30px; }
.aff h3 { font-size: 1.12rem; margin-bottom: 8px; }
.aff p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.aff__disclosure { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 26px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; padding: 64px 0; text-align: center; }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { opacity: .92; font-size: 1.05rem; }
.cta-band .store-badge { margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq__item summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--teal); font-weight: 400; transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { color: var(--muted); padding: 0 0 18px; }

/* ---------- footer ---------- */
.footer { background: #0e2a28; color: #cfe6e2; padding: 50px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand { display: flex; gap: 14px; align-items: flex-start; max-width: 320px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { color: #9fc4be; font-size: 14px; margin-top: 4px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__h { font-weight: 800; color: #fff; margin-bottom: 4px; }
.footer__links a { color: #9fc4be; font-size: 14px; }
.footer__links a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; color: #88aaa5; }
.footer__disclaimer { max-width: 640px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .lead { max-width: none; }
  .grid--features, .grid--aff { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 36px 0 44px; }
  .calc__form { grid-template-columns: 1fr; }
  .grid--features, .grid--aff, .plans { grid-template-columns: 1fr; }
  .result__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: 28px; }
  .store-badge img { height: 48px; }
}
