/* DirotBOT Data (data.dirotbot.com). Served as a file: the host's CSP
   (default-src 'self') allows no inline style. Heebo is self-hosted (OFL). */
@font-face {
  font-family: "Heebo";
  src: url("/static/data/fonts/heebo-var.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #1d1d1b;
  --ink-2: #3d3d3a;
  --muted: #6b6b66;
  --line: #e6e3dd;
  --soft: #f7f6f3;
  --bg: #ffffff;
  --accent: #eb6f20;
  --accent-ink: #b8530f;
  --accent-soft: #fdf1e8;
  --ok: #24704a;
  --err: #a3271b;
  --radius: 10px;
  --wrap: 720px;
  --wide: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: var(--ink); text-decoration-color: #c9c5bd; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 30px; margin: 6px 0 14px; }
h2 { font-size: 22px; margin: 44px 0 12px; }
h3 { font-size: 17px; margin: 24px 0 8px; }
p { margin: 0 0 14px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
/* one right edge for everything: the text column (720px) starts where the tool starts */
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.wrap > * { max-width: var(--wrap); }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 8px; background: var(--bg); padding: 6px 10px; z-index: 5; }

/* header / footer */
.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; max-width: var(--wide); }
.brand { text-decoration: none; display: inline-flex; align-items: center; direction: ltr; unicode-bidi: isolate; }
.brand-logo { display: block; height: 44px; width: auto; }
@media (max-width: 480px) { .brand-logo { height: 38px; } }
.top-nav { display: flex; gap: 18px; font-size: 15px; }
.top-nav a { text-decoration: none; color: var(--ink-2); }
.top-nav a:hover { text-decoration: underline; }
.foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.foot-nav a { color: var(--ink-2); }
.foot-line { margin: 14px 0 0; }

/* intro */
.intro { padding-top: 32px; }
.eyebrow { font-size: 14px; color: var(--muted); margin: 0; font-weight: 500; }
.lede { font-size: 18px; color: var(--ink-2); }
.sample-links { font-size: 15px; color: var(--ink-2); background: var(--soft); border-radius: var(--radius); padding: 10px 14px; }
.sample-links a { font-weight: 600; }
.sep { color: var(--muted); margin: 0 4px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--muted); }

/* tool: form + preview */
.tool { display: grid; gap: 28px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.qform { display: grid; gap: 18px; align-content: start; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend, .months label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.hint { font-weight: 400; color: var(--muted); }
select, input[type="email"], input[type="text"] {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid #cfcbc3; border-radius: 8px;
  padding: 10px 12px; min-height: 46px;
}
select:focus, input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(29,29,27,.08); }
.months { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips, .radios { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .radio { position: relative; cursor: pointer; }
.chip input, .radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span, .radio span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; min-height: 42px; padding: 0 14px;
  border: 1px solid #cfcbc3; border-radius: 999px; font-size: 15px;
  font-variant-numeric: tabular-nums; background: var(--bg); user-select: none;
}
.chip input:checked + span, .radio input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span, .radio input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-error { color: var(--err); font-size: 15px; margin: 0; }

.preview { min-width: 0; }
.preview.loading .pv-counts, .preview.loading .bars, .preview.loading .sample { opacity: .45; transition: opacity .15s; }
.pv-label { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.pv-counts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 28px; }
.count-main { margin: 0; line-height: 1; }
.big { font-size: 52px; font-weight: 800; color: var(--accent-ink); letter-spacing: -0.02em; }
.unit { font-size: 18px; color: var(--ink-2); font-weight: 500; }
.count-side { display: flex; gap: 24px; margin: 0 0 4px; }
.count-side dt { font-size: 13px; color: var(--muted); }
.count-side dd { margin: 0; font-size: 20px; font-weight: 700; color: var(--accent-ink); }
.count-side dd .muted { font-size: 13px; font-weight: 400; color: var(--muted); }
.pv-h { font-size: 15px; font-weight: 600; margin: 26px 0 10px; color: var(--ink-2); }

/* monthly bars: quantised heights (h0..h20), first month on the right (RTL) */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 132px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.bar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar-n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.3; }
.bar-col { display: block; width: 100%; max-width: 34px; background: var(--accent); border-radius: 3px 3px 0 0; }
.bar-m { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.6; white-space: nowrap; }
.h0 { height: 0; }
.h1{height:5%}
.h2{height:10%}
.h3{height:15%}
.h4{height:20%}
.h5{height:25%}
.h6{height:30%}
.h7{height:35%}
.h8{height:40%}
.h9{height:45%}
.h10{height:50%}
.h11{height:55%}
.h12{height:60%}
.h13{height:65%}
.h14{height:70%}
.h15{height:75%}
.h16{height:80%}
.h17{height:85%}
.h18{height:90%}
.h19{height:95%}
.h20{height:100%}

.pv-months { margin-top: 10px; font-size: 15px; }
.pv-months summary, .qa summary { cursor: pointer; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.t { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.t th { text-align: start; font-weight: 600; color: var(--muted); font-size: 13px; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td.num { text-align: start; }
.sample tr.closed td { filter: blur(4.5px); user-select: none; color: var(--ink-2); }
.pv-note { font-size: 14px; color: var(--muted); margin-top: 10px; }

.buy { margin-top: 20px; }
.primary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
  text-decoration: none;
}
.primary:hover { background: #d9611a; }
.primary:disabled { background: #e7e4de; color: #8d8a83; cursor: not-allowed; }
.secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 18px; border: 1px solid var(--ink); border-radius: var(--radius);
  color: var(--ink); background: var(--bg); font-weight: 600; text-decoration: none;
}
.under { margin-top: 12px; padding: 12px 14px; background: var(--soft); border-radius: var(--radius); font-size: 15px; }
.under p { margin: 0 0 6px; }
.sugg { margin: 0; padding-inline-start: 18px; }
.sugg li { margin: 2px 0; }
.asof { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* prose sections */
.prose { padding-top: 8px; }
.steps { padding-inline-start: 22px; margin: 0; }
.step { margin: 0 0 8px; padding-inline-start: 4px; }
.cols { margin: 0 0 14px; border-top: 1px solid var(--line); }
.cols > div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cols dt { font-weight: 600; }
.cols dd { margin: 0; color: var(--ink-2); }
.price-line .num { font-weight: 800; font-size: 20px; color: var(--accent-ink); }
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); padding: 12px 0; }
.qa summary { list-style: none; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1.2; transition: transform .15s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 8px 0 0; color: var(--ink-2); }
.inline-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* area hub */
.hub-total { font-size: 18px; }
.hub-total .num { font-weight: 800; color: var(--accent-ink); }
.hub { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--line); columns: 1; }
.hub li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.hub .n { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* checkout, order, account, verify */
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin: 18px 0; }
.summary-list { margin: 0; }
.summary-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.summary-list > div:last-child { border-bottom: 0; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
.form { display: grid; gap: 16px; }
.form label.lbl { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.form .help { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--ink); }
.status { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.status.ok { color: var(--ok); }
.downloads { display: grid; gap: 10px; margin: 16px 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; direction: ltr; unicode-bidi: isolate; word-break: break-all; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.cmd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; direction: ltr; text-align: left; background: var(--soft); border-radius: 6px; padding: 8px 10px; margin: 0 0 10px; overflow-x: auto; white-space: nowrap; }
.orders { list-style: none; padding: 0; margin: 0; }
.orders > li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.orders .meta { font-size: 14px; color: var(--muted); margin: 2px 0 10px; }
.orders .links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .9s linear infinite; vertical-align: -2px; margin-inline-end: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } .qa summary::after { transition: none; } }

@media (min-width: 640px) {
  h1 { font-size: 36px; }
  .hub { columns: 2; column-gap: 36px; }
  .primary { width: auto; min-width: 280px; }
}
@media (min-width: 960px) {
  .tool { grid-template-columns: 340px 1fr; gap: 48px; }
  .qform { position: sticky; top: 20px; }
  .intro { padding-top: 48px; }
}
