/* Landing page (server/site/home.ts). Tokens, cards and the plate come from theme.css; header, footer, cards and FAQ from site.css. */
.section { padding: 96px 0; }
.hero + .section { padding-top: 72px; }
.section-title + * { margin-top: 32px; }
.section-title + .section-lead { margin-top: 16px; }
.section-lead + * { margin-top: 36px; }

/* ---------- hero: the pitch, and a build plate of five designs all wearing one name ---------- */
.hero { position: relative; padding: 48px 0 24px; isolation: isolate; }
/* A faint dot field behind the whole hero, like the bed under the plate; it fades out before the next section. */
.hero::before { content: ""; position: absolute; inset: -80px 0 0; z-index: -1; pointer-events: none; background-image: radial-gradient(var(--plate-line) 1.4px, transparent 1.6px); background-size: 24px 24px; background-position: center top; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
/* Who it's for and how much there is, in one pill above the headline. */
.hero-badge { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 5px 16px 5px 5px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; color: var(--muted); }
.hero-badge-tag { flex: none; padding: 5px 12px; border-radius: var(--r-pill); background: var(--lime); color: var(--on-lime); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-badge-text b { color: var(--text); font-weight: 700; }
.hero-accent { display: block; white-space: nowrap; color: var(--lime-ink); }
.hero-alt { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.hero-tools { height: 44px; padding: 0 18px; background: transparent; border-color: var(--line-2); font-size: 15px; font-weight: 650; }
.hero-party { color: var(--text-2); font-size: 15px; font-weight: 600; text-decoration-color: var(--cobalt); text-underline-offset: 3px; }
.hero-party svg { vertical-align: -3px; }
.hero h1 { margin-top: 22px; font-size: clamp(44px, 4.4vw, 68px); line-height: 0.98; letter-spacing: -0.045em; max-width: 11ch; }
.hero-sub { margin-top: 22px; max-width: 44ch; font-size: 19px; line-height: 1.5; color: var(--muted); }
.hero-form { margin-top: 32px; display: flex; gap: 6px; max-width: 540px; padding: 6px; border-radius: 16px; border: 1px solid var(--field-line); background: var(--field); transition: border-color 160ms ease, box-shadow 160ms ease; }
.hero-form input { flex: 1; min-width: 0; border: none; background: transparent; padding: 0 14px; font-size: 19px; font-weight: 600; color: var(--text); }
.hero-form input::placeholder { color: var(--placeholder); font-weight: 500; }
.hero-form input:focus { outline: none; }
.hero-form:focus-within { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgb(43 89 255 / 0.4); }
.hero-form .button { height: 52px; }

/* The plate: designs laid out on the grid, each with the file it downloads as. Hovering one selects it, as in a slicer. */
.hero-plate { position: relative; padding: 24px 16px; border-radius: 24px; border: 1px solid var(--line-2); background-size: 22px 22px; }
.hero-plate::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 80% at 50% 0%, rgb(43 89 255 / 0.16), transparent 60%); pointer-events: none; }
.plate-items { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.plate-item { grid-column: span 2; }
.plate-item:nth-child(4) { grid-column: 2 / span 2; }
.plate-item a { display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 10px; border-radius: 14px; border: 1px solid transparent; text-decoration: none; transition: border-color 180ms ease, background-color 180ms ease; }
.plate-img { display: block; aspect-ratio: 6 / 5; }
.plate-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity 220ms ease, filter 220ms ease; }
.plate-item.is-loading .plate-img img { opacity: 0.5; filter: blur(2px); }
.plate-file { padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; color: var(--text-2); font-size: 11px; letter-spacing: -0.03em; transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .plate-item a:hover { border-color: var(--cobalt); background: rgb(43 89 255 / 0.1); }
  .plate-item a:hover .plate-file { color: var(--lime-ink); }
}
.plate-item a:focus-visible { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 2px var(--focus); }
@media (prefers-reduced-motion: no-preference) {
  .plate-item { animation: land 640ms var(--ease-out) calc(160ms + var(--i) * 70ms) both; }
  .plate-item.landing { animation: land 520ms var(--ease-out) var(--d, 0ms) both; }
  .hero-copy > * { animation: rise 700ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .hero-copy > :nth-child(5) { animation-delay: 240ms; }
  .hero-copy > :nth-child(6) { animation-delay: 300ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- what you get: the files, and the two ways people use them ---------- */
.files-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 20px; align-items: stretch; }
.files-card { display: flex; flex-direction: column; padding: 8px 26px 22px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); }
.files-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 0; }
.file-list li + li { border-top: 1px solid var(--line); }
.file-kind { display: grid; place-items: center; height: 52px; border-radius: 12px; background: var(--lime-wash); border: 1px solid var(--lime-edge); color: var(--lime-ink); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.file-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.file-text code { font-size: 15.5px; color: var(--text); overflow-wrap: anywhere; }
.file-text span { color: var(--muted); }
.files-note { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.uses { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.use { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color 200ms ease, transform 260ms var(--ease-out); }
.use h3 { font-size: 24px; font-stretch: 112%; font-weight: 800; letter-spacing: -0.035em; }
.use p { color: var(--muted); max-width: 46ch; }
.use-go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--cobalt-text); }
.use.for-sale { border-color: rgb(43 89 255 / 0.55); background: linear-gradient(160deg, rgb(43 89 255 / 0.2), rgb(43 89 255 / 0.04) 70%), var(--surface); }
@media (hover: hover) and (pointer: fine) {
  .use:hover { border-color: var(--cobalt); transform: translateY(-3px); }
  .use:hover .use-go svg { transform: translateX(3px); }
}
.use-go svg { transition: transform 200ms var(--ease-out); }

/* ---------- from the message to the printer: three steps on one strip ---------- */
.how-card { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 20px; border: 1px solid var(--line); background: var(--surface); counter-reset: how; overflow: hidden; }
.how-card li { display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 30px; counter-increment: how; }
.how-card li + li { border-left: 1px solid var(--line); }
.how-img { display: block; aspect-ratio: 3 / 2; margin-bottom: 14px; border-radius: var(--r-well); overflow: hidden; background-color: var(--bg-2); background-image: var(--plate-grid); background-size: var(--plate-pitch) var(--plate-pitch); }
.how-img img { width: 100%; height: 100%; object-fit: contain; }
.how-img.photo img { object-fit: cover; }
.how-card h3 { padding: 0 18px; font-size: 22px; font-stretch: 110%; font-weight: 800; letter-spacing: -0.03em; display: flex; align-items: center; gap: 12px; }
.how-card h3::before { content: counter(how); display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--cobalt); color: var(--cobalt-text); font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.how-card p { padding: 0 18px; color: var(--muted); max-width: 40ch; }

/* ---------- made for the printer: six facts in a hairline grid ---------- */
.section-lead a { color: var(--text); font-weight: 650; text-decoration-color: var(--cobalt); text-underline-offset: 3px; }
.ready-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: 20px; border: 1px solid var(--line); background: var(--line); overflow: hidden; }
.ready-item { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 28px; background: var(--surface); }
.ready-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 6px; border-radius: var(--r-well); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--cobalt-text); }
.ready-item h3 { font-size: 19px; font-stretch: 108%; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.ready-item p { color: var(--muted); font-size: 15.5px; max-width: 42ch; }
.ready-badges { margin-top: 4px; padding-top: 4px; }

/* ---------- categories: two big tiles, then the rest ---------- */
.aisle-rack { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.aisle-card { grid-column: span 2; }
.aisle-card.big { grid-column: span 3; }
.aisle-card .tag { display: flex; flex-direction: column; height: 100%; text-decoration: none; transition: border-color 200ms ease, transform 260ms var(--ease-out); }
.aisle-img { display: grid; place-items: center; aspect-ratio: 6 / 5; margin: 6px 6px 0; padding: 4% 8%; border-radius: var(--r-well); overflow: hidden; background-color: var(--bg-2); background-image: var(--plate-grid); background-size: var(--plate-pitch) var(--plate-pitch); background-position: center; }
.aisle-card.big .aisle-img { aspect-ratio: 16 / 10; }
.aisle-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 500ms var(--ease-out); }
.aisle-img.photo { padding: 0; }
.aisle-img.photo img { object-fit: cover; }
.aisle-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.aisle-body h3 { font-size: 22px; font-stretch: 112%; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.aisle-body > span { color: var(--muted); font-size: 15px; }
.aisle-body .aisle-count { margin-top: 2px; color: var(--cobalt-text); font-size: 12.5px; }
@media (hover: hover) and (pointer: fine) {
  .aisle-card:hover .tag { border-color: rgb(43 89 255 / 0.7); transform: translateY(-3px); }
  .aisle-card:hover .aisle-img img { transform: scale(1.08); }
}
.see-all { margin-top: 32px; }

/* ---------- just added: the newest design big, three cards, and a tile for the rest ---------- */
.new-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 34px; align-items: stretch; }
.new-grid > div { display: flex; }
.new-grid > div > .hang { flex: 1; }
.new-lead { grid-column: span 2; grid-row: span 2; }
/* The picture fills whatever height the two rows beside it give the tile. */
.new-lead .product-img { position: relative; aspect-ratio: auto; flex: 1; min-height: 300px; padding: 0; }
.new-lead .product-img img { position: absolute; inset: 4% 6%; width: 88%; height: 92%; object-fit: contain; }
.new-lead .product-img.photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.new-lead .product-body { flex: none; }
.new-lead .product-body h3 { font-size: 24px; }
.new-all { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 24px; border-radius: var(--r-card); background-color: var(--cobalt); background-image: linear-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px); background-size: 18px 18px; color: #fff; text-decoration: none; transition: transform 260ms var(--ease-out), background-color 160ms ease; }
.new-all .sign { font-size: 30px; line-height: 1; }
.new-all-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.new-all-go svg { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .new-all:hover { transform: translateY(-3px); background-color: var(--cobalt-press); } .new-all:hover .new-all-go svg { transform: translateX(3px); } }
.new-all:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* ---------- bulk: a class list beside the files it turns into ---------- */
.bulk-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.bulk-copy > p { margin-top: 16px; max-width: 42ch; font-size: 18px; color: var(--muted); }
.list-hang { margin-top: 30px; max-width: 320px; }
.class-list { padding: 22px 24px 18px; }
.class-list-head { font-weight: 700; font-size: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.class-list ol { margin: 10px 0 0; padding-left: 1.8em; font-size: 18px; font-weight: 600; line-height: 1.75; font-variant-numeric: tabular-nums; }
.class-list li::marker { color: var(--muted); font-family: var(--mono); font-weight: 400; font-size: 13px; }
.bulk-rack { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bulk-tag { display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 10px; }
.bulk-tag img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 8px; background-color: var(--bg-2); background-image: var(--plate-grid); background-size: 14px 14px; }
.bulk-tag span { padding: 0 6px; font-size: 12px; color: var(--lime-ink); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- channels: photos ---------- */
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.channel.wide { grid-column: span 2; }
.channel-tag { display: flex; flex-direction: column; height: 100%; }
.channel.wide .channel-tag { flex-direction: row; align-items: stretch; }
.channel-img { display: block; aspect-ratio: 3 / 2; margin: 6px 6px 0; border-radius: var(--r-well); overflow: hidden; }
.channel.wide .channel-img { flex: 1.3; aspect-ratio: auto; min-height: 300px; margin: 6px 0 6px 6px; }
.channel-img img { width: 100%; height: 100%; object-fit: cover; }
.channel-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 20px 24px 24px; }
.channel-copy h3 { font-size: 22px; font-stretch: 110%; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.channel-copy p { color: var(--muted); }

/* ---------- pricing: four cards, the Seller plan in cobalt ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan-hang { display: flex; }
.plan { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 26px 22px 22px; border-radius: 20px; }
.plan.featured { background-color: var(--cobalt); background-image: linear-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.07) 1px, transparent 1px); background-size: 18px 18px; color: #fff; }
.plan-use { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.plan.featured .plan-use { color: #fff; }
.plan h3 { font-size: 22px; font-stretch: 110%; font-weight: 800; letter-spacing: -0.03em; }
.plan-price { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan.featured .plan-price { color: #fff; }
.plan-price .sign { display: inline-block; margin-right: 6px; font-size: 52px; color: var(--text); vertical-align: -0.1em; font-variant-numeric: tabular-nums; letter-spacing: -0.05em; }
.plan.featured .plan-price .sign { color: #fff; }
.plan-note { color: var(--text-2); }
.plan.featured .plan-note { color: #fff; }
.plan ul { list-style: none; padding: 16px 0 0; margin: 4px 0 14px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.plan.featured ul { border-top-color: rgb(255 255 255 / 0.3); }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.plan.featured li { color: #fff; }
.plan li svg { flex: none; margin-top: 3px; color: var(--cobalt-text); }
.plan.featured li svg { color: var(--lime); }
.plan .button { margin-top: auto; }
.single-file { margin-top: 30px; font-size: 17px; color: var(--muted); }
.single-file b { color: var(--text); }
.single-file a { color: var(--text); font-weight: 650; text-decoration-color: var(--cobalt); }
.pricing .rights-note { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 72ch; }
/* The licence in short: personal use beside selling, and the one rule for everyone. */
.licence-card { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; max-width: 1100px; }
.licence-col { display: flex; flex-direction: column; gap: 8px; padding: 22px 26px 20px; }
.licence-col.for-sale { border-left: 1px solid var(--line-2); background: linear-gradient(160deg, rgb(43 89 255 / 0.16), rgb(43 89 255 / 0.03) 70%); }
.licence-col.for-sale .plan-use { color: var(--cobalt-text); }
.licence-col h3 { font-size: 18px; font-weight: 750; letter-spacing: -0.01em; }
.licence-col ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.licence-col li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.licence-col li svg { flex: none; margin-top: 3px; color: var(--cobalt-text); }
.licence-rule { grid-column: 1 / -1; padding: 14px 26px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 15px; }
.licence-rule a { color: var(--text); font-weight: 650; text-decoration-color: var(--cobalt); }
.fair-use { margin-top: 34px; padding: 26px 28px; border: 1px dashed var(--line-2); border-radius: 20px; max-width: 1100px; }
.fair-use h3 { font-size: 20px; font-stretch: 110%; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
/* The free file: one wide card above the four passes and plans. */
.hero-free { margin-top: 14px; font-size: 16px; font-weight: 600; color: var(--lime-ink); }
.free-hang { display: flex; margin-bottom: 16px; }
.free-plan { flex: 1; display: flex; flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; padding: 22px 24px; border-color: var(--lime-edge); background: var(--lime-wash); }
.free-plan h3 { margin: 0; font-size: 26px; }
.free-plan ul { flex: 1; display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; border: none; }
.free-plan li { align-items: center; color: var(--text-2); }
.free-plan li svg { margin-top: 0; color: var(--lime-ink); }
.free-plan .button { margin-top: 0; }
@media (max-width: 640px) { .free-plan { flex-direction: column; align-items: stretch; gap: 14px; } .free-plan ul { flex-direction: column; gap: 8px; } }
.fair-use dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; margin: 0; }
.fair-use dt { font-weight: 700; margin-bottom: 4px; }
.fair-use dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 1180px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fair-use dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- blog teaser ---------- */
.teaser-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.teaser-lead .tag { display: flex; flex-direction: column; text-decoration: none; transition: border-color 200ms ease, transform 260ms var(--ease-out); }
.teaser-img { display: block; aspect-ratio: 15 / 8; margin: 6px 6px 0; border-radius: var(--r-well); overflow: hidden; background: var(--bg-2); }
.teaser-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 400ms var(--ease-out); }
.teaser-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 24px 24px; }
.teaser-body h3 { font-size: 24px; font-stretch: 108%; font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.teaser-body > span:not(.meta) { color: var(--muted); }
.teaser-list { list-style: none; margin: 0; padding: 4px 24px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.teaser-list li + li { border-top: 1px solid var(--line); }
.teaser-list a:not(.button) { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; text-decoration: none; }
.teaser-list h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.teaser-list a:not(.button):hover h3 { text-decoration: underline; text-decoration-color: var(--cobalt); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.teaser-all { padding: 18px 0 20px; }
@media (hover: hover) and (pointer: fine) { .teaser-lead:hover .tag { border-color: rgb(43 89 255 / 0.7); transform: translateY(-3px); } .teaser-lead:hover .teaser-img img { transform: scale(1.06); } }

/* ---------- FAQ: heading beside the answers ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.faq-grid .section-title + * { margin-top: 0; }

/* ---------- final call to action: the cobalt panel ---------- */
.final { padding-top: 24px; }
.final-card { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 64px 56px 56px; border-radius: 28px; background-color: var(--cobalt); background-image: linear-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px); background-size: 24px 24px; background-position: center; color: #fff; }
.final-card h2 { font-size: clamp(36px, 4.6vw, 68px); max-width: 16ch; letter-spacing: -0.045em; }
.final-card p { font-size: 19px; }
.final-card .button { margin-top: 10px; }

/* ---------- reveal on scroll: a short rise, never a slide from the side ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- small screens: single column, the plate scrolls sideways ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { max-width: 14ch; }
  .files-grid, .bulk-grid, .faq-grid, .teaser-grid { grid-template-columns: 1fr; gap: 24px; }
  .uses { grid-template-rows: none; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fair-use dl { grid-template-columns: 1fr; }
  .ready-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-plate { margin: 0 -24px; padding: 18px 0; border-radius: 0; border-left: 0; border-right: 0; }
  .plate-items { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; gap: 6px; padding: 0 18px; scrollbar-width: none; }
  .plate-item { flex: 0 0 min(220px, 58vw); scroll-snap-align: start; }
  .how-card { grid-template-columns: 1fr; }
  .how-card li + li { border-left: none; border-top: 1px solid var(--line); }
  .aisle-rack { grid-template-columns: 1fr 1fr; }
  .new-grid { grid-template-columns: 1fr 1fr; }
  .new-lead { grid-row: auto; }
  .new-lead .product-img { min-height: 240px; }
  .aisle-card, .aisle-card.big { grid-column: auto; }
  .aisle-card.big:first-child { grid-column: 1 / -1; }
  .channel-grid { grid-template-columns: 1fr; }
  .channel.wide { grid-column: auto; }
  .channel.wide .channel-tag { flex-direction: column; }
  .channel.wide .channel-img { margin: 6px 6px 0; aspect-ratio: 3 / 2; min-height: 0; flex: none; }
  .bulk-rack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 56px); }
  .hero-sub { font-size: 17px; }
  .hero-form { flex-direction: column; }
  .hero-form input { height: 50px; }
  .hero-form .button { width: 100%; }
  .hero-badge { gap: 8px; padding-right: 12px; font-size: 13px; }
  .hero-badge-tag { padding: 4px 9px; font-size: 11px; }
  .hero-alt .hero-tools { width: 100%; }
  .hero-plate { margin: 0 -16px; }
  .plate-items { padding: 0 16px; scroll-padding-inline: 16px; }
  .file-list li { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .file-kind { height: 44px; font-size: 12px; }
  .file-text code { font-size: 13.5px; }
  .files-card { padding: 4px 18px 8px; }
  .use { padding: 22px 20px; }
  .how-img { aspect-ratio: 16 / 9; }
  .aisle-rack { grid-template-columns: 1fr 1fr; gap: 10px; }
  .aisle-card.big { grid-column: 1 / -1; }
  .aisle-card:not(.big) .aisle-body { padding: 12px 12px 14px; }
  .aisle-card:not(.big) .aisle-body h3 { font-size: 17px; }
  .aisle-card:not(.big) .aisle-body > span:not(.aisle-count) { display: none; }
  .new-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .new-all .sign { font-size: 24px; }
  .final-card { padding: 44px 24px 32px; border-radius: 22px; }
  .plans { grid-template-columns: 1fr; }
  .plan-price .sign { font-size: 46px; }
  .ready-grid { grid-template-columns: 1fr; }
  .ready-item { padding: 22px 20px 24px; }
  .licence-card { grid-template-columns: 1fr; }
  .licence-col { padding: 20px; }
  .licence-col.for-sale { border-left: 0; border-top: 1px solid var(--line-2); }
  .licence-rule { padding: 14px 20px; }
}
@media (max-width: 380px) { .hero-accent { white-space: normal; } }

/* The sale's terms above the pricing cards (server/site/sale.ts), and the old price struck through on a card. */
.sale-note { margin: 32px 0 36px; padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 20px; background-color: var(--bf-ground); background-image: radial-gradient(70% 140% at 100% 0%, rgb(43 89 255 / 0.22), transparent 60%); }
.sale-note[hidden] { display: none; }
.sale-note h3 { margin: 0 0 6px; font-size: 20px; font-stretch: 110%; font-weight: 800; letter-spacing: -0.02em; }
.sale-note p { margin: 0 0 10px; color: var(--text-2); }
.sale-note ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); }
.sale-note b { color: var(--text); }
.sale-was { margin-right: 6px; color: var(--muted); font-size: 22px; font-weight: 600; }
.plan.featured .sale-was { color: rgb(255 255 255 / 0.72); }

/* ---------- Black Friday hero (server/site/sale.ts saleHomeHero): in place of the hero while the sale is on ---------- */
.bf-hero + .section { padding-top: 72px; }
.bf-hero { position: relative; padding: 56px 0 64px; background: var(--bf-ground); border-bottom: 1px solid var(--line-2); isolation: isolate; overflow: hidden; }
/* The bed's dot field, and a cobalt glow over the plate, as on the usual hero but on night. */
.bf-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(rgb(110 140 255 / 0.11) 1.4px, transparent 1.6px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.bf-hero::after { content: ""; position: absolute; inset: -20% -10% auto 35%; height: 120%; z-index: -1; pointer-events: none; background: radial-gradient(50% 50% at 50% 40%, rgb(43 89 255 / 0.22), transparent 70%); }
.bf-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.bf-hero-grid > * { min-width: 0; }
.bf-hero h1 { margin-top: 22px; font-size: clamp(44px, 4.6vw, 72px); line-height: 0.98; letter-spacing: -0.045em; max-width: 12ch; }
.bf-accent { white-space: nowrap; }
.bf-price { display: flex; align-items: flex-end; gap: 14px; margin-top: 26px; }
.bf-price s { align-self: center; color: var(--muted); font-size: 26px; font-weight: 500; text-decoration-thickness: 2px; }
.bf-price .sign { font-size: clamp(72px, 7vw, 104px); line-height: 0.8; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.bf-price-term { padding-bottom: 4px; color: var(--text-2); font-size: 16px; font-weight: 600; line-height: 1.3; }
.bf-sub { margin-top: 22px; max-width: 46ch; font-size: 18px; line-height: 1.5; color: var(--muted); }
.bf-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.bf-more { color: var(--text-2); font-size: 16px; font-weight: 600; text-decoration-color: var(--cobalt); text-underline-offset: 4px; }
.bf-fine { margin-top: 18px; max-width: 52ch; color: var(--muted); font-size: 14px; }

/* The plate: the price sheet as a print summary, and three real designs under it. */
.bf-plate { position: relative; padding: 22px; border-radius: 24px; border: 1px solid var(--line-2); background-size: 22px 22px; }
.bf-sheet { border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--lift-shadow); overflow: hidden; }
.bf-sheet-head { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: 0.02em; }
.bf-sheet-head span:first-child { color: var(--lime-ink); }
.bf-sheet ul { list-style: none; margin: 0; padding: 4px 0; }
.bf-sheet li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 18px; }
.bf-sheet li + li { border-top: 1px solid var(--line); }
.bf-sheet li:first-child { background: var(--cobalt-wash); }
.bf-row-name { display: flex; flex-direction: column; min-width: 0; font-weight: 700; font-size: 16px; }
.bf-row-name small { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.bf-row-price { flex: none; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bf-row-price s { color: var(--muted); font-weight: 400; margin-right: 4px; }
.bf-row-price b { color: var(--text); font-size: 18px; font-weight: 600; }
.bf-sheet li.bf-usual .bf-row-name, .bf-sheet li.bf-usual b { color: var(--muted); font-weight: 500; }
.bf-sheet-foot { margin: 0; padding: 11px 18px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; }
.bf-designs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bf-designs li { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bf-designs img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: contain; border-radius: var(--r-well); border: 1px solid var(--line); background: var(--bg-2); }
.bf-designs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.bf-designs-note { margin: 10px 0 0; color: var(--text-2); font-size: 14px; }

/* "Black Friday" on the pricing cards the sale touches: a night tag on the card's top edge. */
.plan-hang { position: relative; }
.bf-ribbon { position: absolute; top: -11px; left: 20px; z-index: 1; padding: 4px 10px; border-radius: var(--r-pill); background: var(--bf-ground); color: var(--text); border: 1px solid var(--line-2); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; }
html[data-sale] .plans { padding-top: 11px; }

@media (prefers-reduced-motion: no-preference) {
  .bf-copy > * { animation: rise 700ms var(--ease-out) both; }
  .bf-copy > :nth-child(2) { animation-delay: 60ms; }
  .bf-copy > :nth-child(3) { animation-delay: 120ms; }
  .bf-copy > :nth-child(4) { animation-delay: 180ms; }
  .bf-copy > :nth-child(5) { animation-delay: 240ms; }
  .bf-copy > :nth-child(6) { animation-delay: 300ms; }
}
@media (max-width: 1080px) {
  .bf-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .bf-hero h1 { max-width: 14ch; }
}
@media (max-width: 640px) {
  .bf-hero { padding: 32px 0 48px; }
  .bf-hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .bf-price .sign { font-size: 76px; }
  .bf-price s { font-size: 22px; }
  .bf-sub { font-size: 17px; }
  .bf-actions .button { width: 100%; }
  .bf-plate { margin: 0 -16px; padding: 16px; border-radius: 0; border-left: 0; border-right: 0; }
  .bf-sheet li { padding: 10px 14px; }
  .bf-sheet-head, .bf-sheet-foot { padding-inline: 14px; }
  .bf-row-name { font-size: 15px; }
}
@media (max-width: 380px) { .bf-accent { white-space: normal; } }
