/* VisualSync billing — shared public pages (checkout, legal) */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #f4f7fb;
  color: #0f172a;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: #0369a1; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── App shell ── */
.vs-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.vs-main {
  flex: 1;
  padding: 32px 16px 40px;
}

.vs-main-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.vs-main-inner--sm { max-width: 520px; }
.vs-main-inner--checkout { max-width: 640px; }

/* ── Site header ── */
.vs-site-header {
  background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 32px rgba(15, 23, 42, .18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.vs-site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vs-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none !important;
  line-height: 0;
}

.vs-brand-logo {
  display: block;
  height: 75px;
  max-height: 75px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  object-position: left center;
}

.vs-brand-name {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  white-space: nowrap;
}

@media (min-width: 1px) {
  .vs-brand-name { display: none; }
}

.vs-site-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 2px;
}

.vs-nav-link {
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: color .12s, background .12s;
  line-height: 1.2;
  white-space: nowrap;
}

.vs-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.vs-nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.vs-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  margin-left: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2196F3 0%, #9C27B0 100%);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(33, 150, 243, .28);
  transition: filter .12s;
  white-space: nowrap;
  line-height: 1.2;
}

.vs-nav-cta:hover {
  filter: brightness(1.06);
  transform: none;
}

.vs-nav-cta.is-active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .3), 0 2px 10px rgba(33, 150, 243, .28);
}

.vs-cta-short { display: none; }

@media (max-width: 480px) {
  .vs-cta-long { display: none; }
  .vs-cta-short { display: inline; }
}

/* ── Site footer ── */
.vs-site-footer {
  background: #0b1220;
  color: rgba(255, 255, 255, .72);
  padding: 28px 20px 22px;
  margin-top: auto;
}

.vs-site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 32px;
}

.vs-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vs-footer-brand strong {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.vs-footer-brand span {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

.vs-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: flex-end;
}

.vs-footer-nav a {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

.vs-footer-nav a:hover { color: #fff; }

.vs-footer-copy {
  max-width: 1100px;
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  text-align: center;
  line-height: 1.6;
}

.vs-footer-copy a {
  color: rgba(255, 255, 255, .72);
  font-weight: 600;
}

/* ── Checkout ── */
.checkout-page,
.legal-page,
.success-page {
  /* legacy body classes — layout handled by .vs-app */
}

.checkout-layout {
  width: 100%;
}
.checkout-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(15, 23, 42, .04), 0 20px 50px rgba(14, 165, 233, .12);
  border: 1px solid rgba(186, 230, 253, .6);
  max-width: 640px;
  width: 100%;
  padding: 36px 32px 28px;
}

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

.checkout-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0369a1;
  background: #e0f2fe;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.checkout-badge--trial {
  color: #fff;
  background: linear-gradient(90deg, #2196F3 0%, #9C27B0 100%);
  box-shadow: 0 2px 10px rgba(33, 150, 243, .25);
}

.checkout-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #0c4a6e;
  line-height: 1.15;
}

.checkout-lead {
  color: #475569;
  font-size: 16px;
  margin: 0;
  line-height: 1.55;
}

.checkout-sub {
  color: #64748b;
  font-size: 14px;
  margin: 0 0 22px;
  line-height: 1.55;
}

.checkout-section-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}

.checkout-includes {
  margin-bottom: 22px;
  padding: 16px 18px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.checkout-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.checkout-feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.45;
  color: #334155;
}

.checkout-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0ea5e9;
  font-weight: 800;
  font-size: 14px;
}

.checkout-feature-list strong {
  color: #0c4a6e;
  font-weight: 600;
}

.checkout-pricing {
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(186, 230, 253, .8);
  box-shadow: 0 4px 20px rgba(14, 165, 233, .1);
}

.checkout-pricing-main {
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 55%, #7c3aed 100%);
  color: #fff;
}

.checkout-pricing-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .88;
  margin-bottom: 6px;
}

.checkout-pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.checkout-price-big {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
}

.checkout-price-period {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: .9;
}

.checkout-pricing-detail {
  margin: 0;
  font-size: 13px;
  opacity: .92;
  line-height: 1.45;
}

.checkout-pricing-note {
  margin: 0;
  padding: 12px 20px 14px;
  background: #fff;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  border-top: 1px solid #e2e8f0;
}

.checkout-location-note {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bae6fd;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  color: #0c4a6e;
  margin-bottom: 26px;
  line-height: 1.55;
}

.checkout-form-wrap {
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
}

.field-optional {
  font-weight: 400;
  color: #94a3b8;
}

.checkout-alert {
  background: #fef2f2;
  color: #b91c1c;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid #fecaca;
}

.checkout-callout {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bae6fd;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  color: #0c4a6e;
  margin-bottom: 18px;
  line-height: 1.55;
}

.checkout-price {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.checkout-price strong { color: #0369a1; font-size: 15px; }
.checkout-price .muted { color: #64748b; font-size: 13px; }

.checkout-form { margin: 0; }

.field {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 7px;
}

.field-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  font-family: inherit;
  color: #0f172a;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.field-input:hover {
  border-color: #cbd5e1;
  background: #fafbfc;
}

.field-input:focus {
  outline: none;
  border-color: #0ea5e9;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .14);
}

.field-input::placeholder {
  color: #94a3b8;
  font-size: 15px;
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.terms-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 22px 0 20px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
}

.terms-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: #0ea5e9;
  cursor: pointer;
}

.terms-box label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.terms-box span a { font-weight: 600; }

.btn-checkout {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #2196F3 0%, #9C27B0 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(33, 150, 243, .35);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.btn-checkout:hover {
  filter: brightness(1.04);
  box-shadow: 0 6px 20px rgba(14, 165, 233, .4);
}

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

.checkout-note {
  font-size: 12px;
  color: #64748b;
  margin: 18px 0 0;
  line-height: 1.55;
}

/* ── Legal pages ── */
.legal-page { background: #f4f7fb; }

.legal-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

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

.legal-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, .06);
  padding: 36px 32px 32px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: #0369a1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.legal-back:hover { text-decoration: underline; }

.legal-wrap h1 {
  color: #0c4a6e;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}

.legal-meta {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.legal-meta a { font-weight: 600; }

.legal-wrap h2 {
  color: #0c4a6e;
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
}

.legal-wrap p,
.legal-wrap li { font-size: 15px; }

.legal-wrap ul,
.legal-wrap ol { padding-left: 22px; }

.legal-wrap li { margin-bottom: 8px; }

.legal-highlight {
  background: #eff6ff;
  border-left: 4px solid #0ea5e9;
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.55;
}

.legal-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.legal-footer-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  margin: 0 0 10px;
}

.legal-footer-contact {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
}

.legal-footer-contact a { font-weight: 600; }

.legal-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.legal-footer-actions a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  color: #0369a1;
}

.legal-footer-actions a:hover {
  background: #e0f2fe;
}

@media (max-width: 768px) {
  .vs-site-header-inner {
    padding: 4px 10px;
    flex-wrap: wrap;
  }
  .vs-brand-logo {
    height: 56px;
    max-height: 56px;
    max-width: 220px;
  }
  .vs-site-nav {
    width: 100%;
    justify-content: flex-end;
    gap: 2px;
    padding-bottom: 2px;
  }
  .vs-site-nav .vs-nav-link:nth-child(1),
  .vs-site-nav .vs-nav-link:nth-child(2) {
    display: none;
  }
  .vs-nav-link { padding: 4px 8px; font-size: 12px; }
  .vs-nav-cta { padding: 5px 10px; font-size: 12px; margin-left: 2px; }
}

@media (max-width: 600px) {
  .checkout-feature-list {
    grid-template-columns: 1fr;
  }
  .checkout-price-big { font-size: 2.1rem; }
}

@media (max-width: 480px) {
  .checkout-card { padding: 28px 20px 22px; }
  .checkout-card h1 { font-size: 24px; }
  .checkout-lead { font-size: 15px; }
  .field-input { font-size: 16px; }
  .legal-card { padding: 28px 20px 24px; }
}
