:root {
  --brand: #5B4BDB;
  --brand-soft: #8B7CF6;
  --ink: #1E1B2E;
  --text: #292734;
  --muted: #6F6B7A;
  --bg: #F7F7FB;
  --surface: #FFFFFF;
  --surface-2: #EFEFFC;
  --accent: #F05A7E;
  --line: rgba(91,75,219,.14);
  --shadow: 0 18px 60px rgba(30,27,46,.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: min(1180px, calc(100vw - 40px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); line-height: 1.72; }
img { max-width: 100%; display: block; border-radius: var(--radius-md); object-fit: cover; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(240,90,126,.35); outline-offset: 3px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -80px; background: var(--ink); color: white; padding: 10px 14px; border-radius: 10px; z-index: 999; }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,247,251,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header__inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 13px; }
.brand span { display: grid; line-height: 1.15; gap: 3px; }
.brand strong { font-size: 1.15rem; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: .76rem; }
.primary-nav { display: flex; gap: 6px; align-items: center; }
.primary-nav a { padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 650; font-size: .93rem; }
.primary-nav a:hover, .primary-nav a.is-active { background: var(--surface-2); color: var(--brand); }
.nav-toggle { display: none; appearance: none; border: 0; background: var(--surface-2); color: var(--ink); padding: 10px 13px; border-radius: 10px; font: inherit; font-weight: 700; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; min-height: 630px; padding-block: 72px 64px; }
.hero__content { max-width: 680px; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1, .page-intro h1 { margin: 0; color: var(--ink); line-height: 1.1; font-size: clamp(2.55rem, 6vw, 5.35rem); letter-spacing: -.045em; }
.hero__lead { margin: 22px 0 0; font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.hero__actions, .inline-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 13px; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--brand); color: white; box-shadow: 0 10px 24px rgba(91,75,219,.2); }
.button--primary:hover { color: white; background: #4d3fc4; }
.button--ghost { border: 1px solid var(--line); background: rgba(255,255,255,.7); color: var(--ink); }
.button--soft { background: var(--surface-2); color: var(--brand); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 30px 0 0; }
.hero__meta li, .tag-list li, .tag-cloud a { border: 1px solid var(--line); background: rgba(255,255,255,.65); color: var(--muted); padding: 6px 10px; border-radius: 999px; font-size: .85rem; }
.hero__media { position: relative; margin: 0; }
.hero__media::before { content: ""; position: absolute; inset: -20px 30px 30px -20px; background: var(--surface-2); border-radius: 34px; z-index: -1; }
.hero__media img { width: 100%; aspect-ratio: 1.12/1; box-shadow: var(--shadow); }
.section { padding-block: 76px; }
.section--tight { padding-block: 54px; }
.section--muted { background: var(--surface-2); }
.section--muted-inline { background: var(--surface-2); border-radius: var(--radius-lg); padding: 34px; }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.section-heading--wide { max-width: 900px; }
.section-heading h2, .panel h2, .reading-flow h2, .story-strip h2, .story-strip h3 { margin: 0 0 12px; color: var(--ink); line-height: 1.2; letter-spacing: -.025em; }
.section-heading h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
.section-heading p { color: var(--muted); margin: 0; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.content-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 8px 30px rgba(30,27,46,.04); }
.content-card > img { width: 100%; aspect-ratio: 1.55/1; border-radius: 0; }
.content-card__body { padding: 24px; }
.content-card h3 { margin: 4px 0 10px; color: var(--ink); font-size: 1.28rem; line-height: 1.3; }
.content-card p { margin: 0; color: var(--muted); }
.text-link { display: inline-flex; margin-top: 18px; color: var(--brand); font-weight: 800; }
.text-link::after { content: "→"; margin-left: 7px; }
.section--split { display: grid; grid-template-columns: 1.08fr .92fr; gap: 20px; }
.panel { border-radius: var(--radius-lg); padding: 34px; }
.panel--accent { background: var(--ink); color: white; }
.panel--accent h2 { color: white; font-size: clamp(1.75rem, 3vw, 2.6rem); }
.panel--accent p { color: rgba(255,255,255,.76); }
.panel--accent .text-link { color: #c9c1ff; }
.panel--list { background: var(--surface); border: 1px solid var(--line); }
.link-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a { display: grid; gap: 3px; padding: 18px 0; }
.link-list strong { color: var(--ink); }
.link-list span { color: var(--muted); font-size: .92rem; }
.story-strip { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; background: var(--surface); border: 1px solid var(--line); padding: 22px; border-radius: var(--radius-lg); }
.story-strip--reverse { grid-template-columns: 1fr 1fr; }
.story-strip img { aspect-ratio: 1.4/1; width: 100%; }
.story-strip h3, .story-strip h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); }
.story-strip p { color: var(--muted); }
.cta-band { min-height: 210px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 3rem); color: var(--ink); }
.cta-band p { color: var(--muted); margin-bottom: 0; }
.page-stack { padding-top: 28px; padding-bottom: 72px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .88rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 7px; opacity: .5; }
.page-intro { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 36px; min-height: 390px; padding: 44px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(2.35rem, 5vw, 4.55rem); }
.page-intro p { color: var(--muted); font-size: 1.02rem; }
.page-intro img { width: 100%; aspect-ratio: 1.35/1; }
.page-intro--brand { background: linear-gradient(135deg, rgba(239,239,252,.95), #fff); }
.page-intro--content { background: linear-gradient(145deg, #fff, rgba(139,124,246,.11)); }
.page-intro--video { background: linear-gradient(145deg, rgba(30,27,46,.97), #332d4a); color: white; border: 0; }
.page-intro--video h1, .page-intro--video .eyebrow { color: white; }
.page-intro--video p { color: rgba(255,255,255,.78); }
.page-intro--app { background: linear-gradient(145deg, rgba(240,90,126,.08), #fff); }
.page-intro--index { background: linear-gradient(145deg, #fff, rgba(91,75,219,.08)); }
.page-intro--faq { background: linear-gradient(145deg, rgba(239,239,252,.9), #fff); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; margin-top: 46px; }
.prose { min-width: 0; }
.prose section + section { margin-top: 42px; }
.prose h2 { margin: 0 0 12px; color: var(--ink); font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.25; }
.prose p, .prose li { color: var(--text); }
.prose a { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.context-panel, .visual-note { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; }
.context-panel h2 { margin: 0 0 8px; font-size: 1.05rem; }
.context-panel a { display: grid; gap: 3px; padding: 14px 0; border-top: 1px solid var(--line); }
.context-panel span, .visual-note p { color: var(--muted); font-size: .88rem; }
.reading-flow { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; padding: 54px 0; align-items: center; }
.reading-flow article { padding-right: 20px; }
.reading-flow figure { margin: 0; }
.reading-flow img { aspect-ratio: 1.3/1; width: 100%; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.video-index { display: grid; gap: 18px; margin-top: 44px; }
.video-row { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; padding: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); }
.video-row img { width: 100%; aspect-ratio: 1.4/1; }
.video-row h2 { margin: 0 0 8px; color: var(--ink); }
.video-row p { color: var(--muted); margin-top: 0; }
.video-row ul { margin: 12px 0 0; padding-left: 20px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-grid a, .help-grid a { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); display: grid; gap: 6px; }
.mini-grid span { color: var(--brand); font-weight: 800; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.mini-grid strong, .help-grid strong { color: var(--ink); font-size: 1.08rem; }
.mini-grid p, .help-grid span { margin: 0; color: var(--muted); font-size: .9rem; }
.visual-note img { aspect-ratio: 1/1; }
.topic-list { display: grid; margin-top: 38px; border-top: 1px solid var(--line); }
.topic-entry { display: grid; grid-template-columns: 1fr auto; gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.topic-entry h2 { margin: 0 0 6px; color: var(--ink); font-size: 1.35rem; }
.topic-entry p { margin: 0; color: var(--muted); max-width: 76ch; }
.tag-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; list-style: none; padding: 0; margin: 2px 0 0; max-width: 350px; }
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: 0 20px; }
.faq-item summary { cursor: pointer; color: var(--ink); font-weight: 800; padding: 18px 0; }
.faq-item p { color: var(--muted); margin: 0 0 18px; }
.help-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.not-found { min-height: 58vh; display: grid; place-content: center; max-width: 760px; text-align: center; padding-block: 80px; }
.not-found h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin: 0; color: var(--ink); }
.not-found p { color: var(--muted); }
.not-found .inline-actions { justify-content: center; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-block: 42px; }
.site-footer__brand { color: var(--ink); font-weight: 900; font-size: 1.3rem; margin: 0; }
.site-footer__grid p { color: var(--muted); }
.site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px 22px; align-content: start; }
.site-footer nav a { color: var(--muted); }
.site-footer__bottom { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; color: var(--muted); font-size: .86rem; }
@media (max-width: 900px) {
  :root { --shell: min(100% - 28px, 760px); }
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; left: 14px; right: 14px; top: 70px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 11px 12px; }
  .hero, .page-intro, .reading-flow, .section--split, .article-layout, .story-strip, .story-strip--reverse { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 48px; gap: 34px; }
  .hero__media { max-width: 660px; }
  .page-intro { padding: 30px; }
  .article-layout { gap: 24px; }
  .context-panel, .visual-note { position: static; }
  .content-grid, .mini-grid, .help-grid { grid-template-columns: 1fr 1fr; }
  .video-row { grid-template-columns: 220px 1fr; }
  .topic-entry { grid-template-columns: 1fr; }
  .tag-list { justify-content: flex-start; max-width: none; }
}
@media (max-width: 620px) {
  :root { --shell: calc(100% - 22px); --radius-lg: 22px; }
  body { font-size: 15px; }
  .site-header__inner { min-height: 66px; }
  .brand small { display: none; }
  .hero { padding-block: 38px 44px; }
  .hero h1, .page-intro h1 { font-size: clamp(2.1rem, 12vw, 3.4rem); }
  .hero__actions .button, .inline-actions .button { width: 100%; }
  .content-grid, .mini-grid, .help-grid { grid-template-columns: 1fr; }
  .page-intro { padding: 24px; }
  .video-row { grid-template-columns: 1fr; }
  .video-row img { max-height: 240px; }
  .section { padding-block: 52px; }
  .section--tight { padding-block: 40px; }
  .panel { padding: 25px; }
  .cta-band { min-height: 0; padding-block: 44px; flex-direction: column; align-items: flex-start; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 18px; }
  .site-footer nav { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.search-hero { max-width: 900px; padding: 46px 0 24px; }
.search-hero h1 { margin: 0; color: var(--ink); font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1.06; letter-spacing: -.04em; }
.search-hero > p:not(.eyebrow) { color: var(--muted); }
.search-form { margin-top: 28px; }
.search-form label { display: block; margin-bottom: 8px; font-weight: 800; color: var(--ink); }
.search-form > div { display: flex; gap: 10px; max-width: 760px; }
.search-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); padding: 0 15px; font: inherit; min-height: 48px; }
.search-results { display: grid; gap: 14px; max-width: 900px; }
.search-results article, .empty-state { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-md); padding: 24px; }
.search-results h3, .empty-state h3 { margin: 0 0 7px; color: var(--ink); }
.search-results p, .empty-state p { margin: 0; color: var(--muted); }
@media (max-width: 620px) { .search-form > div { display: grid; } .search-form button { width: 100%; } }
