/* Lineval site. Paper, ink and one board green; figures in monospace like an odds board. */
:root {
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --card: #fffdf8;
  --ink: #14171c;
  --ink-2: #1c2128;
  --text: #22262c;
  --muted: #5a5f66;
  --rule: #d9d4c8;
  --green: #0b6e4f;
  --green-2: #0a5c42;
  --green-soft: #e3efe9;
  --up: #1f9d6b;
  --down: #c2412d;
  --amber: #b7791f;
  --max: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; }
h3 { font-size: 1.05rem; line-height: 1.3; }
p { margin: 0; }
code, pre, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: .9em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 1.12rem; text-decoration: none; letter-spacing: .01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 24px; height: 24px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: .95rem; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--green); }
@media (max-width: 820px) { .nav a.hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-block; padding: 11px 18px; border-radius: 6px; font: 600 .95rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.nav .btn { padding: 8px 14px; color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero { padding: 72px 0 80px; border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); margin-bottom: 20px; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .fine { margin-top: 14px; font-size: .9rem; color: var(--muted); }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hero { padding: 48px 0 56px; } }

/* Odds board (hero) */
.board { background: var(--ink); color: #d7dbe0; border-radius: 8px; overflow: hidden; font-family: var(--mono); font-size: .82rem; min-width: 0; }
.board-head { display: flex; justify-content: space-between; padding: 10px 14px; background: var(--ink-2); color: #8b939c; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.board-head .live { color: #6fd3a8; }
.board table { width: 100%; border-collapse: collapse; }
.board th { font-weight: 500; color: #8b939c; font-size: .72rem; text-align: right; padding: 8px 10px; border-bottom: 1px solid #2a3038; }
.board th:first-child { text-align: left; }
.board td { padding: 10px 8px; border-bottom: 1px solid #242a31; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.board td:first-child { text-align: left; white-space: normal; }
.board tr:last-child td { border-bottom: 0; }
.board .match { color: #f1f3f5; font-family: var(--sans); font-size: .88rem; }
.board .meta { display: block; color: #7d858e; font-size: .72rem; margin-top: 2px; }
.board .clock { color: #6fd3a8; }
.board .up { color: #6fd3a8; }
.board .down { color: #f08a76; }
.board .susp { color: #6b737c; }
.board-foot { padding: 9px 14px; color: #6b737c; font-size: .72rem; border-top: 1px solid #242a31; }
/* Grid tracks are minmax(0, …) throughout: a plain 1fr track grows to its widest child (a code block, the odds
   board) and pushes the whole page sideways on a phone. */
/* On a phone the board drops its last column and tightens: it is the column's width, never wider. */
@media (max-width: 520px) {
  .board .hide-xs { display: none; }
  .board th, .board td { padding-left: 6px; padding-right: 6px; }
  .board th:first-child, .board td:first-child { padding-left: 12px; }
  .board th:last-child, .board td:last-child { padding-right: 12px; }
}

/* Fact strip */
.strip { border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 8px 36px; padding-top: 16px; padding-bottom: 16px; font-family: var(--mono); font-size: .84rem; color: var(--muted); }
.strip b { color: var(--ink); font-weight: 600; }

/* Sections */
section { padding: 84px 0; border-bottom: 1px solid var(--rule); }
.head { max-width: 680px; margin-bottom: 40px; }
.head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; }
.head p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 700px) { section { padding: 60px 0; } }

/* Rate card */
.billing { display: inline-flex; border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.billing button { border: 0; background: transparent; padding: 7px 16px; font: 600 .88rem var(--sans); color: var(--ink); cursor: pointer; }
.billing button + button { border-left: 1px solid var(--ink); }
.billing button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.rate { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--rule); }
.rate th { text-align: left; font: 600 .74rem var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 12px 18px; border-bottom: 1px solid var(--ink); }
.rate td { padding: 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rate td.p { text-align: right; white-space: nowrap; }
.rate th.p { text-align: right; }
.rate .amount { font-family: var(--mono); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.rate .per { color: var(--muted); font-size: .85rem; }
.rate .eq { display: block; color: var(--muted); font-size: .8rem; font-family: var(--mono); }
.rate .eq:empty { display: none; }
.rate .name { font-weight: 700; color: var(--ink); white-space: nowrap; }
.rate .what { color: var(--muted); font-size: .95rem; }
.rate .what small { display: block; color: var(--green); font-size: .85rem; margin-top: 4px; }
.rate tr.all td { background: var(--green-soft); border-bottom: 0; }
.rate tr.all .name { font-size: 1.05rem; }
.rate tr.all .amount { font-size: 1.5rem; color: var(--green-2); }
.rate .sep { display: block; color: var(--muted); font-size: .85rem; }
.table-scroll { overflow-x: auto; }
.price-foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; margin-top: 28px; }
.price-foot p { color: var(--muted); font-size: .95rem; }
.price-foot p + p { margin-top: 8px; }
.limits { width: 100%; border-collapse: collapse; font-size: .92rem; }
.limits th, .limits td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: right; }
.limits th:first-child, .limits td:first-child { text-align: left; }
.limits th { font-weight: 600; color: var(--muted); font-size: .8rem; }
.limits td { font-family: var(--mono); }
.limits td:first-child { font-family: var(--sans); color: var(--muted); }
@media (max-width: 820px) { .price-foot { grid-template-columns: minmax(0, 1fr); } .rate td, .rate th { padding: 12px; } }
/* On a phone each product is one block: name and price on top, what it includes underneath, full width. The
   description is what sells the product, so it moves instead of disappearing. */
@media (max-width: 560px) {
  .rate, .rate thead, .rate tbody { display: block; }
  .rate tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .rate tbody tr { border-bottom: 1px solid var(--rule); }
  .rate tbody tr:last-child { border-bottom: 0; }
  .rate th.what { display: none; }
  .rate td { border-bottom: 0; }
  .rate td.name { grid-column: 1; grid-row: 1; padding: 16px 12px 6px 16px; }
  .rate td.p { grid-column: 2; grid-row: 1; padding: 14px 16px 6px 12px; }
  .rate td.what { grid-column: 1 / -1; grid-row: 2; padding: 0 16px 16px; font-size: .9rem; }
  .rate th { padding: 12px 16px; }
}

/* Differences */
.diffs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 56px; counter-reset: d; }
.diff { padding: 22px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 44px minmax(0, 1fr); }
.diff::before { counter-increment: d; content: counter(d, decimal-leading-zero); font-family: var(--mono); color: var(--green); font-size: .9rem; padding-top: 2px; }
.diff p { color: var(--muted); margin-top: 6px; font-size: .97rem; }
@media (max-width: 760px) { .diffs { grid-template-columns: minmax(0, 1fr); } }

/* Developers */
.dev { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.dev pre { margin: 0; background: var(--ink); color: #d7dbe0; border-radius: 8px; padding: 18px 20px; font-size: .8rem; line-height: 1.65; overflow-x: auto; }
.dev pre + pre { margin-top: 12px; }
.dev .c { color: #7d858e; } .dev .k { color: #9ecbff; } .dev .s { color: #a8e0c4; } .dev .n { color: #f2c46d; }
.dev ul { margin: 18px 0 24px; padding-left: 18px; color: var(--muted); }
.dev li { margin: 8px 0; }
.dev li strong { color: var(--ink); }
/* In one column the heading and the explanation come first, then the code they introduce. */
@media (max-width: 900px) { .dev { grid-template-columns: minmax(0, 1fr); gap: 32px; } .dev-text { order: -1; } }

/* Coverage */
.sports { columns: 4 160px; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.sports li { padding: 7px 0; border-bottom: 1px solid var(--rule); break-inside: avoid; font-size: .95rem; }
.sports li.racing { color: var(--green-2); font-weight: 600; }
/* Phones keep two columns: one long list of 28 sports is a page of scrolling. */
@media (max-width: 560px) { .sports { columns: 2; column-gap: 20px; } .sports li { font-size: .9rem; } }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--rule); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details p { color: var(--muted); margin-top: 8px; }

/* Trial form */
.trial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.trial .steps { margin: 24px 0 0; padding-left: 20px; color: var(--muted); }
.trial .steps li { margin: 10px 0; }
@media (max-width: 900px) { .trial { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
form.sheet { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 28px; }
.field { margin-bottom: 16px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: minmax(0, 1fr); gap: 0; } }  /* stacked: the fields' own margin spaces them */
label, legend { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; color: var(--ink); }
.optional { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="url"], select, textarea { width: 100%; font: inherit; font-size: .96rem; padding: 10px 12px; border: 1px solid #c9c3b6; border-radius: 6px; background: #fff; color: var(--text); }
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 110, 79, .15); }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: .93rem; cursor: pointer; margin: 0; }
.check input { accent-color: var(--green); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .84rem; color: var(--muted); margin: 12px 0 16px; }
.ts { min-height: 65px; }
form .btn-primary { width: 100%; padding: 13px 18px; }
.form-status { display: none; margin-top: 14px; padding: 11px 13px; border-radius: 6px; font-size: .94rem; }
.form-status.ok { display: block; background: var(--green-soft); color: var(--green-2); }
.form-status.err { display: block; background: #fbe9e5; color: #9a2f1f; }

/* Footer */
.site-footer { padding: 40px 0 48px; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--green); }

/* Plain pages (privacy, 404) */
.page { padding: 64px 0 88px; border: 0; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: 2.3rem; margin-bottom: 8px; }
.page h2 { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; margin: 32px 0 8px; }
.page p { color: var(--muted); }
.page p + p { margin-top: 10px; }
.page .updated { font-size: .9rem; margin-bottom: 24px; }

/* The narrowest phones (320 px): both tables tighten so they still fit the column. */
@media (max-width: 380px) {
  .board { font-size: .76rem; }
  .board .match { font-size: .82rem; }
  .board th, .board td { padding-left: 4px; padding-right: 4px; }
  .limits th, .limits td { padding: 8px 5px; }
  .limits th { letter-spacing: 0; }
  .limits { font-size: .84rem; }
}
