:root {
  --dusk: #1d1324;
  --dusk-2: #2a1b33;
  --bubble: #3b2646;
  --milk: #f8eee9;
  --mauve: #bfa3b8;
  --peach: #ffb8a2;
  --honey: #f4c67c;
  --line: rgba(248, 238, 233, 0.14);
  --font: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--dusk);
  color: var(--milk);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--peach); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { font-weight: 800; letter-spacing: -0.01em; color: var(--milk); text-decoration: none; font-size: 1.15rem; }
.brand span { font-weight: 400; color: var(--mauve); margin-left: 8px; font-size: 0.95rem; }
.top a.small { font-size: 0.95rem; }

/* buttons */
.btn {
  display: inline-block;
  background: var(--honey);
  color: #2a1608;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 15px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #ffd593; transform: translateY(-1px); }

/* hero */
.hero { display: grid; gap: 48px; padding-block: 36px 72px; align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 8.2vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 22px;
}
.hero p.lead { font-size: 1.2rem; color: var(--milk); max-width: 34ch; margin: 0 0 28px; }
.fine { color: var(--mauve); font-size: 0.95rem; margin: 14px 0 0; max-width: 44ch; }

/* chat */
.phone {
  position: relative;
  background: var(--dusk-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px 16px 22px;
  max-width: 400px;
  width: 100%;
  margin-inline: auto;
  box-shadow: 0 30px 80px -30px rgba(255, 184, 162, 0.35);
}
.phone-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.dot { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--peach), var(--honey)); display: grid; place-items: center; font-size: 1.1rem; }
.phone-head strong { display: block; line-height: 1.2; }
.phone-head small { color: var(--mauve); }
.thread { display: flex; flex-direction: column; gap: 8px; min-height: 270px; }
.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  line-height: 1.4;
  animation: pop 0.45s ease both;
  animation-delay: var(--d, 0s);
}
.msg.her { background: var(--bubble); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.you { background: var(--peach); color: #2a1219; border-bottom-right-radius: 6px; align-self: flex-end; }
.typing {
  align-self: flex-start;
  background: var(--bubble);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  padding: 0 14px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  animation: typing 1.3s ease both;
  animation-delay: var(--d, 0s);
  display: flex;
  gap: 5px;
  align-items: center;
}
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mauve); display: block; }
.note { text-align: center; color: var(--mauve); font-size: 0.85rem; margin: 16px 0 0; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes typing {
  0% { opacity: 0; max-height: 0; padding-block: 0; }
  12%, 88% { opacity: 1; max-height: 40px; padding-block: 14px; }
  100% { opacity: 0; max-height: 0; padding-block: 0; margin-top: -8px; }
}

/* sections */
.section { padding-block: 64px; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.8rem, 4.6vw, 2.7rem); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 32px; max-width: 18ch; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps li { counter-increment: s; padding-left: 52px; position: relative; max-width: 54ch; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--honey); color: #2a1608;
  display: grid; place-items: center; font-weight: 800;
}
.steps strong, .rows strong { display: block; font-size: 1.2rem; }
.steps p, .rows p { margin: 4px 0 0; color: var(--milk); opacity: 0.88; }
.rows { display: grid; }
.rows > div { padding-block: 22px; border-bottom: 1px solid var(--line); max-width: 62ch; }
.rows > div:first-child { padding-top: 0; }
.rows > div:last-child { border-bottom: 0; padding-bottom: 0; }

.plans { display: grid; gap: 32px; }
.plans h3 { font-size: 1.35rem; margin: 0 0 8px; }
.plans p { margin: 0 0 6px; opacity: 0.9; }
.plans .price { font-size: 1.6rem; font-weight: 800; color: var(--honey); margin-bottom: 10px; }

details { border-bottom: 1px solid var(--line); padding-block: 16px; max-width: 70ch; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style-position: outside; }
details p { margin: 10px 0 0; opacity: 0.9; }

.cta-band { text-align: left; }
.cta-band h2 { max-width: 20ch; }

footer { border-top: 1px solid var(--line); padding-block: 36px 56px; color: var(--mauve); font-size: 0.92rem; }
footer p { margin: 0 0 10px; max-width: 70ch; }
footer nav { display: flex; gap: 20px; margin-bottom: 18px; }

/* legal pages */
.legal { padding-block: 24px 80px; max-width: 70ch; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 8px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 6px; }
.legal p, .legal li { opacity: 0.92; }
.legal .upd { color: var(--mauve); }

@media (min-width: 860px) {
  body { font-size: 1.125rem; }
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 72px; padding-block: 56px 96px; }
  .plans { grid-template-columns: 1fr 1fr; gap: 64px; }
  .section { padding-block: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .msg { animation: none; }
  .typing { display: none; }
  .btn { transition: none; }
}
