/*
 * The site's design, edited by hand; the renderer only sets structure and one class per
 * section kind. The rhythm, radii, shadows, header pill, hamburger panel, icon tiles, card
 * rows and footer follow www.portfoliobox.com, in a light sand palette. Breakpoints: 768px
 * (tablet) and 480px (phone), desktop first. Fonts come from this server only: Fraunces
 * for headings, the system sans for text. Left out: any font or script from a third party.
 */

@font-face {
  font-family: "Fraunces";
  src: url("/site/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8f3ea;
  --card: #fffdf8;
  --sand: #efe5d3;
  --ink: #2a241d;
  --muted: #6f6456;
  --line: #e7dccb;
  --accent: #2f5b48;
  --accent-ink: #fbf7ef;
  --shadow: rgba(92, 70, 40, 0.10);
  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 80px;
  --max: 1120px;
  --tone-green: #2f5b48;
  --tone-terracotta: #b0563a;
  --tone-blue: #3f5f86;
  --prose: 720px;
}


/* Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); transition: color 0.2s, background 0.15s, opacity 0.2s, box-shadow 0.2s; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); }
h1 { font-size: 56px; line-height: 1.1; margin: 0 0 24px; letter-spacing: -0.01em; }
h2 { font-size: 42px; line-height: 1.15; margin: 0 0 16px; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0 0 12px; }
code { font-family: var(--mono); font-size: 0.9em; }
pre { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; overflow: auto; font-size: 13px; line-height: 1.5; }
.lead { font-size: 20px; color: var(--muted); max-width: 600px; margin: 0 auto; }
.fine, .placeholder { font-size: 14px; color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 14px/1 var(--sans);
  padding: 11px 20px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover { opacity: 0.85; }

/* Header: the pill with the brand, the centred links, the hamburger and sign-in */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  padding: 0 var(--gutter);
  background: linear-gradient(var(--paper) 55%, transparent);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 1000px;
  max-width: 100%;
  height: 56px;
  padding: 10px 10px 10px 22px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  border-radius: 28px;
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  box-shadow: 0 3px 35px color-mix(in srgb, var(--accent) 16%, transparent);
}
.site-header .brand { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; display: block; }
.site-header nav { display: flex; align-items: center; gap: 32px; }
.site-header nav a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a[aria-current] { color: var(--accent); font-weight: 700; }
.site-header .actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--accent);
  cursor: pointer;
}
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--sand); }
.menu-toggle svg { width: 22px; height: 22px; }

.site-header .menu {
  position: absolute;
  top: calc(100% - 8px);
  right: max(var(--gutter), calc((100% - 1000px) / 2));
  width: 280px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  display: grid;
  gap: 24px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 3px 35px var(--shadow);
}
.site-header .menu[hidden] { display: none; }
.menu section { display: grid; gap: 2px; }
.menu h2 {
  font: 700 11px/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 12px;
  margin: 0 0 8px;
}
.menu a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.menu a:hover, .menu a[aria-current] { background: var(--sand); }
.menu .menu-main { display: none; }
.menu-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--sand); color: var(--accent); flex-shrink: 0; }
.menu-icon svg { width: 17px; height: 17px; }

/* Sections: the portfoliobox rhythm, a centred header over a wide body, prose in one column */

main > section, main > article {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 80px var(--gutter);
}
section.text > *, section.prices > p, section.sample > p, section.reference > p, section.articles > p { max-width: var(--prose); margin-left: auto; margin-right: auto; }
section.text ul, section.text ol { padding-left: 22px; }
:is(section.cards, section.tiles, section.columns, section.contact, section.apply, section.payouts, section.cta, section.doors, section.steps, section.faq, section.prices, section.sample, section.reference, section.articles) > h2 { text-align: center; }
:is(section.cards, section.tiles, section.columns, section.contact, section.apply, section.payouts, section.cta, section.doors, section.steps, section.faq) > p { text-align: center; max-width: 700px; margin: 0 auto 12px; font-size: 18px; color: var(--muted); }
div.cards, ol.steps, .faq-list, table.prices, ul.samples, ul.articles { margin-top: 40px; }

/* Hero: centred headline, the line under it, the connect address, the rotating images */

section.hero { text-align: center; padding-top: 120px; }
section.hero .lead { margin-bottom: 32px; }
.lead strong { color: var(--ink); font-weight: 600; }
section.hero > .hero-head { position: relative; max-width: 760px; }
.hero-badge { position: absolute; top: -67px; right: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 84px; height: 84px; isolation: isolate; color: #fff; font: 700 13px/1.15 var(--sans); text-align: center; text-decoration: none; }
.hero-badge::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--badge-bg); transition: background 0.6s ease; clip-path: polygon(50.00% 0.00%, 55.04% 5.28%, 61.13% 1.25%, 64.86% 7.53%, 71.69% 4.95%, 73.94% 11.90%, 81.17% 10.91%, 81.82% 18.18%, 89.09% 18.83%, 88.10% 26.06%, 95.05% 28.31%, 92.47% 35.14%, 98.75% 38.87%, 94.72% 44.96%, 100.00% 50.00%, 94.72% 55.04%, 98.75% 61.13%, 92.47% 64.86%, 95.05% 71.69%, 88.10% 73.94%, 89.09% 81.17%, 81.82% 81.82%, 81.17% 89.09%, 73.94% 88.10%, 71.69% 95.05%, 64.86% 92.47%, 61.13% 98.75%, 55.04% 94.72%, 50.00% 100.00%, 44.96% 94.72%, 38.87% 98.75%, 35.14% 92.47%, 28.31% 95.05%, 26.06% 88.10%, 18.83% 89.09%, 18.18% 81.82%, 10.91% 81.17%, 11.90% 73.94%, 4.95% 71.69%, 7.53% 64.86%, 1.25% 61.13%, 5.28% 55.04%, 0.00% 50.00%, 5.28% 44.96%, 1.25% 38.87%, 7.53% 35.14%, 4.95% 28.31%, 11.90% 26.06%, 10.91% 18.83%, 18.18% 18.18%, 18.83% 10.91%, 26.06% 11.90%, 28.31% 4.95%, 35.14% 7.53%, 38.87% 1.25%, 44.96% 5.28%); }
.hero-badge::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / 0.55); pointer-events: none; }
.hero-badge.tone-green { --badge-bg: var(--tone-green); }
.hero-badge.tone-terracotta { --badge-bg: var(--tone-terracotta); }
.hero-badge.tone-blue { --badge-bg: var(--tone-blue); }
.hero-badge.spin { animation: badge-spin 0.7s cubic-bezier(.5, 0, .3, 1); }
@keyframes badge-spin { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(0.88); } 100% { transform: rotate(360deg) scale(1); } }
.hero-badge .words { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-badge svg { width: 12px; height: 12px; fill: currentColor; margin-bottom: 2px; }
.hero-badge .small { font-size: 9px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.hero-badge .big { font-family: var(--serif); font-size: 13px; font-weight: 600; line-height: 1; }
.hero-badge:hover { transform: scale(1.06); }
@media (max-width: 480px) { section.hero { padding-top: 104px; } .hero-badge { top: -86px; right: 0; width: 70px; height: 70px; } .hero-badge .small { font-size: 8px; } .hero-badge .big { font-size: 11.5px; } }
section.hero > .hero-stats { list-style: none; padding: 0; margin: 48px auto 0; max-width: none; display: flex; justify-content: center; gap: clamp(24px, 4vw, 64px); flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; align-items: center; gap: 12px; white-space: nowrap; font-weight: 400; font-size: 16px; color: var(--ink); }
.hero-stats .icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: var(--sand); color: var(--accent); }
.logo-tile img { width: 28px; height: 28px; display: block; }
.hero-stats .icon svg { width: 28px; height: 28px; }
@media (max-width: 900px) { section.hero > .hero-stats { gap: 24px 32px; } .hero-stats li { width: 40%; } }
.hl-1 { color: var(--tone-green); }
.hl-2 { color: var(--tone-terracotta); }
.hl-3 { color: var(--tone-blue); }
.connect { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 0 0 16px; }
.connect code { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 10px 18px; font-size: 15px; }
.connect button {
  font: 600 16px/1 var(--sans);
  padding: 14px 28px;
  border: 0;
  border-radius: 24px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}
.connect button:hover { opacity: 0.85; }
/* The strip of small images sliding under the hero: columns of two, the row twice, a slow slide, faded edges */
html, body { overflow-x: clip; }
section.hero .hero-strip { position: relative; margin: 56px calc(50% - 50vw) 0; width: 100vw; max-width: none; overflow: hidden; }
.strip-track { display: flex; gap: 12px; width: max-content; animation: strip-slide 60s linear infinite; }
.strip-col { display: flex; flex-direction: column; gap: 12px; width: 240px; flex-shrink: 0; }
.strip-col figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--sand); }
.strip-col:nth-child(odd) figure:first-child { height: 150px; }
.strip-col:nth-child(odd) figure:last-child { height: 240px; }
.strip-col:nth-child(even) figure:first-child { height: 240px; }
.strip-col:nth-child(even) figure:last-child { height: 150px; }
.strip-col figure:empty:nth-child(2) { background: color-mix(in srgb, var(--sand) 80%, var(--accent)); }
.strip-col img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, var(--paper) 0%, transparent 10%, transparent 90%, var(--paper) 100%); }
@keyframes strip-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* Cards: two large side by side, three in a row, otherwise rows of three (four as two by two) */

div.cards { display: grid; gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
div.cards-grid { display: flex; flex-wrap: wrap; }
.cards-grid > .card { flex: 1 1 calc((100% - 48px) / 3); }
.cards-grid:has(> :nth-child(4):last-child) > .card { flex-basis: calc((100% - 24px) / 2); }
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}
.card h3 { margin: 4px 0 0; }
.card p { font-size: 15px; color: var(--muted); margin: 0; }
a.card:hover { box-shadow: 0 8px 24px var(--shadow); }
.card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--sand);
  border-radius: 12px;
  color: var(--accent);
}
.card .icon svg { width: 24px; height: 24px; }
.card figure { margin: 0 0 8px; aspect-ratio: 16 / 9; background: var(--sand); border-radius: 12px; overflow: hidden; }
.card figure img { width: 100%; height: 100%; object-fit: cover; }
.cards-2 .card { padding: 32px; border-radius: 24px; }
.cards-2 .card figure { aspect-ratio: 4 / 3; margin: -8px -8px 12px; border-radius: 16px; }
.cards-2 .card h3 { font-size: 26px; }
.cards-2 .card p { font-size: 16px; }

/* Steps: a row of numbered tiles, the number in the icon tile */

ol.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
ol.steps > li { counter-increment: step; display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
ol.steps > li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--sand);
  border-radius: 12px;
  color: var(--accent);
  font: 600 22px/1 var(--serif);
}
ol.steps h3 { margin: 4px 0 0; }
ol.steps p { font-size: 15px; color: var(--muted); margin: 0; }

/* FAQ: one column, a line under each question, plus and minus in the accent */

.faq-list { width: 800px; max-width: 100%; margin-left: auto; margin-right: auto; }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent); flex-shrink: 0; }
details[open] summary::after { content: "\2212"; }
details > :not(summary) { color: var(--muted); }
details > :last-child:not(summary) { padding-bottom: 24px; margin-bottom: 0; }

/* Prices, lists, the reference */

.prices-scroll { overflow-x: auto; }
.card:has(> .card-button) { display: flex; flex-direction: column; }
.card:has(> .card-button) > p:last-of-type { margin-bottom: 24px; }
.card-button { display: inline-block; align-self: flex-start; margin-top: auto; padding: 12px 22px; border-radius: 24px; background: var(--accent); color: var(--accent-ink); font: 600 15px/1 var(--sans); text-decoration: none; }
.card-button:hover { opacity: 0.88; }
.card-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.card-links a { font-weight: 600; font-size: 15px; color: var(--accent); text-decoration: none; }
.card-links a::after { content: " \2192"; }
.card-links a:hover { text-decoration: underline; }
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-top: 32px; max-width: 900px; margin-left: auto; margin-right: auto; }
.contact-form { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.contact-form textarea { resize: vertical; }
.apply-form { max-width: 640px; margin: 32px auto 0; }
.contact-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; display: grid; gap: 10px; }
.contact-form legend { font-size: 14px; color: var(--muted); padding: 0 6px; }
.contact-form label.check { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink); }
.contact-form label.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.contact-form .trap { position: absolute; left: -9999px; }
.contact-form button { justify-self: start; border: 0; cursor: pointer; }
.form-status { margin: 0; font-size: 14px; color: var(--accent); min-height: 1em; }
.contact-aside { background: var(--sand); border-radius: 20px; padding: 32px; }
.contact-aside h3 { margin: 0 0 12px; font-size: 20px; }
.contact-aside a { color: var(--accent); font-weight: 600; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } .contact-form, .contact-aside { padding: 24px; } }
div.columns { display: flex; gap: 20px; margin-top: 40px; }
.column { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.column:nth-child(2) { border: 1.5px solid var(--accent); }
.column h3 { margin: 0; font-size: 22px; }
.column h3 a { color: inherit; text-decoration: none; }
.column-list { list-style: none; margin: 0; padding: 16px 0 0; }
.column-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.column-list li:last-child { border-bottom: 0; }
.column-list .mark { flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.column-list .mark svg { width: 18px; height: 18px; }
.column-list.numbered .mark { width: 26px; height: 26px; border-radius: 50%; background: var(--sand); font: 700 13px/1 var(--sans); }
@media (max-width: 768px) { div.columns { flex-direction: column; } .column { padding: 24px; } }
div.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.tile { position: relative; display: block; aspect-ratio: 7 / 10; border-radius: 20px; overflow: hidden; background: var(--sand); color: #fff; text-decoration: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgb(0 0 0 / 0.72)); }
.tile-text { position: absolute; left: 32px; right: 32px; bottom: 32px; z-index: 1; }
.tile-text .label { margin: 0 0 10px; font: 700 13px/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: #f1dcc4; }
.tile-text p { margin: 0; font-size: 20px; line-height: 1.4; color: #fff; }
@media (max-width: 768px) { div.tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 4 / 5; } .tile-text { left: 22px; right: 22px; bottom: 22px; } .tile-text p { font-size: 17px; } }
table.prices { width: 100%; max-width: 900px; margin-left: auto; margin-right: auto; margin-bottom: 24px; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
table.prices th, table.prices td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); }
table.prices tbody tr:last-child > * { border-bottom: 0; }
table.prices thead th { color: var(--muted); font: 700 11px/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
table.prices tbody th { font-weight: 600; }
section.prices .fine { text-align: center; }
ul.reference, ul.articles, ul.samples { list-style: none; padding: 0; margin-left: auto; margin-right: auto; margin-bottom: 32px; max-width: 900px; display: grid; gap: 12px; }
ul.samples { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
ul.samples > li, ul.articles > li { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
ul.articles a { text-decoration: none; }
ul.reference li { font-size: 15px; color: var(--muted); }
section.reference > h3 { max-width: 900px; margin: 32px auto 12px; }
section.reference-page { text-align: center; padding-top: 120px; }
section.reference-page h1 { font-size: 36px; }
section.reference-page h1 code { font-size: 0.8em; }

/* Articles and the legal pages */

main > article { max-width: calc(var(--prose) + 2 * var(--gutter)); }
article h1 { font-size: 42px; }
article h2 { font-size: 28px; margin-top: 40px; }

/* Footer: the brand on the left, the link columns on the right, the seller below */

.site-footer { border-top: 1px solid var(--line); margin-top: 40px; color: var(--muted); }
.site-footer .top { display: flex; justify-content: space-between; gap: 48px; padding: 60px var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.site-footer .about { max-width: 280px; }
.site-footer .brand { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; }
.site-footer .tagline { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--ink); margin: 16px 0 0; }
.site-footer .about-text { font-size: 13px; line-height: 1.5; margin: 6px 0 0; }
.site-footer .columns { display: flex; gap: 48px; }
.site-footer h2 { font: 600 14px/1.4 var(--sans); color: var(--ink); margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; line-height: 1.8; }
.site-footer ul a { font-size: 14px; color: var(--muted); text-decoration: none; }
.site-footer ul a:hover { color: var(--ink); }
.site-footer .seller { border-top: 1px solid var(--line); margin: 0; padding: 24px var(--gutter); font-size: 12px; text-align: center; }

/* Tablet */

@media (max-width: 768px) {
  :root { --gutter: 24px; }
  h1 { font-size: 36px; }
  h2 { font-size: 32px; }
  .site-header { padding: 0 16px; }
  .site-header .bar { padding: 10px 10px 10px 16px; }
  .site-header nav a { display: none; }
  .site-header nav a[aria-current] { display: inline; }
  .site-header .menu { left: 16px; right: 16px; width: auto; }
  .menu .menu-main { display: grid; }
  main > section, main > article { padding-top: 48px; padding-bottom: 48px; }
  section.hero, section.reference-page { padding-top: 80px; }
  section.hero .hero-strip { margin-top: 40px; }
  section.hero > .hero-stats { gap: 24px 32px; margin-top: 32px; }
  .hero-stats li { width: 40%; font-size: 14px; }
  .strip-col { width: 160px; }
  .strip-col:nth-child(odd) figure:first-child, .strip-col:nth-child(even) figure:last-child { height: 100px; }
  .strip-col:nth-child(odd) figure:last-child, .strip-col:nth-child(even) figure:first-child { height: 160px; }
  div.cards, ol.steps, .faq-list, table.prices, ul.samples, ul.articles { margin-top: 32px; }
  .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .cards-grid > .card, .cards-grid:has(> :nth-child(4):last-child) > .card { flex-basis: 100%; }
  .site-footer .top { flex-direction: column; gap: 32px; padding: 32px 16px; }
  .site-footer .about { max-width: none; text-align: center; }
  .site-footer .columns { flex-wrap: wrap; justify-content: space-between; gap: 24px; }
  .site-footer .seller { padding: 24px 16px; }
}

/* Phone */

@media (max-width: 480px) {
  h2 { font-size: 26px; }
  table.prices th, table.prices td { padding: 12px 10px; font-size: 14px; }
  table.prices .eur { display: block; color: var(--muted); font-size: 12px; }
  .lead { font-size: 18px; }
  .connect code { font-size: 13px; word-break: break-all; }
  .site-header .brand { font-size: 16px; }
  .site-header .sign-in { padding: 10px 14px; }
}

/* The product's own pages: sign in, allow an agent, the account, an error; a card on the page */

body.app { min-height: 100vh; display: flex; flex-direction: column; }
body.app .app-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 64px var(--gutter) 80px; }
body.app.bare .site-header .bar { justify-content: center; }
body.app.bare .site-footer { margin-top: 0; }
.app-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 36px; }
.app-card h1 { font-size: 30px; line-height: 1.15; margin: 0 0 10px; }
.app-card p { margin: 0 0 18px; color: var(--muted); }
.app-card ul { padding-left: 20px; color: var(--muted); margin: 0 0 18px; }
.app-card .stack { display: grid; gap: 14px; }
.app-card button { font: 600 16px/1 var(--sans); padding: 14px 18px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; width: 100%; }
.app-card button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.app-card button:hover { opacity: 0.88; }
.app-card label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.app-card label.check { display: block; line-height: 1.5; }
.app-card label.check input { margin-right: 8px; }
.app-card input, .app-card select { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.app-card .error { color: var(--tone-terracotta); font-size: 14px; }
.app-card .fine { font-size: 13px; }
.app-card .hidden { display: none; }
.app-card #google-button { display: flex; justify-content: center; }
@media (max-width: 480px) { body.app .app-main { padding: 32px 16px 48px; } .app-card { padding: 24px; } }
main > section.title.hero { padding-bottom: 0; }

/* The split hero: copy left, picture right */

section.hero-split-section { text-align: left; }
.hero-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; max-width: none !important; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { margin: 0 0 28px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px 0 0; max-width: none !important; }
.hero-split .hero-actions { justify-content: flex-start; }
.hero-actions .button.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.hero-split .hero-stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 16px 32px; margin: 40px 0 0; }
.hero-split .hero-stats li { display: flex; flex-direction: row; align-items: center; gap: 12px; width: auto; font-size: 15px; white-space: nowrap; }
.hero-split .hero-stats .icon { width: 40px; height: 40px; border-radius: 12px; }
.hero-split .hero-stats .icon svg { width: 20px; height: 20px; }
.hero-figure { margin: 0; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--sand); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; gap: 32px; } .hero-figure { aspect-ratio: 4 / 3; } section.hero-split-section { text-align: center; } .hero-split .hero-actions { justify-content: center; } .hero-split .hero-stats { justify-content: center; } .hero-copy .lead { margin-left: auto; margin-right: auto; } }

/* Payouts: one card per protocol */

.payout-list { list-style: none; margin: 12px 0 0; padding: 0; }
.payout-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.payout-list li:last-child { border-bottom: 0; }
.payout-list strong { color: var(--ink); font-weight: 600; }
section.payouts > p.payout-fine { text-align: center; margin: 32px auto 0; font-size: 14px; }

/* A tile without a picture wears one of the heading's tones */

.tile:not(:has(img)) { background: var(--tone-green); }
.tile:not(:has(img)):nth-child(2) { background: var(--tone-terracotta); }
.tile:not(:has(img)):nth-child(3) { background: var(--tone-blue); }
.tile:not(:has(img)):nth-child(4) { background: color-mix(in srgb, var(--tone-green) 70%, var(--ink)); }
.tile:not(:has(img))::after { background: none; }
.tile:not(:has(img)) { aspect-ratio: auto; min-height: 280px; }
@media (max-width: 768px) { .tile:not(:has(img)) { min-height: 220px; } }

/* The closing band */

section.cta { background: var(--tone-green); color: #fff; border-radius: 32px; max-width: calc(var(--max)) !important; margin: 40px auto 80px; padding: 64px 32px !important; text-align: center; }
section.cta h2 { color: #fff; }
section.cta > p { color: rgb(255 255 255 / 0.85) !important; }
.cta-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.cta-button { background: #fff !important; color: var(--tone-green) !important; }
@media (max-width: 768px) { section.cta { margin: 24px 16px 48px; padding: 44px 22px !important; border-radius: 24px; } }
@media (max-width: 480px) { .hero-split .hero-stats { gap: 12px 16px; } .hero-split .hero-stats li { font-size: 14px; gap: 8px; } .hero-split .hero-stats .icon { width: 34px; height: 34px; } }

/* The API docs: a left menu as on portfoliobox.com's documentation, the content beside it */

main > .doc-layout { display: flex; align-items: flex-start; max-width: none; margin: 0; padding: 0 64px 0 32px; gap: 64px; }
.doc-sidebar { position: sticky; top: 96px; width: 280px; flex-shrink: 0; max-height: calc(100vh - 120px); overflow-y: auto; padding: 24px 0 40px; margin-top: 96px; }
.doc-toggle { display: none; }
.doc-nav .doc-title { display: block; font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 10px; margin-bottom: 16px; }
.doc-nav .doc-title.is-active, .doc-nav .doc-title:hover { background: var(--sand); }
.doc-group { margin: 0 0 18px; }
.doc-group h3 { font: 700 11px/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; padding: 0 10px; }
.doc-group ul { list-style: none; margin: 0; padding: 0; }
.doc-group a { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); text-decoration: none; line-height: 1.35; }
.doc-group a:hover { background: var(--card); color: var(--ink); }
.doc-group a.is-active { background: var(--sand); color: var(--ink); font-weight: 600; }
.method { flex-shrink: 0; width: 44px; font: 700 10px/1 ui-monospace, monospace; letter-spacing: 0.02em; color: var(--tone-green); }
.method.m-post { color: var(--tone-terracotta); }
.method.m-put { color: var(--tone-blue); }
.method.m-delete { color: #8a3a3a; }
.doc-content { flex: 1; min-width: 0; }
.doc-content > section { text-align: left; padding: 40px 0; max-width: 820px; margin-left: auto; margin-right: auto; }
.doc-content > section > * { margin-left: 0 !important; margin-right: 0 !important; max-width: 820px; }
.doc-content > section.hero { padding-top: 120px; }
.doc-content > section h2 { text-align: left !important; font-size: 30px; margin-bottom: 14px; }
.doc-content > section h3 { font-size: 18px; }
.doc-content > section { padding: 28px 0; }
.doc-content > section.reference-page h1 { font-size: 28px; }
.doc-content > section > p { text-align: left !important; }
.doc-content pre { max-width: 820px; }
@media (max-width: 900px) {
  main > .doc-layout { display: block; padding: 0 16px; }
  .doc-sidebar { position: static; width: auto; max-height: none; padding: 16px 0 0; margin-top: 16px; }
  .doc-content > section.hero { padding-top: 40px; }
  .doc-toggle { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 600; cursor: pointer; }
  .doc-nav { display: none; padding-top: 12px; }
  .doc-sidebar.is-open .doc-nav { display: block; }
}

/* The API for an agent: the OpenAPI address, and the endpoints as a block to copy */

.agent-box { background: var(--sand); border-radius: 16px; padding: 20px 24px; margin: 20px 0; }
.agent-box p { margin: 0 0 12px; color: var(--ink); }
.agent-box .connect { justify-content: flex-start; margin: 0; }
.code-copy { position: relative; }
.code-copy pre { padding-top: 44px; font-size: 12px; line-height: 1.6; max-height: 520px; }
.copy-block { position: absolute; top: 10px; right: 10px; font: 600 13px/1 var(--sans); padding: 8px 14px; border-radius: 16px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.doc-content > section.title.hero { text-align: center; max-width: 820px; }
.doc-content > section.title.hero > * { margin-left: auto !important; margin-right: auto !important; }

/* The connect box: the MCP address, large, to copy */

.connect-box { max-width: 640px; margin: 36px auto 0; background: var(--card); border: 1.5px solid var(--accent); border-radius: 24px; padding: 28px; text-align: center; }
.connect-label { margin: 0 0 16px; font-weight: 600; color: var(--ink); }
.connect-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.connect-row code { font-size: 20px; padding: 14px 22px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.connect-row button { font: 600 18px/1 var(--sans); padding: 16px 32px; border: 0; border-radius: 16px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.connect-box .fine { margin: 16px 0 0; }
@media (max-width: 480px) { .connect-row code { font-size: 15px; word-break: break-all; } .connect-box { padding: 20px; } }

/* Every section heading is centred, on every page but the docs; the text under it keeps its own alignment */

main > section:not(.hero) > h2 { text-align: center; }

.square-images .card figure { aspect-ratio: 1 / 1; }
.card-button.tone-green { background: var(--tone-green); }
.card-button.tone-terracotta { background: var(--tone-terracotta); }
.card-button.tone-blue { background: var(--tone-blue); }
main > section.cards:has(> div.cards):not(:has(> h2)) { padding-top: 24px; }
main > section.prices:not(:has(> h2)) { padding-top: 0; }
main > section.prices:not(:has(> h2)) table.prices { margin-top: 0; }
