:root {
  --color-bg: #F8F5EE;
  --color-surface: #EFE9DC;
  --color-text: #09333A;
  --color-divider: rgba(9, 51, 58, .16);
  --color-accent: #009FA8;
  --color-accent-200: #C9EDEE;
  --color-accent-300: #9ADCDF;
  --color-accent-400: #5CC6CB;
  --color-accent-600: #008A92;
  --color-accent-700: #00737A;
  --color-accent-800: #0B5A60;
  --color-accent-2-200: #F9D2E7;
  --color-accent-2-800: #8A2C5F;
  --color-neutral-200: #E9E3D6;
  --color-neutral-300: #D9D2C3;
  --color-neutral-500: #9F9A90;
  --color-neutral-700: #56605D;
  --color-neutral-800: #34484A;
  --color-neutral-900: #09333A;
  --brand-cta: #FFD52A;
  --brand-cta-600: #F5C800;
  --brand-cta-700: #E3B600;
  --brand-pink: #FF2E9A;
  --shadow-sm: 0 1px 2px rgba(9, 51, 58, .10);
  --shadow-md: 0 4px 12px rgba(9, 51, 58, .12);
  --shadow-lg: 0 14px 34px rgba(9, 51, 58, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grid: 48px;
  --gutter: 20px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 15px/1.55 var(--font);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    linear-gradient(var(--color-neutral-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-neutral-200) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; }
h2 { font-size: 30px; line-height: 1.1; letter-spacing: -.025em; }

a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: rgba(0, 159, 168, .3); }

[hidden] { display: none !important; }

.page {
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--brand-cta);
  color: var(--color-text);
  font-family: var(--font);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s;
}
.btn:hover { background: var(--brand-cta-600); color: var(--color-text); }
.btn:active { background: var(--brand-cta-700); }

.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 56px; padding: 0 36px; font-size: 18px; }
.btn-block { width: 100%; }

.note { font-size: 14px; color: var(--color-neutral-800); }

.ico { flex: none; width: 16px; height: 16px; margin-top: 2px; }

/* ---------- Header ---------- */

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  margin: 12px 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 16px;
  background: #fff;
  border: 1px solid var(--color-divider);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.logo {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}
.logo:hover { color: var(--color-text); }

/* ---------- Hero ---------- */

.hero-copy {
  padding: 36px var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.hl { color: var(--brand-pink); }

.lead {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-neutral-800);
  text-wrap: pretty;
}

.hero-cta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.cta-block .btn { height: 54px; padding: 0 20px; font-size: 17px; }

.media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, var(--color-neutral-200) 0 8px, var(--color-surface) 8px 16px);
}
.media video,
.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph {
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-neutral-700);
  text-align: center;
}

.mini-phone {
  flex: none;
  position: relative;
  width: 96px;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 4px solid var(--color-text);
  border-radius: 18px;
  background: none;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform .1s;
}
.mini-phone:active { transform: scale(.97); }
.mini-phone .media { background-size: auto; background-image: repeating-linear-gradient(135deg, var(--color-neutral-200) 0 6px, var(--color-surface) 6px 12px); }
.mini-phone .media video { pointer-events: none; }
.mini-phone .ph { font-size: 10px; line-height: 1.3; }
.mini-phone .play {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-phone { display: none; }

.hero-chips {
  padding: 36px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chips-title {
  padding: 0 var(--gutter);
  font-size: 15px;
  font-weight: 600;
}
.chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 var(--gutter) 20px;
}
.chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--color-accent-200);
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background-color .15s;
}
.chip:hover { background: var(--color-accent-300); color: var(--color-text); }
.chip:active { background: var(--color-accent-400); }
.chip-arrow { flex: none; font-size: 17px; color: var(--color-accent-700); }

/* ---------- Content blocks ---------- */

.content {
  padding: 56px var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.block:first-child { gap: 32px; }
.block-faq { gap: 16px; }

/* ---------- Steps ---------- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-num {
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -.02em;
}
.step h3 { font-size: 20px; line-height: 1.25; }
.step p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-neutral-800);
  text-wrap: pretty;
}
.step-illus { margin-top: 6px; }

.illus {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.illus-answer { gap: 8px; }

.bubble-out {
  align-self: flex-end;
  max-width: 88%;
  background: var(--color-accent-200);
  border-radius: 18px 18px 4px 18px;
  padding: 10px 14px 6px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  line-height: 1.4;
}
.bubble-out .time {
  align-self: flex-end;
  font-size: 13px;
  color: var(--color-accent-700);
  display: flex;
  align-items: center;
  gap: 3px;
}

.cards { position: relative; height: 172px; }
.src-card {
  position: absolute;
  background: var(--color-bg);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.src-card.c1 { top: 0; left: 0; right: 24px; z-index: 1; }
.src-card.c2 { top: 44px; left: 12px; right: 12px; z-index: 2; }
.src-card.c3 { top: 88px; left: 24px; right: 0; z-index: 3; }
.src-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--color-neutral-200);
}
.bar.dark { background: var(--color-neutral-300); }
.b45 { width: 45%; }
.b70 { width: 70%; }
.b90 { width: 90%; }
.date {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-2-800);
  background: var(--color-accent-2-200);
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}

.bubble-in {
  width: 100%;
  background: var(--color-bg);
  border-radius: 18px 18px 18px 4px;
  padding: 10px 14px 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bubble-in .from { font-size: 13px; font-weight: 600; color: var(--color-accent-700); }
.answer-text {
  max-height: 122px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 64%, transparent);
  mask-image: linear-gradient(#000 64%, transparent);
  font-size: 14px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tg-button {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  background: var(--color-accent-200);
  color: var(--color-accent-800);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* ---------- Compare ---------- */

.compare {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cmp-card { border-radius: 16px; }
.cmp-card h3 { margin-bottom: 16px; font-size: 18px; line-height: 1.25; }
.cmp-card ul,
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cmp-card li,
.checks li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
}
.cmp-ai {
  background: var(--color-surface);
  padding: 24px;
  color: var(--color-neutral-700);
}
.cmp-ai h3 { color: var(--color-neutral-800); }
.cmp-ai .ico { color: var(--color-neutral-500); }
.cmp-us,
.price-card {
  background: #fff;
  border: 2px solid var(--color-accent);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.cmp-us h3 { color: var(--color-accent-700); }
.cmp-us .ico,
.checks .ico { color: var(--color-accent); }

/* ---------- Pricing ---------- */

.price-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-card h3 { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.price-card p { font-size: 16px; line-height: 1.5; color: var(--color-neutral-800); }
.checks { gap: 10px; }
.price-card .btn { margin-top: 4px; }

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  border-radius: 14px;
  background: var(--color-surface);
  border: 2px solid transparent;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.faq-item.is-open {
  background: #fff;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  color: var(--color-text);
  font-family: var(--font);
}
.faq-q:hover { color: var(--color-accent-700); }
.faq-q h3 { font-size: 16px; line-height: 1.35; font-weight: 600; color: inherit; }
.faq-icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent-200);
  color: var(--color-accent-800);
  font-size: 18px;
  line-height: 28px;
  text-align: center;
}
.faq-icon::before { content: "+"; }
.is-open .faq-icon::before { content: "−"; }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
  margin: 0 18px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--color-divider);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-neutral-800);
}

/* ---------- Final CTA ---------- */

.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 0 48px;
  text-align: center;
}
.final-cta h2 { margin-bottom: 4px; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.final-cta .btn { width: 100%; }

/* ---------- Footer ---------- */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--color-divider);
  padding: 20px var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-neutral-700);
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-brand { font-weight: 700; color: var(--color-text); }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: var(--color-neutral-700); text-decoration: none; }
.footer-nav a:hover { color: var(--color-accent-700); }

/* ---------- Cookie ---------- */

.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-text { flex: 1; font-size: 14px; line-height: 1.45; }
.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-actions a { font-size: 14px; }
.cookie-ok { height: 40px; padding: 0 20px; font-size: 15px; }

/* ---------- Video overlay ---------- */

.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(9, 51, 58, .92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-frame {
  width: min(calc(100vw - 32px), 78vh * 9 / 16);
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
}
.video-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 20px;
  cursor: pointer;
}
.video-close:hover { background: var(--color-neutral-200); }

/* ---------- Tablet: keep the mobile layout readable ---------- */

@media (min-width: 640px) and (max-width: 1023px) {
  .hero, .content { max-width: 640px; margin-left: auto; margin-right: auto; width: 100%; }
  .footer { width: 100%; }
  .cookie { left: 50%; right: auto; width: 616px; transform: translateX(-50%); }
}

/* ---------- Desktop ---------- */

@media (min-width: 1024px) {
  :root { --grid: 64px; --gutter: 48px; }

  h2 { font-size: 40px; letter-spacing: -.03em; }

  .topbar {
    top: 16px;
    margin: 16px 40px 0;
    padding: 10px 10px 10px 22px;
    border-radius: 16px;
  }
  .logo { font-size: 22px; }
  .topbar .btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 300px minmax(0, 1fr);
    gap: clamp(32px, 3.75vw, 48px);
    align-items: start;
    padding: 72px clamp(32px, 3.75vw, 48px) 48px;
  }
  .hero-copy { padding: 0; gap: 18px; }
  .hero h1 { font-size: 38px; line-height: 1.12; letter-spacing: -.03em; }
  .lead { font-size: 18px; max-width: 440px; }
  .hero-cta { margin-top: 10px; }
  .cta-block { flex: none; align-items: flex-start; }
  .cta-block .btn { height: 56px; padding: 0 32px; font-size: 18px; }
  .cta-block .note { font-size: 15px; }
  .mini-phone { display: none; }

  .hero-phone {
    display: block;
    width: 300px;
    aspect-ratio: 9 / 16;
    border-radius: 24px;
    border: 1px solid var(--color-divider);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
  }

  .hero-chips { padding: 0; align-self: center; }
  .chips-title { padding: 0; font-size: 16px; }
  .chips { padding: 0; gap: 12px; }
  .chip { padding: 14px 18px; }

  .content { padding-top: 72px; gap: 72px; }
  .block { gap: 32px; }
  .block:first-child { gap: 40px; }
  .block-faq { gap: 28px; }
  .block-center > h2 { text-align: center; }

  .steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
  .step-illus { order: -1; margin: 0 0 14px; }
  .illus { height: 320px; }

  .compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto);
    column-gap: 24px;
    row-gap: 0;
  }
  .cmp-card {
    grid-row: 1 / span 6;
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 14px;
  }
  .cmp-card h3 { margin-bottom: 2px; font-size: 20px; }
  .cmp-card ul { display: contents; }
  .cmp-card li { font-size: 16px; }

  .price-card {
    width: 100%;
    max-width: 480px;
    align-self: center;
    padding: 30px;
  }
  .price-card h3 { font-size: 30px; }

  .faq { width: 100%; max-width: 720px; align-self: center; }
  .faq-q h3 { font-size: 18px; }
  .faq-a p { font-size: 16px; }

  .final-cta { padding: 8px 0 72px; }
  .final-cta h2 { font-size: 30px; }
  .final-cta .btn { width: auto; }

  .footer { padding: 22px 48px 28px; }
  .footer-top { flex-direction: row; align-items: center; gap: 28px; }
  .footer-nav { flex-direction: row; gap: 24px; }

  .cookie {
    left: 50%;
    right: auto;
    width: 720px;
    transform: translateX(-50%);
    padding: 16px 20px;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
}

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