:root {
  --bg: #07080c;
  --bg-2: #0d1018;
  --surface: #121722;
  --surface-2: #171d2b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f6fb;
  --muted: #9aa3b5;
  --ice: #4cc9f0;
  --ice-2: #7b8cff;
  --mint: #3ee0b0;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --r: 14px;
  --max: 1180px;
}

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

html {
  min-height: 100%;
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 88% -10%, rgba(123, 140, 255, 0.18), transparent 55%),
    radial-gradient(720px 480px at -10% 110%, rgba(76, 201, 240, 0.12), transparent 50%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

a { color: var(--ice); text-underline-offset: 3px; }
a:hover { color: #fff; }

button {
  font-family: inherit;
  cursor: pointer;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Header */

.header {
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--text);
  color: #0a0c12;
}

.btn-primary:hover { background: #fff; color: #0a0c12; }

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

.btn-ghost:hover { border-color: #fff; }

/* Shell */

.shell {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) 1.18fr;
  gap: 28px;
  align-items: stretch;
  padding: 28px 0 24px;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 8px 4px 8px 0;
}

.hero-mark {
  display: block;
  width: 44px;
  height: 44px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.slogan {
  margin: 0;
  max-width: 22em;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Panel + tabs */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.tab {
  flex: 1;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.tab[aria-selected="true"] {
  background: var(--surface-2);
  color: var(--text);
}

.tab-panel {
  display: none;
  padding: 22px;
  flex: 1;
}

.tab-panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tab-panel[hidden] {
  display: none !important;
}

.panel h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.panel-sub {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feature {
  padding: 14px 14px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}

.feature .ico {
  width: 18px;
  height: 18px;
  color: var(--ice);
  margin-bottom: 8px;
}

.feature h3 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Steps */

.steps {
  display: grid;
  gap: 8px;
}

.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}

.step b {
  color: var(--ice-2);
  font-size: 14px;
  padding-top: 2px;
}

.step h3 {
  margin: 0 0 2px;
  font-size: 14.5px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

/* Pricing */

.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.calc-main {
  padding: 18px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(76, 201, 240, 0.08), transparent 42%),
    var(--bg-2);
  border: 1px solid var(--line);
}

.plan-name {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(123, 140, 255, 0.16);
  color: #c5ccff;
  font-size: 12px;
  font-weight: 700;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 4px;
}

.price-row strong {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.price-row span { color: var(--muted); font-size: 14px; }

.per-month {
  margin: 0 0 16px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 600;
}

.control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.control label {
  color: var(--muted);
  font-size: 13px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stepper button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

.stepper button:hover { border-color: var(--ice); }
.stepper button:disabled { opacity: 0.35; cursor: default; }

.stepper output {
  min-width: 1.4em;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
}

.periods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.period {
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
}

.period small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-bottom: 2px;
}

.period b {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.period em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: var(--mint);
  font-size: 12px;
  font-weight: 600;
  min-height: 1.1em;
}

.period.is-on {
  border-color: rgba(76, 201, 240, 0.55);
  background: rgba(76, 201, 240, 0.08);
}

.calc-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.trial {
  margin-top: auto;
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 16px 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }

/* Reviews */

.reviews {
  padding: 8px 0 28px;
}

.reviews-inner {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  grid-template-areas: "prev track next";
  align-items: center;
  gap: 12px;
}

.reviews-track {
  grid-area: track;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0 8px;
  min-width: 0;
}

.reviews-track::-webkit-scrollbar { display: none; }

.review-card,
.review-cta {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px 16px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-card {
  cursor: pointer;
}

.review-card:hover,
.review-cta:hover {
  border-color: var(--line-2);
}

.review-stars {
  color: #f0c14c;
  letter-spacing: 3px;
  font-size: 20px;
  line-height: 1;
}

.review-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  flex: 1;
}

.review-more {
  color: var(--muted);
  font-weight: 600;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.review-meta b { color: var(--text); font-weight: 600; }

.review-cta .review-icon {
  width: 36px;
  height: 36px;
  color: var(--ice);
}

.review-cta p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.4;
  flex: 1;
}

.review-cta-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.review-cta .btn {
  flex: 1;
  height: 40px;
  border-radius: 999px;
}

.btn-trash {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 122, 122, 0.45);
  background: rgba(255, 122, 122, 0.12);
  color: #ff7a7a;
}

.btn-trash:hover { border-color: #ff7a7a; background: rgba(255, 122, 122, 0.2); }
.btn-trash svg { width: 18px; height: 18px; }

.reviews-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.reviews-head[hidden] { display: none !important; }
.reviews-score {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.reviews-score-stars {
  position: relative;
  font-size: 20px;
  letter-spacing: 3px;
  line-height: 1;
  width: max-content;
}
.reviews-score-stars .bg { color: rgba(255,255,255,0.18); }
.reviews-score-stars .fg {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
  color: #f0c14c;
  white-space: nowrap;
}
.reviews-score-count {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.reviews-prev,
.reviews-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.reviews-prev { grid-area: prev; }
.reviews-next { grid-area: next; }
.reviews-prev svg,
.reviews-next svg { width: 18px; height: 18px; }
.reviews-prev:hover,
.reviews-next:hover { border-color: #fff; }
.reviews-prev[hidden],
.reviews-next[hidden] {
  display: grid !important;
  visibility: hidden;
  pointer-events: none;
}

.review-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.62);
  display: grid;
  place-items: center;
  padding: 24px;
}

.review-overlay[hidden] {
  display: none !important;
}

.review-overlay-card {
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 22px 20px 18px;
  position: relative;
  display: grid;
  gap: 12px;
}

.review-overlay-card .review-body {
  white-space: pre-wrap;
  max-height: 50vh;
  overflow: auto;
}

.review-overlay-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
}

.review-overlay-close:hover { color: var(--text); }

@media (max-width: 920px) {
  .reviews-inner {
    display: block;
  }
  .reviews-prev,
  .reviews-next { display: none !important; }
  .reviews-track { padding: 4px 4px 8px; }
}

@media (max-width: 920px) {
  .shell {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  .panel { min-height: 0; }

  .hero { padding: 4px 0 8px; }

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

@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .features { grid-template-columns: 1fr; }
  .periods { grid-template-columns: 1fr 1fr; }
  .tab { font-size: 12.5px; padding: 0 6px; }
  .hero-actions .btn { flex: 1; }
  .price-row strong { font-size: 40px; }
}

/* Legal documents */

.legal-main {
  flex: 1;
  width: min(820px, calc(100% - 40px));
  padding: 28px 0 40px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 4px);
  padding: 36px 40px 28px;
}

.legal-md {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.7;
}

.legal-md > :first-child { margin-top: 0; }

.legal-md h1 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.legal-md h1 + p {
  color: var(--muted);
  font-size: 14px;
}

.legal-md h2,
.legal-md h3 {
  margin: 1.7em 0 0.55em;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.legal-md p {
  margin: 0 0 0.85em;
}

.legal-md ul,
.legal-md ol {
  margin: 0 0 0.95em;
  padding-left: 1.25em;
}

.legal-md li {
  margin: 0.28em 0;
}

.legal-md li::marker { color: var(--ice); }

.legal-md hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.4em 0;
}

.legal-md code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86em;
  color: var(--ice);
  background: rgba(76, 201, 240, 0.08);
  border: 1px solid rgba(76, 201, 240, 0.16);
  border-radius: 6px;
  padding: 0.08em 0.38em;
}

.legal-md a { font-weight: 500; }

.legal-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: var(--ice);
  font-weight: 600;
  margin-right: 0.2em;
}

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

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer a[aria-current="page"] { color: var(--text); }

@media (max-width: 560px) {
  .legal-main { width: min(820px, calc(100% - 24px)); padding-top: 18px; }
  .legal-card { padding: 22px 18px 20px; }
  .legal-md { font-size: 15px; }
  .legal-md h1 { font-size: 24px; }
  .legal-actions .btn { flex: 1; }
}
