/* KinHelp — kinhelp.eu
   Palette from the app and marketing graphics: cream, teal, orange. */

:root {
  --cream: #f7f3ec;
  --cream-deep: #efe8dc;
  --white: #fffcf7;
  --teal: #0f6b5c;
  --teal-dark: #0a4a40;
  --teal-deep: #07352e;
  --teal-soft: #d8efe9;
  --orange: #e8912a;
  --orange-hover: #d07e1c;
  --orange-soft: #fde8c8;
  --text: #14302b;
  --muted: #4d615c;
  --line: #d9e3df;
  --danger: #b3261e;
  --shadow: 0 16px 40px rgba(20, 48, 43, 0.1);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 72px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(76px + var(--safe-bottom));
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-dark);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 0.75rem 1rem;
  background: var(--teal-deep);
  color: #fff;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  scroll-margin-top: calc(var(--header-h) + 8px);
}

#home,
#how,
#setup,
#who,
#safety,
#plans,
#faq,
#download {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.accent-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--teal-dark);
}

.accent-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: 0.85rem;
  border-radius: 99px;
  background: var(--orange);
}

.lead {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 40rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 107, 92, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.logo__mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo__kin { color: var(--teal-dark); }
.logo__help { color: var(--orange); }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav a:hover { color: var(--teal); }

.lang-switch {
  display: flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--teal);
  color: #fff;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--teal-dark);
  position: relative;
  margin: 0 auto;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--teal);
  color: #fff;
}

.btn--primary:hover {
  background: var(--teal-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal);
}

.btn--ghost:hover {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.play-badge {
  display: inline-block;
  height: 64px;
}

.play-badge img {
  height: 64px;
  width: auto;
}

/* Hero */

.hero {
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--teal-dark);
}

.hero__title::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 5px;
  margin-top: 1rem;
  border-radius: 99px;
  background: var(--orange);
}

.hero__lead {
  margin: 1.25rem 0 0;
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero__points {
  display: grid;
  gap: 0.55rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__points li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 600;
}

.hero__points li::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2' d='M3.5 8.2l2.8 2.8 6.2-6.4'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero-visual {
  margin: 0;
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: min(72vh, 640px);
  object-fit: cover;
  object-position: center 20%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.tap-badge {
  position: absolute;
  right: 6%;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 0.95rem;
}

.tap-pulse {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(232, 145, 42, 0.55);
  animation: pulse 1.8s ease-out infinite;
  position: relative;
}

.tap-pulse::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 14px rgba(232, 145, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 145, 42, 0); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual img { height: min(58vh, 520px); }
}

/* Problem band */

.problem {
  background: var(--teal-deep);
  color: #fff;
}

.problem .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.problem h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.problem p {
  margin: 0;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
}

.problem p strong {
  color: var(--orange-soft);
}

@media (max-width: 700px) {
  .problem .container { grid-template-columns: 1fr; }
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.5rem;
  border: 1px solid rgba(15, 107, 92, 0.08);
  box-shadow: 0 8px 24px rgba(20, 48, 43, 0.05);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.95rem;
}

.step h3 {
  margin: 0.9rem 0 0.45rem;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.control-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.1rem 1.35rem;
  background: var(--teal);
  color: #fff;
  border-radius: 18px;
  font-weight: 700;
}

.control-banner svg {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* First setup */

.setup {
  background: linear-gradient(180deg, #eef6f3 0%, var(--cream) 100%);
}

.setup__card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.setup__card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center 18%;
}

.setup__copy {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.setup__note {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--teal);
  color: #fff;
  border-radius: 16px;
  font-weight: 700;
}

.setup__note svg { flex-shrink: 0; }

@media (max-width: 800px) {
  .setup__card { grid-template-columns: 1fr; }
  .setup__card img { min-height: 240px; max-height: 320px; }
}

/* Roles */

.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.role {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(15, 107, 92, 0.08);
}

.role h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.3rem;
}

.role p {
  margin: 0;
  color: var(--muted);
}

.role__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
}

@media (max-width: 700px) {
  .roles { grid-template-columns: 1fr; }
}

/* Safety */

.safety__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.checks li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-weight: 600;
  font-size: 1.12rem;
}

.checks li svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.warn-box {
  background: var(--white);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.warn-box strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.warn-box p {
  margin: 0;
  color: var(--muted);
}

.safety-aside {
  display: grid;
  gap: 1rem;
}

.safety-foot {
  background: var(--teal-deep);
  color: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
}

@media (max-width: 800px) {
  .safety__grid { grid-template-columns: 1fr; }
}

/* Plans */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.plan {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  border: 1px solid rgba(15, 107, 92, 0.08);
}

.plan--family {
  background: var(--teal-dark);
  color: #fff;
  border: 0;
}

.plan--family p,
.plan--family li { color: rgba(255, 255, 255, 0.88); }

.plan h3 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}

.plan p { margin: 0 0 1rem; color: var(--muted); }

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.plan li::before {
  content: "✓ ";
  color: var(--orange);
  font-weight: 800;
}

@media (max-width: 700px) {
  .plans { grid-template-columns: 1fr; }
}

/* FAQ */

.faq {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.faq details {
  background: var(--white);
  border-radius: 14px;
  padding: 0.35rem 1.15rem;
  border: 1px solid rgba(15, 107, 92, 0.08);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 0;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* Download */

.download {
  background: var(--teal);
  color: #fff;
  text-align: center;
}

.download .eyebrow,
.download .accent-title,
.download .lead { color: #fff; }

.download .accent-title::after { margin-inline: auto; background: var(--orange); }

.download .lead {
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.88);
}

.download .play-badge { margin-top: 1.5rem; }

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer a {
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 600;
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem 1rem calc(0.75rem + var(--safe-bottom));
  background: rgba(247, 243, 236, 0.96);
  border-top: 1px solid var(--line);
}

.mobile-cta .btn { width: 100%; }

@media (max-width: 767px) {
  .mobile-cta { display: block; }
}

/* Privacy page */

.prose {
  max-width: 44rem;
  margin-inline: auto;
  padding-block: 3rem 5rem;
}

.prose h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--teal-dark);
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
  color: var(--teal-dark);
}

.prose p,
.prose li { color: var(--muted); }
