:root {
  --bg-top: #c8eaff;
  --bg-mid: #eff9ff;
  --bg-bottom: #f6fbf5;
  --text: #0f172a;
  --muted: #475569;
  --muted-soft: #64748b;
  --line: rgba(255, 255, 255, 0.74);
  --card: rgba(255, 255, 255, 0.9);
  --card-strong: rgba(255, 255, 255, 0.96);
  --green: #16a34a;
  --green-dark: #15803d;
  --green-soft: #dcfce7;
  --green-soft-2: #f0fdf4;
  --sky-soft: #e0f2fe;
  --sky-soft-2: #f0f9ff;
  --amber-soft: #fef3c7;
  --amber-soft-2: #fffbeb;
  --pink-soft: #fdf2f8;
  --pink: #be185d;
  --red-soft: #fef2f2;
  --red: #dc2626;
  --shadow-xl: 0 26px 90px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 20px 55px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 14px 32px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.05);
  --radius-2xl: 32px;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(255,255,255,.85), transparent 65%),
    radial-gradient(900px 500px at 0% 0%, rgba(74, 222, 128, 0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 15%, rgba(56, 189, 248, 0.11), transparent 60%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 28%, var(--bg-bottom) 70%, #f4faf4 100%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }
strong { font-weight: 800; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 8px;
  background: linear-gradient(90deg, #4ade80 0%, #22c55e 50%, #4ade80 100%);
}

.wrap {
  width: min(1760px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 28px 0 14px;
}

.hero-card,
.card,
.modal-card,
.loader-card {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(340px, 500px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.hero-card::before,
.category-card::before,
.comparison-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 240px at 10% 0%, rgba(34,197,94,.07), transparent 70%),
    radial-gradient(500px 260px at 100% 100%, rgba(56,189,248,.06), transparent 70%);
  pointer-events: none;
}

.hero-brand {
  position: relative;
  border-radius: 24px;
  border: 1px solid #d1fae5;
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfeff 100%);
  padding: 18px;
}

.hero-logo {
  width: 100%;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.hero-copy,
.hero-brand,
.category-card > *,
.comparison-card > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.inline-badge,
.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}

.eyebrow {
  border: 1px solid #fde68a;
  background: var(--amber-soft-2);
  color: #92400e;
  padding: 8px 13px;
}

.inline-badge,
.modal-badge {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  padding: 7px 11px;
}

.hero-copy h1,
.category-head h3,
.comparison-head h4,
.setup-warning h2,
.modal-card h2,
.simple-card h1 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  margin-top: 16px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  max-width: 12ch;
}

.hero-copy p,
.category-head p,
.comparison-head p,
.setup-warning p,
.modal-copy,
.package-description {
  color: var(--muted);
  line-height: 1.8;
}

.hero-copy p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 18px;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-status {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: rgba(255,255,255,.78);
  color: #0f172a;
  padding: 0 14px;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  min-height: 52px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform .45s var(--ease),
    background-color .35s var(--ease),
    border-color .35s var(--ease),
    color .35s var(--ease),
    box-shadow .45s var(--ease),
    opacity .35s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.10);
}

.button:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.button-primary {
  background: linear-gradient(180deg, #22c55e 0%, var(--green) 100%);
  color: #fff;
}
.button-primary:hover { background: linear-gradient(180deg, #20ba58 0%, var(--green-dark) 100%); }

.button-secondary {
  background: var(--pink-soft);
  border-color: #fbcfe8;
  color: var(--pink);
}
.button-secondary:hover { background: #fce7f3; }

.button-light {
  background: rgba(255,255,255,.9);
  border-color: #e2e8f0;
  color: #334155;
}
.button-light:hover { background: #fff; }
.button-buy { width: 100%; }

.layout-single {
  padding: 18px 0 64px;
}

.content { min-width: 0; }

.setup-warning,
.category-card,
.package-card,
.comparison-card,
.simple-card,
.modal-card {
  border-radius: var(--radius-2xl);
}

.setup-warning {
  padding: 22px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  margin-bottom: 18px;
}
.setup-warning p { margin: 10px 0 0; color: #7c2d12; }
.setup-warning code { background: rgba(255,255,255,0.72); padding: 3px 7px; border-radius: 8px; }

.categories-grid {
  display: grid;
  gap: 26px;
}

.category-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.84) 100%);
}

.category-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.category-head h3 {
  margin-top: 12px;
  font-size: clamp(2rem, 3vw, 2.65rem);
}

.category-head p {
  margin: 12px 0 0;
  max-width: 80ch;
}

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

.package-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 100%);
  box-shadow: var(--shadow-md);
  transition:
    transform .55s var(--ease),
    box-shadow .55s var(--ease),
    border-color .35s var(--ease);
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.package-top {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.package-image {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid #d1fae5;
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfeff 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.package-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-title {
  margin: 0;
  font-size: clamp(1.4rem, 1.8vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.package-price-inline {
  margin-top: 8px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
}

.package-description {
  margin-top: 10px;
  font-size: 15px;
}

.package-highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.package-highlight {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  padding: 0 12px;
  font-size: 13px;
  color: #334155;
}

.package-highlight strong {
  margin-right: 5px;
  color: #0f172a;
}

.package-details {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 14px;
}

.package-details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.package-details summary::-webkit-details-marker { display: none; }
.package-details summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  transition: transform .35s var(--ease), background-color .35s var(--ease);
}
.package-details[open] summary::after {
  transform: rotate(45deg);
  background: #d1fae5;
}

.package-details-body {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.85;
}
.package-details-body ul,
.package-details-body ol {
  margin: 12px 0 0 20px;
  padding: 0;
}
.package-details-body li { margin: 8px 0; }

.package-footer.compact-footer {
  margin-top: auto;
  padding-top: 4px;
}

.comparison-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 100%);
}

.comparison-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}

.comparison-head h4 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
}

.comparison-head p {
  margin: 12px 0 0;
  max-width: 70ch;
}

.comparison-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
}

.comparison-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  text-align: center;
  vertical-align: middle;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  background: rgba(255,255,255,.96);
}

.comparison-table tbody tr:hover td,
.comparison-table tbody tr:hover th[scope="row"] {
  background: rgba(248, 250, 252, .88);
}

.comparison-table thead th:first-child {
  z-index: 3;
}

.comparison-group-row td {
  text-align: left;
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfeff 100%);
  color: #166534;
  font-weight: 900;
  letter-spacing: .01em;
}

.comparison-rank-head {
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: start;
}

.comparison-rank-image {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  border: 1px solid #d1fae5;
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfeff 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.comparison-rank-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comparison-rank-name {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
}

.comparison-rank-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--green-soft-2);
  color: #166534;
  font-weight: 800;
}

.button-buy-top {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  width: 100%;
}

.table-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  border-radius: 999px;
  padding: 0 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.table-price {
  background: var(--green-soft-2);
  color: #166534;
}

.table-value.is-best {
  background: var(--green-soft);
  color: #166534;
}

.bool-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
}

.bool-yes {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.bool-no {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.empty-state {
  border-radius: 24px;
  border: 1px dashed #cbd5e1;
  background: rgba(255,255,255,.78);
  padding: 22px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  transition:
    opacity .85s var(--ease),
    transform .85s var(--ease),
    box-shadow .5s var(--ease),
    border-color .35s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.overlay,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hidden { display: none !important; }

.loader-card,
.modal-card {
  width: min(100%, 560px);
  border-radius: 28px;
}

.loader-card {
  padding: 28px;
  text-align: center;
}

.spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 14px;
  border-radius: 999px;
  border: 3px solid rgba(34,197,94,.18);
  border-top-color: var(--green);
  animation: spin .85s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-card {
  position: relative;
  padding: 28px;
  background: var(--card-strong);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-card h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.modal-copy {
  margin: 12px 0 0;
}

.modal-package {
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #f8fbff 0%, #f0fdf4 100%);
  padding: 14px 16px;
  font-weight: 800;
}

.modal-identity-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 18px;
}

.modal-skin-preview {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #f8fbff 0%, #f0fdf4 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.modal-skin-preview img {
  width: 80px;
  height: 80px;
  image-rendering: pixelated;
}

.modal-field.modal-field-inline {
  margin-top: 0;
}

.field-help {
  color: var(--muted-soft);
  font-size: 13px;
  line-height: 1.5;
}

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

.field span {
  font-size: 14px;
  font-weight: 800;
  color: #334155;
}

.field input {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: rgba(255,255,255,.92);
  padding: 0 14px;
  outline: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}

.field input:focus {
  border-color: #86efac;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
  background: #fff;
}

.modal-field {
  margin-top: 18px;
}

.modal-note {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
}

.modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.simple-center {
  min-height: calc(100vh - 8px);
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.simple-card {
  width: min(100%, 760px);
  padding: 32px;
  text-align: center;
}

.stack-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

@media (max-width: 1180px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .wrap { width: min(100%, calc(100% - 24px)); }
  .hero { padding-top: 16px; }
  .hero-card,
  .category-card,
  .comparison-card,
  .package-card,
  .modal-card,
  .simple-card { border-radius: 24px; }

  .hero-card,
  .category-card,
  .comparison-card,
  .simple-card,
  .modal-card { padding: 20px; }

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

  .package-top {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .modal-actions,
  .hero-actions,
  .stack-actions {
    flex-direction: column;
  }

  .modal-identity-card {
    grid-template-columns: 1fr;
  }

  .modal-skin-preview {
    width: 88px;
    height: 88px;
  }

  .button {
    width: 100%;
  }
}
.site-footer

 {
  margin-top: 42px;
  padding: 24px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.74);
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(10px);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand strong {
  color: var(--text);
  font-size: 15px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color .18s var(--ease);
}

.footer-nav a:hover {
  color: var(--green-dark);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.94);
  color: white;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.cookie-banner__text strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.cookie-banner__text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
}

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

.cookie-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.cookie-btn-primary {
  background: #22c55e;
  color: #fff;
}

.cookie-btn-secondary {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}

@media (min-width: 860px) {
  .footer-inner {
    flex-direction: row;
  }

  .footer-brand {
    text-align: left;
  }

  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner__actions {
    justify-content: flex-end;
  }
}
