/* Klepsy landing. Colors and sizes from docs/design (landing.dc.html, README.md). */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(../fonts/open-sans-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url(../fonts/open-sans-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #0C4A5E;
  --accent-hover: #083847;
  --drop: #5FD0D9;
  --notify: #FF8A3D;
  --text: #0F2A33;
  --text-strong: #2C4A54;
  --muted: #4F6870;
  --border: #D5E6EA;
  --border-strong: #B9D3D9;
  --tint: #DDF1F4;
  --section: #F1F8F9;
  --chat: #F6FBFC;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #FFFFFF;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

h1, h2, h3, p { margin: 0; }

h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h3 { font-size: 20px; font-weight: 700; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section--tint { background: var(--section); }

.section__head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 48px; }

.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
.text { font-size: 16px; line-height: 1.6; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--accent-hover); color: #FFFFFF; }

.btn--secondary { border: 1px solid var(--border-strong); background: #FFFFFF; color: var(--text); font-weight: 600; }
.btn--secondary:hover { border-color: var(--accent); color: var(--text); }

.btn--small { min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; font-weight: 600; }

/* Header */

/* Dark and pinned at the top: stands out on both white and tinted sections */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--accent);
  box-shadow: 0 6px 24px rgba(8, 56, 71, 0.20);
}

.header .btn--secondary { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: #FFFFFF; }
.header .btn--secondary:hover { border-color: #FFFFFF; color: #FFFFFF; }

/* Menu links land below the pinned header, not under it */
section[id] { scroll-margin-top: 80px; }

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #FFFFFF; }
.brand:hover { color: #FFFFFF; }
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0E5A6B;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand__name { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav__link { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.nav__link:hover { color: #FFFFFF; }

/* Hero */

.hero { background: var(--section); }

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent-hover);
  font-size: 14px;
  font-weight: 600;
}

/* Chat preview */

.hero__preview { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }

.chat {
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(12, 74, 94, 0.10);
  overflow: hidden;
}

.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.chat__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat__title { display: flex; flex-direction: column; }
.chat__name { font-weight: 700; font-size: 15px; }
.chat__sub { font-size: 13px; color: var(--muted); }

.chat__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--chat); }

.bubble {
  align-self: flex-start;
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 14px 14px 14px 4px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
}

.chat__foot { padding: 12px 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* Cards */

.cards { display: flex; flex-wrap: wrap; gap: 20px; }

.card {
  flex: 1 1 320px;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card--step { flex-basis: 300px; }

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* Beta (instead of prices until payments start) */

.beta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 2px solid var(--accent);
  border-radius: 20px;
}

.beta__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.beta__price { font-size: 40px; font-weight: 800; line-height: 1.1; }

.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--text-strong); }
.checks li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* FAQ */

.faq { max-width: 800px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }

.faq__item { padding: 20px 24px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--border); }
.faq__item summary { font-size: 17px; font-weight: 700; cursor: pointer; }
.faq__item p { margin-top: 12px; }

/* Closing call to action */

.cta { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.cta h2 { max-width: 720px; }
.cta p { max-width: 560px; }
.cta__logo { width: 112px; height: 112px; }

/* Footer */

.footer { border-top: 1px solid var(--border); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 14px;
  color: var(--muted);
}
.footer a { color: var(--muted); }

/* Phones */

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero__inner { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .nav__link { display: none; }
  .brand__name { font-size: 22px; }
  .beta { padding: 24px; }
  .beta__price { font-size: 32px; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
}
