/* Home page styles. */

.hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 800px 400px at 15% -10%, var(--accent-bg), transparent 70%),
    var(--surface);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: center; }
.hero-copy { min-width: 0; }

.hero-art { position: relative; height: 300px; }
.hero-art .sheet {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 3px; box-shadow: var(--shadow-md);
}
.hero-art .sheet-back  { inset: 26px 60px 44px 0;  transform: rotate(-6deg); opacity: .55; }
.hero-art .sheet-mid   { inset: 18px 30px 30px 24px; transform: rotate(-2.5deg); opacity: .8; }
.hero-art .sheet-front { inset: 4px 0 8px 52px; transform: rotate(2deg); padding: 14px 13px; display: flex; flex-direction: column; }
.hero-art .sheet-title {
  font-family: var(--serif); font-size: 15px; color: #16150f; margin-bottom: 9px; flex: 0 0 auto;
}
.hero-art .sheet-title b { font-weight: 400; color: #a8a294; }
.hero-art .sheet-grid {
  flex: 1 1 auto; display: grid; grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 1fr; border-top: 1px solid #e0dccf; border-left: 1px solid #e0dccf;
}
.hero-art .sheet-grid i { border-right: 1px solid #e0dccf; border-bottom: 1px solid #e0dccf; }
.hero-art .sheet-grid i.we { background: #f4f1e8; }
.hero-art .sheet-grid i.mark { background: var(--accent); opacity: .85; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-art { display: none; }
}

.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); max-width: 15ch; margin-bottom: .35em; }
.hero .lede { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 56ch; margin-bottom: 1.6em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .btn { padding: 11px 20px; font-size: 15px; }
.hero-points { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 34px; font-size: 13.5px; color: var(--muted); }
.hero-points span { display: flex; align-items: center; gap: 7px; }
.hero-points .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }

.section { padding: 52px 0 8px; }
.section-head { margin-bottom: 22px; max-width: 60ch; }
.section-head h2 { margin-bottom: .25em; }
.section-head p { color: var(--muted); margin: 0; font-size: 14.5px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }

.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}
.card { position: relative; }
.card:has(.card-link:hover), .card:has(.card-link:focus-visible) {
  border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.card:has(.card-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Stretched link: the title covers the card, so the whole tile opens the
   printable's page — without nesting anchors. */
.card-link { text-decoration: none; color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card-link:hover { color: inherit; }
.card.is-soon { opacity: .72; }

.card-art {
  height: 116px; background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.card:has(.card-link:hover) .card-art { color: var(--accent); }
.card-art svg { width: 108px; height: 76px; }
.card-art .stroke { fill: none; stroke: currentColor; stroke-width: 1.4; }
.card-art .fill { fill: currentColor; opacity: .16; stroke: none; }

.card-body { padding: 15px 17px 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.card-title h3 { margin: 0; font-size: 1.08rem; }
.card p { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.card ul { margin: 0; padding: 0; list-style: none; font-size: 12.8px; color: var(--ink-soft); }
.card ul li { padding-left: 15px; position: relative; margin-bottom: 3px; line-height: 1.45; }
.card ul li::before {
  content: ""; position: absolute; left: 3px; top: .55em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.card-go {
  margin-top: auto; padding-top: 12px; font-size: 13.5px; font-weight: 600;
  color: var(--accent-ink); text-decoration: none;
  position: relative; z-index: 1; align-self: flex-start;
}
.card-go:hover { text-decoration: underline; text-underline-offset: 2px; }

.compare { margin: 56px 0 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.compare table { border-collapse: collapse; width: 100%; font-size: 14px; }
.compare th, .compare td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.compare thead th { background: var(--surface-2); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.compare td:first-child { color: var(--ink-soft); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--ok); font-weight: 600; }
.compare .no { color: var(--muted); }
@media (prefers-color-scheme: dark) { .compare .yes { color: #6ee7a8; } }

.faq { margin-top: 52px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 40px; }
.faq h3 { font-size: 1rem; margin-bottom: .3em; }
.faq p { font-size: 13.8px; color: var(--muted); }

@media (max-width: 700px) {
  .hero { padding: 46px 0 34px; }
  .compare { overflow-x: auto; }
}

/* --- Landing pages -------------------------------------------------------- */
.lp { max-width: 780px; padding-top: 34px; padding-bottom: 20px; }
/* Category pages reuse the landing-page header block but need the full grid
   width — 780px is a reading column, not a place to lay out cards. */
.lp-wide { max-width: 1120px; }

/* A heading that happens to be a link: it should read as the heading, and
   only announce itself on hover. Used by the catalogue index's category
   headings. */
.section-head h2 a.plain { color: inherit; text-decoration: none; }
.section-head h2 a.plain:hover { color: var(--accent-ink); text-decoration: underline;
  text-underline-offset: 3px; }

.lp-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.lp-crumbs a { color: var(--muted); text-decoration: none; }
.lp-crumbs a:hover { color: var(--ink-soft); text-decoration: underline; }
.lp-crumbs span { margin: 0 6px; opacity: .5; }

.lp h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); max-width: 20ch; margin-bottom: .3em; }
.lp-intro { font-size: 1.06rem; color: var(--ink-soft); max-width: 62ch; }

.lp-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 26px 0 8px; }
.lp-cta .btn { padding: 11px 22px; font-size: 15px; }
.lp-free { font-size: 13px; color: var(--muted); }
.lp-cta-end { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }

.lp-cols {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 34px; margin-top: 40px;
}
.lp h2 { font-size: 1.22rem; margin-bottom: .55em; }
.lp h3 { font-size: 1rem; margin-bottom: .25em; }
.lp p { color: var(--ink-soft); font-size: 14.6px; line-height: 1.6; }

.lp-points { margin: 0; padding: 0; list-style: none; }
.lp-points li {
  position: relative; padding-left: 18px; margin-bottom: 9px;
  font-size: 14.6px; color: var(--ink-soft); line-height: 1.55;
}
.lp-points li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

.lp-specs { border-collapse: collapse; width: 100%; font-size: 14px; }
.lp-specs th, .lp-specs td { padding: 7px 0; border-bottom: 1px solid var(--line-soft); text-align: left; }
.lp-specs th { font-weight: 400; color: var(--muted); }
.lp-specs td { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

.lp-print, .lp-faq, .lp-related { margin-top: 40px; }
.lp-print p { max-width: 66ch; }
.lp-faq > div { margin-bottom: 18px; max-width: 66ch; }

.lp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-links a {
  font-size: 13.5px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); text-decoration: none;
}
.lp-links a:hover { border-color: var(--accent); color: var(--accent-ink); }

@media (max-width: 720px) {
  .lp-cols { grid-template-columns: 1fr; gap: 26px; }
}

/* Landing page hero: copy beside a real sheet. */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
.lp-hero-copy h1 { margin-top: 0; }
.lp-shot { margin: 4px 0 0; }
.lp-shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 4px;
  box-shadow: var(--shadow-md); background: #fff;
}
.lp-shot figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }
@media (max-width: 720px) {
  .lp-hero { grid-template-columns: 1fr; gap: 26px; }
  .lp-shot { max-width: 260px; margin: 0 auto; }
}

/* Category pages: the "other categories" row at the foot of each one. */
.cat-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.cat-links a {
  display: inline-block; padding: 7px 13px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; color: var(--ink-soft); text-decoration: none;
  background: var(--surface);
}
.cat-links a:hover { border-color: var(--accent); color: var(--accent-ink); }

/* "and N more" closes the list of examples on a home-page category card. */
.card ul li.more { color: var(--muted); font-style: italic; }
.card ul li.more::before { content: none; }

/* The buy area on /pro/, rendered by assets/js/pro.js. */
#pro-cta .lp-cta { margin: 18px 0 8px; }
.pro-say { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.pro-say:empty { display: none; }
.pro-say-ok { color: var(--accent-ink); }
.pro-say-warn { color: #a3341f; }
