/* promptsforbusiness.com — single stylesheet, no framework.
   Contrast: all text tokens checked >= 4.5:1 against their background in both themes. */
:root {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --surface-2: #eef0f7;
  --border: #dfe3ee;
  --text: #111827;        /* 17.7:1 on bg */
  --muted: #4b5563;       /* 7.6:1 on bg, 7.1:1 on surface */
  --primary: #4338ca;     /* 7.9:1 on bg (links) */
  --primary-strong: #3730a3;
  --on-primary: #ffffff;  /* 7.9:1 on --primary */
  --accent: #c2410c;      /* 5.2:1 on bg */
  --var-bg: #fef3c7;
  --var-text: #78350f;    /* 8.9:1 on --var-bg */
  --code-bg: #0f172a;
  --code-text: #e2e8f0;   /* 13.9:1 on code-bg */
  --code-var: #fcd34d;    /* 11.6:1 on code-bg */
  --ok: #15803d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 8px 24px rgba(17, 24, 39, .06);
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #121a2f;
    --surface-2: #19223b;
    --border: #2a3553;
    --text: #e5e7eb;      /* 14.9:1 */
    --muted: #a7b0c0;     /* 8.4:1 on bg, 7.6:1 on surface */
    --primary: #a5b4fc;   /* 9.4:1 on bg */
    --primary-strong: #c7d2fe;
    --on-primary: #0b1020;
    --accent: #fdba74;
    --var-bg: #3b2a0a;
    --var-text: #fde68a;  /* 11:1 on --var-bg */
    --code-bg: #060a16;
    --ok: #4ade80;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-strong); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }
.muted { color: var(--muted); }
.eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .5rem; display: block; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 1.15rem; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-weight: 800; } .brand i { font-style: normal; font-weight: 500; color: var(--primary); }
.nav { display: flex; gap: 4px 16px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 2px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }
@media (max-width: 640px) { .nav { width: 100%; padding-bottom: 10px; gap: 4px 14px; } .nav a { font-size: .9rem; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-strong); color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-sm { padding: 7px 12px; font-size: .875rem; border-radius: 8px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 56px 0; }
.hero { padding: 64px 0 40px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.alt .card { background: var(--bg); }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--primary); }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin: 0 6px 6px 0; }
.pill-free { background: #dcfce7; color: #14532d; }
.pill-paid { background: var(--var-bg); color: var(--var-text); }
@media (prefers-color-scheme: dark) { .pill-free { background: #12351f; color: #bbf7d0; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 800; margin-bottom: 10px; }
.price { font-size: 2.4rem; font-weight: 800; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.notice { border-left: 4px solid var(--accent); background: var(--surface); padding: 14px 18px; border-radius: 8px; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-top: 20px; }
.breadcrumbs a { color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; }

/* Prompt blocks */
.prompt { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 0 0 20px; background: var(--bg); }
.prompt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.prompt-head strong { font-size: .95rem; }
.prompt pre { margin: 0; padding: 18px; background: var(--code-bg); color: var(--code-text); font-family: var(--mono); font-size: .9rem; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; overflow-x: auto; }
.prompt pre .v { color: var(--code-var); font-weight: 700; }
.copy-btn[data-copied="true"] { background: var(--ok); color: #fff; }
.locked { position: relative; padding: 18px; background: var(--code-bg); color: var(--code-text); min-height: 150px; }
.locked .ghost-lines span { display: block; height: 12px; border-radius: 6px; background: #334155; margin: 0 0 12px; filter: blur(2px); }
.locked .lock-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; background: rgba(15, 23, 42, .55); }
.locked .lock-msg p { margin: 0 0 10px; color: #f1f5f9; font-weight: 700; }
.vars { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vars li { font-size: .95rem; }
.var-name { font-family: var(--mono); background: var(--var-bg); color: var(--var-text); padding: 1px 6px; border-radius: 5px; font-weight: 700; font-size: .88rem; }
.example { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; white-space: pre-wrap; font-size: .95rem; }
.example.faded { -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.two-col { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) 320px; } .sticky { position: sticky; top: 88px; } }
details { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; background: var(--bg); }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Anatomy */
.anatomy { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .anatomy { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.anatomy ol { padding-left: 1.2em; margin: 0; }
.anatomy ol li { margin-bottom: 12px; }
.tag { font-family: var(--mono); font-size: .75rem; font-weight: 700; background: var(--primary); color: var(--on-primary); padding: 1px 6px; border-radius: 4px; margin-right: 4px; }

table.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.cmp th, table.cmp td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: .92rem; margin-top: 40px; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.site-footer h4 { color: var(--text); margin: 0 0 8px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--primary); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 20; }
.toast.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
pre .tag { display: inline-block; }
.card, .prompt, .example, details { min-width: 0; }
h1, h2, h3, a { overflow-wrap: anywhere; }
