/*
CHANGE LOG
File: /static/css/ai_index.css
Document: CSS Stylesheet
Purpose: Bright, human-first hub with white cards; fixed CTA; featured Memory; compact AI block
Version History:
2025-08-23 v9.0 - Kept bright theme; spacing tuned; accessibility focus; no SHIELD; pairs with assistant_instructions block
*/

/* Base */
*{box-sizing:border-box}
:root{
  --page:#f5f7fb;
  --hero1:#7aa2ff;
  --hero2:#9b7bff;
  --text:#1b2330;
  --muted:#5a6473;
  --card:#ffffff;
  --line:#e6e9f0;
  --brand:#6777ff;
  --accent:#00b884;
  --focus:#294cff33;
}
html,body{margin:0;padding:0;background:var(--page);color:var(--text);
  font:16px/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,Arial,sans-serif}
a{color:inherit;text-decoration:none}
.sr-only{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* Container */
.ns-container{max-width:1120px;margin:0 auto;padding:0 20px}

/* Hero (bright) */
.ns-hero{
  background:linear-gradient(135deg,var(--hero1),var(--hero2));
  color:#fff;text-align:center;padding:56px 20px 30px;border-bottom:1px solid rgba(255,255,255,.18);
  border-radius:0 0 24px 24px; box-shadow:0 8px 28px rgba(50,50,93,.18); margin-bottom:18px
}
.ns-hero h1{margin:0 0 8px;font-size:2.6rem;font-weight:700}
.ns-tagline{margin:0 0 10px;opacity:.95}
.ns-authnote{margin:8px 0 0;opacity:.92}

/* CTA bar (under hero; always visible; sticky on mobile) */
.ns-cta-bar{
  display:flex;gap:12px;justify-content:center;align-items:center;
  margin:16px auto 0; padding:10px 12px;
  background:rgba(255,255,255,.92); border:1px solid #dfe5f3; border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.10); width:max-content; max-width:100%
}
.ns-cta{
  display:inline-block; padding:10px 16px; border-radius:10px; border:1px solid #dfe3ee;
  background:#ffffff; color:#1b2330; font-weight:600; white-space:nowrap
}
.ns-cta.primary{ background:var(--brand); color:#fff; border-color:var(--brand)}
.ns-cta:hover{ filter:brightness(1.03) }
@media (max-width:768px){
  .ns-cta-bar{ position:sticky; top:0; z-index:30; margin-top:12px }
}

/* Featured Memory card */
.ns-featured{ margin:18px 0 }
.ns-featured-card{
  display:flex; gap:16px; align-items:flex-start;
  background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px 18px;
  box-shadow:0 10px 24px rgba(0,0,0,.06); transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease
}
.ns-featured-card:hover{ transform:translateY(-4px); box-shadow:0 16px 36px rgba(0,0,0,.10); border-color:#d7dff0 }
.ns-feat-badge{
  width:48px;height:48px;border-radius:12px;
  background:linear-gradient(135deg,#6fd0ff,#7aa2ff); color:#13203b; font-weight:700;
  display:flex;align-items:center;justify-content:center; letter-spacing:.5px; flex:0 0 48px
}
.ns-feat-body h3{ margin:0 0 6px; font-size:1.15rem }
.ns-feat-sub{ margin:0 0 10px; color:var(--muted) }
.ns-mini-steps{ margin:0 0 10px 16px; padding:0; color:var(--muted) }
.ns-mini-steps li{ margin:2px 0 }
.ns-feat-actions{ display:flex; gap:10px; flex-wrap:wrap }
.ns-feat-btn{
  display:inline-block; padding:10px 16px; border-radius:10px; border:1px solid #dfe3ee; background:#fff; font-weight:600
}
.ns-feat-btn.primary{ background:var(--accent); border-color:var(--accent); color:#fff }
.ns-feat-btn:hover{ filter:brightness(1.03) }
@media (max-width:768px){
  .ns-featured-card{ flex-direction:column; align-items:stretch }
}

/* Cards (index) */
.ns-cards{
  display:grid;gap:20px;margin:20px 0 40px;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr))
}
.ns-card{
  background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px;
  box-shadow:0 10px 24px rgba(0,0,0,.06);transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease
}
.ns-card:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(0,0,0,.10);border-color:#d7dff0}
.ns-card:focus{outline:4px solid var(--focus);outline-offset:3px}
.ns-badge{
  width:44px;height:44px;border-radius:10px;
  background:linear-gradient(135deg,#6fd0ff,#7aa2ff);color:#13203b;font-weight:700;
  display:flex;align-items:center;justify-content:center;margin-bottom:12px;letter-spacing:.5px
}
.ns-card h3{margin:0 0 6px;font-size:1.15rem}
.ns-card p{margin:0 0 10px;color:var(--muted)}
.ns-card-cta{font-weight:600;color:#6777ff}

/* AI (collapsed machine block) */
.ns-ai{
  background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 16px;
  box-shadow:0 10px 24px rgba(0,0,0,.06);margin:6px 0 44px
}
.ns-ai summary{cursor:pointer;font-weight:600}
.ns-ai pre{
  margin:10px 0 0;padding:14px;background:#f7f9ff;border:1px solid #e5e9f6;border-radius:10px;
  overflow-x:auto;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;
  font-size:.92rem;line-height:1.45;color:#283548
}

/* Print */
@media print{
  body{background:#fff;color:#000}
  .ns-card,.ns-featured-card,.ns-ai{box-shadow:none}
}
