/* Welltick public pages. Same green, same dark mode as the app. No scripts, so it loads fast. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f8f5;
  --line: #e2eae4;
  --text: #0e1b13;
  --muted: #4d5f54;
  --primary: #15803d;
  --primary-hover: #166534;
  --on-primary: #ffffff;
  --primary-soft: #e6f5ea;
  --primary-ink: #14532d;
  --warn-bg: #fff6dc;
  --warn-ink: #6b4a00;
  --shadow: 0 1px 2px rgb(14 40 24 / 0.06), 0 8px 24px rgb(14 40 24 / 0.08);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09100c;
    --surface: #101a14;
    --surface-2: #16221b;
    --line: #213228;
    --text: #e9f2ec;
    --muted: #9db2a4;
    --primary: #4ade80;
    --primary-hover: #6ee7a0;
    --on-primary: #052e14;
    --primary-soft: #12301f;
    --primary-ink: #a7f3c4;
    --warn-bg: #3a2f10;
    --warn-ink: #fcd98a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.45);
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.6 ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Noto Sans',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}
a {
  color: var(--primary);
}
:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}
.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo img {
  width: 32px;
  height: 32px;
}
.top nav {
  display: none;
  gap: 22px;
  margin-left: auto;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.top nav a:hover {
  color: var(--text);
}
.top .btn {
  margin-left: auto;
}
@media (min-width: 820px) {
  .top nav {
    display: flex;
  }
  .top .btn {
    margin-left: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.12s;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: var(--surface-2);
}
.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--primary-soft), var(--bg) 70%);
}
.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--primary-ink);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  font-weight: 800;
}
.hero .lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin-top: 18px;
  max-width: 34em;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.fine {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 14px;
}
.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--surface);
}
.hero-shots {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: flex-start;
}
.hero-shots .shot {
  max-width: 270px;
}
.hero-shots .shot + .shot {
  margin-top: 40px;
}
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
  }
}

/* Sections */
section {
  padding: 72px 0;
}
.section-head {
  max-width: 40em;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
}
.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 12px;
}
.alt {
  background: var(--surface-2);
}
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  list-style: none;
  padding: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.card h3 {
  font-size: 1.15rem;
  margin: 14px 0 8px;
}
.card p {
  color: var(--muted);
  font-size: 0.97rem;
}
.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}
.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 52px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
}
.steps h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.steps p {
  color: var(--muted);
}

/* Showcase */
.showcase {
  display: grid;
  gap: 40px;
}
.feature-row {
  display: grid;
  gap: 28px;
  align-items: center;
}
.feature-row h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.feature-row p {
  color: var(--muted);
}
.feature-row ul {
  margin-top: 14px;
  padding-left: 1.2rem;
  color: var(--muted);
}
.feature-row .shot.phone {
  max-width: 260px;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .feature-row.flip .copy {
    order: 2;
  }
}

/* Pricing */
.plans {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}
.plan.featured {
  border: 2px solid var(--primary);
}
.plan h3 {
  font-size: 1.3rem;
}
.price {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 8px 0 14px;
  letter-spacing: -0.02em;
}
.plan ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.plan li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  margin-right: 10px;
}

/* FAQ */
.faq {
  max-width: 48em;
  display: grid;
  gap: 10px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px 0;
  list-style-position: outside;
}
.faq details p {
  color: var(--muted);
  padding-bottom: 18px;
}

/* Final call and footer */
.final {
  text-align: center;
  background: var(--primary-soft);
}
.final h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
}
.final p {
  color: var(--muted);
  margin: 12px auto 26px;
  max-width: 34em;
}
.final .cta {
  justify-content: center;
}
footer {
  padding: 36px 0;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}
footer nav {
  display: flex;
  gap: 20px;
}

/* Reading pages (privacy) */
.doc {
  max-width: 46em;
  padding: 48px 0 72px;
}
.doc h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
}
.doc .updated {
  color: var(--muted);
  margin-top: 8px;
}
.doc h2 {
  font-size: 1.4rem;
  margin: 40px 0 10px;
}
.doc p,
.doc li {
  color: var(--text);
}
.doc p + p,
.doc p + ul,
.doc ul + p {
  margin-top: 12px;
}
.doc ul {
  padding-left: 1.3rem;
  display: grid;
  gap: 6px;
}
.doc .summary {
  background: var(--primary-soft);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 28px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.95rem;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.doc th {
  color: var(--muted);
  font-weight: 650;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* A Telegram-style message, drawn in HTML so it stays sharp and needs no image */
.chat {
  max-width: 340px;
  margin-inline: auto;
  width: 100%;
  padding: 28px 20px;
  border-radius: 22px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
}
.bubble {
  position: relative;
  background: var(--surface);
  border-radius: 6px 18px 18px 18px;
  padding: 12px 16px 24px;
  box-shadow: 0 1px 2px rgb(14 40 24 / 0.1);
  display: grid;
  gap: 2px;
}
.bubble-title {
  font-weight: 700;
}
.bubble-q {
  margin-top: 10px;
}
.bubble-time {
  position: absolute;
  right: 12px;
  bottom: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}
.bubble-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}
.bubble-buttons span {
  background: color-mix(in srgb, var(--primary) 16%, var(--surface));
  border-radius: 10px;
  padding: 10px 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}
