:root {
  --ink: #102226;
  --ink-soft: #3a5257;
  --line: rgba(16, 34, 38, 0.12);
  --paper: #f3f6f5;
  --white: #ffffff;
  --teal: #0f7a6c;
  --teal-deep: #0a5a50;
  --sand: #d8c4a0;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Manrope", "Segoe UI", sans-serif;
  --radius: 0.35rem;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  background: var(--paper);
  line-height: 1.55;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, h4, .logo, .hero-brand, .foot-brand strong {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }
.btn-main { background: #1aa58f; color: #04201b; }
.btn-main:hover { background: #14c4a6; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.btn-line.dark {
  color: var(--ink);
  border-color: rgba(16, 34, 38, 0.25);
}
.btn-line.dark:hover { border-color: var(--ink); background: rgba(16, 34, 38, 0.04); }

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #fff;
}
.logo.dark { color: var(--ink); }

.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 2.75rem);
}
.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.top-nav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
}
.top-nav a:hover { color: #fff; }
.brand-max {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  vertical-align: middle;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}
.max-ico {
  width: 1.15em;
  height: 1.15em;
  border-radius: 0.28em;
  display: block;
  flex-shrink: 0;
  object-fit: cover;
}
.btn .max-ico {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.3rem;
}
.top-nav .brand-max .max-ico {
  width: 1.05rem;
  height: 1.05rem;
}
.max-cta h2 .brand-max .max-ico {
  width: 1.05em;
  height: 1.05em;
  border-radius: 0.22em;
}
.top-link {
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
}

/* HERO — one composition, full-bleed */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero- ken 18s ease-in-out infinite alternate;
}
@keyframes hero-ken {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 14, 16, 0.88) 0%, rgba(6, 14, 16, 0.52) 44%, rgba(6, 14, 16, 0.25) 100%),
    linear-gradient(180deg, rgba(6, 14, 16, 0.42) 0%, rgba(6, 14, 16, 0.12) 42%, rgba(6, 14, 16, 0.92) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 6.5rem 0 4.5rem;
}
.hero-brand {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.hero h1 {
  margin: 0;
  max-width: 20ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.hero-lede {
  margin: 0.95rem 0 0;
  max-width: 34rem;
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.55rem;
}

.reveal,
.reveal-section,
.reveal-item,
.plan {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }
.reveal-item:nth-child(1) { transition-delay: 0.05s; }
.reveal-item:nth-child(2) { transition-delay: 0.15s; }
.reveal-item:nth-child(3) { transition-delay: 0.25s; }
.reveal.in,
.reveal-section.in,
.reveal-item.in,
.plan.in {
  opacity: 1;
  transform: none;
}

.split-visual img {
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.split:hover .split-visual img { transform: scale(1.04); }

.plan {
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.35s ease;
}
.plan.in:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 122, 108, 0.4);
  box-shadow: 0 18px 40px rgba(16, 34, 38, 0.08);
}
.btn {
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn-main {
  box-shadow: 0 10px 28px rgba(16, 34, 38, 0.18);
}
.btn-main:hover {
  box-shadow: 0 14px 34px rgba(16, 34, 38, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; }
  .reveal, .reveal-section, .reveal-item, .plan {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.btn-main {
  background: #1aa58f;
  color: #04201b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
.btn-main:hover { background: #14c4a6; }

.strip {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 4.2rem;
  text-align: left;
}
.strip h2,
.split-text h2,
.rules h2,
.pricing h2,
.max-cta h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.strip p,
.split-text p,
.rules-lead,
.pricing-lead,
.max-cta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.compare {
  margin-top: 2rem;
  display: grid;
  border-top: 1px solid var(--line);
}
.compare-row {
  display: grid;
  grid-template-columns: minmax(7rem, 0.85fr) 1.1fr 1.25fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.compare-head {
  padding-top: 0.35rem;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.compare-row > :first-child {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.compare-row > :nth-child(2),
.compare-row > :nth-child(3) {
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.compare-head > :nth-child(2),
.compare-head > :nth-child(3) {
  font-weight: 700;
  color: var(--ink);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: 70vh;
  background: var(--white);
  border-block: 1px solid var(--line);
}
.split-text {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  padding: clamp(2rem, 6vw, 5rem);
}
.split-visual {
  overflow: hidden;
  min-height: 360px;
}
.split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: rise 1.1s ease both;
}

.rules {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}
.rules ol {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
.rules li {
  position: relative;
  padding-left: 3.4rem;
  counter-increment: step;
}
.rules li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--teal);
}
.rules strong { display: inline; color: var(--ink); }

.pricing {
  background: #e7eeec;
  padding: 5rem clamp(1rem, 4vw, 2rem);
}
.pricing h2,
.pricing-lead,
.pricing-note { width: min(var(--max), 100%); margin-left: auto; margin-right: auto; }
.pricing-lead { margin-top: 0.5rem; }
.plan-grid {
  width: min(var(--max), 100%);
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.plan {
  margin: 0;
  padding: 1.6rem 1.45rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.plan:hover { transform: translateY(-3px); border-color: rgba(15, 122, 108, 0.35); }
.plan-focus { border-color: rgba(15, 122, 108, 0.45); background: #f7fbfa; }
.plan h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.sum {
  margin: 0;
  font-family: var(--font);
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sum span {
  display: inline-block;
  margin-left: 0.35rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.plan-desc { margin: 0; color: var(--ink-soft); }
.plan .btn { width: 100%; margin-top: 0.4rem; }
.pricing-note {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.pricing-note a { color: var(--teal-deep); font-weight: 700; }

.max-cta {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}
.max-cta .btn { margin-top: 1.4rem; }

.contact {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(26, 165, 143, 0.12), transparent 55%),
    linear-gradient(180deg, #e8efed 0%, var(--paper) 55%);
}
.contact-inner {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
}
.contact-head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
}
.contact-head p {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  max-width: 36rem;
}
.contact-form {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.25rem 1.2rem 1.4rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}
.contact-form .field {
  margin-bottom: 0.85rem;
}
.contact-form label {
  display: block;
  font-weight: 650;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}
.contact-form .opt {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.8rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  font: inherit;
  background: #fff;
}
.contact-form input {
  min-height: 2.75rem;
}
.contact-form textarea {
  resize: vertical;
  min-height: 7rem;
}
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-status {
  margin: 0.35rem 0 0.85rem;
  font-weight: 650;
  font-size: 0.92rem;
}
.contact-status.ok { color: var(--teal-deep); }
.contact-status.err { color: #9b2c2c; }
.contact-form .btn { min-width: 10rem; }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.foot {
  border-top: 1px solid var(--line);
  background: #102226;
  color: rgba(243, 246, 245, 0.78);
  padding: 2.5rem clamp(1rem, 4vw, 2.75rem) 2rem;
}
.foot-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 0.45rem;
}
.foot-brand p { margin: 0; max-width: 36rem; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
  margin: 1.6rem 0 1.2rem;
}
.foot-links a { text-decoration: none; color: rgba(243, 246, 245, 0.78); }
.foot-links a:hover { color: #fff; }
.foot-copy { margin: 0; font-size: 0.85rem; color: rgba(243, 246, 245, 0.45); }

.cookie {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: min(360px, calc(100% - 2rem));
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 12px 32px rgba(16, 34, 38, 0.14);
}
.cookie[hidden] {
  display: none !important;
}
.cookie p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.cookie .btn { width: 100%; position: relative; z-index: 1; }

/* APP */
.page-app { background: #eef2f1; min-height: 100vh; }
.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.app-top-right { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.trial-tag {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  background: rgba(15, 122, 108, 0.1);
  color: var(--teal-deep);
  border: 1px solid rgba(15, 122, 108, 0.22);
}
.text-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-soft);
}
.app-grid {
  width: min(1200px, calc(100% - 2rem));
  margin: 1.1rem auto 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  gap: 1rem;
}
.work, .rail {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 1.2rem;
}
.work-head h1,
.rail h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.035em;
}
.work-head h1 { font-size: 1.55rem; }
.rail h2 { font-size: 1.25rem; }
.work-head p, .rail > p, .fineprint {
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.work-head p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.topic-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 0.35rem;
}
.topic-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.topic-chip:hover {
  border-color: rgba(15, 122, 108, 0.35);
}
.topic-chip.active {
  background: rgba(15, 122, 108, 0.12);
  border-color: rgba(15, 122, 108, 0.35);
  color: var(--teal-deep);
}
.chat-shell {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f7faf9;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}
.messages {
  flex: 1;
  overflow: auto;
  max-height: 52vh;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.msg {
  max-width: 94%;
  padding: 0.95rem 1.05rem;
  border-radius: 0.5rem;
  animation: rise 0.35s ease both;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.55;
}
.msg.user {
  align-self: flex-end;
  white-space: pre-wrap;
  background: rgba(15, 122, 108, 0.08);
  border-color: rgba(15, 122, 108, 0.2);
}
.msg.assistant { align-self: flex-start; }
.msg.pending { opacity: 0.7; font-style: italic; }
.msg.pending .answer-body p { margin: 0; }
.answer-body { display: grid; gap: 0.7rem; }
.answer-body p {
  margin: 0;
  color: var(--ink);
}
.answer-body p:first-child {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.answer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.answer-list li {
  position: relative;
  padding: 0.7rem 0.85rem 0.7rem 2.35rem;
  background: #f4f8f7;
  border: 1px solid rgba(16, 34, 38, 0.08);
  border-radius: 0.4rem;
  color: var(--ink);
}
ol.answer-list { counter-reset: ans; }
ol.answer-list li { counter-increment: ans; }
ol.answer-list li::before {
  content: counter(ans);
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.3rem;
  background: rgba(15, 122, 108, 0.12);
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
ul.answer-list li::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 1.15rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--teal);
}
.answer-body strong { font-weight: 700; color: var(--ink); }
.cite {
  display: inline-block;
  margin-left: 0.2rem;
  padding: 0.08rem 0.4rem;
  border-radius: 0.25rem;
  background: rgba(15, 122, 108, 0.1);
  color: var(--teal-deep);
  font-size: 0.86em;
  font-weight: 600;
  white-space: normal;
}
.sources {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.sources-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-right: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.source-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #eef5f3;
  border: 1px solid rgba(15, 122, 108, 0.18);
  color: var(--teal-deep);
  font-size: 0.8rem;
  font-weight: 600;
}
.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.composer textarea {
  resize: vertical;
  min-height: 3.1rem;
  max-height: 9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.composer textarea:focus {
  outline: 2px solid rgba(15, 122, 108, 0.35);
  outline-offset: 1px;
}
.upload-form { display: grid; gap: 0.65rem; margin-top: 1rem; }
.upload-drop {
  display: grid;
  gap: 0.2rem;
  padding: 1.05rem;
  border: 1px dashed rgba(16, 34, 38, 0.28);
  border-radius: var(--radius);
  cursor: pointer;
  background: #f7faf9;
}
.upload-title { font-weight: 700; }
.upload-hint { font-size: 0.85rem; color: var(--ink-soft); }
.upload-status { min-height: 1.2rem; font-size: 0.88rem; color: var(--ink-soft); }
.rail-list-title {
  margin: 1.2rem 0 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.doc-list li {
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf9;
}
.doc-list .title { font-weight: 700; font-size: 0.92rem; }
.doc-list .meta { margin-top: 0.2rem; font-size: 0.8rem; color: var(--ink-soft); }
.app-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem) 1.6rem;
}
.app-foot a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Legal */
.page-legal .top,
.page-legal .site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.75rem);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.page-legal .logo,
.page-legal .brand,
.page-legal .brand-word,
.page-legal .site-nav a,
.page-legal .top-nav a { color: var(--ink); text-decoration: none; }
.page-legal .brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; }
.page-legal .brand-mark { display: none; }
.page-legal .nav-cta {
  padding: 0.55rem 0.9rem;
  background: var(--teal);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 700;
}
.legal-wrap {
  width: min(820px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
  padding: 1.7rem 1.45rem 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
.legal-wrap h1 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  letter-spacing: -0.035em;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}
.legal-wrap .meta { color: var(--ink-soft); margin-bottom: 1.3rem; }
.legal-wrap h2 { margin: 1.45rem 0 0.45rem; font-size: 1.1rem; }
.legal-wrap a { color: var(--teal-deep); font-weight: 700; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-visual { min-height: 260px; }
  .plan-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .top-nav a:not(.top-link) { display: none; }
  .hero-copy { padding-top: 6.5rem; }
  .compare-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1.15rem 0;
  }
  .compare-head { display: none; }
  .compare-row > :nth-child(2)::before {
    content: "ChatGPT: ";
    font-weight: 700;
    color: var(--ink);
  }
  .compare-row > :nth-child(3)::before {
    content: "МедАссистент: ";
    font-weight: 700;
    color: var(--ink);
  }
}

/* —— Registration —— */
.page-register {
  min-height: 100svh;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(26, 165, 143, 0.14), transparent 60%),
    linear-gradient(180deg, #e8efed 0%, var(--paper) 40%);
}
.reg-wrap {
  width: min(720px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
}
.reg-head h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
}
.reg-head p {
  margin: 0;
  color: var(--ink-soft);
}
.reg-steps {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 1.25rem 0 1rem;
}
.reg-steps li {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.4rem;
  border-bottom: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}
.reg-steps li.active {
  border-color: var(--teal);
  color: var(--teal-deep);
}
.reg-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.25rem 1.2rem 1.4rem;
}
.party-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.party-card {
  appearance: none;
  text-align: center;
  border: 1px solid var(--line);
  background: #f7faf9;
  border-radius: 0.45rem;
  padding: 1.35rem 1.05rem;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.party-card strong {
  display: block;
  margin: 0;
  font-size: 1.1rem;
}
.party-card:hover,
.party-card.active {
  border-color: rgba(15, 122, 108, 0.45);
  background: rgba(15, 122, 108, 0.08);
}
.reg-form .field {
  margin-bottom: 0.85rem;
}
.reg-form label {
  display: block;
  font-weight: 650;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}
.reg-form input[type="text"],
.reg-form input[type="email"],
.reg-form input[type="tel"],
.reg-form input[type="password"],
.reg-form input[type="file"] {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  font: inherit;
  background: #fff;
}
.reg-switch {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
}
.reg-switch a {
  color: var(--teal-deep);
  font-weight: 700;
}
.max-bind {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: rgba(15, 122, 108, 0.1);
  border: 1px solid rgba(15, 122, 108, 0.25);
  border-radius: 0.35rem;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  user-select: all;
}
.max-bind code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.reg-form .check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.65rem 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.reg-form .check[hidden] {
  display: none !important;
}
.reg-form .check input {
  margin-top: 0.25rem;
}
.reg-form .check a {
  color: var(--teal-deep);
  font-weight: 700;
}
.reg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}
.reg-error {
  margin: 0.75rem 0 0;
  color: #9b2c2c;
  font-weight: 650;
  font-size: 0.92rem;
}
.hint {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}
.demo-card {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed rgba(15, 122, 108, 0.35);
  border-radius: 0.45rem;
  background: rgba(15, 122, 108, 0.05);
}
#pay-individual h2,
#pay-legal h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}
@media (max-width: 720px) {
  .party-grid,
  .field-row {
    grid-template-columns: 1fr;
  }
}
