:root {
  --rose: #e2554a;
  --rose-deep: #c93d34;
  --rose-soft: #fff1ef;
  --rose-mist: #ffe3df;
  --ink: #1f1616;
  --muted: #7a6a68;
  --line: rgba(226, 85, 74, 0.16);
  --white: #ffffff;
  --chip: rgba(255, 255, 255, 0.85);
  --ok: #2f9e6a;
  --font-d: "Syne", system-ui, sans-serif;
  --font-b: "Manrope", system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(226, 85, 74, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-b);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(226, 85, 74, 0.22), transparent 60%),
    linear-gradient(180deg, #fff5f3 0%, #fffbfa 38%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hero-bg {
  position: fixed; inset: 0 0 auto 0; height: 48vh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(255, 180, 170, 0.45), transparent 70%);
  animation: soft 14s ease-in-out infinite alternate;
}
@keyframes soft {
  from { opacity: 1; transform: scale(1); }
  to { opacity: .82; transform: scale(1.04); }
}

a { color: var(--rose); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rose-deep); }
code {
  font-size: .92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--rose-soft);
  color: var(--rose-deep);
}

.wrap {
  position: relative; z-index: 1;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
  animation: rise .55s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 20px 0 8px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px; color: var(--ink);
  animation: brandIn .6s cubic-bezier(.22, 1, .36, 1) .05s both;
}
@keyframes brandIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.brand-mark {
  width: 28px; height: 28px; color: var(--rose); flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(226, 85, 74, 0.35));
}
.brand-name {
  font-family: var(--font-d); font-weight: 800; letter-spacing: .06em;
  font-size: 1.35rem; line-height: 1;
}
.nav-links {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-size: .82rem; font-weight: 700;
}
.nav-links a { color: var(--muted); }
.nav-links a.active, .nav-links a:hover { color: var(--rose); }

.hero {
  padding: 48px 0 36px;
  text-align: center;
}
.hero .brand-name {
  display: block;
  font-size: clamp(2.8rem, 12vw, 4.6rem);
  letter-spacing: .04em;
  margin: 0 0 14px;
  line-height: .95;
}
.hero .brand-name span { color: var(--rose); }
.lead {
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34ch;
  font-weight: 600;
}
.cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 13px 20px;
  font-weight: 800; font-size: .92rem; font-family: inherit;
  border: 1.5px solid transparent;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff; box-shadow: 0 12px 32px rgba(226, 85, 74, 0.28);
}
.btn-primary:hover { color: #fff; }
.btn-ghost {
  border-color: var(--line); color: var(--ink);
  background: var(--chip);
}

.pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin: 0 0 8px;
}
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: 999px;
  font-size: .72rem; font-weight: 700;
  background: var(--chip); border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 4px 12px rgba(226, 85, 74, 0.06);
}

.section { padding: 40px 0 8px; }
.section h2 {
  margin: 0 0 8px;
  font-family: var(--font-d); font-weight: 800;
  font-size: clamp(1.55rem, 4vw, 2rem);
  letter-spacing: -.02em; color: var(--ink);
  text-align: center;
}
.section-lead {
  color: var(--muted); margin: 0 auto 22px;
  max-width: 40ch; line-height: 1.5; text-align: center; font-weight: 600;
}

.feature-list {
  display: grid; gap: 10px;
  margin: 0; padding: 0; list-style: none;
}
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(226, 85, 74, 0.06);
  animation: pageIn .45s cubic-bezier(.22, 1, .36, 1) both;
}
.feature-list li:nth-child(2) { animation-delay: .06s; }
.feature-list li:nth-child(3) { animation-delay: .12s; }
.feature-list li:nth-child(4) { animation-delay: .18s; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.feature-ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rose-soft); color: var(--rose);
}
.feature-ico svg { width: 18px; height: 18px; }
.feature-list strong {
  display: block; font-size: .95rem; margin-bottom: 2px; color: var(--ink);
}
.feature-list span {
  color: var(--muted); font-size: .88rem; line-height: 1.45; font-weight: 600;
}

.price-panel {
  margin: 0 auto;
  max-width: 420px;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, var(--rose-soft));
  box-shadow: var(--shadow);
  text-align: center;
}
.price-tag {
  font-family: var(--font-d); font-weight: 800;
  font-size: 3.2rem; color: var(--ink); letter-spacing: -.03em; line-height: 1;
}
.price-note {
  color: var(--muted); margin: 8px 0 18px; font-weight: 700; font-size: .92rem;
}
.price-panel ul {
  margin: 0 0 22px; padding: 0; list-style: none;
  text-align: left;
}
.price-panel li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: var(--muted); font-weight: 600; line-height: 1.4;
  border-bottom: 1px solid var(--line);
}
.price-panel li:last-child { border-bottom: none; }
.price-panel li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rose);
}

.steps {
  display: grid; gap: 10px;
}
.steps > div {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
}
.steps span {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rose-soft); color: var(--rose-deep); font-weight: 800;
}
.steps p { margin: 0; color: var(--muted); font-weight: 600; line-height: 1.4; }

.contact-block {
  display: grid; gap: 10px;
}
.contact-row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.contact-row .label {
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--rose);
}
.contact-row .value {
  font-weight: 700; color: var(--ink); word-break: break-word;
}
.contact-row .hint {
  font-size: .85rem; color: var(--muted); font-weight: 600; line-height: 1.4;
}

.page-title {
  padding: 28px 0 4px;
  text-align: center;
}
.page-title h1 {
  margin: 0;
  font-family: var(--font-d); font-weight: 800;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  letter-spacing: -.02em;
}
.page-title .meta {
  margin: 10px 0 0; color: var(--muted); font-size: .85rem; font-weight: 600;
}

.prose {
  padding-top: 12px;
}
.prose h2 {
  margin: 28px 0 10px;
  font-family: var(--font-d); font-weight: 800;
  font-size: 1.2rem; letter-spacing: -.01em;
  text-align: left; color: var(--ink);
}
.prose h3 {
  margin: 18px 0 8px;
  font-size: 1rem; font-weight: 800; color: var(--ink);
}
.prose p, .prose li {
  color: var(--muted); font-weight: 600; line-height: 1.6; font-size: .95rem;
}
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose .muted, .muted {
  color: var(--muted); font-size: .85rem; font-weight: 600;
}

.doc-toc {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 8px 0 20px;
}
.doc-toc a {
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--chip);
  color: var(--ink); font-size: .78rem; font-weight: 700;
}

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 40px; padding: 22px 0 8px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .82rem; font-weight: 600;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 12px;
}

@media (max-width: 560px) {
  .nav-links { width: 100%; }
  .hero { padding-top: 28px; }
}

/* Embedded in Mini App iframe (?embed=1) */
html.embed .hero-bg,
html.embed .nav,
html.embed .footer,
html.embed .doc-toc { display: none !important; }
html.embed body {
  background: #fffbfa;
  min-height: auto;
}
html.embed .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 14px 24px;
  animation: none;
}
html.embed .page-title { padding-top: 8px; }
html.embed .page-title h1 { font-size: 1.35rem; }
