/* 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); }
}