:root {
  --bg: #fbfbfe;
  --bg-soft: #f6f3ff;
  --bg-soft-2: #f8fafc;
  --panel: #ffffff;
  --panel-2: #fcfcff;
  --border: #e8e8f2;
  --border-strong: #d9d7ec;
  --text: #232a63;
  --muted: #66708f;
  --accent: #8b4177;
  --accent-2: #ff9800;
  --accent-3: #12c7b7;
  --ok: #178a55;
  --err: #c23d59;
  --shadow: 0 12px 30px rgba(35, 42, 99, 0.08);
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbff 30%, #f8f8fd 100%);
  color: var(--text);
  line-height: 1.6;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.faq-stack {
  display: grid;
  gap: 16px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  font-weight: 800;
  color: var(--text);
}
.faq-body {
  padding: 0rem 1rem;
}
.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(35, 42, 99, 0.07);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(35, 42, 99, 0.08);
  background: #fff;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: var(--text);
  opacity: 0.78;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.18s ease;
}
.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--accent);
  background: rgba(111, 29, 255, 0.07);
}

.hero {
  padding: 72px 0 46px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -120px -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle,
    rgba(111, 29, 255, 0.12) 0%,
    rgba(111, 29, 255, 0) 70%
  );
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 20px -120px auto auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(
    circle,
    rgba(18, 199, 183, 0.12) 0%,
    rgba(18, 199, 183, 0) 72%
  );
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 44px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(111, 29, 255, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 12ch;
}
.hero p {
  margin: 0;
  max-width: 700px;
  font-size: 18px;
  color: var(--muted);
}
.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-art {
  min-height: 420px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(111, 29, 255, 0.1), rgba(18, 199, 183, 0.08)),
    #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art img {
  width: min(100%, 360px);
  border-radius: 24px;
  background: #fff;
}

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.18s ease;
}
.btn:hover,
.button:hover {
  transform: translateY(-1px);
  background: #8b4177;
}
.btn.secondary,
.button.secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn.secondary:hover,
.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}
.btn.ghost,
.button.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn.ghost:hover,
.button.ghost:hover {
  background: rgba(111, 29, 255, 0.05);
  border-color: rgba(111, 29, 255, 0.18);
  color: var(--accent);
}

.section {
  padding: 52px 0;
}
.section + .section {
  border-top: 1px solid rgba(35, 42, 99, 0.05);
}
.section-head {
  max-width: 760px;
  margin: 0 0 26px;
}
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.grid-2,
.grid-3,
.grid-4,
.row,
.row-3 {
  display: grid;
  gap: 20px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.grid-3 > .card,
.grid-4 > .card,
.grid-2 > .card,
.section .card.stat,
main.section .card,
main .grid-2 > section.card,
main .grid-2 > article.card,
main .grid-3 > article.card,
main .grid-4 > article.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* Downloads page: remove outer wrapper cards when a section contains inner item cards */
main.section section.card:has(> .grid-2 > article.card) {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
main.section section.card:has(> .grid-2 > article.card) > h3 {
  margin-bottom: 8px;
}
main.section section.card:has(> .grid-2 > article.card) > .muted {
  margin-bottom: 18px;
}
main.section section.card:has(> .grid-2 > article.card) > .grid-2 {
  gap: 16px;
}
main.section > .wrap > section.card:has(> .grid-2 > article.card) {
  margin-top: 34px !important;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
main.section
  section.card:has(> .grid-2 > article.card)
  > .grid-2
  > article.card {
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(35, 42, 99, 0.06);
}
main.section
  section.card:has(> .grid-2 > article.card)
  > .grid-2
  > article.card
  h3 {
  font-size: 20px;
}
main.section
  section.card:has(> .grid-2 > article.card)
  > .grid-2
  > article.card
  .actions {
  margin-top: 14px;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.card h3 {
  font-size: 26px;
}
.card p {
  margin: 0 0 12px;
  color: var(--muted);
}
.feature-list,
.mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.feature-list li,
.mini-list li {
  position: relative;
  padding-left: 22px;
  margin: 10px 0;
}
.feature-list li::before,
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.stat strong {
  color: var(--text);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.label {
  display: block;
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
input,
textarea,
select {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #96a0bc;
}
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(111, 29, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(111, 29, 255, 0.1);
}
.status {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
}
.status.ok {
  color: var(--ok);
  border-color: rgba(23, 138, 85, 0.22);
  background: rgba(23, 138, 85, 0.04);
}
.status.err {
  color: var(--err);
  border-color: rgba(194, 61, 89, 0.2);
  background: rgba(194, 61, 89, 0.04);
}
.note,
.muted,
.meta {
  color: var(--muted);
}
.muted {
  font-size: 14px;
}
.meta {
  font-size: 13px;
}
.code,
pre {
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}
pre {
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(111, 29, 255, 0.12);
  background: rgba(111, 29, 255, 0.06);
  color: var(--accent);
  font-weight: 700;
}
.plan-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.price {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
}
.price small {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
.locked {
  border-style: dashed !important;
}
hr.sep {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}
.inline-logo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}
.site-footer {
  padding: 18px 0 48px;
  color: var(--muted);
  font-size: 14px;
  background: transparent;
}
.site-footer .card {
  background: #f3f0ff;
  border: 1px solid #e5ddff;
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: none;
}
.auth-toggle-bar {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.auth-toggle-btn {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.auth-toggle-btn.active {
  border-color: rgba(255, 181, 38, 0.38);
  background: rgba(255, 181, 38, 0.12);
  color: var(--accent-2);
}

.auth-section {
  display: none;
}

.auth-section.active {
  display: block;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.service-option {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
}

.service-option.selected {
  border-color: rgba(255, 181, 38, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 181, 38, 0.18) inset;
  background: rgba(255, 181, 38, 0.07);
}

.service-option-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.service-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
}

.price-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 181, 38, 0.28);
  background: rgba(255, 181, 38, 0.12);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.summary-total {
  margin-top: 16px;
  border: 1px solid rgba(255, 181, 38, 0.22);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 181, 38, 0.08);
}

.selected-services {
  margin: 10px 0 0;
  padding-left: 18px;
}

.selected-services li + li {
  margin-top: 6px;
}

.auth-note {
  margin-top: 12px;
}

@media (max-width: 920px) {
  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .row,
  .row-3 {
    grid-template-columns: 1fr;
  }
  .navbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0 16px;
  }
  .hero {
    padding-top: 44px;
  }
  .hero-art {
    min-height: 280px;
  }
  .section {
    padding: 42px 0;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  main.section > .wrap > section.card:has(> .grid-2 > article.card) {
    margin-top: 28px !important;
    padding-top: 24px;
  }
}
