
/* ============================================================
   Inner pages — Features, Who, How, Pricing, FAQ
   Added when the nav stopped being anchor links on one long page and became
   real pages. Same palette, same flat fills, same voice.
   ============================================================ */

/* the wordmark is a link home on every page now, so it must not look like a link */
a.wordmark { color: var(--ink); text-decoration: none; }
a.wordmark:hover { color: var(--ink); }

/* Help carries the frozen Parts² lockup — the cube mark and the wordmark — instead of typed
   letters. The file is the canonical artwork the product itself renders, copied byte for byte
   from src/assets; nothing here recolours, regenerates or redraws it. Sized by height so the
   wordmark keeps its proportion, and centred against the nav links beside it. */
a.lockup { display: inline-flex; align-items: center; align-self: center; text-decoration: none; }
a.lockup img { display: block; height: 46px; width: auto; }
@media (max-width: 560px) { a.lockup img { height: 38px; } }

/* A mail link in the closing band had no rule of its own, so it rendered in the browser's
   default blue — a colour that is in no part of the frozen palette. */
.reach-us a { color: var(--accent-ink); text-decoration: underline; }
.reach-us a:hover { color: var(--accent); }

/* page header — a shorter hero for a page that is not the front door */
.page-head { max-width: min(880px, 94vw); margin: 0 auto; padding: 3.4rem 1.4rem 1.2rem; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 0.9rem; }
.page-head .lede { max-width: 62ch; }

/* a plain reading column, used by FAQ answers and long copy */
.prose { max-width: min(820px, 94vw); margin: 0 auto; padding: 0 1.4rem; color: var(--ink-2); }
.prose h2 { color: var(--ink); margin-top: 2.4rem; }
.prose p { margin: 0 0 1rem; }

/* feature cards */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem;
  max-width: min(1180px, 94vw); margin: 0 auto; padding: 0 1.4rem 3.4rem;
}
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.3rem 1.4rem 1.5rem; color: var(--ink-2);
}
.feature h3 { color: var(--ink); margin-bottom: 0.45rem; }
.feature ul { margin: 0.7rem 0 0; padding-left: 1.1rem; }
.feature li { margin-bottom: 0.35rem; }
.band.alt .feature { background: var(--paper); }

/* an honest chip for something that is not shipped yet */
.chip {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.14rem 0.5rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-3); background: var(--paper);
  vertical-align: 0.12em;
}
.chip.soon { border-color: var(--accent-soft); background: var(--accent-soft); color: var(--accent-ink); }

/* FAQ — native details, no JavaScript */
.faq { max-width: min(880px, 94vw); margin: 0 auto; padding: 0 1.4rem 3.4rem; }
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.2rem; margin-bottom: 0.7rem;
}
.faq details[open] { border-color: #d8d3c6; }
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.8rem 0 0; color: var(--ink-2); }
.faq details p:last-child { margin-bottom: 0.2rem; }
.faq-group {
  max-width: min(880px, 94vw); margin: 2.4rem auto 0.9rem; padding: 0 1.4rem;
  font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 800;
}

/* a short lead-in above a grid */
.section-lead { max-width: min(1180px, 94vw); margin: 0 auto; padding: 0 1.4rem 1.6rem; }
.section-lead p { max-width: 66ch; color: var(--ink-2); margin: 0; }

/* "read more" link at the end of a home-page band */
.more-link { margin-top: 1.2rem; font-weight: 700; }
.more-link a { color: var(--accent-ink); text-decoration: none; }
.more-link a:hover { text-decoration: underline; }

/* the price line */
.price-line { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 2rem; font-weight: 800; color: var(--ink); }
.price-line span { font-size: 0.95rem; font-weight: 600; color: var(--ink-3); font-family: inherit; }

@media (max-width: 820px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* the shelf grid — a strip of examples, credited once underneath */
.tile-grid {
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  max-width: 1080px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem;
}
.tile {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; line-height: 0;
}
.tile img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: cover; background: #fff;
}
.photo-credits {
  max-width: 1080px; margin: 0.9rem 0 0;
  font-size: 0.72rem; line-height: 1.55; color: var(--ink-3);
}
.photo-credits a { color: var(--ink-3); text-decoration: none; }
.photo-credits a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; } }
@media (max-width: 460px)  { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* photo bands — the same real collections, spread across every page so no page is a wall of text */
.photo-band {
  max-width: min(1180px, 94vw); margin: 0 auto;
  padding: 1.6rem 1.4rem;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.6rem;
}
.photo-band img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
}
/* a band that closes a page sits above the footer with a touch more air */
main > .photo-band:last-child { padding-bottom: 2.6rem; }
@media (max-width: 1000px) { .photo-band { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .photo-band { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; padding-block: 1.1rem; } }

/* Two-photo bands: interior pages carry a pair under the nav and a pair above the footer.
   Six columns with two images leaves four empty cells and reads as a broken grid, so a pair
   gets its own two-column track and a narrower measure. */
.photo-band.pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  gap: 1.1rem;
  padding-block: 2rem;
}
.photo-band.pair img { border-radius: 14px; }
@media (max-width: 700px) {
  .photo-band.pair { max-width: 100%; gap: 0.7rem; padding-inline: 1rem; padding-block: 1.4rem; }
}

/* ============================================================
   Pricing — the plan cards, the limits table, and the "what happens
   at your limit" list. Every value here comes from PLANS in
   server/src/billing.js; the page states no number of its own.
   ============================================================ */
.plan-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem;
  max-width: min(1180px, 94vw); margin: 0 auto; padding: 0 1.4rem 3.4rem;
}
.plan {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.3rem 1.4rem 1.5rem; color: var(--ink-2);
  display: flex; flex-direction: column;
}
.plan-name {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 800; color: var(--ink-3); margin: 0 0 0.5rem;
}
.plan-price {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 2rem; font-weight: 800; color: var(--ink); margin: 0 0 0.35rem;
}
.plan-price span { font-size: 0.9rem; font-weight: 600; color: var(--ink-3); font-family: inherit; }
.plan-for { color: var(--ink); margin: 0 0 0.9rem; font-weight: 600; }
.plan ul { margin: 0; padding-left: 1.05rem; flex-grow: 1; }
.plan li { margin-bottom: 0.35rem; }
.plan li:last-child { margin-bottom: 0; }
.plan-cta { margin: 1.2rem 0 0; }
.plan-cta .cta { display: block; text-align: center; }

/* the limits table — scrolls sideways on a phone instead of squashing */
.plan-scroll { max-width: min(1180px, 94vw); margin: 0 auto; padding: 0 1.4rem; overflow-x: auto; }
.plan-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.92rem; color: var(--ink-2); }
.plan-table caption { text-align: left; caption-side: top; color: var(--ink-3); font-size: 0.84rem; padding: 0 0 0.7rem; }
.plan-table th, .plan-table td { text-align: left; padding: 0.62rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.plan-table thead th { color: var(--ink); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; }
.plan-table tbody th { color: var(--ink); font-weight: 700; }
.plan-table tbody th .fine { display: block; margin-top: 0.2rem; font-weight: 400; }
.plan-note { max-width: min(1180px, 94vw); margin: 0.9rem auto 0; padding: 0 1.4rem; font-size: 0.86rem; color: var(--ink-3); }

/* what happens at a limit — a plain list, because it is a plain answer */
.limit-list { max-width: 76ch; margin: 1.2rem 0 0; padding-left: 1.1rem; color: var(--ink-2); }
.limit-list li { margin-bottom: 0.7rem; }
.limit-list li:last-child { margin-bottom: 0; }
.limit-list strong { color: var(--ink); }

@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .plan-grid { grid-template-columns: 1fr; padding-inline: 1rem; } }
