:root {
  --cream: #f7f9fc;
  --cream-2: #eef3f9;
  --paper: #ffffff;
  --ink: #0b2e5c;
  --ink-2: #3d5578;
  --muted: #7187a3;
  --line: #d9e3f0;
  --green: #0b2e5c;
  --green-2: #4a74a8;
  --green-soft: #e3ecf7;
  --amber: #f9a930;
  --amber-soft: #fff1d6;
  --red: #ef3a4c;
  --red-soft: #ffe3e6;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 46, 92, .05), 0 10px 28px rgba(11, 46, 92, .08);
  --serif: "Nunito", system-ui, sans-serif;
  --sans: "Nunito", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
a { color: var(--green-2); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 800; letter-spacing: -.015em; line-height: 1.12; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 44rem; }
.eyebrow { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 800; margin-bottom: .6rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.3rem; font-weight: 800; }
.brand img { width: 38px; height: 38px; }
.brand em { font-style: normal; color: var(--red); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
.nav-links a.active { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.nav-links a.cta { background: var(--red); color: #fff; margin-left: 6px; }
.nav-links a.cta:hover { background: #d92c3e; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; }
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: stretch; padding: 12px 20px 16px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: .15s; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(239, 58, 76, .25); }
.btn-primary:hover { background: #d92c3e; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--green-2); }
.btn-ghost { background: transparent; color: var(--green-2); padding-left: 8px; padding-right: 8px; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* hero */
.hero { padding: 64px 0 48px; }
.hero-logo { width: 120px; height: 120px; margin-bottom: 18px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat b { font-family: var(--serif); font-size: 2rem; display: block; color: var(--red); line-height: 1; }
.stat span { color: var(--muted); font-size: .9rem; }
.hero-card { background: linear-gradient(160deg, #0b2e5c, #4a74a8); color: #fff; border-radius: 26px; padding: 28px; box-shadow: var(--shadow); }
.hero-card h3 { color: #fff; }
.hero-card .mini { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 14px 16px; margin-top: 10px; }
.hero-card .mini b { font-family: var(--serif); font-size: 1.5rem; display: block; }
.hero-card .mini span { opacity: .8; font-size: .9rem; }

section { padding: 56px 0; }
section.alt { background: var(--cream-2); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .num { width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: #9a5a17; }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.grey { background: #ece7dc; color: var(--ink-2); }
.pill.red { background: #f6e1dc; color: var(--red); }

table.t { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
table.t th, table.t td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { background: var(--cream-2); font-weight: 600; }
table.t tr:last-child td { border-bottom: none; }

footer { padding: 40px 0 60px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { footer .cols { grid-template-columns: 1fr; } }
footer a { color: var(--ink-2); }

/* audit */
.audit { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .audit { grid-template-columns: 1fr; } }
.progress { display: flex; gap: 6px; margin: 8px 0 20px; flex-wrap: wrap; }
.progress span { flex: 1 1 24px; height: 6px; border-radius: 3px; background: var(--line); min-width: 18px; }
.progress span.done { background: var(--green-2); }
.progress span.cur { background: var(--red); }
.screen { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.screen h2 { font-size: 1.6rem; }
.screen .why { color: var(--muted); font-size: .92rem; margin-top: -4px; }
.opts { display: grid; gap: 10px; margin: 16px 0; }
.opts.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .opts.two { grid-template-columns: 1fr; } }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: .12s; }
.opt:hover { border-color: var(--green-2); }
.opt.on { border-color: var(--green-2); background: var(--green-soft); box-shadow: inset 0 0 0 2px var(--green-2); }
.opt input { margin-top: 4px; accent-color: var(--green); }
.opt b { display: block; }
.opt small { color: var(--muted); display: block; }
.field { margin: 14px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type=text], .field input[type=number], .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.field textarea { min-height: 90px; }
.field small { color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }
.gridrow { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.gridrow label { text-align: center; cursor: pointer; padding: 6px; border-radius: 8px; border: 1px solid transparent; }
.gridrow label.on { background: var(--green-soft); border-color: var(--green); }
.gridrow input { display: none; }
.gridhead { font-weight: 600; color: var(--muted); font-size: .8rem; }
@media (max-width: 700px) { .gridrow { grid-template-columns: 1fr; } .gridrow label { text-align: left; } .gridhead { display: none; } .gridrow > div:first-child { font-weight: 600; } }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.side { position: sticky; top: 84px; }
.side .card { margin-bottom: 14px; }
.side .big { font-family: var(--serif); font-size: 2.4rem; color: var(--red); line-height: 1; }
.err { color: var(--red); font-size: .92rem; margin-top: 8px; }

/* plan */
.headline { background: linear-gradient(160deg, #0b2e5c, #4a74a8); color: #fff; border-radius: 26px; padding: 32px; margin: 20px 0 28px; }
.headline h2 { color: #fff; margin-bottom: 8px; }
.headline .big { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; }
.headline .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
@media (max-width: 700px) { .headline .row { grid-template-columns: 1fr; } }
.headline .mini { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 14px; }
.headline .mini b { display: block; font-family: var(--serif); font-size: 1.4rem; }
.headline .mini span { opacity: .85; font-size: .9rem; }
.group { margin: 30px 0; }
.group h2 { display: flex; align-items: center; gap: 12px; }
.action { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0; overflow: hidden; }
.action > summary { list-style: none; cursor: pointer; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.action > summary::-webkit-details-marker { display: none; }
.action .n { width: 34px; height: 34px; border-radius: 50%; background: var(--green-soft); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
.action .n.first { background: var(--amber); color: var(--ink); }
.action .meta { color: var(--muted); font-size: .88rem; }
.action .hrs { text-align: right; font-family: var(--serif); font-size: 1.3rem; color: var(--red); font-weight: 800; white-space: nowrap; }
.action .hrs small { display: block; font-family: var(--sans); font-size: .78rem; color: var(--muted); }
.action .body { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.bf { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
@media (max-width: 700px) { .bf { grid-template-columns: 1fr; } }
.bf h4 { margin: 0 0 6px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-2); font-weight: 800; }
.bf ol, .bf ul { margin: 0; padding-left: 20px; }
.prompt { background: #0b2e5c; color: #eaf1fb; border-radius: 12px; padding: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; white-space: pre-wrap; line-height: 1.5; max-height: 360px; overflow: auto; margin: 10px 0; }
.prompt-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.note { background: var(--amber-soft); border-radius: 12px; padding: 14px 16px; font-size: .95rem; }
.ok { background: var(--green-soft); border-radius: 12px; padding: 14px 16px; font-size: .95rem; }

/* playbooks */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.filters button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; font: inherit; cursor: pointer; }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .pb-grid { grid-template-columns: 1fr; } }
.pb { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.pb .top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.pb .foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 10px; flex-wrap: wrap; }
.pb .foot .hrs { font-family: var(--serif); color: var(--red); font-size: 1.1rem; font-weight: 800; }

/* box */
.box-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.box-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .box-grid { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 700px) { .kpis { grid-template-columns: 1fr; } }
.kpi { background: linear-gradient(160deg, #0b2e5c, #4a74a8); color: #fff; border-radius: 18px; padding: 18px; }
.kpi b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.kpi span { opacity: .85; font-size: .9rem; }
.proc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 10px 0; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.proc .ctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.proc input, .proc select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .9rem; }
.proc input[type=number] { width: 80px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.check input { accent-color: var(--green); margin-top: 5px; }
.auth { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.auth input[type=email] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; margin: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem; opacity: 0; transition: .2s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; }
@media print {
  .nav, footer, .toolbar, .prompt-bar button, .side, .btn { display: none !important; }
  body { background: #fff; }
  .action { break-inside: avoid; }
  .action > summary { display: block; }
  .action[open] .body, .action .body { display: block; }
}
