/* Oilscope website. One stylesheet for every page except the map (which uses map-theme.css). */
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

/* Light: clean paper white, near-black ink, one amber. Dark: night navy with the same amber. */
:root {
  --bg: #FBFBFA; --bg-2: #F3F3F0; --surface: #FFFFFF; --glass: rgba(255, 255, 255, .74); --line: #E7E6E1; --line-2: #D4D2CB;
  --ink: #0E1013; --ink-2: #3A3E45; --muted: #646972;
  --accent: #95580F; --flare: #D2491B;
  --btn: #0E1013; --btn-ink: #FFFFFF;
  --pipe: #AEB6BE; --speck: #D9DDE1; --shadow: 0 1px 2px rgba(14, 16, 19, .05), 0 10px 30px -12px rgba(14, 16, 19, .12);
  --f-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --w: 72rem; --pad: clamp(1.25rem, 4vw, 2.5rem); --top-h: 4rem; --r: 12px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070C11; --bg-2: #0B1218; --surface: #0F171F; --glass: rgba(13, 21, 29, .72); --line: #1C2731; --line-2: #2B3946;
  --ink: #E9EDF0; --ink-2: #C3CBD2; --muted: #8E9BA7;
  --accent: #E3A445; --flare: #FF7034;
  --btn: #E9EDF0; --btn-ink: #070C11;
  --pipe: #4A5B69; --speck: #22313D; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #070C11; --bg-2: #0B1218; --surface: #0F171F; --glass: rgba(13, 21, 29, .72); --line: #1C2731; --line-2: #2B3946;
    --ink: #E9EDF0; --ink-2: #C3CBD2; --muted: #8E9BA7;
    --accent: #E3A445; --flare: #FF7034;
    --btn: #E9EDF0; --btn-ink: #070C11;
    --pipe: #4A5B69; --speck: #22313D; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
@view-transition { navigation: auto; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--f-sans); letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); }

/* the moving background: one fixed canvas behind every page, always in view */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity .8s ease; }
.bg canvas { width: 100%; height: 100%; }
.bg-ambient { opacity: .85; }
.bg.past { opacity: .7; }
.page { position: relative; z-index: 1; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.75rem; padding: .65rem 1.15rem; border-radius: 8px; border: 1px solid var(--btn);
  background: var(--btn); color: var(--btn-ink); font: 500 .95rem/1.1 var(--f-sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: transform .2s, opacity .2s, background .2s, border-color .2s; }
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }
.btn-line { background: var(--glass); color: var(--ink); border-color: var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-line:hover { opacity: 1; border-color: var(--ink-2); }
.arr { transition: transform .25s; }
.btn:hover .arr, a:hover .arr { transform: translateX(3px); }
.more { display: inline-flex; gap: .4rem; align-items: center; color: var(--ink); font-weight: 500; font-size: .95rem; text-decoration: none; }

/* headings and text */
.page-head { position: relative; padding: calc(var(--top-h) + clamp(4rem, 10vw, 7.5rem)) 0 clamp(2rem, 5vw, 3.5rem); }
.page-head h1, .hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.045em; max-width: 14ch; }
.lead { margin-top: 1.25rem; max-width: 34rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.55; letter-spacing: -.01em; }
.section { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -.035em; max-width: 20ch; }
.section .intro { margin-top: .9rem; max-width: 36rem; color: var(--muted); }
.hero::before, .page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 30%, color-mix(in srgb, var(--bg) 40%, transparent) 52%, transparent 66%); }
@media (max-width: 61.99rem) { .hero::before, .page-head::before { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent), color-mix(in srgb, var(--bg) 80%, transparent) 70%); } }

/* cards: glass panels, so the motion behind stays visible */
.card, .tile, .plan, .stats, .rows, .tbl-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.grid-2, .grid-3 { display: grid; gap: 12px; margin-top: 2.25rem; }
@media (min-width: 52rem) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 1.5rem; }
.card h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.015em; }
.card .sub { margin-top: .3rem; font-size: .9rem; color: var(--muted); }
.card .src { margin-top: 1.1rem; font-size: .78rem; color: var(--muted); }

/* linked tiles: the whole tile is the link */
a.tile { display: flex; flex-direction: column; min-height: 14rem; padding: 1.5rem; text-decoration: none; color: inherit; transition: border-color .25s, transform .25s; }
a.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tile .fig { font-size: 2.6rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile .unit { margin-top: .35rem; font-size: .85rem; color: var(--muted); }
.tile h3 { margin-top: auto; padding-top: 2rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -.015em; display: flex; justify-content: space-between; align-items: center; }
.tile p { margin-top: .35rem; color: var(--muted); font-size: .93rem; }

/* figures */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 2.25rem; overflow: hidden; }
@media (min-width: 52rem) { .stats { grid-template-columns: repeat(4, 1fr); } .stats[data-cols="3"] { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 1.25rem 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.stat b { display: block; font-size: clamp(1.7rem, 2.8vw, 2.25rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: .45rem; font-size: .85rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 51.99rem) { .stats > .stat:last-child:nth-child(odd) { grid-column: span 2; } }
.stamp { margin-top: .9rem; font-size: .8rem; color: var(--muted); }

/* home hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--top-h) + 2rem) 0 4rem; }
.hero > .wrap { width: 100%; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.hero .stats { max-width: 40rem; }
.crumbs { position: absolute; right: var(--pad); bottom: 1.5rem; font: 400 .75rem var(--f-mono); color: var(--muted); display: none; }
@media (min-width: 62rem) { .crumbs { display: block; } }

/* lists */
.rows { list-style: none; margin: 2.25rem 0 0; padding: 0 1.5rem; }
.rows li { display: grid; gap: .25rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
@media (min-width: 52rem) { .rows li { grid-template-columns: 14rem 1fr; } }
.rows b { font-weight: 600; letter-spacing: -.01em; }
.rows span { color: var(--muted); }
.aud { display: grid; gap: 12px; margin-top: 2.25rem; }
@media (min-width: 52rem) { .aud { grid-template-columns: repeat(4, 1fr); } }
.aud .card h3 { margin-bottom: .4rem; }
.aud .card p { color: var(--muted); font-size: .93rem; }
.note { margin-top: 1.5rem; max-width: 42rem; color: var(--muted); font-size: .92rem; }

/* charts */
.chart { margin-top: 1.25rem; position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; font-family: var(--f-sans); }
.chart .lbl { fill: var(--ink-2); font-size: 12.5px; }
.chart .val { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .axis { fill: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .bar { fill: var(--accent); transition: opacity .2s; }
.chart .bar.dim { fill: var(--line-2); }
.chart .hit { fill: transparent; }
.chart g:hover .bar, .chart g:focus .bar { opacity: .75; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: var(--bg); font: 500 .8rem/1.35 var(--f-sans); padding: .4rem .6rem; border-radius: 6px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); }
.tbl { margin-top: .8rem; }
.tbl summary { cursor: pointer; font-size: .8rem; color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; margin-top: .6rem; font-size: .9rem; }
table.data th, table.data td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.data th { font-weight: 500; color: var(--muted); font-size: .82rem; }
.tbl-card { padding: .5rem 1rem; margin-top: 2rem; }
.empty { margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.ok-text { color: #2E9A5B; } .no-text { color: var(--muted); }

/* pricing */
.plans { display: grid; gap: 12px; margin-top: 2.5rem; }
@media (min-width: 58rem) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
a.plan { position: relative; display: flex; flex-direction: column; padding: 1.75rem; color: inherit; text-decoration: none; transition: transform .25s, border-color .25s; }
a.plan:hover { transform: translateY(-3px); border-color: var(--line-2); }
a.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .tag { position: absolute; top: 1.6rem; right: 1.6rem; font-size: .75rem; font-weight: 500; color: var(--accent); }
.plan h3 { font-size: 1rem; font-weight: 600; }
.plan .who { margin-top: .3rem; font-size: .9rem; color: var(--muted); min-height: 2.8em; }
.plan .price { margin-top: 1.2rem; font-size: 2.8rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.plan .price small { font-size: .9rem; font-weight: 400; color: var(--muted); letter-spacing: -.01em; margin-left: .25rem; }
.plan ul { list-style: none; margin: 1.5rem 0 1.75rem; padding: 0; display: grid; gap: .6rem; font-size: .92rem; }
.plan li { display: grid; grid-template-columns: 1rem 1fr; gap: .55rem; color: var(--ink-2); }
.plan li::before { content: ""; width: .7rem; height: .4rem; margin-top: .45em; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; width: 100%; }
a.plan:not(.featured) .btn { background: transparent; color: var(--ink); border-color: var(--line-2); }
.ent { margin-top: 1rem; padding: 1.1rem 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; }
.ent p { color: var(--muted); }
.ent b { color: var(--ink); font-weight: 600; }
table.compare { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.compare th, table.compare td { padding: .85rem .6rem; border-bottom: 1px solid var(--line); text-align: center; }
table.compare tr:last-child td { border-bottom: 0; }
table.compare th:first-child, table.compare td:first-child { text-align: left; color: var(--ink-2); }
table.compare thead th { font-weight: 600; }
.yes { color: var(--accent); }
.no { color: var(--muted); }
.scroll-x { overflow-x: auto; }

/* questions */
.faq { margin-top: 2rem; padding: 0 1.5rem; }
details.q { border-bottom: 1px solid var(--line); }
details.q:last-child { border-bottom: 0; }
details.q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-weight: 500; letter-spacing: -.01em; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--muted); transition: transform .25s; }
details.q[open] summary::after { transform: rotate(45deg); }
details.q p { padding: 0 0 1.2rem; color: var(--muted); max-width: 42rem; }

/* forms */
form.f { display: grid; gap: .4rem; padding: 1.75rem; }
form.f label { margin-top: .8rem; font-size: .88rem; font-weight: 500; }
form.f label:first-child { margin-top: 0; }
form.f .opt { color: var(--muted); font-weight: 400; }
form.f input, form.f textarea, form.f select { width: 100%; padding: .7rem .85rem; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
form.f input:focus-visible, form.f textarea:focus-visible, form.f select:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
form.f .btn { margin-top: 1.2rem; justify-self: start; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { min-height: 1.4rem; margin-top: .5rem; font-weight: 500; font-size: .92rem; }
.msg.ok { color: #2E9A5B; } .msg.bad { color: var(--flare); }
.fine { font-size: .82rem; color: var(--muted); max-width: 32rem; }

/* call to action */
.cta { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.75rem, 4vw, 2.75rem); }
@media (min-width: 52rem) { .cta { grid-template-columns: 1fr auto; } }
.cta .actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* footer */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; font-size: .88rem; background: color-mix(in srgb, var(--bg) 92%, transparent); }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.foot h4 { margin: 0 0 .7rem; font-size: .8rem; font-weight: 500; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .fine { margin-top: .8rem; }

.section.flush-top { padding-top: 0; }
.grid-2 > .rows { margin-top: 0; align-self: start; }
.mono { font-family: var(--f-mono); font-size: .82rem; }
a.ent { text-decoration: none; color: inherit; transition: border-color .25s; }
a.ent:hover { border-color: var(--line-2); }
.cta h2 { max-width: 22ch; }

/* small helpers (the security policy forbids inline styles, so these replace them) */
.d1 { --d: .08s; } .d2 { --d: .16s; } .d3 { --d: .24s; } .d4 { --d: .32s; } .d5 { --d: .4s; }
.flush { margin-top: 0 !important; } .mt-2 { margin-top: 2rem; } .mt-25 { margin-top: 2.5rem; }
.big { font-size: 2.3rem; font-weight: 600; letter-spacing: -.05em; line-height: 1; display: block; margin-bottom: .9rem; font-variant-numeric: tabular-nums; }

/* entrance and scroll animation (content is visible without JavaScript) */
.js .reveal { opacity: 0; transform: translateY(16px); filter: blur(4px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .btn, a.plan, a.tile, .bg { transition: none; }
  @view-transition { navigation: none; }
}

/* terms and privacy */
.legal { display: grid; gap: 12px; align-items: start; }
@media (min-width: 62rem) { .legal { grid-template-columns: 15rem 1fr; } .legal-toc { position: sticky; top: calc(var(--top-h) + 1rem); } }
.legal-toc { padding: 1.1rem 1.25rem; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .9rem; }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); }
.legal-body { padding: clamp(1.5rem, 4vw, 2.5rem); max-width: 46rem; }
.legal-s + .legal-s { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.legal-s { scroll-margin-top: calc(var(--top-h) + 1rem); }
.legal-s h2 { font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: .75rem; }
.legal-s p, .legal-s li { color: var(--ink-2); line-height: 1.65; }
.legal-s p + p { margin-top: .75rem; }
.legal-s ul { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.legal-s a { color: var(--ink); }

/* monthly flaring report */
.report-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; justify-content: space-between; }
.report-tools { display: flex; gap: .5rem; align-items: center; }
.report-tools select { min-height: 2.75rem; padding: .55rem 2rem .55rem .85rem; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem; }
.signup { margin-top: 12px; padding: 1.5rem; display: grid; gap: 1rem; align-items: center; }
@media (min-width: 52rem) { .signup { grid-template-columns: 1fr minmax(20rem, 26rem); } }
.signup-row { display: flex; gap: .5rem; }
.signup-row input { flex: 1; min-width: 0; padding: .7rem .85rem; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.signup .msg { grid-column: 1 / -1; margin: 0; }
.signup .msg:empty { display: none; }

/* printing: the report alone, on white paper */
.print-only { display: none; }
@media print {
  .print-only { display: block; margin: 0 0 1rem; font-size: .8rem; color: #555; }
  :root, :root[data-theme] { --bg: #fff; --bg-2: #fff; --surface: #fff; --glass: #fff; --line: #ddd; --line-2: #ccc; --ink: #111; --ink-2: #333; --muted: #555; --accent: #95580F; color-scheme: light; }
  .bg, .sitebar, .sb-panel, .foot, .skip, .no-print, .tbl { display: none !important; }
  body { background: #fff; }
  .card, .stats { box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; break-inside: avoid; }
  .js .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .printing-report main > *:not(#report) { display: none !important; }
  .printing-report #report { padding: 0; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* homepage explainer video: inside the closing call to action, under its buttons */
.hero-video { position: relative; margin: 2rem auto 0; width: 100%; max-width: 52rem; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: #05070b; border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hv-sound { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border: 0; border-radius: 999px;
  background: rgba(8, 11, 17, .72); color: #fff; font: 500 .85rem/1 inherit; cursor: pointer; backdrop-filter: blur(6px); }
.hv-sound:hover { background: rgba(8, 11, 17, .9); }
.hv-ico { width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--hv-off) center / contain no-repeat; mask: var(--hv-off) center / contain no-repeat; }
.hv-sound { --hv-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9H3z' fill='black'/%3E%3Cpath d='M16 9l5 6M21 9l-5 6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.hv-sound[aria-pressed="true"] { --hv-off: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9H3z' fill='black'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M19 6a8.5 8.5 0 0 1 0 12' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.hv-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(8, 11, 17, .7); cursor: pointer; }
.hv-play::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.cta .hero-video { grid-column: 1 / -1; margin-top: .5rem; }

/* time charts: stacked bars, hover card, click to pick a period */
.tc { position: relative; --p0: #B8651B; --p0b: #E08A2E; --p1: #E9B872; --p1b: #F3D7A6; }
:root[data-theme="dark"] .tc { --p0: #E0892F; --p0b: #9A4F12; --p1: #F2C98A; --p1b: #8F6A36; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tc { --p0: #E0892F; --p0b: #9A4F12; --p1: #F2C98A; --p1b: #8F6A36; } }
.tc i.p0 { background: var(--p0); } .tc i.p1 { background: var(--p1); }
.tc .p0a { stop-color: var(--p0b); } .tc .p0b { stop-color: var(--p0); }
.tc .p1a { stop-color: var(--p1b); } .tc .p1b { stop-color: var(--p1); }
.tc-area .p0a { stop-color: var(--p0); stop-opacity: .95; } .tc-area .p0b { stop-color: var(--p0); stop-opacity: .12; }
.tc-area .p1a { stop-color: var(--p1); stop-opacity: .95; } .tc-area .p1b { stop-color: var(--p1); stop-opacity: .75; }
.tc-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .82rem; color: var(--ink-2); margin-bottom: .7rem; }
.tc-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.tc-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tc-legend .ref i { width: 18px; height: 0; border-top: 2px dashed var(--flare); border-radius: 0; }
.tc-box { position: relative; }
.tc-box svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--f-sans); }
.tc .grid { stroke: var(--line); stroke-width: 1; }
.tc .grid.base { stroke: var(--line-2); stroke-width: 1.2; }
.tc .axis { fill: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.tc .axis.sel { fill: var(--ink); font-weight: 650; }
.tc-hit { fill: transparent; outline: none; }
.tc-hit.click { cursor: pointer; }
.tc-hit:focus-visible { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; }
/* bars */
.tc-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: tc-grow .8s cubic-bezier(.2,.8,.2,1) both; transition: opacity .25s, filter .2s; }
.tc-bar.d1{animation-delay:20ms}.tc-bar.d2{animation-delay:40ms}.tc-bar.d3{animation-delay:60ms}.tc-bar.d4{animation-delay:80ms}.tc-bar.d5{animation-delay:100ms}.tc-bar.d6{animation-delay:120ms}.tc-bar.d7{animation-delay:140ms}.tc-bar.d8{animation-delay:160ms}.tc-bar.d9{animation-delay:180ms}.tc-bar.d10{animation-delay:200ms}.tc-bar.d11{animation-delay:220ms}.tc-bar.d12{animation-delay:240ms}.tc-bar.d13{animation-delay:260ms}.tc-bar.d14{animation-delay:280ms}.tc-bar.d15{animation-delay:300ms}.tc-bar.d16{animation-delay:320ms}.tc-bar.d17{animation-delay:340ms}.tc-bar.d18{animation-delay:360ms}.tc-bar.d19{animation-delay:380ms}.tc-bar.d20{animation-delay:400ms}
.tc-col.hov .tc-bar { filter: brightness(1.1) saturate(1.15); }
.tc-col.off .tc-bar { opacity: .62; }
.tc-col.off.hov .tc-bar { opacity: .85; }
.tc-col.on .tc-bar { filter: drop-shadow(0 6px 10px rgba(150, 80, 20, .28)); }
.tc-col.dim .tc-bar { opacity: .35; }
.tc-val { fill: var(--ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* areas */
.tc-fill { animation: tc-fade .9s ease both; }
.tc-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.tc-line.p0 { stroke: var(--p0); } .tc-line.p1 { stroke: color-mix(in srgb, var(--p1) 70%, #7a4a12); }
.tc-plot { animation: tc-wipe 1.1s cubic-bezier(.3,.7,.2,1) both; }
.tc-dimband { fill: var(--bg, #fff); opacity: .45; pointer-events: none; }
.tc-hair { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; pointer-events: none; transition: opacity .15s; }
.tc-hair.on { opacity: .7; }
.tc-dot { stroke: var(--surface, #fff); stroke-width: 2.5; opacity: 0; pointer-events: none; }
.tc-dot.p0 { fill: var(--p0); } .tc-dot.p1 { fill: var(--p1); }
.tc-dot.on { opacity: 1; }
.tc-selline { stroke: var(--accent); stroke-width: 1.5; opacity: .55; pointer-events: none; }
.tc-seldot { fill: var(--accent); stroke: var(--surface, #fff); stroke-width: 3; pointer-events: none; }
.tc-ref { stroke: var(--flare); stroke-width: 1.6; stroke-dasharray: 6 5; pointer-events: none; }
@keyframes tc-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes tc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tc-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .tc-bar, .tc-fill, .tc-plot { animation: none; } }
.tc-tip { position: absolute; z-index: 5; min-width: 13.5rem; padding: .75rem .9rem .7rem; border-radius: 14px; pointer-events: none;
  background: color-mix(in srgb, var(--surface, #fff) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: 0 18px 40px -12px rgba(20, 12, 4, .28), 0 2px 6px rgba(20, 12, 4, .08); font-size: .84rem; color: var(--ink-2); transition: left .12s ease, top .12s ease; }
.tc-tip b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: .4rem; }
.tc-tip b em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .78rem; }
.tc-tip div { display: flex; align-items: center; gap: .45rem; padding: .14rem 0; }
.tc-tip div span { margin-left: auto; padding-left: 1rem; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 650; }
.tc-tip div i { width: 10px; height: 10px; border-radius: 3px; }
.tc-tip .t { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .4rem; }
.tc-tip .ch { font-size: .78rem; font-weight: 650; margin-top: .3rem; }
.tc-tip .ch.up { color: #2f8f4e; } .tc-tip .ch.dn { color: #c0392b; }
.tc-tip small { display: block; margin-top: .4rem; color: var(--muted); font-size: .74rem; }
.tc-foot { margin: .7rem 0 0; font-size: .84rem; color: var(--muted); }
.tc-foot b { color: var(--ink); }

/* Work with me: the highlight follows the card you point at */
.plans:hover a.plan.featured:not(:hover) { border-color: var(--line); box-shadow: var(--shadow); }
.plans:hover a.plan.featured:not(:hover) .btn { background: transparent; color: var(--ink); border-color: var(--line-2); }
a.plan:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
a.plan:not(.featured):hover .btn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
a.plan .btn { transition: background .2s, color .2s, border-color .2s; }

/* contact page */
.ct-grid { display: grid; gap: 1.25rem; }
@media (min-width: 58rem) { .ct-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.ct-form { padding: clamp(1.5rem, 3.5vw, 2.25rem); border-radius: 20px; position: relative; overflow: hidden; }
.ct-form::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--flare)); }
.ct-form h2 { font-size: 1.35rem; letter-spacing: -.02em; margin: 0 0 .3rem; }
.ct-form .sub { margin: 0 0 1.4rem; color: var(--muted); font-size: .95rem; }
.ct-topics { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 1.1rem; }
.ct-topics label { display: inline-flex; cursor: pointer; }
.ct-topics input { position: absolute; opacity: 0; pointer-events: none; }
.ct-topics span { padding: .5rem .85rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .86rem; color: var(--ink-2); transition: all .15s; background: var(--surface); }
.ct-topics label:hover span { border-color: var(--accent); color: var(--ink); }
.ct-topics input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ct-topics input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ct-row { display: grid; gap: .9rem; }
@media (min-width: 40rem) { .ct-row { grid-template-columns: 1fr 1fr; } }
.ct-form .f-lbl { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .35rem; letter-spacing: .01em; }
.ct-form input[type=text], .ct-form input[type=email], .ct-form textarea { width: 100%; padding: .8rem .95rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
.ct-form input:focus, .ct-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.ct-form textarea { resize: vertical; min-height: 8.5rem; }
.ct-form .btn { margin-top: 1.1rem; padding: .85rem 1.4rem; }
.ct-side { display: grid; gap: 1rem; }
.ct-card { padding: 1.4rem 1.5rem; border-radius: 18px; }
.ct-card h3 { font-size: 1rem; margin: 0 0 .9rem; }
.ct-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: s; }
.ct-steps li { display: grid; grid-template-columns: 2rem 1fr; gap: .8rem; align-items: start; font-size: .92rem; color: var(--ink-2); counter-increment: s; }
.ct-steps li::before { content: counter(s); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .85rem;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.ct-steps b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: .1rem; }
.ct-direct { display: flex; align-items: center; gap: .9rem; }
.ct-direct .ic { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.ct-direct .ic svg { width: 1.2rem; height: 1.2rem; }
.ct-direct small { display: block; color: var(--muted); font-size: .8rem; }
.ct-direct a { font-weight: 600; color: var(--ink); text-decoration: none; word-break: break-all; }
.ct-direct a:hover { color: var(--accent); }
.ct-badge { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--ink-2); margin-top: 1rem; }
.ct-badge i { width: 8px; height: 8px; border-radius: 50%; background: #2f8f4e; box-shadow: 0 0 0 4px color-mix(in srgb, #2f8f4e 20%, transparent); }
.ct-msg { margin-top: .9rem; }
.m0 { margin: 0; }
/* download form (every download) */
.dl-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; background: rgba(12, 8, 4, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.dl-gate.in { opacity: 1; }
.dl-card { position: relative; width: min(34rem, 100%); max-height: calc(100svh - 2rem); overflow: auto; background: var(--surface); color: var(--ink); border-radius: 20px; padding: 1.8rem 1.6rem 1.4rem; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45); transform: translateY(18px) scale(.98); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.dl-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--accent), var(--flare)); }
.dl-gate.in .dl-card { transform: none; }
.dl-x { position: absolute; top: .7rem; right: .8rem; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.dl-kick { margin: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 650; }
.dl-card h3 { margin: .3rem 0 .2rem; font-size: 1.45rem; letter-spacing: -.02em; }
.dl-what { margin: 0 0 1.1rem; color: var(--muted); font-size: .9rem; }
.dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: .8rem; }
@media (max-width: 560px) { .dl-row { grid-template-columns: 1fr; } }
.dl-card label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.dl-card input:not([type=checkbox]), .dl-card select { display: block; width: 100%; margin-top: .35rem; padding: .7rem .8rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
.dl-card input:focus, .dl-card select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.dl-card .dl-ok { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; margin: .3rem 0 1.1rem; line-height: 1.45; }
.dl-ok input { margin-top: .2rem; accent-color: var(--accent); }
.dl-go { width: 100%; justify-content: center; }
html.dl-open { overflow: hidden; }
/* printing is only through the download form */
.print-block { display: none; }
@media print {
  body:not(.printing-report) .page, body:not(.printing-report) .bg { display: none !important; }
  body:not(.printing-report) .print-block { display: block !important; font: 14px/1.5 sans-serif; padding: 2rem; }
  .dl-gate { display: none !important; }
}
/* the clicked period stays open in its own card, with a close button, and fades back while you look at other bars */
.tc-pin { pointer-events: auto; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); padding-right: 2.2rem; transition: opacity .2s, left .12s ease, top .12s ease; }
.tc-pin.dim { opacity: 0; pointer-events: none; }
.tc-x { position: absolute; top: .45rem; right: .45rem; width: 1.6rem; height: 1.6rem; border: 0; border-radius: 50%; background: var(--bg-2); color: var(--ink); font-size: 1.05rem; line-height: 1; cursor: pointer; }
.tc-x:hover { background: var(--accent); color: #fff; }
