:root {
  --color-bg: #f4f7f3;
  --color-bg-elevated: #ffffff;
  --color-bg-muted: #edf3ec;
  --color-bg-strong: #123c3b;
  --color-text: #122322;
  --color-text-soft: #445a58;
  --color-brand: #0f766e;
  --color-brand-hover: #0b5f59;
  --color-brand-soft: #dff5f1;
  --color-accent: #ffb100;
  --color-accent-soft: #fff9ec;
  --color-accent-border: #eadfbe;
  --color-accent-text: #6d5b2f;
  --color-error: #b42318;
  --color-error-soft: #fff0ee;
  --color-success: #067647;
  --color-success-soft: #ecfdf3;
  --color-border: #c9d8d2;
  --color-focus: #0f766e;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --shadow-soft: 0 12px 30px rgba(18, 35, 34, 0.08);
  --shadow-card: 0 10px 20px rgba(18, 35, 34, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at 8% 5%, #d7efe8 0%, rgba(215, 239, 232, 0) 30%),
    radial-gradient(circle at 90% 8%, #fce9bc 0%, rgba(252, 233, 188, 0) 34%),
    var(--color-bg);
  min-height: 100vh;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(18, 35, 34, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 35, 34, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
}

.bg-orb {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 999px;
  filter: blur(68px);
  z-index: -1;
  opacity: 0.46;
}

.orb-1 {
  background: #b7e9dc;
  top: -120px;
  right: -80px;
}

.orb-2 {
  background: #ffe1ab;
  bottom: -120px;
  left: -80px;
}

.topbar {
  max-width: 1260px;
  margin: 0 auto;
  padding: 8px var(--space-5) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--space-5);
  overflow: hidden;
  /* background: linear-gradient(110deg, #edf9f6, #ffffff 28%, #eaf8f4 60%, #f7f2df); */
}

.hero-copy {
  min-width: 0;
}

.hero-logo {
  display: block;
  width: 184px;
  max-width: 100%;
  height: auto;
  margin-bottom: 0;
}

.brand {
  margin: 0;
  color: #7b9da1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

h1,
h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  margin-top: 16px;
  font-size: clamp(1.5rem, 2.7vw, 2.125rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  margin-bottom: var(--space-2);
}

.hero-subtitle {
  margin: var(--space-2) 0 0;
  color: var(--color-text-soft);
  font-size: clamp(1rem, 1.43vw, 1.125rem);
  line-height: 1.45;
  max-width: none;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  list-style: none;
  margin: var(--space-5) 0 var(--space-6);
  padding: 0;
  width: calc(100% + 48px);
}

.hero-benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--color-text-soft);
}

.hero-benefits strong {
  display: block;
  margin-bottom: 3px;
  color: var(--color-text);
  font-size: 0.88rem;
}

.hero-benefits strong + span {
  display: block;
}

.benefit-icon {
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #c9eee5;
  color: var(--color-brand);
}

.benefit-icon svg {
  width: 30px;
  height: 30px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  height: clamp(280px, 25.2vw, 318px);
}

.hero-mascot {
  position: absolute;
  right: clamp(40px, 4.3vw, 54px);
  bottom: 0;
  display: block;
  width: min(44.4vw, 560px);
  height: auto;
}

.price-card {
  position: absolute;
  z-index: 1;
  top: 37px;
  right: -24px;
  width: clamp(190px, 19vw, 238px);
  background: linear-gradient(120deg, #084b58, #087064);
  color: #f7fffd;
  border: 2px solid #78a5a2;
  border-radius: 22px;
  padding: 22px 28px;
  font-weight: 700;
  max-width: 100%;
}

.price-label,
.price-value,
.price-caption,
.price-policy {
  margin: 0;
}

.price-label {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem;
  margin-top: var(--space-1);
  white-space: nowrap;
}

.price-tax {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.8;
}

.price-caption {
  font-size: 0.93rem;
  line-height: 1.5;
  opacity: 0.9;
}

.price-policy {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  color: #c5efe6;
}

.container {
  max-width: 1020px;
  margin: var(--space-5) auto 48px;
  /* margin-top: 0;            /* Обнуляем отступ сверху */
  padding: 0 var(--space-4);
  display: grid;
  gap: var(--space-4);
}

.container > * {
  min-width: 0;
}

.conversion-visual {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-bg-elevated), #f9fcf8);
}

.conversion-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.owl-label {
  position: absolute;
  z-index: 1;
  top: 38px;
  left: -48px;
  transform: rotate(-8deg);
  color: var(--color-brand);
  font-family: "Caveat", "Bradley Hand", cursive;
  font-weight: 600;
  font-size: clamp(22px, 2.22vw, 28px);
  line-height: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.owl-arrow {
  position: absolute;
  top: calc(100% + 8px);
  left: 4px;
  width: 48px;
  height: 54px;
  transform: rotate(8deg);
}
.card {
  background: linear-gradient(180deg, var(--color-bg-elevated), #f9fcf8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}

.journey {
  background: linear-gradient(180deg, #f2f9f6, #edf7f2);
  border: 1px solid #b9dace;
}

.journey-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.journey-item {
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-weight: 700;
  color: var(--color-text-soft);
  background: rgba(255, 255, 255, 0.76);
  border: 1px dashed #b9dace;
  font-size: 0.92rem;
}

.journey-item.active {
  color: var(--color-brand);
  border-style: solid;
  background: #ffffff;
}

.reveal {
  animation: rise 420ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 90ms;
}

.reveal:nth-child(3) {
  animation-delay: 180ms;
}

.reveal:nth-child(4) {
  animation-delay: 270ms;
}

.reveal:nth-child(5) {
  animation-delay: 340ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.muted {
  color: var(--color-text-soft);
  margin-top: 0;
  margin-bottom: var(--space-3);
}

.status-line {
  margin-top: var(--space-3);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  background: #f4fbf8;
  color: #134846;
  white-space: normal;
  overflow-wrap: anywhere;
}

.status-line.error {
  color: var(--color-error);
  border-color: #f0b2ac;
  background: var(--color-error-soft);
}

.status-line.success {
  color: var(--color-success);
  border-color: #9fe7bf;
  background: var(--color-success-soft);
}

.status-line.info {
  color: #124b4a;
  border-color: #a9d8d0;
  background: #ebfbf7;
}

.upload-file-list {
  margin: 8px 0 0 18px;
  padding: 0;
}

.upload-file-list li {
  margin: 4px 0;
}

.session-info-note {
  margin-bottom: var(--space-3);
  border: 1px dashed #b6d8cf;
  background: #f2faf7;
  border-radius: var(--radius-sm);
  padding: var(--space-2);
}

.session-info-note .muted {
  margin-bottom: var(--space-2);
}

.session-status-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.session-status-row .status-line {
  margin: 0;
  flex: 1;
}

.session-status-row button {
  white-space: nowrap;
}

.scope-note {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-accent-border);
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  font-size: 0.95rem;
}

.upload-dropzone {
  cursor: pointer;
  border: 2px dashed #b7d9cf;
  background: linear-gradient(180deg, #ffffff, #f5fbf8);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.upload-dropzone:hover {
  border-color: #8ec7bb;
}

.upload-dropzone.drag-active {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
  background: linear-gradient(180deg, #ffffff, #eaf8f3);
}

.upload-dropzone:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.dropzone-hint {
  margin: var(--space-2) 0 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px dashed #b6d8cf;
  background: #f2faf7;
  color: #124b4a;
  font-weight: 600;
}

.uploaded-files-list {
  margin-top: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #f8fcfa;
  padding: var(--space-2);
}

.uploaded-files-list ol {
  margin: 0;
  padding-left: 20px;
}

.uploaded-files-list li {
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.uploaded-files-list li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.csv-separator-note {
  margin: 0 0 var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px dashed #b6d8cf;
  background: #f2faf7;
  color: #124b4a;
  font-size: 0.92rem;
}

.step-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.step-kicker {
  margin: 0;
  color: var(--color-brand);
  font-size: 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hint-inline {
  margin: var(--space-2) 0 0;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

label {
  display: block;
  margin: var(--space-3) 0 var(--space-1);
  font-weight: 600;
}

textarea,
input[type="file"] {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  background: white;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 88px;
}

textarea:focus,
input:focus,
button:focus {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.segmented-btn {
  border: 0;
  background: var(--color-bg-muted);
  padding: var(--space-2);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.segmented-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.subsection-title {
  margin: var(--space-3) 0 var(--space-2);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.segmented-btn.active {
  background: white;
  color: var(--color-brand);
}

.mode-guidance {
  margin: var(--space-2) 0 0;
  border-left: 4px solid var(--color-brand);
  background: var(--color-brand-soft);
  color: #144540;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-2) var(--space-3);
  font-size: 0.95rem;
}

.panel {
  display: none;
  margin-top: var(--space-3);
}

.panel.active {
  display: block;
}

.inline-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
}

.inline-checkbox-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.option-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #8dc9b7;
  background: #eef8f4;
  color: #14544d;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  user-select: none;
}

.option-info:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.option-info-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: min(320px, 72vw);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #123c3b;
  color: #f7fffd;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.35;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 35;
  white-space: pre-line;
  transition: opacity 120ms ease, transform 120ms ease;
}

.option-info:hover .option-info-tooltip,
.option-info:focus-visible .option-info-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

.payment-consent {
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #f8fcfa;
}

.payment-consent-checkbox {
  align-items: flex-start;
  font-weight: 500;
  line-height: 1.45;
}

.payment-consent a {
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.settings-block {
  margin-top: var(--space-3);
  border-style: dashed;
}

.settings-block select,
.settings-block input[type="text"] {
  min-width: 0;
  max-width: 100%;
}

.settings-block-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  align-items: center;
}

.settings-block-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.small {
  padding: 8px 12px;
  font-size: 0.9rem;
}

.file-check-list {
  display: grid;
  gap: 6px;
  margin-bottom: var(--space-2);
}

.nested-section {
  margin-left: 14px;
  border-left: 3px solid #c4ddd5;
  padding-left: var(--space-3);
  padding-bottom: var(--space-2);
}

.nested-subsection {
  margin-top: var(--space-2);
}

.list-editor {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  background: #f8fcfa;
}

.list-editor-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
  align-items: start;
}

.list-editor-input-row textarea {
  min-height: 84px;
}

.list-chip-wrap {
  margin-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.list-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f5ef;
  border: 1px solid #b7dfd1;
  color: #14544d;
  border-radius: 999px;
  padding: 4px 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.chip-remove {
  border-radius: 999px;
  border: 1px solid #8dc9b7;
  background: #ffffff;
  color: #14544d;
  padding: 0 6px;
  min-height: 22px;
}

.list-empty {
  margin: 0;
  font-size: 0.92rem;
}

.summary-card {
  width: 100%;
  background: #f8fcfa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}

.summary-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.summary-warning {
  margin: 0 0 var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid #f0b2ac;
  background: var(--color-error-soft);
  color: var(--color-error);
  font-size: 0.93rem;
}

/* Non-blocking quality remarks that do not require a retry: warm amber tone, not red. */
.summary-notice {
  margin: 0 0 var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-accent-border);
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  font-size: 0.93rem;
}

.summary-disclaimer {
  margin: 0 0 var(--space-2);
  color: #5f6d73;
  font-size: 0.84rem;
  font-style: italic;
}

/* In-progress state (e.g. retrying a file): neutral, matches the initial processing spinner row. */
.summary-progress {
  margin: 0 0 var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid #a9d8d0;
  background: #ebfbf7;
  color: #124b4a;
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-timing {
  margin: 0 0 var(--space-2);
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.summary-actions {
  margin-top: 0;
}

.download-action-with-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.download-action-with-info .option-info {
  flex: 0 0 auto;
}

.summary-info-box {
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid #d5e6e3;
  background: #f4faf9;
}

.summary-info-box h4 {
  margin: 0;
  font-size: 0.85rem;
  color: #1a3f3a;
}

.summary-stats {
  margin: var(--space-2) 0 0;
  padding-left: 18px;
}

.summary-stats li {
  margin: 4px 0;
  color: #1a3f3a;
}

.hint {
  margin: var(--space-2) 0;
  font-weight: 700;
}

.hint-list {
  margin: 0 0 var(--space-2);
  padding-left: 20px;
  color: var(--color-text-soft);
}

.actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button:disabled:hover {
  transform: none;
}

.primary {
  background: linear-gradient(155deg, var(--color-brand), #159588);
  color: white;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.25);
}

.primary:hover {
  background: linear-gradient(155deg, var(--color-brand-hover), #12766d);
}

.secondary {
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  border: 1px solid var(--color-accent-border);
}

.secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.status {
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  font-weight: 600;
}

.status.error {
  color: var(--color-error);
  border-color: #f0b2ac;
  background: var(--color-error-soft);
}

.status.success {
  color: var(--color-success);
  border-color: #9fe7bf;
  background: var(--color-success-soft);
}

.status.info {
  color: #124b4a;
  border-color: #a9d8d0;
  background: #ebfbf7;
}

.status.warning {
  color: var(--color-accent-text);
  border-color: var(--color-accent-border);
  background: var(--color-accent-soft);
}

.process-progress {
  margin-top: var(--space-3);
  height: 10px;
  border-radius: 999px;
  background: #e4f2ee;
  border: 1px solid #b8d8cf;
  overflow: hidden;
}

.process-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #1ea899);
  transition: width 280ms ease;
}

.process-file-progress {
  margin-top: var(--space-2);
  display: grid;
  gap: 8px;
}

.process-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #b8d8cf;
  background: #f6fcfa;
}

.process-file-name {
  color: #1a3f3a;
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.process-file-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #14544d;
  font-size: 0.9rem;
}

.process-file-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #a9d8d0;
  border-top-color: #0f766e;
  border-radius: 999px;
  animation: spin 700ms linear infinite;
  flex: 0 0 auto;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.retry-info {
  margin: var(--space-2) 0 0;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.download-actions {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.post-batch-session-actions {
  margin-top: var(--space-2);
}

.download-all-btn {
  background: linear-gradient(155deg, #12766d, #0f766e);
  color: #ffffff;
  border: 1px solid #0f766e;
}

.download-btn {
  background: #ecfbf7;
  color: #14544d;
  border: 1px solid #a8dbd1;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-weight: 700;
  cursor: pointer;
}

.download-btn:hover {
  background: #daf5ee;
}

.retry-file-btn {
  border-color: #f0b2ac;
  background: #fff0ee;
  color: #9f2a1f;
}

.retry-file-btn:hover {
  background: #ffe6e2;
}

.site-footer {
  max-width: 1020px;
  margin: 0 auto 28px;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.footer-copy {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-link-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}

.footer-link-btn:hover {
  background: #f0f6f2;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.6;
}

.legal-page h1,
.legal-page h2,
.legal-page h3 {
  font-family: "Space Grotesk", sans-serif;
  color: var(--color-text);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.legal-page h1:first-child,
.legal-page h2:first-child {
  margin-top: 0;
}

.legal-page p {
  color: var(--color-text-soft);
  margin: 0 0 var(--space-3);
}

.legal-page ul,
.legal-page ol {
  color: var(--color-text-soft);
  padding-left: 1.4em;
  margin: 0 0 var(--space-3);
}

.legal-page li {
  margin-bottom: var(--space-1);
}

.legal-page a {
  color: var(--color-brand);
}

.legal-page .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 var(--space-4);
  border-radius: var(--radius-sm);
}

.legal-page table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.92rem;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--color-border);
  padding: var(--space-2);
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background: var(--color-bg-muted);
}

@media (max-width: 520px) {
  .legal-page table {
    min-width: 420px;
    font-size: 0.86rem;
  }

  .legal-page th,
  .legal-page td {
    padding: var(--space-1) var(--space-2);
  }
}

.support-fab {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--color-brand);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: background-color 180ms ease, transform 180ms ease;
}

.support-fab:hover {
  background: var(--color-brand-hover);
  transform: translateY(-1px);
}

.support-fab:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .support-fab {
    position: static;
    width: max-content;
    margin: 0 var(--space-3) var(--space-5) auto;
    padding: 12px 16px;
    font-size: 0.92rem;
  }
}

.modal-actions {
  justify-content: flex-end;
  margin-top: var(--space-2);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 35, 34, 0.52);
}

.modal-content {
  position: relative;
  width: min(640px, calc(100% - 32px));
  background: #ffffff;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  padding: var(--space-4);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.modal-header h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.modal-close {
  background: #f0f6f2;
  border: 1px solid var(--color-border);
  color: #274745;
}

.modal-body p {
  margin: 0 0 var(--space-2);
  color: var(--color-text-soft);
  line-height: 1.45;
}

.legal-modal-content {
  width: min(880px, calc(100% - 32px));
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.legal-modal-content .modal-body {
  width: 100%;
  min-width: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.preview {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: #161b22;
  color: #e6edf3;
  overflow-x: auto;
  min-height: 120px;
}

@media (min-width: 1051px) and (max-width: 1250px) {
  .hero-benefits {
    width: 100%;
    grid-template-columns: 1.05fr 1.15fr 1fr;
  }

  .hero-benefits li {
    font-size: 0.75rem;
  }

  .hero-benefits strong {
    font-size: 0.82rem;
  }

  .benefit-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 1050px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
    padding-top: var(--space-4);
  }

  .hero-benefits {
    width: 100%;
    max-width: 640px;
    margin-bottom: 0;
  }

  .hero-visual {
    width: 100%;
    max-width: 560px;
    height: 320px;
    justify-self: center;
  }

  .hero-mascot {
    width: 560px;
    max-width: 100%;
    right: 0;
  }

  .price-card {
    right: 0;
    width: 210px;
    padding: var(--space-4);
  }

  .owl-label {
    left: 0;
    top: 18px;
    font-size: 28px;
  }

  h1 br {
    display: none;
  }

  .journey-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    padding: var(--space-4);
  }

  .session-status-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .topbar,
  .container,
  .site-footer {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  .topbar {
    margin-top: 0;
  }

  .hero-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-4);
  }

  .hero-benefits li:last-child {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-benefits li {
    font-size: 0.86rem;
  }

  .hero-benefits strong {
    font-size: 0.92rem;
  }

  .hero-visual {
    height: auto;
    aspect-ratio: 362 / 200;
  }

  .hero-mascot {
    width: 100%;
    right: 6%;
    bottom: -10px;
  }

  .price-card {
    top: 12px;
    width: clamp(110px, 34vw, 142px);
    padding: var(--space-2);
    border-radius: var(--radius-md);
  }

  .owl-label {
    top: 12px;
    font-size: clamp(18px, 4.75vw, 24px);
  }

  .owl-arrow {
    width: 36px;
    height: 40px;
  }

  .price-value {
    font-size: clamp(1rem, 4.1vw, 1.4rem);
  }

  .price-tax {
    font-size: 0.65rem;
  }

  .price-caption {
    font-size: clamp(0.7rem, 2.7vw, 0.8rem);
  }

  .container {
    margin-top: var(--space-4);
    margin-bottom: var(--space-5);
    gap: var(--space-3);
  }

  .card {
    padding: var(--space-3);
  }

  .journey-list {
    grid-template-columns: 1fr;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .actions button {
    width: 100%;
  }

  .download-action-with-info {
    width: 100%;
  }

  .download-action-with-info .download-btn {
    flex: 1 1 auto;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-editor-input-row {
    grid-template-columns: 1fr;
  }

  .nested-section {
    margin-left: 0;
    padding-left: var(--space-2);
  }

  .inline-checkbox-row {
    align-items: flex-start;
  }

  .option-info {
    margin-top: 2px;
  }

  .option-info-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0);
    max-width: min(300px, 88vw);
  }

  .option-info:hover .option-info-tooltip,
  .option-info:focus-visible .option-info-tooltip {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
  }

  .process-file-spinner {
    animation: none;
  }

  button,
  .segmented-btn {
    transition: none;
  }
}
