:root {
  --bg: #f7f6f3;
  --bg-elevated: #ffffff;
  --ink: #141414;
  --muted: #5a5a5a;
  --line: #e6e4df;
  --accent: #1a3a32;
  --accent-hover: #102820;
  --danger: #9b2c2c;
  --ok: #1e5a3a;
  --radius: 14px;
  --font-display: "Manrope", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --tap: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  background: var(--bg);
  padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 0.14em;
}

code,
.term {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86em;
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: rgba(26, 58, 50, 0.08);
  border: 1px solid rgba(26, 58, 50, 0.12);
  border-radius: 6px;
  padding: 0.12em 0.38em;
  word-break: break-word;
}

.term-glossary {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  display: grid;
  gap: 0.85rem;
}

.term-glossary div {
  margin: 0;
}

.term-glossary dt {
  margin: 0 0 0.3rem;
}

.term-glossary dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.wrap {
  width: min(40rem, calc(100% - 1.5rem));
  margin-inline: auto;
  padding-top: max(0.75rem, env(safe-area-inset-top));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem;
}

.lang-switch a {
  min-width: 2.2rem;
  min-height: 2.2rem;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
}

.lang-switch a[aria-current="page"] {
  color: var(--ink);
  background: var(--bg-elevated);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero {
  padding: 1.75rem 0 1.25rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 8.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 30rem;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  min-height: var(--tap);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent);
  color: #f7faf8;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.muted {
  color: var(--muted);
}

.fine {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.channel-cta {
  display: grid;
  gap: 0.85rem;
  margin: 0.25rem 0 0;
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.channel-cta-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.channel-cta-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 32rem;
}

.btn-channel {
  justify-self: start;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.95rem;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  gap: 0.5rem;
}

.btn-channel:hover {
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.btn-channel .tg-icon {
  flex-shrink: 0;
  opacity: 0.85;
}

@media (min-width: 640px) {
  .channel-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem 1.25rem;
    padding: 1.15rem 1.2rem;
  }
}

section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

section h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.stack {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.stack li {
  padding-left: 1rem;
  position: relative;
}

.stack li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--accent);
}

.deliverables {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  counter-reset: deliv;
}

.deliverables li {
  position: relative;
  padding: 0.85rem 0.9rem 0.85rem 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.deliverables li::before {
  counter-increment: deliv;
  content: counter(deliv);
  position: absolute;
  left: 0.85rem;
  top: 0.9rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #f7faf8;
  background: var(--accent);
}

.deliverables strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.98rem;
  color: var(--ink);
}

.deliverables span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  color: var(--muted);
  padding-left: 2.1rem;
  position: relative;
  font-size: 1.02rem;
  line-height: 1.5;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.amount {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.amount-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 0.75rem;
}

.amount-picks label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.55rem 0.8rem;
  min-height: 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.amount-picks input {
  width: auto;
  min-height: 0;
  margin: 0;
  accent-color: var(--accent);
}

.amount-picks label:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.amount-picks .tier {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  line-height: 1.2;
}

.amount-picks .tier small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.amount-picks label.tier-exclusive {
  border-color: rgba(26, 58, 50, 0.35);
  background: #fff;
  max-width: 100%;
}

.amount-picks label.tier-exclusive .tier small {
  white-space: normal;
  max-width: 16rem;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 650;
}

.amount-picks label.tier-exclusive:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: rgba(26, 58, 50, 0.04);
}

.sla-preview {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-strip {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.stat-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.stat-card .num {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.stat-card .cap {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 560px) {
  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

label .hint {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.84rem;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  min-height: var(--tap);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  appearance: none;
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  min-height: 1.35rem;
  margin: 0.2rem 0 0;
  padding: 0;
  flex-shrink: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  accent-color: var(--accent);
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.checkbox-text {
  display: block;
  line-height: 1.45;
}

.checkbox label,
.checkbox .checkbox-text {
  font-size: inherit;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.45;
}

.checkbox-policy {
  font-size: 0.88em;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 0.35rem;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-footer {
  padding: 1.35rem 0 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.55rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(247, 246, 243, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-bar.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

#request {
  padding-bottom: 1.5rem;
}

#request .cta-row .btn {
  width: 100%;
  min-height: 52px;
  z-index: 2;
  position: relative;
}

.form-status {
  margin-top: 0.75rem;
  font-weight: 700;
  min-height: 1.5em;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
}

.form-status[data-state="error"] {
  color: var(--danger);
  background: rgba(155, 44, 44, 0.08);
}

.form-status[data-state="ok"] {
  color: var(--ok);
  background: rgba(30, 90, 58, 0.08);
}

.lineage {
  margin: 0.85rem 0 0;
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.lineage-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lineage-flow li {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.lineage-flow .node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}

.lineage-flow .node.is-root {
  background: var(--accent);
  border-color: var(--accent);
  color: #f7faf8;
}

.lineage-flow .node.is-you {
  background: #f7f6f3;
  border-color: var(--accent);
  color: var(--accent);
}

.lineage-flow .sep {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 0.1rem;
}

.lineage-flow .ellipsis {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 0.15rem;
}

.lineage figcaption {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.prose {
  max-width: 36rem;
  padding: 1.5rem 0 3rem;
}

.prose h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 7vw, 2.3rem);
}

.prose h2 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

@media (min-width: 720px) {
  body {
    padding-bottom: 0;
    font-size: 18px;
  }

  .wrap {
    width: min(42rem, calc(100% - 2.5rem));
  }

  .hero {
    padding: 3rem 0 1.75rem;
  }

  .cta-row {
    flex-direction: row;
    align-items: center;
  }

  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-bar {
    display: none;
  }
}
