/* Tutobot landing — "evening walk" theme.
   Warm espresso dark, cream editorial serif, the product's terracotta as accent.
   The product mockups inside use the booking app's own cream palette. */

:root {
  --bg0: #14100B;
  --bg1: #1D1610;
  --panel: #241B13;
  --panel-2: #2B2117;
  --line: rgba(246, 234, 214, 0.12);
  --cream: #F6EAD6;
  --cream-dim: #CDBBA1;
  --muted: #9C8C75;
  --terra: #E8743B;
  --terra-deep: #C95A26;
  --sage: #8FB389;
  --amber: #E8B04B;
  /* product (mockup) palette — mirrors the booking app */
  --p-cream: #FDF3E3;
  --p-card: #FFFBF4;
  --p-ink: #3B2E25;
  --p-ink-soft: #7A6A5C;
  --p-busy: #D8C5A8;
  --p-busy-text: #8A7660;
  /* telegram mockup palette */
  --tg-bg: #17212B;
  --tg-bubble: #1E2C3A;
  --tg-text: #E7EDF2;
  --tg-dim: #8FA3B3;
  --tg-accent: #5EB5F7;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* The hidden attribute must always win — .lead-form's display:flex (and any
   other display rule) would otherwise override the UA's [hidden] styling. */
[hidden] { display: none !important; }

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

/* The decorative glows extend past the viewport edges by design; clip at the
   root so they can never create horizontal scrolling. */
html, body { overflow-x: clip; }

body {
  font-family: 'Karla', sans-serif;
  background: var(--bg0);
  color: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

::selection { background: var(--terra); color: #fff; }

/* ---------- atmosphere ---------- */

.glow {
  /* Soft radial gradients only — a blur() filter here looks the same but is
     GPU-expensive and can break compositing on weak devices. */
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.glow-a {
  width: 640px; height: 640px;
  top: -220px; right: -180px;
  background: radial-gradient(circle, rgba(232, 116, 59, 0.20), transparent 70%);
}

.glow-b {
  width: 520px; height: 520px;
  top: 480px; left: -240px;
  background: radial-gradient(circle, rgba(232, 176, 75, 0.09), transparent 70%);
}

/* ---------- nav ---------- */

.nav {
  position: relative;
  z-index: 5;
  max-width: 1140px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream);
}

.wordmark-badge {
  width: 40px; height: 40px;
  background: var(--terra);
  border-radius: 50% 50% 50% 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  transform: rotate(-8deg);
  box-shadow: 0 6px 18px rgba(232, 116, 59, 0.35);
}

.wordmark-badge.small { width: 32px; height: 32px; font-size: 16px; }

.wordmark-text {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--cream); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--terra);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
  box-shadow: 0 8px 26px rgba(232, 116, 59, 0.32);
}

.btn:hover { background: var(--terra-deep); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(232, 116, 59, 0.42); }
.btn:active { transform: translateY(0); }

.btn-small { padding: 10px 20px; font-size: 0.92rem; }
.btn-big { padding: 16px 32px; font-size: 1.08rem; }
.btn-full { width: 100%; }

.btn-ghost {
  color: var(--cream-dim);
  text-decoration: none;
  font-weight: 700;
  padding: 16px 10px;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--cream); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 24px 110px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
  animation: rise 0.6s ease both;
}

h1 {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 560;
  font-size: clamp(2.7rem, 5.4vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  animation: rise 0.6s 0.08s ease both;
}

h1 em {
  font-style: italic;
  color: var(--terra);
}

.lede {
  margin-top: 22px;
  font-size: 1.13rem;
  color: var(--cream-dim);
  max-width: 34rem;
  animation: rise 0.6s 0.16s ease both;
}

.lede strong { color: var(--cream); }

.hero-ctas {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  animation: rise 0.6s 0.24s ease both;
}

.trust-line {
  margin-top: 26px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
  animation: rise 0.6s 0.32s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- hero stage (mockups) ---------- */

.hero-stage {
  position: relative;
  min-height: 540px;
}

.float-a {
  position: absolute;
  top: 0;
  left: 4%;
  transform: rotate(-3.5deg);
  animation: rise 0.7s 0.3s ease both, bob 7s 1.2s ease-in-out infinite;
  z-index: 2;
}

.float-b {
  position: absolute;
  top: 200px;
  right: 0;
  transform: rotate(2.5deg);
  animation: rise 0.7s 0.45s ease both, bob 8s 1.6s ease-in-out infinite reverse;
  z-index: 3;
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* phone mockup — the client booking page */

.phone {
  width: min(268px, 100%);
  background: #0C0907;
  border-radius: 38px;
  padding: 10px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(246, 234, 214, 0.08);
}

.phone-screen {
  background:
    radial-gradient(circle at 85% -5%, #FAE3C0 0%, transparent 45%),
    var(--p-cream);
  border-radius: 30px;
  padding: 20px 14px 16px;
  color: var(--p-ink);
}

.mini-hero { text-align: center; margin-bottom: 12px; }

.mini-badge {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  background: var(--terra);
  border-radius: 50% 50% 50% 8px;
  font-size: 20px;
  transform: rotate(-6deg);
  margin-bottom: 6px;
}

.mini-hero strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.02rem;
}

.mini-hero small {
  color: var(--p-ink-soft);
  font-style: italic;
  font-size: 0.68rem;
}

.mini-card {
  background: var(--p-card);
  border-radius: 16px;
  padding: 12px 10px;
  box-shadow: 0 4px 14px rgba(75, 50, 25, 0.12);
}

.mini-cal-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0 6px 8px;
}

.mini-weekdays, .mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}

.mini-weekdays i {
  font-style: normal;
  font-size: 0.56rem;
  color: var(--p-ink-soft);
  padding-bottom: 4px;
}

.mini-grid b {
  font-weight: 500;
  font-size: 0.66rem;
  padding: 5px 0;
  border-radius: 7px;
  background: #F2DEBB;
}

.mini-grid b.off { background: transparent; }

.mini-grid b.busy {
  background: var(--p-busy);
  color: var(--p-busy-text);
  text-decoration: line-through;
}

.mini-grid b.sel { background: var(--sage); color: #fff; border-radius: 0; }
.mini-grid b.sel-start { border-radius: 7px 0 0 7px; }
.mini-grid b.sel-end { border-radius: 0 7px 7px 0; }

.mini-range {
  margin-top: 8px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--p-ink-soft);
}

.mini-btn {
  margin-top: 12px;
  background: var(--terra);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 11px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(232, 116, 59, 0.35);
}

/* telegram mockup */

.tg-card {
  width: min(320px, 100%);
  background: var(--tg-bg);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(94, 181, 247, 0.10);
  color: var(--tg-text);
}

.tg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.tg-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8743B, #C95A26);
  display: grid;
  place-items: center;
  font-size: 17px;
}

.tg-head strong { display: block; font-size: 0.92rem; }
.tg-head small { color: var(--tg-dim); font-size: 0.72rem; }

.tg-bubble {
  background: var(--tg-bubble);
  border-radius: 4px 14px 14px 14px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.tg-bubble + .tg-bubble, .tg-actions + .tg-bubble { margin-top: 10px; }

.tg-bubble p + p { margin-top: 6px; }

.tg-bubble pre {
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.74rem;
  white-space: pre-wrap;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: #BFE3FF;
}

.tg-stamp {
  font-weight: 700;
  color: #7BD88F;
  letter-spacing: 0.04em;
}

.tg-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.tg-btn {
  flex: 1;
  text-align: center;
  background: rgba(94, 181, 247, 0.12);
  color: var(--tg-accent);
  border: none;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 6px;
  border-radius: 10px;
  transition: background 0.15s, transform 0.1s;
}

button.tg-btn:hover { background: rgba(94, 181, 247, 0.22); }
button.tg-btn:active { transform: scale(0.97); }

/* ---------- sections ---------- */

section {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 90px 24px;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 560;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-title em { font-style: italic; color: var(--terra); }

.section-sub {
  margin-top: 12px;
  color: var(--cream-dim);
  max-width: 36rem;
}

/* reveal on scroll */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- how it works ---------- */

.how { border-top: 1px solid var(--line); }

.steps {
  list-style: none;
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}

.steps li {
  background: linear-gradient(160deg, var(--panel), var(--bg1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50% 50% 50% 10px;
  background: var(--terra);
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  transform: rotate(-6deg);
  margin-bottom: 16px;
}

.steps h3, .note h3, .feature h3 {
  font-family: 'Fraunces', serif;
  font-weight: 560;
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.steps p, .note p, .feature p {
  color: var(--cream-dim);
  font-size: 0.95rem;
}

/* ---------- examples / demo ---------- */

.examples { border-top: 1px solid var(--line); }

.demo-row {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 400px);
  gap: 48px;
  justify-content: center;
  align-items: start;
}

.demo-phone { width: 100%; }

.tg-demo { width: 100%; }

.tg-demo.approved .tg-actions { display: none; }

.tg-followup { animation: rise 0.45s ease both; }

.demo-reset {
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--tg-dim);
  font-family: 'Karla', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
}

.demo-reset:hover { color: var(--tg-text); }

.demo-notes {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* interactive client calendar */

.mini-grid-live button {
  font-family: 'Karla', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--p-ink);
  padding: 7px 0;
  border: none;
  border-radius: 7px;
  background: #F2DEBB;
  cursor: pointer;
  transition: filter 0.12s;
}

.mini-grid-live button:hover:not(.busy):not(.off) { filter: brightness(0.93); }

.mini-grid-live button.off { background: transparent; cursor: default; }

.mini-grid-live button.busy {
  background: var(--p-busy);
  color: var(--p-busy-text);
  text-decoration: line-through;
  cursor: not-allowed;
}

.mini-grid-live button.sel { background: var(--sage); color: #fff; border-radius: 0; }
.mini-grid-live button.sel-start { border-radius: 7px 0 0 7px; }
.mini-grid-live button.sel-end { border-radius: 0 7px 7px 0; }
.mini-grid-live button.sel-start.sel-end { border-radius: 7px; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.mini-card.shake { animation: shake 0.4s ease; }

button.mini-btn {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
  transition: opacity 0.15s, transform 0.12s;
}

button.mini-btn:disabled { opacity: 0.45; box-shadow: none; cursor: default; }
button.mini-btn:not(:disabled):active { transform: scale(0.98); }

/* client status screen */

.mini-status {
  text-align: center;
  padding: 26px 6px 10px;
  animation: rise 0.4s ease both;
}

.mini-status-emoji { font-size: 44px; line-height: 1; }

.mini-status strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin: 10px 0 6px;
}

.mini-status p { font-size: 0.78rem; color: var(--p-ink-soft); }

.mini-status-summary {
  margin-top: 14px;
  background: #F2DEBB;
  border-radius: 10px;
  padding: 9px;
  font-size: 0.76rem;
  font-weight: 700;
}

.mini-link {
  margin-top: 14px;
  background: none;
  border: none;
  font-family: 'Karla', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--terra-deep);
  cursor: pointer;
}

.note {
  border-left: 3px solid var(--terra);
  padding-left: 20px;
}

/* ---------- features ---------- */

.features { border-top: 1px solid var(--line); }

.feature-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: linear-gradient(160deg, var(--panel), var(--bg1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover { transform: translateY(-4px); border-color: rgba(232, 116, 59, 0.45); }

.feature-ico { font-size: 1.7rem; display: block; margin-bottom: 14px; }

/* ---------- CTA band / lead form ---------- */

.cta-band { padding-bottom: 110px; }

.cta-card {
  background:
    radial-gradient(circle at 90% 0%, rgba(232, 116, 59, 0.18), transparent 50%),
    linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(232, 116, 59, 0.3);
  border-radius: 28px;
  padding: 52px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 52px;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.cta-copy h2 {
  font-family: 'Fraunces', serif;
  font-weight: 560;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cta-copy p { margin-top: 16px; color: var(--cream-dim); }

.pricing-line {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  color: var(--cream);
}

.pricing-line strong { color: var(--amber); font-weight: 600; }

.pricing-note {
  font-family: 'Karla', sans-serif;
  font-size: 0.9rem;
  color: var(--cream-dim);
}

.cta-paw {
  font-size: 110px;
  line-height: 1;
  opacity: 0.16;
  margin-top: 18px;
  transform: rotate(-8deg);
}

.lead-form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 7px; }

.field > span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field > span small {
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
}

.field input, .field textarea {
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  color: var(--cream);
  background: rgba(20, 16, 11, 0.6);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea { resize: vertical; }

.field input::placeholder, .field textarea::placeholder { color: var(--muted); }

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(232, 116, 59, 0.18);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-error {
  color: #F2A08A;
  font-size: 0.9rem;
  background: rgba(201, 90, 38, 0.12);
  border: 1px solid rgba(201, 90, 38, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
}

.fine-print {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.lead-success {
  text-align: center;
  padding: 40px 10px;
  animation: rise 0.5s ease both;
}

.success-emoji { font-size: 56px; display: block; margin-bottom: 14px; }

.lead-success h3 {
  font-family: 'Fraunces', serif;
  font-weight: 560;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.lead-success p { color: var(--cream-dim); max-width: 26rem; margin: 0 auto; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 44px 24px calc(44px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.footer .wordmark-badge { margin: 0 auto 14px; }

.footer-fine { margin-top: 6px; font-size: 0.78rem; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 60px; }
  .hero-stage {
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    justify-content: center;
    margin-top: 26px;
  }
  .float-a, .float-b { position: static; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .demo-row { grid-template-columns: minmax(0, 380px); }
  .demo-notes { grid-template-columns: 1fr; }
  .tg-demo { max-width: 380px; }
  .cta-card { grid-template-columns: 1fr; padding: 34px 24px; gap: 34px; }
  .nav-links { display: none; }
  .cta-paw { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
