:root { --fg: #1a1a1a; --bg: #ffffff; --muted: #5c5c5c; --line: #d6d6d6; --soft: #f5f3f0; --accent: #8a2f5b; --ok: #2e7d32; --err: #b00020; --canvas: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #ececec; --bg: #151515; --muted: #a9a9a9; --line: #3a3a3a; --soft: #221f1d; --accent: #e59ac0; --ok: #7bc67f; --err: #ff7086; --canvas: #f4f4f4; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
a { color: var(--accent); }
header.top, main, footer { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; margin: 12px 0; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 24px 0 12px; }
h2 { font-size: 1.25rem; }
ul.first { padding-left: 1.2rem; }
ul.first li { margin: 6px 0; }
.small { font-size: 0.9rem; color: var(--muted); }
.offer { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 16px 0; }
@media (max-width: 640px) { .offer { grid-template-columns: 1fr; } }
button, select, input { font: inherit; }
button { padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; }
button:disabled { opacity: 0.5; cursor: default; }
.buy-box button { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 600; }
input[type=number] { padding: 6px 8px; width: 5.5em; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); max-width: 100%; }
.drop { border: 2px dashed var(--line); border-radius: 8px; padding: 28px 16px; text-align: center; margin: 16px 0; }
.drop.over { border-color: var(--accent); background: var(--soft); }
.pick { display: inline-block; padding: 8px 14px; border-radius: 6px; background: var(--accent); color: var(--bg); font-weight: 600; cursor: pointer; }
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.settings { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.settings label { display: inline-flex; align-items: center; gap: 6px; }
#status { min-height: 1.5em; }
.error { color: var(--err); }
.access { border-left: 4px solid var(--accent); padding: 4px 12px; background: var(--soft); }
.access.ok { border-left-color: var(--ok); }
.views { display: flex; flex-wrap: wrap; gap: 16px; }
.views figure { margin: 0; flex: 1 1 280px; }
.views canvas { display: block; max-width: 100%; height: auto; background: var(--canvas); border: 1px solid var(--line); border-radius: 4px; }
#preview { image-rendering: auto; }
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }
.facts { margin: 12px 0; padding-left: 1.2rem; }
.threads { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--line); display: inline-block; }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.downloads .dl { font-weight: 600; }
.downloads .dl.locked { color: var(--muted); }
footer { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 8px; padding-bottom: 24px; font-size: 0.9rem; color: var(--muted); }
.box { border-left: 4px solid var(--accent); padding: 4px 12px; background: var(--soft); }
input.email { padding: 6px 8px; width: min(22em, 100%); border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "h1 fig" "sub fig" "cta fig" "buy fig" "msg fig" "behind fig"; column-gap: 32px; align-items: start; margin: 8px 0 16px; }
.hero h1 { grid-area: h1; font-size: 2.2rem; margin: 20px 0 8px; }
.hero .sub { grid-area: sub; font-size: 1.15rem; margin: 0 0 16px; }
.hero .proof { grid-area: fig; margin: 20px 0 0; }
.hero .proof img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.hero .cta { grid-area: cta; margin: 0 0 12px; }
.hero .buyline { grid-area: buy; margin: 0; color: var(--muted); }
.hero [data-ventures-message] { grid-area: msg; }
.hero .behind-wrap { grid-area: behind; }
.pick.big { font-size: 1.15rem; padding: 12px 20px; }
.buy-small { margin-left: 6px; padding: 4px 10px; border-color: var(--accent); color: var(--accent); font-weight: 600; }
.objections { padding-left: 1.2rem; margin: 8px 0 16px; }
.objections li { margin: 8px 0; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "h1" "sub" "fig" "cta" "buy" "msg" "behind"; }
  .hero h1 { font-size: 1.7rem; margin-top: 16px; }
  .hero .sub { font-size: 1rem; margin-bottom: 8px; }
  .hero .proof { margin: 0 0 12px; }
}
pre.notice { white-space: pre-wrap; font-size: 0.85rem; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 12px; overflow-wrap: anywhere; }

/* The one-click question to a visitor who does not buy (shared/web/ventures.js, ventures#606). */
.ventures-ask { position: relative; margin: 1.5rem 0; padding: .75rem 1rem; background: var(--soft);
  border: 1px solid var(--line); border-radius: 10px; color: var(--fg); }
.ventures-ask[hidden] { display: none; }
.ventures-ask[data-ventures-ask="left"] { margin-top: 0; padding-right: 3rem; }
.ventures-ask-question { margin: 0 0 .5rem; font-weight: 600; }
.ventures-ask-answers { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.ventures-ask-answers button { min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--accent);
  border-radius: 8px; background: transparent; color: var(--accent); font: inherit; font-weight: 500;
  cursor: pointer; }
.ventures-ask-close { position: absolute; top: .25rem; right: .25rem; min-width: 44px; min-height: 44px;
  padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 1.5rem;
  line-height: 1; cursor: pointer; }
main.article { max-width: 760px; }
main.article .lead { font-size: 1.05rem; }
main.article li { margin: 6px 0; }
.table-wrap { overflow-x: auto; }
table.plain { border-collapse: collapse; width: 100%; margin: 12px 0; }
table.plain th, table.plain td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.sources { font-size: 0.9rem; color: var(--muted); overflow-wrap: anywhere; }

/* The shared look (shared/look/README.md, ventures#732): look.css loads after this file and
   styles the type, the colours, the buttons, the wordmark and the footer. What follows fits
   this site's own parts to it. */
body.look { --soft: var(--quiet); --ok: var(--right); --err: var(--wrong); }
.look header.top { align-items: center; min-height: 3.5rem; margin-bottom: 1.25rem; }
.look header.top nav { font-size: 0.9375rem; }
/* On a phone the links wrap under the wordmark (ventures#798): keep the 12 px above the
   wordmark that the centred 3.5rem row gives it on desktop, and the same below the links.
   Each link moves to the next line whole, and wraps inside itself only when it is wider
   than the screen (large text). */
@media (max-width: 640px) {
  .look header.top { padding-top: 12px; padding-bottom: 12px; }
  .look header.top nav a { display: inline-block; max-width: 100%; }
}
.look footer.site-footer { padding-left: 16px; padding-right: 16px; }
.look .site-footer > p { max-width: 52rem; }
.look .pick { display: inline-flex; align-items: center; min-height: 48px; padding: 0.7rem 1.35rem; border-radius: 10px;
  background: var(--accent); color: var(--accent-fg); font-weight: 600; box-shadow: 0 1px 2px rgba(21, 43, 74, 0.18); }
.look .pick:hover { background: var(--accent-strong); }
.look .pick.big { font-size: 1.125rem; }
.look .buy-small, .look .settings button, .look .downloads button {
  min-height: 44px; padding: 0.45rem 1rem; background: var(--surface); color: var(--accent); box-shadow: none; font-size: 1rem; }
.look .buy-small:hover, .look .settings button:hover, .look .downloads button:hover { background: var(--accent-soft); color: var(--accent-strong); }
.look .downloads .dl.locked { color: var(--muted); border-color: var(--line); }
/* look.css gives the practice-test hero (two blocks) a gap of 3rem; here the hero is a grid
   of rows, which keep their own margins. */
body.look .hero { row-gap: 0; }
.look .hero .sub { color: var(--fg); }
.look .hero .proof { padding: 0.75rem; }
.look .hero .proof img { border-radius: 8px; }
.look .hero .buyline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.look .hero .buy-small { margin-left: 0; }
.look .hero .behind { margin-top: 0.9rem; }
.look ul.objections { list-style: none; padding-left: 0; display: grid; gap: 1.25rem; margin: 2rem 0 1.25rem; }
.look .objections strong { display: block; }
.look .machine-notice { color: var(--muted); }
.look .offer { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 1rem 1.5rem; }
.look .drop { border-radius: 14px; background: var(--surface); }
.look .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.look .views canvas { border-radius: 8px; }
.look .box, .look .access { border-radius: 0 8px 8px 0; }
.look input.email, .look input[type=number] { min-height: 44px; background: var(--surface); }
@media (max-width: 760px) { .look .pick.big { font-size: 1.0625rem; padding: 0.7rem 1rem; } }
