/* prompts — sophisticated / LinkedIn Learning-ish
   Clean, restrained, corporate-friendly. No blobs. No playful type.
*/

:root{
  --bg: #f3f6f9;
  --surface: #ffffff;
  --surface2: #f8fafc;

  --ink: #0f172a;
  --muted: #475569;

  --line: rgba(15, 23, 42, .10);
  --line2: rgba(15, 23, 42, .07);

  --brand: #0a66c2;
  --brand2:#1d4ed8;

  --shadow: 0 10px 28px rgba(2, 6, 23, .10);
  --shadow2: 0 6px 18px rgba(2, 6, 23, .10);

  --r: 16px;
  --r2: 22px;
  --r3: 28px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--ink);
  background: linear-gradient(180deg, #eef3f8 0%, var(--bg) 26%, var(--bg) 100%);
}

a{color:inherit;text-decoration:none}
.container{max-width:1180px;margin:0 auto;padding:0 18px}
.muted{color:var(--muted)}
.icon{opacity:.6;font-weight:800}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:20;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line2);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
  padding: 12px 0;
}

/* Brand */
.brand{display:flex; align-items:baseline; gap:10px; white-space:nowrap}
.brand__mark{
  width:14px;height:14px;border-radius:4px;
  background: linear-gradient(180deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 18px rgba(10,102,194,.18);
}
.brand__word{font-weight:800; letter-spacing:-0.02em}
.brand__by{font-weight:600; color:var(--muted); font-size:12.5px}

/* Search */
.topbar__search{
  flex:1;
  max-width:520px;
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(248,250,252,.90);
}
.topbar__search input{
  border:0; outline:none; width:100%;
  font-size: 14px; font-weight:500;
  background: transparent;
}
.topbar__search input::placeholder{color: rgba(71,85,105,.85)}
.clear{
  width:30px;height:30px;border-radius:999px;
  border:1px solid var(--line2);
  background: rgba(255,255,255,.75);
  display:none;
  cursor:pointer;
  font-weight:800;
}

/* Nav */
.nav{display:flex; align-items:center; gap:10px; white-space:nowrap}
.nav__link{
  font-size: 13px;
  font-weight:600;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--muted);
}
.nav__link:hover{background: rgba(10,102,194,.08); color: var(--ink)}
.nav__cta{
  font-size: 13px;
  font-weight:700;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10,102,194,.25);
  background: rgba(10,102,194,.10);
  color: var(--ink);
}

/* Buttons */
.btn{
  border:1px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight:700;
  font-size: 14px;
  cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  transition: .14s transform ease, .14s box-shadow ease, .14s background ease;
}
.btn:active{transform: translateY(1px)}
.btn--sm{padding:10px 12px;font-size:13px;border-radius:12px}
.btn--primary{
  background: linear-gradient(180deg, var(--brand), var(--brand2));
  color: #fff;
  box-shadow: 0 10px 18px rgba(10,102,194,.18);
}
.btn--primary:hover{box-shadow: 0 14px 26px rgba(10,102,194,.24)}
.btn--ghost{
  background: rgba(255,255,255,.70);
  border:1px solid var(--line);
  color: var(--ink);
}
.btn--ghost:hover{background:#fff; box-shadow: var(--shadow2)}

/* Hero */
.hero{padding: 34px 0 18px}
.hero__inner{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items:start;
}
.eyebrow{
  display:inline-block;
  font-size: 12px;
  font-weight:700;
  color: rgba(71,85,105,.95);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(10,102,194,.08);
  border: 1px solid rgba(10,102,194,.14);
}
.hero h1{
  margin: 12px 0 10px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.07;
  letter-spacing: -0.03em;
}
.lead{
  margin:0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 500;
  font-size: 15.5px;
}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin: 14px 0 12px}
.metaRow{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top: 12px;
}
.meta{
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line2);
}
.meta__k{font-size:12px;color: rgba(71,85,105,.95);font-weight:600}
.meta__v{margin-top:6px;font-weight:700}

/* Panel */
.panel{
  border-radius: var(--r3);
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel__head{
  padding: 14px 14px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  border-bottom: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(248,250,252,.95), rgba(255,255,255,.75));
}
.panel__title{font-weight:800}
.panel__sub{margin-top:4px;font-size:12.5px;color: var(--muted)}
.panel__body{
  padding: 14px;
  display:grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 12px;
}

/* Segmented control */
.seg{
  display:flex;gap:4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
}
.seg--full{width:100%}
.seg__btn{
  border:0;background:transparent;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor:pointer;
}
.seg__btn.is-active{
  background:#fff;
  color: var(--ink);
  box-shadow: 0 10px 16px rgba(2,6,23,.12);
}

/* List */
.list__label{
  font-size: 12px;
  font-weight: 700;
  color: rgba(71,85,105,.95);
  margin-bottom: 8px;
}
.row{
  width:100%;
  text-align:left;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.70);
  cursor:pointer;
  margin-bottom: 8px;
}
.row:hover{background:#fff; box-shadow: var(--shadow2)}
.row__title{font-weight:700}
.row__tag{
  font-size: 12px;
  font-weight: 700;
  color: rgba(71,85,105,.95);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10,102,194,.08);
  border: 1px solid rgba(10,102,194,.14);
}

/* Preview */
.preview__label{font-size:12px;font-weight:700;color: rgba(71,85,105,.95);margin-bottom:8px}
.code{
  margin:0;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line2);
  background: rgba(248,250,252,.95);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono";
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  min-height: 220px;
}
.code--big{min-height: 560px}
.preview__actions{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}

/* Toast */
.toast{
  display:none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(10,102,194,.20);
  background: rgba(10,102,194,.10);
  color: rgba(2,6,23,.92);
  font-weight: 700;
  font-size: 12px;
}

/* Note */
.note{
  margin-top: 12px;
  padding: 14px 14px;
  border-radius: var(--r2);
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line2);
}
.note__title{font-weight:800;margin-bottom:6px}
.note p{margin:0;color: var(--muted);line-height:1.7}

/* Sections */
.section{padding: 26px 0}
.section--alt{
  background: rgba(255,255,255,.55);
  border-top: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
}
.section__head h2{
  margin:0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.section__head p{margin:0;color: var(--muted);line-height:1.7}

/* Categories */
.cats{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cat{
  padding: 14px 14px;
  border-radius: var(--r2);
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line2);
  box-shadow: 0 6px 18px rgba(2,6,23,.06);
}
.cat:hover{background:#fff; box-shadow: var(--shadow2)}
.cat__title{font-weight:800}
.cat__desc{margin-top:6px;color: var(--muted);font-size:13px;line-height:1.6}

/* Featured cards */
.cards{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card{
  padding: 14px 14px;
  border-radius: var(--r2);
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line2);
  box-shadow: 0 6px 18px rgba(2,6,23,.06);
}
.card:hover{background:#fff; box-shadow: var(--shadow2)}
.card__title{font-weight:800}
.card__sub{margin-top:6px;color: var(--muted);font-size:13px;line-height:1.6}
.card__foot{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.pill{
  font-size: 12px;
  font-weight: 700;
  color: rgba(71,85,105,.95);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  border: 1px solid var(--line2);
}
.link{
  font-weight:700;
  color: rgba(10,102,194,.95);
}

/* Callout */
.callout{
  border-radius: var(--r3);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow2);
  padding: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.callout h2{margin:0 0 6px;font-size:20px}
.callout p{margin:0;color: var(--muted);line-height:1.7}
.callout__actions{display:flex;gap:10px;flex-wrap:wrap}

/* Footer */
.footer{padding: 26px 0 50px}
.footer__inner{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
}
.footer__brand{display:flex;align-items:center;gap:10px}
.footer__right{display:flex;gap:12px;flex-wrap:wrap}
.footer__right a{font-size:13px;font-weight:600;color: var(--muted)}
.footer__right a:hover{color: var(--ink)}

/* Builder layout */
.builder{padding: 22px 0 56px}
.builder__inner{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap: 14px;
  align-items:start;
}
.sidebar{
  border-radius: var(--r3);
  background: rgba(255,255,255,.74);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow2);
  overflow:hidden;
  position: sticky;
  top: 84px;
}
.sidebar__head{
  padding: 14px 14px;
  border-bottom: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(248,250,252,.95), rgba(255,255,255,.75));
}
.sidebar__head h1{margin:0 0 6px;font-size:18px;letter-spacing:-0.01em}
.controls{padding: 14px}
.control{margin-bottom:12px}
.control label{display:block;font-size:12px;font-weight:700;color: rgba(71,85,105,.95);margin-bottom:8px}
.control select, .control textarea{
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(248,250,252,.95);
  outline:none;
  font-family: Inter;
  font-size: 14px;
}
.control textarea{min-height:140px;resize:vertical}
.control select:focus, .control textarea:focus{
  border-color: rgba(10,102,194,.35);
  box-shadow: 0 0 0 6px rgba(10,102,194,.10);
}
.hint{margin-top:8px;font-size:12.5px;line-height:1.6}
.control--actions{display:flex;gap:10px}

/* Work area */
.work{
  border-radius: var(--r3);
  background: rgba(255,255,255,.74);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow);
  padding: 14px;
}
.work__head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line2);
  margin-bottom: 12px;
}
.work__title{font-weight:800}

/* Responsive */
@media (max-width: 980px){
  .nav__link{display:none}
  .topbar__search{display:none}
  .hero__inner{grid-template-columns: 1fr}
  .panel__body{grid-template-columns: 1fr}
  .cats{grid-template-columns: repeat(2, 1fr)}
  .cards{grid-template-columns: repeat(2, 1fr)}
  .builder__inner{grid-template-columns: 1fr}
  .sidebar{position:static}
  .control--actions{flex-wrap:wrap}
}
@media (max-width: 560px){
  .cats{grid-template-columns: 1fr}
  .cards{grid-template-columns: 1fr}
  .callout{flex-direction:column;align-items:flex-start}
}


/* Additional pages (categories / category / prompt) */
.pageHead{padding: 22px 0 6px}
.breadcrumbs{
  font-size: 12.5px;
  color: rgba(71,85,105,.92);
  font-weight: 600;
}
.breadcrumbs a{color: rgba(10,102,194,.95)}
.breadcrumbs .sep{opacity:.55;margin:0 8px}

.statsRow{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat{
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line2);
}
.stat__k{font-size:12px;color: rgba(71,85,105,.95);font-weight:700}
.stat__v{margin-top:6px;font-weight:800;font-size:18px;letter-spacing:-0.02em}

.cats--lg{grid-template-columns: repeat(3, 1fr)}
@media (max-width: 980px){ .cats--lg{grid-template-columns: repeat(2, 1fr)} }
@media (max-width: 560px){ .cats--lg{grid-template-columns: 1fr} }

.utilityBar{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r2);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line2);
}
.utilityLeft{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.utilityRight{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tiny{font-size:12px;font-weight:700;color: rgba(71,85,105,.95)}
.selectSm{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(248,250,252,.95);
  outline:none;
  font-family: Inter;
  font-size: 13.5px;
  font-weight: 600;
}
.selectSm:focus{
  border-color: rgba(10,102,194,.35);
  box-shadow: 0 0 0 6px rgba(10,102,194,.10);
}

.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{
  font-size: 12px;
  font-weight: 700;
  color: rgba(71,85,105,.95);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  border: 1px solid var(--line2);
  cursor:pointer;
}
.chip.is-active{
  background: rgba(10,102,194,.10);
  border-color: rgba(10,102,194,.20);
  color: rgba(2,6,23,.92);
}

.cards--wide{grid-template-columns: repeat(3, 1fr)}
@media (max-width: 980px){ .cards--wide{grid-template-columns: repeat(2, 1fr)} }
@media (max-width: 560px){ .cards--wide{grid-template-columns: 1fr} }

.metaChips{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}
.metaChip{
  font-size: 12px;
  font-weight: 700;
  color: rgba(71,85,105,.95);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line2);
}

.promptLayout{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 14px;
  align-items:start;
}
@media (max-width: 980px){ .promptLayout{grid-template-columns: 1fr} }

.panelLite{
  border-radius: var(--r3);
  background: rgba(255,255,255,.74);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.panelLite__head{
  padding: 14px 14px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  border-bottom: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(248,250,252,.95), rgba(255,255,255,.75));
}
.panelLite__title{font-weight:800}
.panelLite__sub{margin-top:4px;font-size:12.5px;color: var(--muted)}
.panelLite__body{padding: 14px}

.promptBtns{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.mini{margin-top:10px}
.mini__k{font-size:12px;font-weight:800;color: rgba(71,85,105,.95)}
.mini__v{margin-top:6px;color: var(--muted);line-height:1.65;font-weight:500}

.exampleGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 980px){ .exampleGrid{grid-template-columns: 1fr} }

.variants{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}
.variant{
  border-radius: var(--r2);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line2);
  padding: 12px;
}
.variant__top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.variant__title{font-weight:800}
