:root {
  color-scheme: light dark;
  --paper: #fffaf5;
  --surface: #ffffff;
  --sunken: #f7efe7;
  --ink: #2a1f18;
  --muted: #65554a;
  --line: #e6d8cb;
  --accent: #b65100;
  --on-accent: #fff5ee;
  --accent-text: var(--accent);
  --accent-soft: #fde9d8;
  --ok: #1f6b3a;
  --ok-soft: #dff2e4;
  --warn: #8a5a00;
  --warn-soft: #fbefcf;
  --err: #a32222;
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17110d;
    --surface: #211914;
    --sunken: #1d1612;
    --ink: #f6ece3;
    --muted: #bfae9f;
    --line: #3b2f26;
    --accent-text: #f09a52;
    --accent-soft: #3a2415;
    --ok: #7fd49a;
    --ok-soft: #1c3325;
    --warn: #efc366;
    --warn-soft: #3a2e12;
    --err: #ff9a9a;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--font); }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }

header.top { padding: 18px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; align-items: center; }
nav a { color: var(--ink); text-decoration: none; font-weight: 550; }
nav a:hover { color: var(--accent-text); }
nav .btn { white-space: nowrap; min-height: 42px; padding: 0 16px; }
@media (max-width: 640px) { nav li.hide-s { display: none; } nav ul { gap: 14px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent-text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent-text); filter: none; }
.btn[disabled] { opacity: .7; cursor: progress; }

.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.badge { display: inline-block; font-weight: 650; font-size: .92rem; color: var(--accent-text); background: var(--accent-soft); padding: 5px 12px; border-radius: 99px; margin-bottom: 20px; }
form.wait { margin-top: 30px; max-width: 30rem; }
form.wait .row { display: flex; gap: 10px; flex-wrap: wrap; }
form.wait label { display: block; font-weight: 650; margin-bottom: 8px; }
form.wait input[type=email] { flex: 1 1 14rem; min-height: 48px; padding: 0 14px; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 12px; }
form.wait input[type=email]:focus-visible { border-color: var(--accent-text); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { min-height: 1.6em; margin-top: 10px; font-weight: 600; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }
.fine { margin-top: 6px; font-size: .95rem; color: var(--muted); }
.alt { margin-top: 14px; }

/* crew panel */
.crew { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; overflow: hidden; }
.crew-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--sunken); border-bottom: 2px solid var(--line); font-weight: 650; }
.crew-head small { font-weight: 500; color: var(--muted); }
.lead { display: flex; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: .95rem; background: var(--accent); color: var(--on-accent); }
.avatar.alt { background: var(--sunken); color: var(--ink); border: 2px solid var(--line); }
.lead p { font-size: .98rem; }
.lead b { display: block; font-size: .92rem; color: var(--muted); font-weight: 600; }
.crew ul { list-style: none; margin: 0; padding: 0; }
.crew li.mate { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.crew li.mate:last-child { border-bottom: 0; }
.mate .who { font-weight: 650; font-size: .95rem; line-height: 1.3; }
.mate .task { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 650; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.run { background: var(--accent-soft); color: var(--accent-text); }
.chip.run::before { animation: pulse 1.6s ease-in-out infinite; }
.chip.wait { background: var(--warn-soft); color: var(--warn); }
.chip.done { background: var(--ok-soft); color: var(--ok); }
@keyframes pulse { 50% { opacity: .25; } }
.approve { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--warn-soft); color: var(--warn); font-weight: 650; font-size: .95rem; }
.approve span:last-child { background: var(--accent); color: var(--on-accent); padding: 6px 14px; border-radius: 9px; }

section.block { padding: 72px 0; }
section.tint { background: var(--sunken); border-block: 1px solid var(--line); }
.sec-head { max-width: 40rem; margin-bottom: 40px; }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 1.1rem; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 750; margin-bottom: 16px; }
.steps p, .ctl p { margin-top: 8px; color: var(--muted); font-size: .98rem; }
.ctl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.ctl { padding: 22px 0 22px 22px; border-left: 4px solid var(--accent); }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.roles span { border: 2px solid var(--line); border-radius: 99px; padding: 2px 12px; font-size: .9rem; font-weight: 600; background: var(--surface); }

.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.plan { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 18px; display: flex; flex-direction: column; gap: 8px; }
.plan.pro { border-color: var(--accent); }
.plan .price { font-size: 2rem; font-weight: 760; letter-spacing: -0.02em; line-height: 1.1; margin-top: 6px; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .inr { color: var(--muted); font-size: .95rem; }
.plan .for { color: var(--muted); font-size: .96rem; flex: 1; }
.plan .mates { font-weight: 650; font-size: .95rem; padding-top: 10px; border-top: 1px solid var(--line); }
.price-note { margin-top: 24px; color: var(--muted); }

.faq { max-width: 46rem; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-text); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 0 18px; color: var(--muted); max-width: 40rem; }

footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer .brand { font-size: 1.05rem; }

@media (max-width: 1040px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .ctl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .plans, .steps { grid-template-columns: 1fr; }
  section.block { padding: 52px 0; }
  .crew li.mate { grid-template-columns: 36px 1fr; }
  .crew li.mate .chip { grid-column: 2; justify-self: start; }
  form.wait .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip.run::before { animation: none; }
}
