/*
 * Marketing surface only — loaded by _MarketingLayout, never by the console.
 *
 * Sits on top of Pico + site.css. The console is dense and functional; these
 * pages are wide, quiet, and mostly type. Keeping them in a separate file is
 * the boundary: if a console page ever needs a rule from here, the boundary has
 * failed and the rule belongs in site.css instead.
 */

/*
 * Pico sets `list-style: square` on <li> directly, so `list-style: none` on the
 * <ul> alone never reaches it. Every custom list below has to say so itself.
 */
.steps,
.steps > li,
.checks,
.checks li,
.platforms,
.platforms li,
.site-footer ul,
.site-footer li {
  list-style: none;
}

/* ---- Page rhythm ------------------------------------------------------- */

.section {
  padding-block: 5.5rem;
  border-top: 1px solid var(--pico-muted-border-color);
}

.section:first-of-type {
  border-top: none;
}

.section > h2 {
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

.section > .lede {
  max-width: 42rem;
  margin-bottom: 2.5rem;
  color: var(--pico-muted-color);
}

/* ---- Hero -------------------------------------------------------------- */

.hero {
  padding-block: 5rem 3.5rem;
  text-align: center;
}

.hero h1 {
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.1;
  text-wrap: balance;
}

.hero p {
  max-width: 46rem;
  margin-inline: auto;
  font-size: 1.125rem;
  color: var(--pico-muted-color);
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.hero-cta [role="button"] {
  width: auto;
}

/* The one claim that carries the whole product. Not a testimonial, not a
   fabricated user counter — a statement of the architecture. */
.proof {
  max-width: 44rem;
  margin: 2.5rem auto 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--pico-primary);
  text-align: left;
  font-size: 0.9375rem;
  color: var(--pico-muted-color);
}

/* ---- Product shot ------------------------------------------------------ */

.shot {
  margin-block: 1rem;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  overflow: hidden;
  background: var(--pico-card-sectioning-background-color);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Placeholder until a client screenshot is ready. Delete with the markup. */
.shot-pending {
  display: grid;
  place-items: center;
  min-height: 22rem;
  padding: 2rem;
  text-align: center;
  color: var(--pico-muted-color);
}

/* ---- Grids ------------------------------------------------------------- */

.cols {
  display: grid;
  gap: 2.5rem 3rem;
  /* A wide minimum track deliberately caps this at two per row on a normal
     viewport. Three or four across reads as a dense feature matrix; two reads
     as prose with headings, which is what these sections actually are. */
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
}

.cols-2 {
  display: grid;
  gap: 2.5rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
}

.cols h3,
.cols-2 h3,
.steps h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.cols p,
.cols-2 p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--pico-muted-color);
}

/* Numbered steps — the how-it-works sequence. */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.steps > li {
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--pico-primary);
  color: var(--pico-primary-inverse);
  font-size: 0.875rem;
  font-weight: 600;
}

.steps p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--pico-muted-color);
}

/* ---- Feature checklist ------------------------------------------------- */

.checks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.8rem 3rem;
  /* Two per row, not three: a wide short list scans as a wall of ticks. */
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
}

.checks li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9375rem;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pico-primary);
  font-weight: 700;
}

/*
 * The inverse list — things we deliberately do NOT hold. A checkmark here would
 * read as "included", which is the opposite of the point.
 */
.checks-not li::before {
  content: "✕";
  color: var(--pico-del-color);
}

/* ---- Platform strip ---------------------------------------------------- */

.platforms {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.platforms li {
  padding: 0.5rem 1rem;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  font-size: 0.9375rem;
}

/* ---- Pricing ----------------------------------------------------------- */

.plans {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  align-items: start;
}

.plan {
  margin: 0;
}

.plan .price {
  display: block;
  margin-block: 0.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.plan .price small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--pico-muted-color);
}

.plan .who {
  color: var(--pico-muted-color);
  font-size: 0.9375rem;
}

/* The cost comparison. Flat against rising is the whole argument. */
.compare td:not(:first-child),
.compare th:not(:first-child) {
  text-align: right;
}

.compare .ours {
  font-weight: 700;
  color: var(--pico-primary);
}

/* ---- Legal documents --------------------------------------------------- */

.legal {
  max-width: 44rem;
  margin-inline: auto;
  padding-block: 3rem;
}

.legal hgroup {
  margin-bottom: 2rem;
}

.legal h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.legal p,
.legal li,
.legal dd {
  font-size: 0.9375rem;
}

.legal dt {
  margin-top: 1rem;
  font-weight: 600;
}

.legal dd {
  margin-inline-start: 0;
  color: var(--pico-muted-color);
}

.legal .checks {
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}

/* ---- Definition list (reference content) ------------------------------- */

.deflist {
  margin-block: 1.5rem 0;
}

.deflist dt {
  margin-top: 1.25rem;
  font-weight: 600;
}

.deflist dd {
  margin-inline-start: 0;
  font-size: 0.9375rem;
  color: var(--pico-muted-color);
}

/* ---- FAQ accordion ------------------------------------------------------ */

/*
 * A traditional one-question-per-row accordion, on <details>/<summary> so it
 * works with no JavaScript and stays keyboard- and screen-reader-navigable.
 * Pico already styles the disclosure marker; this is spacing and rhythm.
 */
.faq {
  max-width: 46rem;
}

.faq details {
  margin: 0;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--pico-muted-border-color);
}

.faq details:first-of-type {
  border-top: 1px solid var(--pico-muted-border-color);
}

.faq summary {
  padding-block: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.faq summary:hover {
  color: var(--pico-primary);
}

.faq details > *:not(summary) {
  margin-bottom: 1rem;
  color: var(--pico-muted-color);
  font-size: 0.9375rem;
}

/* ---- Brand lockup ------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand img {
  display: block;
}

/* ---- Callout ----------------------------------------------------------- */

.callout {
  margin-block: 2rem;
  padding: 1.5rem;
  border-radius: var(--pico-border-radius);
  background: var(--pico-card-sectioning-background-color);
}

.callout > :last-child {
  margin-bottom: 0;
}

/* ---- Closing CTA ------------------------------------------------------- */

.cta {
  padding-block: 4.5rem;
  text-align: center;
  border-top: 1px solid var(--pico-muted-border-color);
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  max-width: 38rem;
  margin-inline: auto;
  color: var(--pico-muted-color);
}

/* ---- Footer ------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--pico-muted-border-color);
  padding-block: 3rem 2rem;
}

.site-footer nav {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin-bottom: 2.5rem;
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pico-muted-color);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .colophon {
  padding-top: 1.5rem;
  border-top: 1px solid var(--pico-muted-border-color);
  font-size: 0.875rem;
  color: var(--pico-muted-color);
}

/* ---- Public nav -------------------------------------------------------- */

/*
 * Pico's nav is a nowrap flex row. With five links plus a brand that overflows
 * a phone viewport and scrolls the whole page sideways, so allow wrapping and
 * let the two groups stack. Checked at 375px.
 */
.site-nav {
  flex-wrap: wrap;
  row-gap: 0.25rem;
}

.site-nav > ul {
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
}

.site-nav [role="button"] {
  width: auto;
  padding: 0.4rem 0.9rem;
  font-size: 0.9375rem;
}
