/* Shared styles for legal pages, checkout and post-payment screens.
   The landing keeps its inline design; this file is intentionally scoped
   to the pages that use the compact legal layer. */

:root {
  --bg: #070407;
  --panel: #151719;
  --panel-2: #111315;
  --border: #23262a;
  --border-strong: #2e3236;
  --text: #f2f2f0;
  --muted: #a3a7ab;
  --muted-2: #8a8f94;
  --accent: #c8231b;
  --accent-hover: #e0352b;
  --link: #ff5a4e;
  --ok: #2f8f57;
  --warn: #d8a23a;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: Oswald, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: #ff8077;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 4, 7, 0.92);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav a {
  color: #d6d8da;
}

.nav a:hover {
  color: var(--text);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

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

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--muted);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

/* Legal pages */

.legal {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.legal h1 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.legal h2 {
  margin: 34px 0 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  text-transform: uppercase;
}

.legal h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.legal p {
  margin: 0 0 12px;
  color: #d6d8da;
}

.legal li {
  margin: 0 0 6px;
  color: #d6d8da;
}

.legal ul,
.legal ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal .meta {
  margin: 0 0 24px;
  color: var(--muted-2);
  font-size: 13px;
}

.legal .lead {
  font-size: 18px;
  color: #e4e6e8;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 14px;
}

.legal th,
.legal td {
  border: 1px solid var(--border);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--panel);
  font-weight: 600;
}

.legal .notice {
  margin: 18px 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: #d6d8da;
  font-size: 14px;
}

.legal .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.legal .small {
  color: var(--muted-2);
  font-size: 13px;
}

.legal .anchor {
  scroll-margin-top: 90px;
}

.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #191b1e;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 24px 30px;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 2px;
}

.footer-social a {
  color: var(--muted);
}

.footer-legal {
  color: var(--muted-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}


.footer-info {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 4px;
}

.footer-info-title {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 2px;
}

/* Forms */

.form-card,
.summary-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}

.form-card h2,
.summary-card h2 {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 14px;
  color: #d6d8da;
}

.field .hint {
  font-size: 12px;
  color: var(--muted-2);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  background: #0f1113;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.textarea {
  min-height: 92px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 35, 27, 0.18);
}

.input::placeholder,
.textarea::placeholder {
  color: #6f757b;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
  font-size: 14px;
  color: #d6d8da;
  line-height: 1.5;
}

.checkbox input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.checkbox a {
  color: var(--link);
}

.form-note {
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
}

.form-error {
  display: none;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #6b1f1a;
  border-radius: 8px;
  background: #24100f;
  color: #ffb4ad;
  font-size: 14px;
}

.form-error.is-visible {
  display: block;
}

.form-success {
  display: none;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #245c3a;
  border-radius: 8px;
  background: #0f2418;
  color: #b7e4c7;
  font-size: 14px;
}

.form-success.is-visible {
  display: block;
}

/* Checkout */

.checkout-page {
  padding: 40px 0 64px;
}

.checkout-head {
  margin-bottom: 24px;
}

.checkout-head h1 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.1;
  text-transform: uppercase;
}

.checkout-head p {
  margin: 0;
  color: var(--muted);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #d6d8da;
}

.summary-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.summary-list .check {
  color: var(--link);
  font-weight: 700;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 6px;
}

.price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
}

.price-note {
  color: var(--muted-2);
  font-size: 13px;
}

.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.pay-badges a,
.pay-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: #d6d8da;
  font-size: 12px;
  line-height: 1;
}

.demo-banner {
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid #5a4616;
  border-radius: 8px;
  background: #1d1808;
  color: #e7c97a;
  font-size: 13px;
}

.secure-note {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
}

/* Post-payment */

.center-card {
  max-width: 680px;
  margin: 48px auto;
  padding: 0 24px;
}

.status-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px;
}

.status-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.status-icon.ok {
  background: #10251a;
  color: #6fd39a;
  border: 1px solid #245c3a;
}

.status-icon.fail {
  background: #24100f;
  color: #ff9a91;
  border: 1px solid #6b1f1a;
}

.status-card h1 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
  text-transform: uppercase;
}

.status-card p {
  color: #d6d8da;
}

.order-box {
  margin: 18px 0;
  padding: 14px 16px;
  background: #0f1113;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: #d6d8da;
}

.order-box div + div {
  margin-top: 6px;
}

.order-box strong {
  color: var(--text);
}

/* Misc */

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

.small {
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  .legal h1 {
    font-size: 32px;
  }

  .checkout-head h1 {
    font-size: 30px;
  }

  .status-card {
    padding: 24px;
  }

  .nav {
    gap: 14px;
    font-size: 13px;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .container {
    padding: 0 16px;
  }

  .legal {
    padding: 32px 16px 56px;
  }
}

@media (max-width: 520px) {
  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .header-inner .btn {
    width: 100%;
  }

  .legal h1 {
    font-size: 28px;
  }

  .legal h2 {
    font-size: 21px;
  }

  .price {
    font-size: 38px;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .site-footer,
  .actions {
    display: none;
  }

  .legal {
    max-width: none;
    padding: 0;
  }

  .legal h1,
  .legal h2,
  .legal h3,
  .legal p,
  .legal li,
  .legal td,
  .legal th {
    color: #111;
  }

  .legal a {
    color: #111;
    text-decoration: underline;
  }

  .legal table,
  .legal th,
  .legal td {
    border-color: #999;
  }

  .legal th {
    background: #f2f2f2;
  }
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 16px;
  background: #151719;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  color: #d6d8da;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-banner__text {
  flex: 1 1 420px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-banner .btn {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
}

@media (max-width: 520px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 auto;
  }
}

.legal h2[id] {
  scroll-margin-top: 90px;
}

.status-pending {
  color: var(--warn);
}

.status-paid {
  color: #6fd39a;
}

.status-fail {
  color: #ff9a91;
}
