/* Pipo maandumisleht. Värvid ja kirjatüübid: docs/brief.md jaotis 7. */

/* Kirjatüübid on ise hostitud, et brauser ei pöörduks Google'i poole. */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fredoka-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fredoka-600-latin.woff2) format('woff2');
  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;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/nunito-latin.woff2) format('woff2');
  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 {
  --blue: #2f6bff;
  --blue-dark: #1f55e0;
  --yellow: #ffc53d;
  --yellow-light: #fff4d6;
  --ink: #1c2b4a;
  --ink-2: #33415c;
  --muted: #4a5873;
  --line: #d6ddeb;
  --line-2: #e1e6f0;
  --tint: #eef3ff;
  --bg-2: #f4f6fb;
  --dark: #141a2b;
  --dark-line: #2a3450;
  --dark-text: #c3cadb;
  --dark-muted: #9aa5bd;
  --font-display: Fredoka, Nunito, 'Segoe UI', system-ui, sans-serif;
  --font-body: Nunito, 'Segoe UI', system-ui, sans-serif;
}

/* Üldine */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: #ffffff;
}
body.page-status { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
input, button, textarea { font: inherit; }
::placeholder { color: #6b7893; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; }
svg { display: block; }
.container { max-width: 1168px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* Päis */
.site-header__inner {
  min-height: 72px;
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo--light { color: #ffffff; }
.logo--light:hover { color: #ffffff; }
.logo--light .logo__mark { width: 36px; height: 36px; }
.logo--light .logo__word { font-size: 28px; }

/* Nupud */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--blue); color: #ffffff; }
.btn--primary:hover { background: var(--blue-dark); color: #ffffff; }
.btn--primary:disabled { opacity: 0.7; cursor: wait; }
.btn--secondary {
  min-height: 48px;
  padding: 0 24px;
  background: var(--tint);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
}
.btn--secondary:hover { background: #e2eaff; color: var(--ink); }
.btn--block { width: 100%; min-height: 58px; border-radius: 16px; font-size: 21px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 80px; }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__title { font-size: clamp(40px, 4.8vw, 64px); line-height: 1.05; letter-spacing: -0.03em; }
.hero__lead { font-size: 19px; line-height: 1.55; max-width: 560px; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero__cta-hint { font-weight: 600; color: var(--muted); }
.hero__visual {
  position: relative;
  flex: 1 1 360px;
  max-width: 440px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}
.hero__blob {
  position: absolute;
  width: 130%;
  max-width: 620px;
  height: auto;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

/* Vestluse näidis hero's */
.chat {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(28, 43, 74, 0.14);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #e6eaf2; }
.chat__avatar {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.chat__who { display: flex; flex-direction: column; min-width: 0; }
.chat__name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.chat__verified { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #1f6b3f; font-weight: 600; }
.chat__messages { display: flex; flex-direction: column; gap: 10px; }
.chat__bubble {
  align-self: flex-start;
  max-width: 85%;
  background: #f1f4fa;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 6px;
  font-size: 15px;
  line-height: 1.4;
}
.chat__warn { background: var(--yellow); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.chat__warn-head { display: flex; align-items: center; gap: 10px; }
.chat__warn-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.2; }
.chat__warn-text { font-size: 14px; line-height: 1.45; }
.chat__warn-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chat__btn {
  flex: 1 1 120px;
  min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
}
.chat__btn--dark { background: var(--ink); color: #ffffff; }
.chat__btn--outline { border: 2px solid var(--ink); color: var(--ink); }
.chat__notice { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.chat__compose { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; }
.chat__draft { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__send {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
}

/* Kolm otsust */
.features { padding: 72px 0; background: var(--bg-2); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 680px; margin-bottom: 36px; }
.section-title { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; }
.section-lead { font-size: 18px; color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.card { background: #ffffff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--tint);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.card__icon--yellow { background: var(--yellow-light); color: var(--ink); }
.card__title { font-size: 24px; line-height: 1.15; }
.card__text { font-size: 16px; color: var(--ink-2); line-height: 1.55; }

/* Küsitlus */
.survey { padding: 72px 0 88px; }
.survey__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.survey .section-head { max-width: none; gap: 12px; margin-bottom: 0; }
.form {
  display: flex;
  flex-direction: column;
  gap: 36px;
  background: var(--bg-2);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
}
.question { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.question__legend, .field-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
}
.question__legend { margin-bottom: 14px; }
.question__num {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.question__hint { font-weight: 600; color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 18px 8px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}
.chip:hover, .option:hover { border-color: #b9c6e4; }
.chip:has(input:checked), .option:has(input:checked) { border-color: var(--blue); background: var(--tint); }
.chip:focus-within, .option:focus-within, .consent:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 16px; }
.chip:focus-within { border-radius: 999px; }
.chip input, .option input, .consent input { accent-color: var(--blue); width: 20px; height: 20px; margin: 0; flex: none; }
.chip input:focus-visible, .option input:focus-visible, .consent input:focus-visible { outline: none; }
.option input { margin-top: 2px; }
.muu-field { display: flex; flex-direction: column; gap: 6px; }
@supports selector(:has(input)) {
  .muu-field { display: none; }
  .question:has(input[value="muu"]:checked) .muu-field { display: flex; }
}
.muu-field__label { font-weight: 600; font-size: 15px; color: var(--muted); }
.input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  font-size: 17px;
  color: var(--ink);
}
.input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2); }
.input--area { min-height: 120px; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.email-block { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; border-top: 2px solid var(--line-2); }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { margin-top: 3px; }
.form__note { font-size: 14px; color: var(--muted); line-height: 1.5; }
.turnstile:empty { display: none; }
.form__note--accent { background: var(--yellow-light); color: var(--ink); border-radius: 12px; padding: 12px 16px; font-weight: 600; }

/* Vastuste loendur ja edenemisriba */
.counter { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.counter__text { font-size: 17px; font-weight: 600; color: var(--ink); }
.progress { width: 100%; height: 12px; border: 0; border-radius: 999px; background: var(--line-2); overflow: hidden; appearance: none; -webkit-appearance: none; }
.progress::-webkit-progress-bar { background: var(--line-2); border-radius: 999px; }
.progress::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
.progress::-moz-progress-bar { background: var(--blue); border-radius: 999px; }
/* Robotilõks: inimene seda välja ei näe */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Jalus */
.site-footer { background: var(--dark); color: #ffffff; padding: 56px 0 32px; }
.site-footer--slim { padding: 24px 0; margin-top: auto; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.footer__tagline { font-size: 15px; line-height: 1.55; color: var(--dark-text); }
.footer__nav { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__nav a { color: var(--yellow); text-decoration: none; font-weight: 700; }
.footer__nav a:hover { color: var(--yellow); text-decoration: underline; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--dark-line);
  font-size: 14px;
  color: var(--dark-muted);
}
.site-footer--slim .footer__bottom { border-top: 0; padding-top: 0; }

/* Olekulehed: täname, kinnitatud, loobutud, vead */
.status { flex: 1; padding: 48px 24px 80px; display: flex; align-items: center; justify-content: center; }
.status__card { max-width: 620px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.status__icon {
  width: 96px; height: 96px;
  border-radius: 28px;
  background: var(--yellow);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.status__icon--muted { background: var(--tint); color: var(--blue); }
.status__title { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; }
.status__text { font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.status__text strong { color: var(--ink); }
.status__small { font-size: 15px; line-height: 1.55; color: var(--muted); }
.status__small--accent { background: var(--yellow-light); color: var(--ink); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.status__form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.status__form .field-label { font-size: 16px; }
.status__link { font-weight: 700; }

/* Jagamine täname-lehel */
[hidden] { display: none !important; }
.share { width: 100%; display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.share--class { background: var(--bg-2); border-radius: 20px; padding: 20px; }
.share__title { font-weight: 700; font-size: 17px; color: var(--ink); }
.share__message {
  margin: 0;
  padding: 14px 16px;
  border-left: 0;
  border-radius: 14px;
  background: #ffffff;
  border: 2px dashed var(--line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  text-align: left;
  word-break: break-word;
}
.share__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.share__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}
.share__btn:hover { border-color: var(--blue); color: var(--ink); }
.share__btn--native { background: var(--blue); border-color: var(--blue); color: #ffffff; }
.share__btn--native:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #ffffff; }
.share__btn--primary { background: var(--blue); border-color: var(--blue); color: #ffffff; }
.share__btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #ffffff; }
/* Messengeri süvalink töötab ainult telefonis; hiirega seadmel peidame selle */
@media (hover: hover) and (pointer: fine) {
  .share__btn--mobile { display: none; }
}

/* Pikem tekst (privaatsusteade) */
.prose { max-width: 760px; margin: 0 auto; padding: 40px 24px 88px; display: flex; flex-direction: column; gap: 18px; }
.prose h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.1; }
.prose h2 { font-size: 24px; margin-top: 16px; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.6; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose .meta { color: var(--muted); font-size: 15px; }

/* Telefon */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding: 24px 0 56px; }
  .hero__inner { gap: 32px; }
  .hero__cta .btn { width: 100%; }
  .features, .survey { padding: 56px 0; }
  .form { padding: 20px; border-radius: 22px; }
  .chat { padding: 16px; border-radius: 22px; }
  .status { padding: 32px 20px 56px; }
}
