/* Shared styles for the ComponentNews info pages (Features / FAQ / Contact), T2883.
   Tokens and header mirror static/newpage/index.html so the pages read as one site. */
:root {
  --bg: #f6f7f9; --white: #ffffff; --text: #1a1a2e; --text-secondary: #4a4a68;
  --text-muted: #676a7e; --accent: #1a56db; --accent-light: #e8effd;
  --border: #e5e7eb; --border-light: #f0f1f3; --green: #16a34a; --red: #dc2626;
  --radius: 8px; --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
}
body.dark {
  --bg: #0f1117; --white: #1a1d27; --text: #e4e6ed; --text-secondary: #b0b3c5;
  --text-muted: #9095aa; --accent: #5b95ff; --accent-light: rgba(79,140,255,0.12);
  --border: #2d3140; --border-light: #232733; --green: #4cdf8b; --red: #ff6b6b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }
a { color: var(--accent); }

.topbar { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.topbar-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 28px; display: block; }
.logo-dark { display: none; }
body.dark .logo-light { display: none; }
body.dark .logo-dark { display: block; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-right a { color: var(--text-secondary); text-decoration: none; font-size: 13px; font-weight: 500; }
.topbar-right a:hover, .topbar-right a[aria-current="page"] { color: var(--text); }
.topbar-right a[aria-current="page"] { font-weight: 700; }
.theme-toggle { color: var(--text); background: none; border: 1px solid var(--border); border-radius: 6px; width: 32px; height: 32px; cursor: pointer; font-size: 15px; }
.theme-toggle:hover { background: var(--bg); }
.btn-primary, .topbar-right a.btn-primary {
  display: inline-block; background: #1a56db; color: #fff; padding: 8px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; font-family: inherit;
}
.btn-primary:hover, .topbar-right a.btn-primary:hover { background: #1e429f; color: #fff; }
.btn-primary:focus-visible, .btn-secondary:focus-visible { outline: 2px solid #93b4f5; outline-offset: 2px; }
body.dark .btn-primary, body.dark .topbar-right a.btn-primary { background: #2563eb; }
body.dark .btn-primary:hover, body.dark .topbar-right a.btn-primary:hover { background: #1a56db; }
.btn-secondary { display: inline-block; padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--white); }
.btn-secondary:hover { border-color: var(--text-muted); }

.wrap { max-width: 960px; margin: 0 auto; padding: 40px 24px 64px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
h1 { font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.lede { font-size: 17px; color: var(--text-secondary); max-width: 680px; margin-bottom: 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
h2 { font-size: 20px; font-weight: 700; margin: 40px 0 14px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 22px; box-shadow: var(--shadow-sm); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.card p, .card li { font-size: 14px; color: var(--text-secondary); }
.card ul { padding-left: 18px; margin-top: 6px; }
.card .ico { font-size: 20px; margin-bottom: 8px; display: block; }
.steps { counter-reset: s; display: grid; gap: 12px; }
.steps li { list-style: none; counter-increment: s; position: relative; padding-left: 40px; font-size: 14px; color: var(--text-secondary); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-light); color: var(--accent); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.steps li strong { color: var(--text); }

.faq details { background: var(--white); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--text-muted); font-weight: 400; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq .a { padding: 0 20px 18px; font-size: 14px; color: var(--text-secondary); }
.faq .a p + p { margin-top: 8px; }
.faq h2:first-child { margin-top: 0; }

.sub-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sub-form input[type=email] { flex: 1 1 200px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; font: inherit; font-size: 14px; background: var(--bg); color: var(--text); }
.sub-msg { font-size: 12px; margin-top: 8px; display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.footer { border-top: 1px solid var(--border); padding: 24px; text-align: center; font-size: 12px; color: var(--text-muted); }
.footer a { color: var(--text-secondary); text-decoration: none; margin: 0 8px; }
.footer a:hover { color: var(--text); }

@media (max-width: 768px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; row-gap: 8px; }
  .topbar-right { gap: 12px; flex-wrap: wrap; }
  .wrap { padding: 28px 16px 48px; }
  h1 { font-size: 26px; }
}
