/* getnuxa.com — "Connect your AI" help pages (built by tools/build-help.py).
   Loaded after styles.css on help pages only; uses the same theme variables. */
.help { max-width: 920px; margin: 0 auto; padding: clamp(28px,5vw,48px) var(--pad) clamp(56px,8vw,96px); }
.crumbs { font-size: 14px; font-weight: 600; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: clamp(24px,4vw,40px); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); }

.guide-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px,4vw,40px); }
.guide-head h1 { font-size: clamp(40px,6.5vw,72px); line-height: 1; letter-spacing: -.05em; font-weight: 800; text-wrap: balance; overflow-wrap: anywhere; }
.guide-head .lead { max-width: 640px; }
.hub-links { font-size: 17px; font-weight: 700; }

.help section { margin-top: clamp(40px,6vw,64px); }
.help section.glance { margin-top: 0; }
.sec-h { display: flex; align-items: center; gap: 12px; font-size: clamp(24px,3vw,32px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.sec-n { flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0; }
.sec-n.small { width: 26px; height: 26px; font-size: 13px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.sec-lead { font-size: 17px; line-height: 1.6; color: var(--muted); margin-bottom: 20px; }

/* Hub tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%,260px),1fr)); gap: 14px; }
.tile { position: relative; display: flex; align-items: center; gap: 16px; min-height: 104px; padding: 20px 44px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; color: var(--text); transition: transform .2s, border-color .2s; }
.tile:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--accent); }
.tile-top { border-width: 2px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.mono { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--aisoft); color: var(--ai); font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tile-top .mono { background: var(--accent); color: var(--ink); }
.tile-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.tile-sub { font-size: 15px; line-height: 1.4; color: var(--muted); }
.tile-badge { position: absolute; top: 10px; right: 12px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.tile-go { position: absolute; right: 18px; bottom: 16px; color: var(--accent); font-size: 20px; font-weight: 800; }
.tile .tile-text { padding-top: 8px; }
.hub-foot { margin-top: 32px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* 1 At a glance */
.glance dl { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 6px 22px; }
.glance-row { display: grid; grid-template-columns: minmax(0,180px) minmax(0,1fr); gap: 6px 20px; padding: 16px 0; }
.glance-row + .glance-row { border-top: 1px solid var(--line); }
.glance dt { font-size: 14px; font-weight: 800; color: var(--muted); padding-top: 3px; }
.glance dd { margin: 0; font-size: 17px; line-height: 1.55; }
@media (max-width: 560px) { .glance-row { grid-template-columns: 1fr; } }
.pill { display: inline-block; font-size: 15px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.pill-ok { background: var(--oksoft); color: var(--ok); }
.pill-key { background: var(--aisoft); color: var(--ai); }
.small-link { font-size: 15px; font-weight: 700; margin-left: 6px; white-space: nowrap; }

/* 2 Steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.step { display: grid; grid-template-columns: minmax(0,240px) minmax(0,1fr); gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; scroll-margin-top: 100px; }
.step:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--aisoft); }
@media (max-width: 640px) { .step { grid-template-columns: 1fr; gap: 14px; padding: 18px; } .step-art { max-width: 280px; } }
.step-art { background: var(--bg2); border-radius: 16px; padding: 10px; }
.il { display: block; overflow: visible; width: 100%; height: auto; font-family: inherit; }
.step-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.step-n { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.step-text h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.step-text p { font-size: 17px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.step-text .step-n { color: var(--accent); font-size: 13px; }
.step-btn { font-size: 15px !important; }
.ui { display: inline-block; font-weight: 800; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.step-link a, .step-help a { font-weight: 700; }
.step-help { font-size: 15px !important; }

/* 3 Limits */
.said { margin-bottom: 14px; }
.said-k { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.said blockquote { margin: 0; padding: 14px 18px; border-left: 4px solid var(--ai); background: var(--aisoft); border-radius: 0 14px 14px 0; font-size: 17px; line-height: 1.55; }
.limit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,220px),1fr)); gap: 14px; margin-top: 20px; }
.limit-grid.one { grid-template-columns: 1fr; }
.limit-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.limit-k { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.limit-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.limit-card p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* 4 Troubleshooting (re-uses the FAQ accordion look) */
.tgroups { display: flex; flex-direction: column; gap: 28px; }
.tgroup { scroll-margin-top: 100px; }
.tgroup h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.tstep { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tgroup .faq-item summary { font-size: 17px; padding: 16px 0; }
.tgroup .faq-item .a { padding-right: 0; font-size: 16px; }

/* 5 Still stuck + 6 Last checked */
.stuck { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px,4vw,32px); }
.stuck p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.stuck p + p { margin-top: 16px; }
.stuck-btn { font-size: 17px; padding: 14px 24px; }
.checked { margin-top: 24px; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--muted); }
.back { margin-top: 32px; font-size: 17px; font-weight: 700; }

/* API key explainer */
.explain-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px,4vw,36px); display: flex; flex-direction: column; gap: 22px; }
.il-wide { max-width: 420px; }
.explain-body { font-size: clamp(20px,2.4vw,26px); line-height: 1.45; font-weight: 700; letter-spacing: -.01em; }
.explain-note { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.key-links { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.key-links a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 700; }
.key-links a:hover { border-color: var(--accent); text-decoration: none; }

/* Gentle motion in the drawings */
@keyframes il-bob { 0%,100% { transform: translate(0,0); } 50% { transform: translate(2px,3px); } }
@keyframes il-blink { 50% { opacity: 0; } }
.il-hand > path { animation: il-bob 2.2s ease-in-out infinite; }
.il-blink { animation: il-blink 1s steps(1) infinite; }
.il-spark { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .il-hand > path, .il-blink, .il-spark { animation: none; } }

/* Hub: "Which should I pick?" comparison (stacks into one card per choice on phones) */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; font-size: 16px; line-height: 1.45; }
.compare-table th, .compare-table td { text-align: left; padding: 14px 16px; vertical-align: top; }
.compare-table thead th { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.compare-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.compare-table tbody th { font-size: 17px; font-weight: 800; white-space: nowrap; }
.compare-table td { color: var(--muted); }
@media (max-width: 700px) {
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; }
  .compare-table { background: none; border: 0; border-radius: 0; }
  .compare-table thead { display: none; }
  .compare-table tbody tr { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 8px 4px; }
  .compare-table tbody tr + tr { margin-top: 12px; }
  .compare-table tbody tr + tr > * { border-top: 0; }
  .compare-table tbody th { padding-bottom: 6px; }
  .compare-table td { display: grid; grid-template-columns: minmax(0,110px) minmax(0,1fr); gap: 12px; padding: 6px 16px; }
  .compare-table td::before { content: attr(data-label); font-size: 13px; font-weight: 800; color: var(--text); }
}
