:root {
  --bg: #f5f7fb;
  --bg-deep: #e9eef7;
  --text: #10203d;
  --muted: #5d6f92;
  --line: rgba(88, 114, 170, 0.16);
  --white: rgba(255, 255, 255, 0.78);
  --accent: #ff7e7b;
  --accent-2: #6c8dff;
  --accent-3: #73e0c2;
  --shadow: 0 24px 60px rgba(36, 56, 104, 0.12);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 126, 123, 0.16), transparent 22%),
    radial-gradient(circle at 92% 18%, rgba(108, 141, 255, 0.16), transparent 18%),
    linear-gradient(180deg, #fafcff 0%, #f3f7fd 36%, #eef4fb 100%);
}

a,
button,
input {
  font: inherit;
}

a,
button {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.is-hidden {
  display: none !important;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0;
  backdrop-filter: blur(14px);
}

.header-row,
.menu,
.header-actions,
.account-shell,
.hero-actions,
.mini-proof,
.footer-row,
.footer-nav {
  display: flex;
  align-items: center;
}

.header-row {
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 800;
}

.logo strong,
.footer-brand {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.logo small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.menu {
  gap: 22px;
  color: #3e517b;
  font-size: 0.94rem;
}

.menu a:hover,
.footer-nav a:hover {
  color: #243a68;
}

.header-actions,
.account-shell {
  gap: 12px;
}

.header-actions {
  margin-left: auto;
}

.header-link,
.header-cta,
.cta-primary,
.cta-ghost,
.plan-trigger,
.kit-card a,
.submit-button,
.auth-tab,
.account-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-weight: 700;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.header-link {
  padding: 13px 18px;
  border: 1px solid rgba(92, 112, 167, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #27406f;
}

.header-cta {
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 18px 30px rgba(108, 141, 255, 0.22);
}

.header-cta:hover,
.header-link:hover,
.cta-primary:hover,
.cta-ghost:hover,
.plan-trigger:hover,
.kit-card a:hover,
.submit-button:hover,
.account-chip:hover {
  transform: translateY(-2px);
}

.points-chip {
  padding: 13px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 126, 123, 0.14), rgba(108, 141, 255, 0.18));
  color: #243a68;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.account-chip {
  padding: 10px 14px;
  align-items: flex-start;
  flex-direction: column;
  border: 1px solid rgba(92, 112, 167, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: #27406f;
  text-align: left;
}

.account-chip span {
  font-size: 0.92rem;
}

.account-chip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.hero {
  padding: 42px 0 86px;
}

.hero-grid,
.intro-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 34px;
  align-items: center;
}

.hero-left h1,
.intro-copy h2,
.section-top h2 {
  margin: 16px 0 18px;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-left h1 {
  max-width: 640px;
  font-size: clamp(3rem, 5vw, 5rem);
}

.hero-left p,
.intro-copy p,
.intro-points p,
.section-top p,
.kit-card p,
.price-card li,
.faq-grid p,
.footer-copy {
  color: var(--muted);
  line-height: 1.85;
}

.kicker {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(108, 141, 255, 0.18);
  color: #5167a2;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  gap: 14px;
  margin-top: 28px;
}

.cta-primary,
.cta-ghost {
  min-width: 190px;
  padding: 15px 22px;
}

.cta-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 20px 34px rgba(108, 141, 255, 0.24);
}

.cta-ghost {
  border: 1px solid rgba(92, 112, 167, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.mini-proof {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.mini-proof span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(88, 114, 170, 0.12);
  color: #445983;
  font-size: 0.88rem;
}

.dashboard-card,
.intro-points article,
.kit-card,
.price-card,
.faq-grid details,
.modal-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.dashboard-card {
  padding: 18px;
}

.dashboard-bar {
  display: flex;
  gap: 8px;
  padding: 4px 0 16px;
}

.dashboard-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(129, 145, 179, 0.34);
}

.dashboard-surface {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(238, 244, 255, 0.7)),
    linear-gradient(135deg, rgba(255, 126, 123, 0.14), transparent 50%);
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.orb-a {
  top: -40px;
  right: -30px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 126, 123, 0.45), transparent 72%);
}

.orb-b {
  bottom: -40px;
  left: -10px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(108, 141, 255, 0.35), transparent 72%);
}

.surface-card {
  position: absolute;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(95, 116, 173, 0.1);
}

.surface-card h3 {
  margin: 0 0 10px;
}

.surface-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.surface-card.primary {
  top: 32px;
  left: 28px;
  right: 74px;
}

.surface-card.secondary {
  bottom: 112px;
  left: 34px;
  width: 46%;
}

.surface-card.tertiary {
  right: 34px;
  bottom: 42px;
  width: 44%;
}

.intro,
.kits,
.pricing,
.faq {
  padding: 88px 0;
}

.intro-points {
  display: grid;
  gap: 16px;
}

.intro-points article {
  padding: 24px;
}

.intro-points strong,
.kit-card h3,
.price-card h3 {
  display: block;
  margin-bottom: 10px;
}

.stats {
  padding: 10px 0 24px;
}

.stats-grid,
.kits-grid,
.pricing-grid,
.faq-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid article {
  padding: 28px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(88, 114, 170, 0.12);
  text-align: center;
  box-shadow: var(--shadow);
}

.stats-grid strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
}

.stats-grid span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.section-top {
  max-width: 720px;
}

.kits-grid,
.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.kit-card,
.price-card {
  padding: 28px;
}

.price-card {
  cursor: pointer;
}

.price-card:hover,
.price-card:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.price-card.featured:hover,
.price-card.featured:focus-visible {
  transform: translateY(-12px);
}

.kit-accent {
  width: 56px;
  height: 8px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.salmon {
  background: linear-gradient(90deg, #ff9b82, #ff7e7b);
}

.blue {
  background: linear-gradient(90deg, #7ca6ff, #5e86ff);
}

.mint {
  background: linear-gradient(90deg, #88ead8, #59d5be);
}

.kit-card a,
.plan-trigger {
  margin-top: 16px;
  color: #203765;
}

.plan-trigger,
.submit-button {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(92, 112, 167, 0.18);
}

.price-card .label {
  margin: 0 0 16px;
  color: #61729a;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-card h3 {
  font-size: 2.5rem;
}

.price-card h3 span {
  font-size: 1rem;
  color: var(--muted);
}

.plan-points {
  margin: -4px 0 0;
  color: #243a68;
  font-weight: 800;
}

.price-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.price-card li + li {
  margin-top: 10px;
}

.price-card.featured {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 246, 255, 0.88)),
    linear-gradient(135deg, rgba(255, 126, 123, 0.18), transparent 50%);
  transform: translateY(-8px);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: center;
  padding: 32px 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 61, 0.42);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(1040px, calc(100% - 20px));
  max-height: calc(100vh - 64px);
  margin: 0 auto;
  overflow: auto;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.94)),
    linear-gradient(135deg, rgba(255, 126, 123, 0.12), transparent 45%);
}

.auth-modal {
  max-width: 560px;
}

.modal-close {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-left: auto;
  color: #5d6f92;
  font-weight: 800;
}

.modal-copy h2,
.checkout-summary h2 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.modal-copy p,
.checkout-summary p {
  color: var(--muted);
  line-height: 1.75;
}

.auth-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 18px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(238, 243, 253, 0.85);
}

.auth-tab {
  padding: 12px 16px;
  color: #506283;
}

.auth-tab.is-active {
  background: white;
  color: #203765;
  box-shadow: 0 12px 24px rgba(36, 56, 104, 0.1);
}

.auth-form,
.checkout-form {
  margin-top: 22px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.field-wide {
  grid-column: 1 / -1;
}

.field span {
  color: #445983;
  font-size: 0.88rem;
  font-weight: 800;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(92, 112, 167, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: rgba(108, 141, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(108, 141, 255, 0.12);
}

.submit-button {
  margin-top: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 18px 30px rgba(108, 141, 255, 0.22);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.checkbox-field input {
  margin-top: 4px;
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-message.is-error {
  color: #c34f5f;
}

.form-message.is-success {
  color: #27856e;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 26px;
  align-items: start;
}

.summary-card {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(92, 112, 167, 0.16);
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.08rem;
}

.faq-grid {
  margin-top: 28px;
}

.faq-grid details {
  padding: 22px 24px;
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.footer {
  padding: 24px 0 48px;
}

.footer-row {
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(88, 114, 170, 0.14);
}

.footer-copy {
  max-width: 580px;
}

.footer-nav {
  flex-wrap: wrap;
  gap: 18px;
  color: #4a5f89;
}

@media (max-width: 1080px) {
  .hero-grid,
  .intro-grid,
  .stats-grid,
  .kits-grid,
  .pricing-grid,
  .checkout-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .header-row,
  .menu,
  .header-actions,
  .account-shell,
  .hero-actions,
  .footer-row,
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .intro-grid,
  .stats-grid,
  .kits-grid,
  .pricing-grid,
  .field-grid,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .header-actions,
  .account-shell {
    width: 100%;
  }

  .header-cta,
  .header-link,
  .cta-primary,
  .cta-ghost,
  .plan-trigger,
  .submit-button,
  .account-chip,
  .points-chip {
    width: 100%;
  }

  .dashboard-surface {
    min-height: 420px;
  }

  .surface-card.primary,
  .surface-card.secondary,
  .surface-card.tertiary {
    position: relative;
    width: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 18px;
  }

  .modal-layer {
    padding: 18px 12px;
  }

  .modal-card {
    width: 100%;
    max-height: calc(100vh - 36px);
    padding: 20px;
  }
}
