/* prndr — shared styles for landing and dashboard. System fonts, one accent color. */
:root {
  --ink: #14161a;
  --ink-2: #4a505a;
  --muted: #69707c;
  --line: #e3e5e9;
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --dark: #111317;
  --dark-2: #1b1e24;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: #fff1ea;
  --ok: #157347;
  --err: #b42318;
  --warn: #9a6700;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.2rem; }
code, pre { font-family: var(--mono); font-size: .875em; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 440px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.inline { display: inline; margin: 0; }

/* buttons */
.btn, .btn-sm {
  display: inline-block; border: 1px solid var(--accent); background: var(--accent); color: #fff;
  border-radius: 8px; padding: .6em 1.1em; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; line-height: 1.2;
}
.btn:hover, .btn-sm:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-sm { padding: .3em .7em; font-size: .85rem; font-weight: 500; }
.btn.ghost, .btn-sm.ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn.ghost:hover, .btn-sm.ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }

/* top bar */
.topbar { background: var(--dark); color: #fff; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { color: #fff; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; text-decoration: none; }
.logo:hover { color: #fff; }
.logo-dot { color: #ff7a45; }
.topnav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topnav a, .topnav .linkbtn { color: #c9cdd4; text-decoration: none; font-size: .95rem; }
.topnav a:hover, .topnav a.on, .topnav .linkbtn:hover { color: #fff; }

/* dashboard */
.dash { background: var(--bg-2); }
.main { padding-top: 28px; padding-bottom: 60px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 22px 0; }
.login { margin: 40px auto; }
.stack { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
input, textarea {
  font: inherit; font-weight: 400; padding: .55em .7em; border: 1px solid #cfd3da; border-radius: 8px;
  background: #fff; color: var(--ink); width: 100%;
}
textarea { font-family: var(--mono); font-size: .9rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.row-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.row-form label { flex: 1 1 200px; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.search { display: flex; gap: 8px; flex: 1 1 320px; max-width: 520px; }
.alert { padding: 10px 14px; border-radius: 8px; border: 1px solid; }
.alert.ok { color: var(--ok); background: #ecf8f1; border-color: #b7e2c8; }
.alert.err { color: var(--err); background: #fdf0ee; border-color: #f4c7c1; }
.err { color: var(--err); }
.crumbs { margin-bottom: 10px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.table-wrap { overflow-x: auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: #fafbfc; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; white-space: nowrap; }
td.url { word-break: break-all; min-width: 260px; }
.token-cell { white-space: nowrap; }
.token { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--bg-2); color: var(--ink-2); }
.badge.s2, .badge.c-hit { background: #e6f6ed; color: var(--ok); }
.badge.s3, .badge.c-stale, .badge.warn { background: #fff6dd; color: var(--warn); }
.badge.s4, .badge.s5, .badge.c-error { background: #fdecea; color: var(--err); }
.badge.c-miss { background: #eaf1ff; color: #1d4ed8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); text-decoration: none; color: var(--ink-2); font-size: .88rem; }
.chip.on { border-color: var(--accent); color: var(--accent); }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 18px; }
.snippet { margin: 22px 0; }
.snippet-head { display: flex; justify-content: space-between; align-items: center; }
.snippet-head h2 { margin: 0; }
pre { background: var(--dark); color: #e6e8eb; padding: 16px; border-radius: var(--radius); overflow-x: auto; line-height: 1.5; }
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

/* landing */
.site-header { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 10; }
.hero { background: var(--dark); color: #fff; padding: 72px 0 88px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.03em; max-width: 15em; margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: #ff7a45; }
.hero p.lead { font-size: 1.2rem; color: #c9cdd4; max-width: 38em; margin: 0 0 32px; }
.hero .btn { font-size: 1.05rem; padding: .8em 1.4em; }
.hero-note { color: #9aa1ac; font-size: .9rem; margin-top: 14px; }
.terminal { margin-top: 48px; background: var(--dark-2); border: 1px solid #2a2e36; border-radius: var(--radius); padding: 18px 20px; font-family: var(--mono); font-size: .88rem; color: #c9cdd4; overflow-x: auto; max-width: 760px; }
.terminal .c { color: #7d8590; }
.terminal .k { color: #ff9b70; }
.terminal .g { color: #7ee2a8; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; margin-bottom: .3em; }
.section .sub { color: var(--ink-2); max-width: 44em; margin: 0 0 36px; font-size: 1.08rem; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tile h3 { font-size: 1.1rem; }
.tile p { margin: 0; color: var(--ink-2); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; background: var(--bg); font-weight: 500; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.checks li { padding-left: 34px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 6px var(--accent); }
.checks strong { display: block; }
.checks span { color: var(--ink-2); }
.cta { background: var(--dark); color: #fff; border-radius: 16px; padding: 44px; }
.cta p { color: #c9cdd4; max-width: 36em; }
.lead-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; margin-top: 20px; }
.lead-form input[type=email] { flex: 1 1 240px; padding: .8em 1em; border: 0; }
.lead-form .btn { padding: .8em 1.4em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 14px; font-weight: 600; }
.form-msg.ok { color: #7ee2a8; }
.form-msg.err { color: #ff9b8a; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style-position: outside; }
.faq details p { color: var(--ink-2); margin: 12px 0 0; max-width: 52em; }
.site-footer { background: var(--dark); color: #9aa1ac; padding: 40px 0; font-size: .92rem; }
.site-footer a { color: #e6e8eb; }
.footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .hero { padding: 48px 0 60px; }
  .section { padding: 52px 0; }
  .cta { padding: 28px 22px; }
  .topnav { gap: 14px; }
  .hide-sm { display: none; }
}
