:root {
  --canvas: #f4f6fa;
  --surface: #ffffff;
  --surface-alt: #eef2f8;
  --ink: #0d1f35;
  --ink-2: rgba(13, 31, 53, 0.68);
  --ink-3: rgba(13, 31, 53, 0.46);
  --line: rgba(20, 52, 81, 0.12);
  --blue: #2b66cc;
  --blue-bright: #4a8bf0;
  --blue-deep: #1d4fa6;
  --navy: #143451;
  --mint: #0e9f7a;
  --amber: #b86e04;
  --violet: #6a4fe0;
  --shadow: 0 24px 60px rgba(20, 52, 81, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  color-scheme: light dark;
  interpolate-size: allow-keywords;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #080f1c;
    --surface: #111b2c;
    --surface-alt: #18243a;
    --ink: #f1f5fb;
    --ink-2: rgba(241, 245, 251, 0.72);
    --ink-3: rgba(241, 245, 251, 0.48);
    --line: rgba(255, 255, 255, 0.12);
    --blue: #7aafff;
    --mint: #45d8ae;
    --amber: #ffc04d;
    --violet: #b3a4ff;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(74, 139, 240, 0.14), transparent 60%),
    radial-gradient(700px 380px at -10% 10%, rgba(14, 159, 122, 0.07), transparent 55%),
    var(--canvas);
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: var(--canvas);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 650;
}
.skip:focus { top: 12px; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 40;
  background: linear-gradient(90deg, var(--blue-bright), var(--mint));
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 24px));
  margin: 12px auto 0;
  padding: 10px 12px 10px 16px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(20, 52, 81, 0.06);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
}
.brand span span { color: var(--blue); }
.mark { width: 36px; height: 36px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 560;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 999px;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-alt); }
.nav-links a[aria-current="page"] { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.nav-links a.btn-ink,
.nav-links a.btn-ink:hover { color: var(--canvas); background: var(--ink); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 650;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  border-radius: 999px;
  padding: 12px 18px;
  transition: transform 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--canvas); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.page-hero { padding: 72px 0 36px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}
h1, h2 { font-family: var(--font-display); letter-spacing: -0.045em; margin: 0; }
.page-hero h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
  line-height: 0.98;
  font-weight: 800;
}
.page-hero h1 em { font-style: normal; color: var(--blue); }
.lead { max-width: 58ch; margin: 18px 0 0; font-size: 1.12rem; color: var(--ink-2); }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.meta span {
  font-size: 0.82rem;
  font-weight: 650;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.rise { display: block; transform: translateY(110%); }
.loaded .rise { transform: none; transition: transform 0.9s var(--ease); }
.loaded .mask:nth-child(2) .rise { transition-delay: 0.08s; }
.fade { opacity: 0; transform: translateY(14px); }
.loaded .fade { opacity: 1; transform: none; transition: opacity 0.8s var(--ease) 0.2s, transform 0.8s var(--ease) 0.2s; }

.points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 56px;
}
.point {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}
.point b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.point p { margin: 0; color: var(--ink-2); font-size: 0.94rem; line-height: 1.5; }
.point .ico {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: white;
  background: linear-gradient(140deg, var(--blue-bright), var(--blue-deep));
}
.point:nth-child(2) .ico { background: linear-gradient(140deg, #2fd3a0, #0e9f7a); }
.point:nth-child(3) .ico { background: linear-gradient(140deg, #f2b33d, #d98a06); }
.point:nth-child(4) .ico { background: linear-gradient(140deg, #8f7bff, #6a4fe0); }
.ico svg { width: 18px; height: 18px; }

.layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 72px;
}
.toc { position: sticky; top: 104px; }
.toc p {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a {
  display: block;
  margin-left: -2px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: color 0.25s ease, border-color 0.25s ease, padding 0.35s var(--ease);
}
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--blue); border-color: var(--blue); padding-left: 18px; font-weight: 600; }

.doc { max-width: 720px; }
.doc section {
  scroll-margin-top: 104px;
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.doc section:last-child { border-bottom: 0; }
.doc h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1.1;
  margin-bottom: 14px;
}
.doc h2 .n {
  font-size: 0.9rem;
  letter-spacing: 0;
  color: var(--blue);
  font-weight: 700;
  min-width: 1.8em;
}
.doc h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink-2); font-size: 1.02rem; }
.doc p { margin: 0 0 12px; }
.doc strong { color: var(--ink); font-weight: 650; }
.doc ul { margin: 6px 0 14px; padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--blue); }
.doc a { color: var(--blue); text-underline-offset: 3px; }

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 16px 0;
}
.callout p:last-child { margin-bottom: 0; }

.plans {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  font-size: 0.96rem;
}
.plans th, .plans td { text-align: left; padding: 14px 16px; vertical-align: top; }
.plans th {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-alt);
}
.plans td { border-top: 1px solid var(--line); color: var(--ink-2); }
.plans td:first-child { color: var(--ink); font-weight: 650; white-space: nowrap; }
.plans td:nth-child(2) { white-space: nowrap; color: var(--ink); font-weight: 600; }

/* Support */
.search {
  position: relative;
  margin-top: 26px;
  max-width: 560px;
}
.search input {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 15px 20px 15px 50px;
  box-shadow: 0 10px 30px rgba(20, 52, 81, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.35s var(--ease);
}
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--ink-3);
}

.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 56px;
}
.quick a {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}
.quick a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--blue) 35%, transparent);
}
.quick b { display: block; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -0.02em; }
.quick span { color: var(--ink-2); font-size: 0.94rem; }
.quick .go { color: var(--blue); font-weight: 650; display: inline-block; margin-top: 12px; transition: transform 0.35s var(--ease); }
.quick a:hover .go { transform: translateX(4px); }

.faq-group { margin-bottom: 40px; }
.faq-group h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 12px; }
.faq-group[hidden] { display: none; }
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 10px;
  transition: border-color 0.3s ease, box-shadow 0.4s var(--ease);
}
details[open] { border-color: color-mix(in srgb, var(--blue) 35%, transparent); box-shadow: 0 14px 34px rgba(20, 52, 81, 0.08); }
details[hidden] { display: none; }
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 650;
  font-size: 1.02rem;
}
summary::-webkit-details-marker { display: none; }
summary .plus {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-alt);
  transition: transform 0.45s var(--ease), background 0.3s ease;
}
summary .plus::before,
summary .plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] summary .plus { transform: rotate(45deg); background: color-mix(in srgb, var(--blue) 16%, transparent); }
details::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.45s var(--ease), content-visibility 0.45s allow-discrete;
}
details[open]::details-content { height: auto; }
.answer { padding: 0 20px 18px; color: var(--ink-2); }
.answer p { margin: 0 0 10px; }
.answer p:last-child { margin-bottom: 0; }
.answer ol, .answer ul { margin: 4px 0 10px; padding-left: 20px; }
.answer a { color: var(--blue); }
.answer strong { color: var(--ink); }

.empty {
  display: none;
  padding: 28px;
  border-radius: 20px;
  border: 1px dashed var(--line);
  color: var(--ink-2);
  text-align: center;
}
.empty.show { display: block; }

.contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(160deg, #1c4a7e, #0e2540 55%, #0a1a2e);
  color: white;
  border-radius: 32px;
  padding: 40px;
  margin: 24px 0 72px;
  overflow: hidden;
}
.contact h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; }
.contact p { color: rgba(255, 255, 255, 0.74); margin: 12px 0 0; }
.contact .kicker { color: #9ec0ff; }
.contact dl { margin: 0; display: grid; gap: 12px; }
.contact dt { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.contact dd { margin: 2px 0 0; font-weight: 650; }
.contact dd a { color: white; text-underline-offset: 3px; }
.contact .btn-ink { background: white; color: #143451; margin-top: 20px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.92rem;
}
footer a { color: var(--ink-2); text-decoration: none; margin-right: 14px; }
footer a:hover { color: var(--blue); }

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

.layout > * { min-width: 0; }

@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc {
    position: sticky;
    top: 78px;
    z-index: 5;
    margin: 0 -20px 28px;
    padding: 10px 20px;
    background: color-mix(in srgb, var(--canvas) 92%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .toc p { display: none; }
  .toc ol {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-left: 0;
    scrollbar-width: none;
  }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a {
    margin: 0;
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    background: var(--surface);
  }
  .toc a.active { padding-left: 12px; border-color: var(--blue); }
  .points, .quick { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; padding: 28px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
}

@media (max-width: 560px) {
  .points, .quick { grid-template-columns: 1fr; }
  .page-hero { padding-top: 48px; }
  .plans th:nth-child(3), .plans td:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .rise, .fade, .reveal { opacity: 1; transform: none; }
}
