@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* --- Токены --- */
  --ink: #0F1A2E;          /* фон — глубокий чернильно-синий, не чёрный */
  --ink-panel: #16233D;    /* карточки/панели */
  --ink-panel-2: #1C2B49;  /* чуть светлее, для hover/выделения */
  --line: #2A3B5C;         /* тонкие разделители — «линии тетради» */
  --parchment: #F4EFE3;    /* основной текст — тёплый белый */
  --muted: #93A0BA;        /* второстепенный текст */
  --honey: #E8A33D;        /* акцент — тепло голоса, CTA */
  --honey-dim: #C98A2E;
  --sage: #6FA98A;         /* второй акцент — спокойствие, success */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 14px;
  --container: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Эйбраузер-лейблы, как пометки на полях тетради --- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
p { color: var(--muted); }

.lede { font-size: 1.2rem; color: var(--parchment); opacity: 0.85; max-width: 640px; }

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(180deg, #EFAD4C 0%, var(--honey) 100%);
  color: #1A1305;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 6px 16px -6px rgba(232, 163, 61, 0.55);
}
.btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 26px -6px rgba(232, 163, 61, 0.7);
}

.btn-ghost {
  background: var(--ink-panel);
  color: var(--parchment);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--ink-panel-2); border-color: var(--honey-dim); }

/* --- Header --- */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 26, 46, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--parchment);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo-mark {
  width: 26px;
  height: auto;
  color: var(--honey);
  filter: drop-shadow(0 2px 6px rgba(232, 163, 61, 0.35));
}
.logo span { color: var(--honey); }
nav.site-nav { display: flex; gap: 24px; align-items: center; }
nav.site-nav a.link { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.site-nav a.link:hover { color: var(--parchment); }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  header.site .row { padding: 14px 0; }
  .logo { font-size: 1.1rem; }
  nav.site-nav { gap: 12px; }
  /* второстепенные текстовые ссылки прячем — они и так есть в подвале сайта */
  nav.site-nav a.link { display: none; }
  nav.site-nav .btn { padding: 10px 18px; font-size: 14px; }
  .form-card, .dashboard-card { padding: 24px; }
  .form-page { padding: 48px 0; }
}

/* --- Hero --- */
.hero {
  padding: 96px 0 64px;
  border-bottom: 1px dashed var(--line);
  background:
    radial-gradient(900px 480px at 12% -15%, rgba(232, 163, 61, 0.12), transparent 60%),
    radial-gradient(700px 420px at 92% 5%, rgba(111, 169, 138, 0.09), transparent 60%);
  position: relative;
  overflow: hidden;
}
.hero-watermark {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 420px;
  height: auto;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* --- Сигнатурный элемент: голос -> календарь --- */
.signature {
  background: var(--ink-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 64px;
}
.waveform .bar {
  width: 5px;
  border-radius: 3px;
  background: var(--honey);
  animation: pulse 1.4s ease-in-out infinite;
}
.waveform .bar:nth-child(1) { height: 20%; animation-delay: 0s; }
.waveform .bar:nth-child(2) { height: 55%; animation-delay: 0.1s; }
.waveform .bar:nth-child(3) { height: 85%; animation-delay: 0.2s; }
.waveform .bar:nth-child(4) { height: 40%; animation-delay: 0.3s; }
.waveform .bar:nth-child(5) { height: 70%; animation-delay: 0.4s; }
.waveform .bar:nth-child(6) { height: 30%; animation-delay: 0.5s; }
.waveform .bar:nth-child(7) { height: 60%; animation-delay: 0.6s; }
.waveform .bar:nth-child(8) { height: 25%; animation-delay: 0.7s; }
@keyframes pulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}
.arrow { color: var(--muted); font-family: var(--font-mono); font-size: 20px; }
.mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.mini-calendar .cell {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--line);
}
.mini-calendar .cell.on { background: var(--sage); }

@media (prefers-reduced-motion: reduce) {
  .waveform .bar { animation: none; }
}

/* --- Секции --- */
section { padding: 72px 0; }
section.alt { background: var(--ink-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* --- Шаги (реальная последовательность онбординга — нумерация оправдана) --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step .num {
  font-family: var(--font-mono);
  color: var(--honey);
  font-size: 14px;
  border: 1px solid var(--honey-dim);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { font-size: 15px; margin: 0; }

/* --- Карточки функций --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 860px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--honey-dim);
  box-shadow: 0 12px 28px -12px rgba(0,0,0,0.4);
}
.feature-card .icon { font-size: 26px; margin-bottom: 12px; display: block; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { font-size: 14.5px; margin: 0; }

/* --- Формы --- */
.form-card {
  background: var(--ink-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 440px;
  margin: 0 auto;
}
.form-page { padding: 96px 0; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 15px;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--honey);
}
.field .errors { color: #E17A6B; font-size: 13px; margin-top: 6px; }
.form-footer-link { text-align: center; margin-top: 20px; font-size: 14.5px; color: var(--muted); }
.form-footer-link a { color: var(--honey); text-decoration: none; }

.alert {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14.5px;
}
.alert-success { background: rgba(111, 169, 138, 0.15); border: 1px solid var(--sage); color: var(--sage); }
.alert-error { background: rgba(225, 122, 107, 0.12); border: 1px solid #E17A6B; color: #E17A6B; }

/* --- Дашборд --- */
.dashboard-card {
  background: var(--ink-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(111, 169, 138, 0.15);
  color: var(--sage);
  margin-bottom: 20px;
}
.qr-hint { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

.qr-block { margin-top: 28px; }
.qr-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 8px 0 18px;
}
.qr-divider::before, .qr-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.qr-caption { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.qr-image {
  width: 176px;
  height: 176px;
  padding: 14px;
  background: var(--parchment);
  border-radius: 14px;
  box-shadow: 0 10px 28px -10px rgba(0,0,0,0.5);
}

/* --- Footer --- */
footer.site {
  border-top: 1px dashed var(--line);
  padding: 40px 0;
}
footer.site .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer.site p { font-size: 13.5px; margin: 0; }
footer.site nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 13.5px; }
footer.site nav a:hover { color: var(--parchment); }

.divider-dashed { border: none; border-top: 1px dashed var(--line); margin: 0; }

/* --- Появление при скролле --- */
.js-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Фича-страница (по аналогии со страницами продуктов) --- */
.benefits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 860px) { .benefits-row { grid-template-columns: 1fr; } }
.benefit {
  background: var(--ink-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.benefit:hover {
  transform: translateY(-4px);
  border-color: var(--honey-dim);
  box-shadow: 0 12px 28px -12px rgba(0,0,0,0.4);
}
.benefit .icon { font-size: 28px; display: block; margin-bottom: 14px; }
.benefit h3 { font-size: 1.1rem; margin-bottom: 8px; }
.benefit p { font-size: 15px; margin: 0; }

.testimonials-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 860px) { .testimonials-row { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.testimonial:hover { transform: translateY(-3px); border-color: var(--line); }
.testimonial .stars { color: var(--honey); font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial p { color: var(--parchment); opacity: 0.9; font-size: 15px; margin: 0 0 14px; }
.testimonial .handle { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.two-col h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--parchment); font-family: var(--font-body); font-weight: 600; }
.two-col p { font-size: 15px; }

.faq-item {
  border-bottom: 1px dashed var(--line);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--parchment);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--honey); font-size: 20px; font-family: var(--font-mono); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 12px; font-size: 15px; }

.cta-band {
  background: var(--ink-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
  margin-top: 0;
}
.cta-band h2 { margin-bottom: 12px; }

.android-connect-block {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-panel);
}
.android-connect-block h3 { margin: 6px 0 10px; }
.android-connect-block p { max-width: 680px; }
