/* Exercise Images: white paper, black ink, one cobalt accent. The drawings are the picture; everything else stays out of their way.
   System font, no web fonts, no framework. Motion only with prefers-reduced-motion: no-preference. */

:root {
  --paper: #FAFAF8;
  --paper-2: #F1F1EE;
  --white: #fff;
  --ink: #111214;
  --ink-2: #44474D;
  --muted: #7D8189;
  --line: #E5E5E1;
  --accent: #2450E6;
  --accent-ink: #1A3BB0;
  --accent-soft: #EAF0FF;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(17, 18, 20, .05), 0 16px 44px -20px rgba(17, 18, 20, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
/* The hidden attribute always wins, whatever a component's display says. */
[hidden] { display: none !important; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.03em; line-height: 1.06; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 10px; z-index: 60; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.fine { font-size: 14.5px; color: var(--muted); }
.lead { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.45; color: var(--ink-2); margin: 22px 0 0; max-width: 36em; text-wrap: pretty; }
.lead strong { color: var(--ink); font-weight: 650; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 650; letter-spacing: -.035em; font-size: 21px; white-space: nowrap; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo b { font-weight: 650; color: var(--accent); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(250, 250, 248, .86); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.top .logo { margin-right: auto; }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15.5px; font-weight: 550; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(17, 18, 20, .05); color: var(--ink); }
.nav a[aria-current] { color: var(--ink); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 760px) {
  .top-in { gap: 6px; height: 58px; }
  .logo { font-size: 18px; gap: 8px; }
  .logo-mark { width: 28px; height: 28px; }
  .nav { margin-left: 12px; }
  .nav a { font-size: 14.5px; padding: 7px 8px; }
  .top .btn-buy span { display: none; }
}
@media (max-width: 480px) { .nav a[href="/licence"] { display: none; } .top-in { gap: 4px; } .logo { font-size: 16px; gap: 6px; } .logo-mark { width: 26px; height: 26px; } .nav { margin-left: 12px; } .nav a { padding: 7px 6px; font-size: 14px; } .top .btn-small { padding: 0 14px; margin-left: 2px; } }
@media (max-width: 400px) { .nav { margin-left: 8px; } .top .btn-small { padding: 0 11px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--white); font: 600 16.5px var(--font); letter-spacing: -.01em; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s var(--ease), background .15s; }
.btn:hover { transform: translateY(-1px); background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--white); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.from { margin: 20px 0 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.from a { color: var(--accent); text-decoration: none; margin-left: 4px; }
.hero .actions { margin-top: 22px; }
.hero .facts { margin-top: 26px; }
/* A laptop's short screen: the heading gives way so the price and the buttons stay in the first screen. */
@media (min-width: 900px) and (max-height: 960px) { .hero { padding-top: clamp(24px, 4vh, 48px); } .hero h1 { font-size: clamp(42px, 4.9vw, 66px); } .hero .lead { margin-top: 16px; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec + .sec { padding-top: 0; }
.sec-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-white + .sec { padding-top: clamp(56px, 8vw, 104px); }
.sec-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 760px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.045em; }
.sec-head p { color: var(--ink-2); font-size: clamp(17px, 1.6vw, 19.5px); margin: 14px 0 0; }
.sec-head .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 16px; color: var(--accent); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(56px, 8vw, 104px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); letter-spacing: -.05em; line-height: .98; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; }
.facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 550; color: var(--ink-2); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); padding: 7px 14px 7px 10px; border-radius: 999px; }
.facts li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 5 9l5-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 14px); }
.mosaic li { background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--line); aspect-ratio: 1; overflow: hidden; }
.mosaic li:nth-child(2), .mosaic li:nth-child(4), .mosaic li:nth-child(9) { background: var(--accent-soft); border-color: transparent; }
.mosaic a { display: block; height: 100%; }
.mosaic img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .3s var(--ease); }
.mosaic a:hover img { transform: scale(1.04); }
@media (max-width: 899px) { .hero-in { grid-template-columns: 1fr; } .mosaic { max-width: 560px; } }

/* ---------- drawings: the tile every grid uses ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.tile a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.tile a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8%; background: var(--white); }
.tile span { padding: 4px 14px 14px; font-size: 14.5px; font-weight: 550; line-height: 1.3; color: var(--ink); }
.tile small { display: block; color: var(--muted); font-weight: 450; font-size: 13px; margin-top: 2px; }
.tile.guide-tile a { border: 1.5px solid var(--accent); }
.tile .badge { align-self: flex-start; margin: 10px 0 0 12px; font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tile span { padding: 2px 10px 12px; font-size: 14px; } }

/* ---------- cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); padding: 28px 28px 26px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.sec-white .card { background: var(--paper); }
.card h3 { font-size: 23px; letter-spacing: -.03em; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 16.5px; margin: 0 0 18px; }
.card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) { .cards, .cards-2 { grid-template-columns: 1fr; } }

/* ---------- hubs ---------- */
.hubs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.hub a { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--line); padding: 12px 10px 16px; height: 100%; transition: transform .2s var(--ease), box-shadow .2s; }
.sec-white .hub a { background: var(--paper); }
.hub a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hub img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 4%; }
.hub b { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.hub small { color: var(--muted); font-size: 13.5px; }
@media (max-width: 980px) { .hubs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .hubs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ---------- prices ---------- */
.price { position: relative; }
.price .amount { font-size: clamp(44px, 5vw, 60px); font-weight: 650; letter-spacing: -.05em; line-height: 1; margin: 6px 0 4px; }
.price .amount small { font-size: 18px; letter-spacing: -.01em; color: var(--muted); font-weight: 500; margin-left: 4px; }
.price .other { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.price .read { font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; margin: 0 0 20px; }
.price-note { margin-top: 18px; }

/* ---------- faq ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 0; font-size: clamp(18px, 1.9vw, 21px); font-weight: 600; letter-spacing: -.02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > p { padding: 0 0 20px; color: var(--ink-2); max-width: 44em; margin: 0; }

/* ---------- page head ---------- */
.page-head { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(24px, 3vw, 36px); }
.page-head h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -.045em; text-wrap: balance; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- browse ---------- */
.filters { position: sticky; top: 66px; z-index: 20; background: rgba(250, 250, 248, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 0 0 12px; margin-bottom: 6px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.filters input, .filters select { width: 100%; min-height: 48px; font: 500 16px var(--font); color: var(--ink); background: var(--white); border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); padding: 0 14px; -webkit-appearance: none; appearance: none; }
.filters select { background: var(--white) no-repeat right 14px center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2344474D' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); padding-right: 34px; }
.filters input:focus, .filters select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.filters label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.count { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.more-row { display: flex; justify-content: center; margin-top: 28px; }
.empty { padding: 40px 0; color: var(--ink-2); }
@media (max-width: 760px) { .filters { top: 58px; } }

.hub-part { margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- an exercise ---------- */
.ex { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(48px, 6vw, 80px); }
.ex-still { margin: 0; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.ex-still img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 4%; }
.ex h1 { font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.045em; }
.ex-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 24px 0; font-size: 16.5px; }
.ex-facts dt { color: var(--muted); }
.ex-facts dd { margin: 0; color: var(--ink); }
.ex-facts a { text-decoration: none; color: var(--accent); }
.ex h2 { font-size: 20px; letter-spacing: -.02em; margin: 26px 0 10px; }
.ex ol, .ex ul { padding-left: 1.2em; color: var(--ink-2); margin: 0; }
.ex li { margin: 4px 0; }
@media (max-width: 860px) { .ex { grid-template-columns: 1fr; } }

/* ---------- use it: the line under every drawing ---------- */
.use { background: var(--accent-soft); border-radius: var(--radius); padding: 26px 28px; margin: 28px 0 0; }
.use h2, .use h3 { font-size: 21px; letter-spacing: -.025em; margin: 0 0 8px; }
.use p { color: var(--ink-2); font-size: 16.5px; margin: 0 0 16px; }
.use .actions { margin-top: 0; }
.use .btn-ghost { background: var(--white); box-shadow: none; }

/* ---------- a guide (the article server/web/exercise-pages.ts writes) ---------- */
.guide { max-width: 820px; margin: 0 auto; padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.guide h1 { font-size: clamp(38px, 5.2vw, 60px); letter-spacing: -.045em; }
.guide-facts { color: var(--accent-ink); font-weight: 600; font-size: 15.5px; margin: 14px 0 0; }
.guide-intro { margin-top: 16px; }
.guide-still { margin: 32px 0; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.guide-still img { width: 100%; height: auto; padding: 3%; }
.guide section { margin: 40px 0 0; }
.guide h2 { font-size: clamp(25px, 3vw, 32px); letter-spacing: -.035em; margin-bottom: 14px; }
.guide ul, .guide ol { padding-left: 1.25em; color: var(--ink-2); }
.guide li { margin: 8px 0; }
.guide-steps li::marker { color: var(--accent); font-weight: 650; }
.guide-breathing { color: var(--ink-2); }
.guide dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; color: var(--ink-2); }
.guide dt { color: var(--muted); }
.guide dd { margin: 0; }
.guide-related, .guide-cards { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guide-related a, .guide-cards a { display: flex; flex-direction: column; text-decoration: none; background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; height: 100%; }
.guide-related img, .guide-cards img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8%; }
.guide-related span, .guide-cards span { padding: 0 12px 12px; font-size: 14.5px; font-weight: 550; color: var(--ink); }
.guide-related li, .guide-cards li { margin: 0; }
@media (max-width: 640px) { .guide-related, .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.guide-index-head { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.04em; margin: 48px 0 8px; }
.guide-group h3 { font-size: 21px; letter-spacing: -.02em; margin: 26px 0 12px; }
.guide-group .guide-cards { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }

/* ---------- prose: legal and licence texts ---------- */
.prose { max-width: 780px; padding-bottom: clamp(56px, 7vw, 96px); color: var(--ink-2); }
.prose h2 { font-size: clamp(24px, 2.8vw, 30px); letter-spacing: -.03em; color: var(--ink); margin: 44px 0 12px; }
.prose h3 { font-size: 20px; color: var(--ink); margin: 28px 0 10px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose .table-wrap { overflow-x: auto; margin: 0 0 1em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 600; }
.licence-text { scroll-margin-top: 90px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 48px; }
.licence-text > h2:first-child { font-size: clamp(30px, 3.6vw, 42px); margin-top: 24px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 550; color: var(--ink-2); }
.form input, .form select, .form textarea { width: 100%; font: 400 16.5px var(--font); color: var(--ink); background: var(--white); border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); padding: 13px 14px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.form .btn { justify-self: start; }
.trap { position: absolute; left: -9999px; }
.status { min-height: 1.5em; color: var(--ink-2); margin: 0; }
.aside h2 { font-size: 21px; margin-bottom: 10px; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- the buy popup: the licence, the buyer, the totals, then Mollie; the resend form under it ---------- */
.popup { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(17, 18, 20, .42); }
.popup.open { display: flex; }
.popup-box { position: relative; width: min(100%, 520px); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--white); border-radius: var(--radius); padding: 32px 30px 28px; box-shadow: var(--shadow); }
.popup-box h2 { font-size: 28px; letter-spacing: -.035em; margin-bottom: 12px; padding-right: 40px; }
.popup-box p { color: var(--ink-2); }
.popup-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-2); font: 400 24px/1 var(--font); color: var(--ink); cursor: pointer; }
.popup-lead { font-size: 16px; margin: 0 0 18px; }
.popup-note { font-size: 15.5px; margin: 0; }
.buy-form fieldset { border: 0; padding: 0; margin: 0; }
.buy-form legend { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.popup-licences { display: grid; gap: 8px; }
.popup-licences label { display: grid !important; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: baseline; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; cursor: pointer; }
.popup-licences label.on { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.popup-licences input, .buy-form .check input { width: auto; padding: 0; box-shadow: none; margin: 0; accent-color: var(--accent); }
.popup-licences b { font-weight: 600; }
.popup-licences span { font-variant-numeric: tabular-nums; }
.popup-licences small { grid-column: 2 / -1; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.buy-form .check { display: flex !important; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 450; }
.buy-form .check input { width: auto; min-height: 0; margin-top: 4px; accent-color: var(--accent); }
.buy-form .vat small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 4px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--paper); font-size: 15.5px; font-variant-numeric: tabular-nums; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; text-align: right; }
.totals .basis { grid-column: 1 / -1; text-align: left; color: var(--muted); font-size: 13.5px; }
.resend-form { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.resend-form h3 { font-size: 19px; margin: 0; }
.popup .status:empty { display: none; }
.bought .actions { margin: 22px 0 12px; }

/* ---------- footer ---------- */
.foot { background: var(--white); border-top: 1px solid var(--line); padding: 64px 0 36px; font-size: 15.5px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.foot-line { font-size: 20px; font-weight: 600; letter-spacing: -.025em; margin: 16px 0 0; max-width: 16em; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 7px 0; }
.foot li a { text-decoration: none; color: var(--ink-2); }
.foot li a:hover { color: var(--ink); }
.foot-legal { margin: 48px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 374px) { .nav a[href="/guides"] { display: none; } }
.btn-buy { gap: 0; }
.btn-buy span { margin-left: .28em; }

/* The left menu: body part, equipment and category with their counts, beside the grid on browse and on every hub; one folded line above it on a phone. */
.with-side { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.side-main { min-width: 0; }
.side { position: sticky; top: 82px; max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; }
.side summary { display: none; }
.side-in { display: flex; flex-direction: column; gap: 18px; padding-bottom: 24px; }
.side-group h2 { font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.side-group ul { list-style: none; margin: 0; padding: 0; }
.side a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 10px; margin: 0 -10px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.35; }
.side a small { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.side a:hover { background: var(--paper-2); color: var(--ink); }
.side a[aria-current] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.side a[aria-current] small { color: var(--accent-ink); }
.side-all { font-weight: 600; color: var(--ink) !important; }
.ex-lead { margin: 12px 0 0; }
.ex-intro { color: var(--ink-2); }
.ex-more { padding-bottom: clamp(24px, 4vw, 48px); }
.ex-more h2, .guide section > h2 + .tiles { margin-top: 0; }
.ex-more h2 { font-size: 24px; letter-spacing: -.03em; margin: 0 0 16px; }
@media (max-width: 860px) {
  .with-side { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .side { position: static; max-height: none; overflow: visible; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
  .side summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; font-weight: 600; font-size: 15.5px; cursor: pointer; list-style: none; }
  .side summary::-webkit-details-marker { display: none; }
  .side summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); }
  .side[open] summary::after { content: "\2212"; }
  .side-in { padding: 4px 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .side a { margin: 0 -8px; padding: 7px 8px; }
}
.side-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) { #count { scroll-margin-top: 132px; } .side summary { gap: 12px; } }
@media (max-width: 760px) { #count { scroll-margin-top: 118px; } }

/* ---------- the developer page: Connect your AI beside the sample and the pack, then the MCP, the data, a request ---------- */
.dev-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); }
.dev-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.dev-hero h1 { font-size: clamp(36px, 4.6vw, 58px); letter-spacing: -.045em; text-wrap: balance; }
.dev-hero .lead { margin: 16px 0 26px; }
.connect { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 18px; box-shadow: var(--shadow); }
.connect h2 { font-size: 24px; letter-spacing: -.03em; margin: 0; }
.connect > .fine { margin: 4px 0 14px; }
.address { display: flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 12px; padding: 6px 6px 6px 14px; box-shadow: inset 0 0 0 1px var(--line); }
.address code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 500 15px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); scrollbar-width: none; }
.address.small code { font-size: 13px; }
.copy { flex: none; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 600 14px var(--font); padding: 8px 14px; cursor: pointer; }
.clients { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.client { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.client b { font-size: 15.5px; font-weight: 600; }
.client .btn { justify-self: start; min-height: 40px; padding: 0 16px; font-size: 15px; }
.steps summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 15px; }
.steps ol { margin: 8px 0 0; padding-left: 1.2em; color: var(--ink-2); font-size: 15px; }
.dev-side { display: grid; gap: 16px; }
.dev-side .card h3 { font-size: 20px; margin: 0 0 6px; }
.dev-side .card p { font-size: 15.5px; }
.tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 12px 0 16px; }
.tiles-5 .tile span { display: none; }
.tiles-5 .tile .badge { display: none; }
.tiles-5 .tile img { padding: 6%; }
.dev-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.dev-cols h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.035em; margin: 0 0 12px; }
.tools dt { margin-top: 14px; }
.tools dt code { font: 600 15px ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 8px; border-radius: 8px; }
.tools dd { margin: 6px 0 0; color: var(--ink-2); font-size: 16.5px; }
.credit a { display: inline-block; font-weight: 600; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: var(--white); text-decoration: none; color: var(--ink); }
.json { max-height: 420px; overflow: auto; margin: 0; padding: 16px 18px; background: #111214; color: #E9EAEC; border-radius: 16px; font: 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace; }
#request { padding-top: clamp(56px, 8vw, 104px); }
#request h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.035em; }
@media (max-width: 980px) { .dev-in, .dev-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .client { grid-template-columns: 92px minmax(0, 1fr); gap: 8px; } .client-line { grid-template-columns: minmax(0, 1fr); } .connect { padding: 18px 14px 12px; } .address code { white-space: normal; word-break: break-all; font-size: 14px; } .address.small code { font-size: 12.5px; } .tiles-5 { gap: 4px; } }
/* Developers leaves the header before it would crowd it; the footer keeps it. */
@media (max-width: 640px) { .nav a[href="/developers"] { display: none; } }
@media (max-width: 500px) { .nav a[href="/licence"] { display: none; } }

/* The buy button never wraps: its words stay on one line at every width. */
.top .btn-buy { white-space: nowrap; flex: none; }
