:root {
  --ink: #14233f;
  --muted: #65758c;
  --line: #d9e2ee;
  --canvas: #f5f7fb;
  --surface: #fff;
  --brand: #126bd5;
  --brand-2: #2e91ff;
  --accent: #ffd34e;
  --soft: #e9f1ff;
  --warn: #fff1ee;
  --danger: #a53425;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-width: 320px; }
a { color: var(--brand); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .7rem; font-size: clamp(2rem, 6vw, 3.5rem); letter-spacing: -.045em; }
h2 { margin-bottom: 1rem; font-size: clamp(1.45rem, 4vw, 2.1rem); letter-spacing: -.03em; }
h3 { margin-bottom: .5rem; font-size: 1.05rem; }
p, li { line-height: 1.6; }

.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .8rem 1rem; border-radius: 8px; background: #fff; }
.skip-link:focus { top: 1rem; }
.help-topbar { position: sticky; z-index: 20; top: 0; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem clamp(1rem, 4vw, 3rem); background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--line); }
.help-brand { display: flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; }
.help-brand span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px 13px 13px 4px; background: #2e91ff; color: #fff; font-weight: 900; font-size: 1.25rem; }
.back-link { font-weight: 800; text-decoration: none; }
.help-layout { width: min(1280px, calc(100% - 2rem)); margin: 0 auto; display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.help-nav { position: sticky; top: 90px; align-self: start; display: grid; gap: .3rem; padding: 2rem 0; }
.help-nav strong { margin-bottom: .6rem; }
.help-nav a { padding: .55rem .7rem; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 700; }
.help-nav a:hover, .help-nav a:focus-visible { background: var(--soft); color: var(--brand); }
main { min-width: 0; padding: 2rem 0 5rem; }
.eyebrow { margin-bottom: .4rem; color: var(--brand-2); font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.help-hero { padding: clamp(2rem, 6vw, 5rem); border-radius: 24px; color: #fff; background: radial-gradient(circle at 90% 10%, var(--accent) 0 75px, transparent 76px), var(--brand); }
.help-hero .eyebrow, .help-hero .version-note { color: #d9e7ff; }
.help-hero > p:not(.eyebrow, .version-note) { max-width: 680px; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1rem; border-radius: 9px; font-weight: 850; text-decoration: none; }
.button.primary { background: var(--accent); color: #1b2b48; }
.button.secondary { border: 1px solid #8fb0e0; color: #fff; }
.version-note { margin-bottom: 0; font-size: .85rem; }
.help-section { margin-top: 1.2rem; padding: clamp(1.25rem, 4vw, 2.2rem); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.accent-section { border-color: #85a9e0; box-shadow: inset 0 4px var(--brand-2); }
.visual-section { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr); gap: 2rem; align-items: start; }
.visual-section img { width: min(100%, 390px); justify-self: center; border: 1px solid #9cb6df; border-radius: 14px; box-shadow: 0 12px 30px rgb(11 61 145 / 12%); }
.step-list { display: grid; gap: .8rem; padding-left: 1.4rem; }
.step-list.compact { gap: .45rem; }
.notice { margin-top: 1rem; padding: 1rem; border-radius: 11px; color: var(--brand); background: var(--soft); line-height: 1.5; }
.notice.warning { color: var(--danger); background: var(--warn); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.card-grid section { padding: 1rem; border-radius: 12px; background: var(--canvas); }
.card-grid p { margin-bottom: 0; color: var(--muted); }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.role-grid p { display: grid; gap: .15rem; margin: 0; padding: .8rem; border-radius: 10px; background: var(--soft); }
.role-grid span { color: var(--muted); font-size: .9rem; }
.role-grid.wide p { padding: 1.1rem; }
.faq-list { display: grid; gap: .65rem; }
.faq-list details { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 10px; }
.faq-list summary { cursor: pointer; color: var(--brand); font-weight: 850; }
.faq-list p { margin: .7rem 0 0; color: var(--muted); }
.help-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 2rem .5rem 0; }
.help-footer a { font-weight: 800; }
.legal-intro { max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.legal-section { margin-top: 1.2rem; padding: clamp(1.25rem, 4vw, 2.2rem); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.legal-section h2 { scroll-margin-top: 90px; }
.legal-section h3 { margin-top: 1.4rem; }
.legal-section ul { padding-left: 1.25rem; }
.legal-section li + li { margin-top: .45rem; }
.legal-meta { display: grid; grid-template-columns: minmax(150px, .35fr) 1fr; gap: .45rem 1rem; margin: 1rem 0 0; }
.legal-meta dt { font-weight: 850; }
.legal-meta dd { margin: 0; color: var(--muted); }
.legal-note { margin-top: 1rem; padding: .9rem 1rem; border-left: 4px solid var(--brand-2); border-radius: 0 10px 10px 0; background: var(--soft); color: var(--ink); line-height: 1.55; }

@media (max-width: 900px) {
  .help-layout { display: block; width: min(100% - 1rem, 900px); }
  .help-nav { position: static; display: flex; overflow-x: auto; padding: 1rem 0; }
  .help-nav strong { display: none; }
  .help-nav a { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; }
  main { padding-top: 0; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 72px; }
  .help-topbar { padding: .65rem .8rem; }
  .visual-section, .card-grid { grid-template-columns: 1fr; }
  .visual-section img { grid-row: auto; }
  .role-grid { grid-template-columns: 1fr; }
  .help-hero { background: var(--brand); }
  .hero-actions { display: grid; }
  .help-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
