:root {
  color-scheme: light;
  --ink: #17243a;
  --muted: #62718a;
  --line: #dbe3ed;
  --surface: #fff;
  --page: #f4f7fb;
  --blue: #2864dc;
  --blue-dark: #1c4fb6;
  --green: #0e9372;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px max(24px, calc((100vw - 1160px) / 2));
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  white-space: nowrap;
}

.brand:hover { color: var(--ink); text-decoration: none; }

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #7353d7, #2b6de0);
  font-weight: 800;
}

.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 12px; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex: 1;
}

.main-nav a { color: #34435a; font-size: 14px; }

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.button:hover { text-decoration: none; transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { color: #fff; background: var(--blue-dark); }
.button-quiet { color: #34435a; background: #fff; border-color: var(--line); }
.button-quiet:hover { color: var(--ink); background: #f8faff; border-color: #b9c7da; }

.site-main { min-height: calc(100vh - 240px); }

.hero {
  max-width: 1160px;
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  align-items: center;
  gap: 60px;
  margin: 0 auto;
  padding: 74px 24px 68px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1, h2, h3, h4, p { margin-top: 0; }

.hero h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 51px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.text-link { font-size: 14px; font-weight: 650; }
.text-link span { margin-left: 4px; }

.hero-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 34px;
  border: 1px solid #dbe6fa;
  border-radius: 20px;
  background:
    radial-gradient(circle at 85% 12%, rgba(77, 128, 240, .14), transparent 38%),
    linear-gradient(135deg, #fff, #f8faff);
  box-shadow: 0 24px 54px rgba(37, 71, 130, .09);
}

.hero-card-label { color: var(--green); font-size: 13px; font-weight: 750; }
.hero-card strong { font-size: 24px; letter-spacing: -.02em; }
.hero-card > span:last-of-type { color: var(--muted); }
.hero-card-line { display: flex; gap: 7px; margin-top: 10px; }
.hero-card-line i { height: 5px; flex: 1; border-radius: 8px; background: #b9c9ed; }
.hero-card-line i:nth-child(2) { background: #7fa2ed; }
.hero-card-line i:nth-child(3) { background: #3e75e1; }

.pricing-section {
  padding: 64px 24px 82px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 1160px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -.03em;
}

.section-heading > p { max-width: 340px; margin: 0; color: var(--muted); font-size: 14px; }

.plan-grid {
  max-width: 1160px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  margin: 0 auto;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(30, 50, 80, .045);
}

.plan-card-trial { border-color: #b5d5cb; }
.plan-badge {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 3px 9px;
  border-radius: 100px;
  color: #087454;
  background: #e8f7f1;
  font-size: 11px;
  font-weight: 750;
}

.plan-card h3 { margin-bottom: 5px; font-size: 22px; }
.plan-target { min-height: 48px; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.plan-price strong { font-size: 28px; letter-spacing: -.03em; }
.plan-price span { color: var(--muted); font-size: 13px; }
.plan-scope { padding: 10px 0; border-top: 1px solid #edf1f6; border-bottom: 1px solid #edf1f6; color: #4d5b72; font-size: 12px; }
.plan-scope span { padding: 0 4px; color: #9aa7b8; }

.feature-list { display: grid; gap: 8px; min-height: 138px; margin: 18px 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: baseline; gap: 9px; color: #34435a; font-size: 13px; }
.check { color: var(--green); font-weight: 800; }

.price-list { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); }
.price-list h4 { margin-bottom: 8px; color: #75829a; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 12px; }
.price-row > span { color: #53627a; }
.price-row strong { color: var(--ink); font-size: 13px; white-space: nowrap; }
.price-row small { min-width: 35px; color: var(--green); font-size: 10px; text-align: right; }
.plan-action { width: 100%; margin-top: 18px; }

.public-note { max-width: 1160px; margin: 0 auto; padding: 30px 24px; color: var(--muted); font-size: 13px; }
.public-note p { margin: 0; }

.legal-document { max-width: 920px; margin: 0 auto; padding: 52px 24px 80px; }
.legal-heading { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.legal-edit { margin-top: 16px; }
.legal-heading h1 { margin-bottom: 7px; font-size: clamp(30px, 4vw, 40px); line-height: 1.2; letter-spacing: -.03em; }
.legal-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.legal-section { margin: 0 0 25px; }
.legal-section h2 { margin-bottom: 10px; font-size: 20px; line-height: 1.35; }
.legal-section p, .legal-section li { color: #34435a; font-size: 15px; }
.legal-section p { margin-bottom: 10px; }
.legal-section ul { display: grid; gap: 7px; margin: 9px 0 13px; padding-left: 22px; }
.legal-section li { padding-left: 2px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 30px max(24px, calc((100vw - 1160px) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-brand { display: grid; align-content: start; gap: 5px; }
.footer-brand strong { font-size: 14px; }
.footer-brand span { color: var(--muted); font-size: 12px; }
.footer-links { display: flex; justify-content: end; gap: 9px 18px; flex-wrap: wrap; }
.footer-links a { color: #53627a; font-size: 12px; }

@media (max-width: 860px) {
  .site-header { gap: 16px; }
  .main-nav { gap: 14px; }
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .hero { gap: 30px; }
}

@media (max-width: 640px) {
  .site-header { min-height: auto; flex-wrap: wrap; padding: 12px 18px; }
  .main-nav { order: 3; width: 100%; justify-content: flex-start; gap: 16px; overflow-x: auto; padding: 5px 0; }
  .main-nav a { white-space: nowrap; font-size: 12px; }
  .site-header > .button { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 52px 20px 42px; }
  .hero h1 { font-size: 36px; }
  .hero-lead { font-size: 16px; }
  .hero-card { min-height: 180px; padding: 25px; }
  .pricing-section { padding: 48px 18px 56px; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading > p { margin-top: 12px; }
  .plan-grid { grid-template-columns: 1fr; gap: 14px; }
  .plan-card { padding: 22px; }
  .plan-target { min-height: 0; }
  .feature-list { min-height: 0; }
  .public-note { padding: 24px 18px; }
  .legal-document { padding: 36px 19px 56px; }
  .legal-section h2 { font-size: 18px; }
  .legal-section p, .legal-section li { font-size: 14px; }
  .site-footer { display: block; padding: 24px 18px; }
  .footer-links { justify-content: flex-start; margin-top: 18px; }
}

/* Shared MagicWorlds site chrome */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: block;
  min-height: 0;
  padding: 0;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.header-inner {
  width: min(100%, 1280px);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 12px 18px;
}

.brand { flex: 0 0 auto; gap: 12px; color: #333; }
.brand img { display: block; width: 40px; height: 40px; object-fit: contain; }
.brand-copy { display: block; }
.brand-title { display: block; color: #c8c6c6; font-size: 21px; font-weight: 700; line-height: 1.05; white-space: nowrap; }
.brand-title b, .brand-title em { color: #007bdf; font-style: normal; }
.brand-title em { margin-left: 12px; font-size: 20px; }
.brand-tagline { display: block; margin-top: 4px; color: #007bdf; font-size: 8px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }

.main-nav { flex: 1 1 auto; justify-content: flex-end; gap: clamp(12px, 1.5vw, 22px); }
.main-nav a { color: #333; font-size: 14px; white-space: nowrap; }
.main-nav a:hover { color: #007bdf; text-decoration: none; }

.header-login {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 26px;
  border: 2px solid #007bdf;
  border-radius: 8px;
  color: #fff;
  background: #007bdf;
  font-size: 14px;
  white-space: nowrap;
}
.header-login:hover { color: #007bdf; background: #fff; text-decoration: none; }
.header-menu-button { display: none; }
.mobile-nav { display: none; }

.site-footer {
  display: block;
  padding: 52px max(24px, calc((100vw - 1160px) / 2)) 24px;
  border-top: 1px solid #e5e5e5;
  background: #fff;
}
.footer-grid { max-width: 1160px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0 auto 34px; }
.footer-col { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-left: 15px; }
.footer-col::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: #007bdf; content: ""; }
.footer-col h2 { margin: 0 0 5px; color: #969696; font-size: 18px; font-weight: 500; line-height: 1.2; }
.footer-col a { color: #007bdf; font-size: 14px; font-weight: 400; }
.footer-col a:hover { text-decoration: underline; }
.footer-label { margin-bottom: -9px; color: #969696; font-size: 12px; }
.footer-bottom { max-width: 1160px; margin: 0 auto; padding-top: 22px; border-top: 1px solid #e5e5e5; text-align: center; }
.footer-legal-links { display: flex; justify-content: center; gap: 10px 22px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-legal-links a { color: #007bdf; font-size: 13px; }
.footer-bottom p { margin: 0; color: #999; font-size: 13px; }

@media (max-width: 1279px) {
  .header-inner { min-height: 72px; padding-right: 64px; }
  .main-nav, .header-login { display: none; }
  .header-menu-button {
    position: absolute;
    top: 15px;
    right: 16px;
    z-index: 51;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .header-menu-button span { width: 25px; height: 2px; border-radius: 2px; background: #333; }
  .mobile-nav:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    overflow-y: auto;
    padding: 70px 24px;
    background: #fff;
  }
  .mobile-nav a { color: #333; font-size: 19px; }
  .mobile-nav a:first-child { color: #007bdf; }
}

@media (max-width: 640px) {
  .site-footer { padding: 34px 18px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-col { padding-left: 12px; }
  .footer-col h2 { font-size: 16px; }
  .footer-col a { font-size: 12px; overflow-wrap: anywhere; }
  .footer-label { font-size: 11px; }
  .footer-legal-links { flex-direction: column; gap: 8px; }
}
