/* OpsPromptAI site — shared page chrome (every page). The home page's product tour
   keeps its own styles inline in index.html. */
:root {
  --navy: #14304a;
  --amber: #f59f00;
  --amber-ink: #8a5a00;
  --ground: #eef1f4;
  --card: #ffffff;
  --ink: #16202b;
  --soft: #566271;
  --rule: #d9dfe6;
  --focus: #2458c6;
  --good: #1f7a45;
  --display: "Barlow Semi Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --navy: #1d3a57; --amber: #f5a524; --amber-ink: #f5b84a;
    --ground: #0d1319; --card: #141c25; --ink: #dce3ea; --soft: #93a0ae; --rule: #26313d;
    --focus: #7da7ea; --good: #4cb07a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --navy: #1d3a57; --amber: #f5a524; --amber-ink: #f5b84a;
  --ground: #0d1319; --card: #141c25; --ink: #dce3ea; --soft: #93a0ae; --rule: #26313d;
  --focus: #7da7ea; --good: #4cb07a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 560px) { .wrap { padding-inline: 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-hdr { display: flex; align-items: center; gap: 18px; padding-block: 18px; flex-wrap: wrap; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .01em; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 6px 10px; border-radius: 8px; color: var(--soft); }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }
.site-nav .btn.primary { color: #fff; padding: 0 14px; margin-left: 6px; }
.menu-btn { display: none; margin-left: auto; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--rule); background: var(--card); font-weight: 600; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; }
  html.js .site-nav { display: none; }
  .site-nav, html.js .site-nav.open { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin-left: 0; gap: 2px;
    background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 8px; }
  .site-nav a { padding: 11px 12px; font-size: 17px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); background: var(--ground); border-radius: 8px; }
  .site-nav .btn.primary { margin: 6px 0 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 16.5px; text-decoration: none; border: 1px solid var(--rule); background: var(--card); color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { filter: brightness(1.12); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.site-nav .btn.primary { color: #fff; padding: 0 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.textlink { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Sections ---------- */
.section { padding-block: 44px; border-top: 1px solid var(--rule); }
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; }
h1 { font-weight: 700; font-size: clamp(38px, 6vw, 64px); letter-spacing: -.01em; }
h2 { font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-weight: 600; font-size: 22px; }
.lede { color: var(--soft); font-size: 19px; max-width: 58ch; margin: 14px 0 0; }
.section-head { display: flex; flex-direction: column; gap: 0; margin-bottom: 26px; max-width: 760px; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 14px; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.panel p { margin: 0; color: var(--soft); }
.panel .kicker { margin: 0; }

/* the gap-to-fix loop: a real sequence, so it is numbered */
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: loop; }
.loop li { counter-increment: loop; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.loop li::before { content: counter(loop); font-family: var(--mono); font-size: 13px; color: var(--amber-ink); }
.loop b { font-family: var(--display); font-size: 20px; font-weight: 600; }
.loop span { color: var(--soft); font-size: 15.5px; }
@media (max-width: 860px) { .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .loop { grid-template-columns: 1fr; } }

.included { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.included li { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.included li span { min-width: 0; }
@media (max-width: 760px) { .included { grid-template-columns: 1fr; } }
.tier { flex: 0 0 auto; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--rule); border-radius: 999px; padding: 1px 8px; color: var(--soft); }
.tier.enh { border-color: var(--amber); color: var(--amber-ink); }

.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 22px 24px; }
.band .big { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.band p { margin: 4px 0 0; color: var(--soft); }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg); }
.checks b { font-weight: 600; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--rule); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 24px; font-weight: 400; color: var(--soft); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--soft); max-width: 70ch; }

/* Pricing */
.pricetable { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; font-variant-numeric: tabular-nums; }
.pricetable th, .pricetable td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--rule); }
.pricetable tbody tr:last-child td, .pricetable tbody tr:last-child th { border-bottom: none; }
.pricetable thead th { font-family: var(--display); font-size: 22px; font-weight: 700; background: var(--ground); }
.pricetable thead th .sub { display: block; font-family: var(--body); font-size: 14px; font-weight: 400; color: var(--soft); }
.pricetable td.price { font-family: var(--display); font-size: 28px; font-weight: 700; white-space: nowrap; }
.pricetable td.price small { font-family: var(--body); font-size: 15px; font-weight: 400; color: var(--soft); }
.tablewrap { overflow-x: auto; }
.pricetable { min-width: 520px; }
.note-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.note-list li b { display: block; font-weight: 600; }
.note-list li span { color: var(--soft); }
@media (max-width: 760px) { .note-list { grid-template-columns: 1fr; } }

/* Closing call to action */
.closer { background: var(--navy); color: #fff; border-radius: 20px; padding: 34px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.closer h2 { color: #fff; }
.closer p { margin: 6px 0 0; color: #c9d6e3; }
.closer .btn.primary { background: var(--amber); border-color: var(--amber); color: #1b1300; }

/* ---------- Footer ---------- */
.site-ftr { border-top: 1px solid var(--rule); margin-top: 44px; padding-block: 30px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 24px 32px; color: var(--soft); font-size: 15px; }
.site-ftr .col { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.site-ftr .brandcol .brand { font-size: 19px; margin-bottom: 4px; }
.site-ftr .brandcol .brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-ftr b { color: var(--ink); font-weight: 600; }
.site-ftr a { color: var(--soft); text-underline-offset: 3px; }
.site-ftr a:hover { color: var(--ink); }
.site-ftr .legal { grid-column: 1 / -1; margin: 8px 0 0; font-size: 13.5px; }
@media (max-width: 860px) { .site-ftr { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-ftr { grid-template-columns: 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
p, li, td, th, dd, summary { overflow-wrap: break-word; }

/* Privacy policy and other legal text (site/privacy/). */
.legal-doc h2 { font-size: clamp(22px, 3vw, 27px); margin: 34px 0 12px; line-height: 1.2; }
.legal-doc ul { margin: 0 0 14px; padding-left: 22px; }
.legal-doc li { margin: 0 0 10px; }
