/* Welcome page (public, standalone). The shared public-page shell (tokens,
   header, hero base, buttons, cards, footer) lives in css/public.css; only
   welcome-page layout is here. */

/* ---- Hero ---- */
.hero-lede { font-size: clamp(18px, 2.4vw, 21px); color: #D8D2C6; max-width: 640px; margin: 20px 0 0; }
.pub-hero h1 { font-size: clamp(34px, 6vw, 60px); }

/* Community volume badges */
.stat-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.stat-badge { background: #26272A; border-radius: 8px; padding: 12px 18px; min-width: 150px; }
.stat-badge .value { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--surface); display: block; line-height: 1.2; }
.stat-badge .label { color: #9A9488; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-badges-caption { color: #9A9488; font-size: 12.5px; margin: 10px 0 0; font-style: italic; }

/* ---- Screenshot figures ---- */
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.shot figcaption { color: var(--muted); font-size: 12.5px; margin-top: 10px; font-style: italic; text-align: center; }
/* For a figure the reader has already seen at full size elsewhere on the page. */
.shot-narrow { max-width: 460px; }

/* ---- Story steps ----
   One column, figure under its copy. Side by side, a figure got ~560px of a
   1080px wrap, and these are 1600px screenshots of a working application: at
   that size a visitor cannot read the thing we are asking them to judge. Full
   width nearly doubles it. The copy keeps a readable measure of its own. */
.story-step { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 52px; }
.story-copy { max-width: 780px; }
.story-step h3 { font-size: clamp(20px, 2.6vw, 25px); margin: 0 0 10px; }
.story-step h3 .step-number {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brass); color: var(--carbon); font-size: 16px; margin-right: 10px;
  vertical-align: 2px;
}
.story-step p { margin: 0 0 12px; }
.story-step p:last-child { margin-bottom: 0; }
.story-copy .aside { color: var(--muted); font-size: 15px; }

/* Stacked figures inside a story step */
.shot-stack { display: grid; gap: 18px; }

/* A story step whose figures sit BELOW the copy at full width rather than beside
   it: the analysis charts are unreadable at half a column. */
.story-step-wide { grid-template-columns: 1fr; margin-bottom: 8px; }
.story-step-wide .story-copy { max-width: 780px; }

/* ---- Live analysis charts ---- */
.landing-plots { display: grid; gap: 26px; }
/* min-width:0 on the grid item: a grid child defaults to min-width:auto, which
   means "at least as wide as my content" and would push the whole PAGE sideways
   instead of letting the scroller below do its job. */
.landing-plot-figure { margin: 0; min-width: 0; }
.landing-plot-title { font-size: 16px; margin: 0 0 8px; color: var(--carbon); }
/* The composite chart's height follows from its width (its axes are locked to
   the same inches), so below its minimum it scrolls sideways inside this box
   instead of collapsing into a sliver. The page body never scrolls sideways. */
.landing-plot-scroll { overflow-x: auto; max-width: 100%; }
/* Plotly sizes to its container; these heights are what make the charts legible
   at full width, which is the whole point of them not being screenshots. */
.landing-plot {
  width: 100%; height: 380px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white);
}
/* The composite chart locks its two axes to the same inches, so its height is a
   consequence of its width, not a free choice; landing_plots.js computes it. */
.landing-plot-auto { height: auto; }
.landing-plots-note { color: var(--muted); font-size: 13px; font-style: italic; margin: 0; }
.landing-plots-failed .landing-plot::after {
  content: "This chart could not load. It is a live plot, not a picture, so it needs JavaScript.";
  display: grid; place-items: center; height: 100%; padding: 0 24px;
  color: var(--muted); font-size: 14px; text-align: center;
}

/* ---- Record-keeping row ---- */
.records-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.records-grid .card h3 { font-size: 18px; margin: 0 0 8px; }
.records-grid .card p { margin: 0; font-size: 15.5px; }

/* ---- Free tools strip ---- */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tools-grid .card h3 { font-size: 18px; margin: 0 0 8px; }
.tools-grid .card p { margin: 0 0 14px; font-size: 15.5px; }

/* ---- What gets shared ---- */
.share-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.share-cols h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 12px; }
.share-cols .shared h3 { color: var(--brass-deep); }
.share-cols ul { margin: 0; padding-left: 18px; }
.share-cols li { margin-bottom: 6px; }

/* ---- Pricing ---- */
.pricing { text-align: center; }
.price { font-family: var(--display); font-weight: 700; font-size: 56px; color: var(--carbon); }
.price span { font-size: 20px; color: var(--muted); font-weight: 500; }
.guarantee { color: var(--muted); max-width: 620px; margin: 14px auto 0; }
.guarantee-small { font-size: 15px; }
.pricing .btn-row { justify-content: center; }

/* ---- FAQ ---- */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--carbon); cursor: pointer; }
.faq details p { margin: 12px 0 0; color: var(--ink); }

/* ---- Demo sandbox ---- */
.sandbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.sandbox-toolbar .btn-row { margin-top: 0; }
.sandbox-count { font-family: var(--display); font-weight: 600; color: var(--carbon); }
.sandbox-hint { color: var(--muted); font-size: 14px; }
.sandbox-stage { position: relative; cursor: crosshair; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sandbox-stage img { display: block; width: 100%; height: auto; }
.sandbox-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sandbox-stage.results { cursor: default; }
.sandbox-note { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; font-style: italic; }
.sandbox-status { margin-top: 14px; font-weight: 600; color: var(--carbon); }
.sandbox-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14.5px; }
.sandbox-table th, .sandbox-table td { text-align: right; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sandbox-table th:first-child, .sandbox-table td:first-child { text-align: left; }
.sandbox-table th { font-family: var(--display); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
/* Rayleigh sigma is lower-case sigma everywhere on the site; the header row's
   uppercasing would silently turn it into a capital sigma, which means
   something else entirely. */
.sandbox-table th.sandbox-symbol { text-transform: none; }
.sandbox-table-wrap { overflow-x: auto; }
/* Row swatches use the shared .ds-series-swatch-N classes from style.css, whose
   colours are the same GROUP_SERIES_COLORS the detection overlay draws with. */
/* The group number over each detected group; the SVG has no CSS-inherited size. */
.sandbox-group-label { font-family: var(--display); font-size: 46px; font-weight: 700; paint-order: stroke fill; }
/* The Luck check block uses the shared .ds-verdict component from style.css, so
   the demo's bottom line looks the same as the one on the Analyze page. */
.sandbox-cta-row { display: none; }
.sandbox-cta-row.visible { display: flex; }

@media (max-width: 820px) {
  .story-step { gap: 20px; }
  .records-grid { grid-template-columns: 1fr; }
  .tools-grid, .share-cols { grid-template-columns: 1fr; }
  .landing-plot { height: 320px; }
}
