/* PromptPolish site: no frameworks, no web fonts, no scripts. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --fg: #1c2024;
  --muted: #5b6068;
  --border: #e1e1ea;
  --accent: #4f46e5;
  --accent-fg: #ffffff;
  --accent-soft: #eceafd;
  --ok: #18794e;
  --warn-bg: #fff4d5;
  --warn-fg: #7a4b00;
  --shadow: 0 10px 40px rgba(30, 27, 75, 0.12);
  --radius: 14px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131417;
    --bg-soft: #1a1b20;
    --fg: #edeef0;
    --muted: #a3a7ae;
    --border: #2d2f36;
    --accent: #8b93ff;
    --accent-fg: #0c0c14;
    --accent-soft: #23244a;
    --ok: #4cc38a;
    --warn-bg: #3a2a07;
    --warn-fg: #ffca5c;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-fg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header / footer */
header.site { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fg); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
nav.site { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
nav.site a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--fg); }
footer.site { border-top: 1px solid var(--border); margin-top: 96px; padding: 36px 0 56px; color: var(--muted); font-size: 14px; background: var(--bg-soft); }
footer.site .wrap { display: grid; gap: 14px; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--fg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); font-weight: 600; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.small { padding: 8px 16px; font-size: 15px; }

/* Hero */
.hero { padding: 72px 0 40px; display: grid; gap: 40px; grid-template-columns: 1.05fr 1fr; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 16px 0 18px; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }
.shot { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--bg); display: block; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } }

/* Sections */
section { padding: 56px 0 0; }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--border); background: var(--bg-soft); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); }
.card .icon { font-size: 24px; margin-bottom: 10px; display: block; }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); counter-reset: s; padding: 0; list-style: none; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--bg-soft); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 700; margin-bottom: 12px; }
.steps li p { margin: 0; color: var(--muted); }
.split { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; align-items: center; }
.split.flip .shot { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip .shot { order: 0; } }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 14px; }
kbd { font: 600 14px ui-monospace, "Cascadia Code", Consolas, monospace; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 7px; padding: 2px 8px; background: var(--bg); white-space: nowrap; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin: 0; }
.pill-list li { border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px; background: var(--bg-soft); }
.callout { border: 1px solid var(--border); background: var(--accent-soft); border-radius: var(--radius); padding: 26px 28px; }
.callout h2 { margin-top: 0; }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check li { padding-left: 30px; position: relative; }
.check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
details { border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; background: var(--bg-soft); }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Document pages (privacy, terms) */
.doc { width: min(780px, 100% - 40px); margin: 48px auto 0; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin-top: 8px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--fg); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.meta { color: var(--muted); font-size: 15px; }
.summary { border: 1px solid var(--border); background: var(--accent-soft); border-radius: var(--radius); padding: 18px 22px; margin: 22px 0; }
.summary p { margin: 0 0 8px; }
.summary p:last-child { margin: 0; }
.toc { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 22px; background: var(--bg-soft); margin: 22px 0; }
.toc ol { margin: 6px 0 0; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--border); border-radius: 12px; }
.doc .table-wrap table { min-width: 560px; }
@media (max-width: 600px) {
  table { font-size: 15px; }
  th, td { padding: 10px 10px; }
}
mark.todo { background: var(--warn-bg); color: var(--warn-fg); padding: 1px 6px; border-radius: 5px; font-weight: 600; }

/* Small screens: keep the header compact (links are repeated in the footer and the page). */
@media (max-width: 700px) {
  header.site { position: static; }
  header.site .wrap { min-height: 56px; flex-wrap: nowrap; }
  nav.site a:not(.btn) { display: none; }
}
