/* World Code: global styles. Tokens, base, header, footer, buttons, tables, CTA block, FAQ. */
:root {
  --ink: #222222;
  --text: #333333;
  --muted: #5f6475;
  --rose: #cf3358;          /* button fill and links on white (AA) */
  --rose-deep: #a8244a;     /* hover */
  --blush: #ff6489;         /* decorative */
  --violet: #9f70ed;        /* accent */
  --violet-deep: #6a43c4;
  --butter: #ffc34a;        /* small decorative shapes */
  --tint: #faf7ff;
  --soft: #f6f6f6;
  --line: #dedede;
  --line-soft: #ece6fb;
  --hover: #e9f0ff;
  --white: #ffffff;
  --max-width: 1160px;
  --radius: 8px;
  --radius-lg: 16px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  --shadow-card: 0 1px 2px rgba(106, 67, 196, .08), 0 10px 24px -12px rgba(106, 67, 196, .28);
  --shadow-btn: 0 1px 2px rgba(168, 36, 74, .3), 0 10px 22px -8px rgba(207, 51, 88, .55);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, figure, table { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.35; }
h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; font-weight: 600; }
p + p { margin-top: 1em; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.nw { white-space: nowrap; }
a { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--rose-deep); }
strong { font-weight: 700; color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 84px; }

.wrap { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 200; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; }
.brand-name { font-size: 18px; line-height: 1; }
.brand-name small { display: none; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; margin-top: 4px; }
.main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-block; padding: 8px 10px; font-size: 15px; font-weight: 600; color: var(--ink);
  text-decoration: none; border-radius: 999px; transition: color .2s var(--ease), background-color .2s var(--ease);
}
.main-nav a:hover { color: var(--rose); background: var(--tint); }
.main-nav .nav-cta { color: var(--rose); border: 2px solid var(--rose); padding: 6px 14px; }
.main-nav .nav-cta:hover { background: var(--rose); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.7em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--rose); color: #fff; font: inherit; font-weight: 700; font-size: 17px; line-height: 1.4;
  text-decoration: none; box-shadow: var(--shadow-btn);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease);
}
.btn:hover { background: var(--rose-deep); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(168, 36, 74, .3); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--light { background: #fff; color: var(--rose-deep); box-shadow: 0 1px 2px rgba(0, 0, 0, .15), 0 12px 24px -10px rgba(0, 0, 0, .4); }
.btn--light:hover { background: #fff; color: var(--rose-deep); }
.btn-row { margin-top: 28px; }

/* Tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-card); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
thead th { background: var(--tint); color: var(--ink); font-weight: 700; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { color: var(--ink); font-weight: 600; }

/* CTA block */
.cta-block {
  position: relative; overflow: hidden; display: grid; gap: 18px; align-items: center;
  padding: 28px 24px; border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(120deg, #cf3358 0%, #a63a9e 55%, #6a43c4 100%);
  box-shadow: 0 2px 4px rgba(106, 67, 196, .2), 0 24px 44px -20px rgba(106, 67, 196, .6);
  margin-top: 40px;
}
.cta-block::before, .cta-block::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cta-block::before { width: 220px; height: 220px; right: -60px; top: -90px; background: rgba(255, 255, 255, .12); }
.cta-block::after { width: 70px; height: 70px; left: -26px; top: -30px; background: rgba(255, 195, 74, .4); }
.cta-block > * { position: relative; z-index: 1; }
.cta-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); }
.cta-ico .ico { width: 28px; height: 28px; }
.cta-title { font-size: 22px; font-weight: 700; line-height: 1.4; color: #fff; }
.cta-desc { margin-top: 6px; color: rgba(255, 255, 255, .94); }
.cta-block .btn { width: 100%; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(106, 67, 196, .06); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.faq details:hover { background: var(--hover); border-color: #cfdcff; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; font-weight: 700; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .25s var(--ease); color: var(--rose); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details > p { padding: 0 20px 18px; }

/* Footer */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 36px 0; }
.site-footer .wrap { display: grid; gap: 18px; justify-items: start; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: 100%; }
.footer-title { margin: 0 0 8px; font-weight: 700; color: var(--ink); font-size: 15px; letter-spacing: .04em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links a { color: var(--ink); font-weight: 600; }
.footer-links a:hover { color: var(--rose); }
.copyright { color: var(--muted); font-size: 15px; }

@media (min-width: 768px) {
  body { font-size: 18px; }
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 21px; }
  .brand-name small { display: block; }
  .main-nav ul { gap: 10px; }
  .main-nav a { font-size: 16px; padding: 8px 14px; }
  .cta-block { grid-template-columns: auto 1fr auto; gap: 28px; padding: 32px 40px; }
  .cta-block .btn { width: auto; }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; justify-items: stretch; }
  .site-footer .copyright { grid-column: 1 / -1; }
  .footer-cols { width: auto; grid-template-columns: repeat(2, auto); gap: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
