/* Parts² marketing site — plain static CSS, zero dependencies.
   Voice: bright countertop. Paper surface, ink type, one orange accent,
   big tabular numbers. Same palette as the app. */

:root {
    /* Parts2 retail site — the approved palette (Brian, 2026-10-23).
       Paper surface, ink type, one orange. Frozen: do not retune. */
    --paper:   #f7f4ee;
    --panel:   #ffffff;
    --ink:     #1d1f24;
    --ink-2:   #4a4e57;
    /* Muted label text. Was #8a8e98, which measures 2.6:1 on paper — under the 4.5:1 a body-sized
       label needs, and the same failure Brian flagged as 'you can not read the text' in the app.
       #6b6f78 is the token the app was moved to; the site now matches it. */
    --ink-3:   #6b6f78;
    --line:    #e4e1d8;
    --accent:  #e2681f;
    --accent-ink: #b8501a;
    --accent-soft: #fdf1e4;
    --good:    #15803d;
    --good-soft: #e5f6eb;
  }

* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* top bar */
.topbar {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line); background: var(--panel);
  position: sticky; top: 0; z-index: 10;
}
.wordmark { font-weight: 800; font-size: 1.3rem; letter-spacing: 0.06em; }
.wordmark sup { color: var(--accent); font-size: 0.7em; }
.nav { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.nav a:hover { color: var(--accent-ink); }
.nav-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  background: transparent;
  padding: 0.42rem 0.95rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s ease;
  white-space: nowrap;
}
.nav-action-btn:hover {
  background: var(--accent-soft);
  color: var(--accent-ink) !important;
}
.cta-pill {
  background: var(--accent); color: #fff !important;
  padding: 0.5rem 1.1rem; border-radius: 999px;
}
.cta-pill:hover { background: var(--accent-ink); }

/* sections */
main { display: block; }
.band, .hero { max-width: min(1180px, 94vw); margin: 0 auto; padding: 4.2rem 1.4rem; }
.band.alt { background: var(--panel); border-block: 1px solid var(--line); }

.eyebrow {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 0.9rem;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 1.2rem; }
h1 .accent { color: var(--accent); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 1.2rem; }
h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 46ch; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; color: var(--ink-2); max-width: 1180px; }

.cta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.cta {
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; padding: 0.85rem 1.6rem; border-radius: 12px;
}
.cta:hover { background: var(--accent-ink); }
.cta-note { font-size: 0.85rem; color: var(--ink-3); }
.fine { font-size: 0.86rem; color: var(--ink-3); }
/* A link inside fine print still belongs to the palette. Without this the browser paints it the
   default blue, which is the one colour on this site that is not part of the approved set — and
   it is fine print, so it is the last place a stranger colour should appear. */
.fine a { color: var(--ink-2); text-decoration: underline; }
.fine a:hover { color: var(--accent-ink); }
.hero-note { margin: -0.4rem 0 1.2rem; font-size: 0.92rem; color: var(--ink-3); }
.hero-note a { color: var(--ink-2); text-decoration: underline; }

/* hero count strip — the product's DNA shown instead of a screenshot */
.count-strip {
  display: flex; gap: 2.4rem; flex-wrap: wrap; margin: 3rem 0 0; padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}
.count-strip div { display: flex; flex-direction: column; }
.count-strip strong {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 2.6rem; font-variant-numeric: tabular-nums; line-height: 1;
}
.count-strip span { margin-top: 0.4rem; font-size: 0.8rem; color: var(--ink-3); }

/* two kinds of stock */
.two-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 1.2rem; }
.kind {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.4rem 1.5rem;
}
.big-qty {
  font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--accent);
  font-size: 2.1rem; font-variant-numeric: tabular-nums; font-weight: 800;
  margin-right: 0.5rem; vertical-align: -0.18em;
}

/* who grid */
.who-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.who-grid li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.2rem; color: var(--ink-2);
}
.band.alt .who-grid li { background: var(--paper); }

/* steps */
.steps {
  list-style: none; padding: 0; margin: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
}
.steps li {
  counter-increment: step;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1rem 1.2rem; font-size: 0.92rem; color: var(--ink-2);
}
.steps li::before {
  content: counter(step);
  display: inline-block; font-family: ui-monospace, Menlo, monospace; font-weight: 800;
  font-size: 1.3rem; color: var(--accent); margin-bottom: 0.45rem;
}
.steps li strong { display: block; color: var(--ink); margin-bottom: 0.2rem; }

.signoff .lede { max-width: 54ch; }

/* footer */
.foot {
  max-width: min(1180px, 94vw); margin: 0 auto; padding: 2.6rem 1.4rem 3.2rem;
  color: var(--ink-2); border-top: 1px solid var(--line);
}
.foot .fine { margin-top: 0.6rem; }

@media (max-width: 820px) {
  .two-col, .two-kinds { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  /* The nav used to hide every link but the call to action on a phone. That was survivable
     while the links were anchors on this one page; it is not survivable now that Features,
     Who, How, Pricing and FAQ are pages of their own — a phone would have had no way to
     reach any of them. Wrap instead of hide. */
  .topbar { flex-wrap: wrap; row-gap: 0.6rem; }
  .nav { width: 100%; margin-left: 0; gap: 0.7rem 1rem; font-size: 0.85rem; }
  .steps, .who-grid { grid-template-columns: 1fr; }
  .count-strip { gap: 1.4rem; }
  .band, .hero { padding-block: 2.8rem; }
}

/* A band whose text is centred, for the closing "one more thing" statement on /who.
   The lede is capped at 46ch, so it needs margin-inline:auto or the block sits left of
   centre even though its text is centred. */
.band.center { text-align: center; }
.band.center .lede { margin-inline: auto; }

/* ---------- see it in action components ---------- */
.see-action-panel {
  margin: 3.5rem auto;
  max-width: min(1180px, 94vw);
  padding: 2rem 2.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-sizing: border-box;
}
.see-action-panel .panel-copy {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
  margin: 0;
  line-height: 1.45;
}
.see-action-panel .panel-copy strong { color: var(--ink); font-weight: 800; }
.btn-action-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s ease;
}
.btn-action-lg:hover {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 768px) {
  .see-action-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1.2rem;
  }
  .see-action-panel .btn-action-lg {
    justify-content: center;
  }
}
.see-action-panel.with-preview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}
.see-action-panel .panel-preview-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
@media (max-width: 820px) {
  .see-action-panel.with-preview {
    grid-template-columns: 1fr;
  }
}

/* ---------- see-it-in-action dedicated page ---------- */
.action-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (max-width: 820px) {
  .action-page-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.action-page-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f2 100%);
  border: 1px solid var(--line);
  border-top-color: rgba(226, 104, 31, .35);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Floating panel: lit top edge (inset highlight) + shadow underneath. */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 1px 2px rgba(29, 31, 36, .06),
    0 14px 28px -14px rgba(29, 31, 36, .24),
    0 40px 70px -50px rgba(226, 104, 31, .30);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.action-page-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 104, 31, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 2px 4px rgba(29, 31, 36, .07),
    0 22px 40px -16px rgba(29, 31, 36, .28),
    0 52px 90px -56px rgba(226, 104, 31, .38);
}
.action-page-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.action-page-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}
.action-page-card:hover .action-page-img-wrap img {
  transform: scale(1.02);
}
.action-page-caption {
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.action-page-caption .caption-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.action-page-caption strong {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 700;
}
.action-page-caption .open-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.action-page-caption .open-link:hover {
  text-decoration: underline;
}
.action-page-caption p {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.4;
  margin: 0;
}
