/* The platform's public site. Colours and the display font come from the platform brand
   (console > Platform brand), written by the page as --brand, --brand-deep, --accent, --paper,
   --ink (and --card in dark mode); everything else is mixed from them. The manner follows the
   logo: paper, pen-and-ink lines, fine circles and serif lettering. Standalone, no build. */

:root {
  /* Fallbacks only: the page sets these from the platform brand. */
  --brand: #7a1e16;
  --brand-deep: #5c140e;
  --accent: #b58a4c;
  --paper: #fbf7f0;
  --ink: #2f2520;
  --serif-stack: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Georgia, serif;
  --display: var(--serif-stack);
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --radius: 18px;
}
:root {
  --card: color-mix(in srgb, #fff 62%, var(--paper));
  --paper-deep: color-mix(in srgb, var(--paper) 90%, var(--accent));
  --ink-soft: color-mix(in srgb, var(--ink) 70%, var(--paper));
  --pencil: color-mix(in srgb, var(--ink) 42%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 14%, var(--paper));
  --brand-wash: color-mix(in srgb, var(--brand) 9%, var(--paper));
  --accent-wash: color-mix(in srgb, var(--accent) 16%, var(--paper));
  --on-brand: #fff;
  --shadow: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent), 0 24px 48px -28px color-mix(in srgb, var(--ink) 38%, transparent);
  --ok: #2f7a4a;
  --warn: #a8661b;
  /* Dark bands: deep ink in the light look (theme_css gives the dark look its own). */
  --night: color-mix(in srgb, var(--ink) 92%, #000);
  --section-pad: clamp(56px, 8vw, 112px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--link, var(--brand)); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover, var(--brand-deep)); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-wash); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 60; }
.skip:focus { left: 16px; }

/* --- Type ------------------------------------------------------------------------------------ */
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; color: var(--heading, var(--brand)); letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 1.5rem + 4.4vw, 5.2rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.35rem + 2.3vw, 3.3rem); line-height: 1.08; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem); line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.caps { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.26em; font-size: 0.76rem; color: var(--brand); margin: 0; display: inline-flex; align-items: center; gap: 12px; }
.caps.ruled::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.lead { font-family: var(--display); font-size: clamp(1.12rem, 1rem + 0.45vw, 1.35rem); line-height: 1.6; color: var(--ink-soft); max-width: 58ch; margin: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.88rem; }
p { margin: 0; }

/* --- Buttons --------------------------------------------------------------------------------- */
/* One system (apps/landing/buttons.py): every style reads the brand's colours and the text colour
   worked out to stay readable on each (--on-brand, --on-brand-deep, --on-accent from theme_css);
   the site's global look sets the shared padding, size, corners and outline (site_styles.py) as
   custom properties, and a button's own size scales them. */
.btn { --btn-k: 1; --btn-kf: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: calc(var(--btn-py, 14px) * var(--btn-k)) calc(var(--btn-px, 24px) * var(--btn-k)); border-radius: var(--btn-radius, 999px); font: 600 calc(var(--btn-fs, 0.95rem) * var(--btn-kf))/1 var(--sans); letter-spacing: var(--btn-tracking, 0.01em); text-decoration: none; border: var(--btn-border, 1px) solid transparent; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px -12px var(--brand); }
.btn-primary:hover { background: var(--brand-deep); color: var(--on-brand-deep, var(--on-brand)); }
.btn-secondary { background: var(--brand-deep); color: var(--on-brand-deep, #fff); box-shadow: 0 10px 24px -12px var(--brand-deep); }
.btn-secondary:hover { background: color-mix(in srgb, var(--brand-deep) 84%, var(--ink)); color: var(--on-brand-deep, #fff); }
.btn-accent { background: var(--accent); color: var(--on-accent, #fff); box-shadow: 0 10px 24px -12px var(--accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 84%, var(--ink)); color: var(--on-accent, #fff); }
.btn-line { border-color: color-mix(in srgb, var(--brand) 55%, transparent); color: var(--brand); background: transparent; }
.btn-line:hover { background: var(--brand-wash); border-color: var(--brand); color: var(--brand); }
.btn-soft { background: var(--brand-wash); color: var(--brand); }
.btn-soft:hover { background: color-mix(in srgb, var(--brand) 16%, var(--paper)); color: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--brand); padding-inline: calc(14px * var(--btn-k)); }
.btn-ghost:hover { background: var(--brand-wash); color: var(--brand-deep); }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -12px var(--ink); }
.btn-dark:hover { background: color-mix(in srgb, var(--ink) 86%, var(--brand)); color: var(--paper); }
.btn-light { background: #fff; color: var(--brand-deep); border-color: #fff; }
.btn-light:hover { background: color-mix(in srgb, #fff 88%, var(--accent)); color: var(--brand-deep); }
.btn-quiet { color: var(--ink); padding-inline: 14px; }
.btn-quiet:hover { color: var(--brand); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ico, .s-card-link .btn-ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Sizes scale the site's own padding and text size. */
.btn.btn-s { --btn-k: 0.68; --btn-kf: 0.9; gap: 8px; }
.btn.btn-l { --btn-k: 1.22; --btn-kf: 1.1; }
.btn.btn-xl { --btn-k: 1.45; --btn-kf: 1.22; gap: 12px; }
/* A text link has no shape at any size. */
.btn.btn-link { background: none; border-color: transparent; box-shadow: none; padding: 2px 0; border-radius: 0; color: var(--brand); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.btn.btn-link:hover { transform: none; color: var(--brand-deep); text-decoration-color: currentColor; }
.btn.btn-shape-square, .s-card-link.btn-shape-square { border-radius: 0; }
.btn.btn-shape-soft { border-radius: 6px; }
.btn.btn-shape-round { border-radius: 12px; }
.btn.btn-shape-pill { border-radius: 999px; }
.btn.btn-shape-brand { border-radius: var(--brand-radius, 8px); }
.btn.btn-wide { width: 100%; }
@media (max-width: 640px) { .btn.btn-wide-phone { width: 100%; } }
/* On a brand-coloured or dark band, or over a photograph: the quiet styles turn white. */
:is(.s-section.tone-brand, .s-section.tone-dark, .s-section.has-bg) :is(.btn-line, .btn-ghost, .btn.btn-link) { color: #fff; border-color: rgb(255 255 255 / 0.55); }
:is(.s-section.tone-brand, .s-section.tone-dark, .s-section.has-bg) .btn.btn-link { border-color: transparent; }
:is(.s-section.tone-brand, .s-section.tone-dark, .s-section.has-bg) :is(.btn-line, .btn-ghost):hover { background: rgb(255 255 255 / 0.12); color: #fff; border-color: #fff; }
:is(.s-section.tone-brand, .s-section.tone-dark, .s-section.has-bg) .btn-soft { background: rgb(255 255 255 / 0.16); color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn:active { transform: none; } }

/* --- Header ---------------------------------------------------------------------------------- */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.25s ease; }
.site-head.is-scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); min-width: 0; }
.brand img { height: 52px; width: auto; max-width: 180px; object-fit: contain; }
.brand-word { font-family: var(--display); font-size: 1.55rem; line-height: 1; white-space: nowrap; }
.brand-word small { display: block; font-size: 0.55rem; letter-spacing: 0.32em; text-transform: uppercase; margin-top: 4px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.site-nav a.link { color: var(--ink); text-decoration: none; padding: 9px 14px; border-radius: 999px; font-size: 0.95rem; }
.site-nav a.link:hover, .site-nav a.link[aria-current="page"] { color: var(--brand); background: var(--brand-wash); }
.menu-toggle { display: none; margin-left: auto; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font: 600 0.9rem var(--sans); color: var(--ink); }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 16px 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
}

/* --- Sections -------------------------------------------------------------------------------- */
section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.band { background: var(--paper-deep); }
.section-head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.section-head.center .lead { margin-inline: auto; }

/* --- Hero ------------------------------------------------------------------------------------ */
.hero { padding-top: clamp(28px, 5vw, 64px); overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, var(--accent-wash), transparent 62%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero-art { max-width: 420px; margin-inline: auto; } }
.hero-copy { display: grid; gap: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 8px; border-top: 1px solid var(--line); }
.proof span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ink-soft); }
.proof span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--brand); }

/* The medallion: the logo inside fine circles, like the logo itself */
.medallion { position: relative; aspect-ratio: 1; width: 100%; }
.medallion .ring { position: absolute; border-radius: 50%; border: 1.5px solid var(--brand); inset: 4%; }
.medallion .ring.outer { inset: 0; border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent); animation: turn 120s linear infinite; }
.medallion .ring.faint { inset: -6%; border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent); }
.medallion .face { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 50% 38%, var(--card), var(--paper) 72%); display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.medallion .face img { width: 86%; height: 86%; object-fit: contain; }
.medallion .word { text-align: center; color: var(--brand); }
.medallion .word b { display: block; font: 400 clamp(3.6rem, 2.6rem + 5vw, 7rem)/0.9 var(--display); }
.medallion .word span { display: block; font: 400 clamp(0.75rem, 0.65rem + 0.4vw, 1rem)/1 var(--display); letter-spacing: 0.32em; text-transform: uppercase; margin-top: 10px; }
@keyframes turn { to { transform: rotate(360deg); } }

/* --- Product glimpse: an example trip in the studio ------------------------------------------ */
.window { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 70%, var(--card)); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.window-bar span { margin-left: 10px; font-size: 0.82rem; color: var(--ink-soft); }
.window-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 860px) { .window-body { grid-template-columns: minmax(0, 1fr); } }
.days { list-style: none; margin: 0; padding: 10px; display: grid; gap: 4px; }
.days li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; }
.days li:nth-child(odd) { background: color-mix(in srgb, var(--paper) 55%, transparent); }
.days .d { font: 400 0.8rem var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); }
.days .where { font-family: var(--display); color: var(--ink); font-size: 1.05rem; }
.days .what { display: block; font-size: 0.84rem; color: var(--ink-soft); }
.pill { font-size: 0.74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.pill.wait { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pill.opt { background: var(--brand-wash); color: var(--brand); }
.price-panel { border-left: 1px solid var(--line); padding: 26px; display: grid; gap: 18px; align-content: start; }
@media (max-width: 860px) { .price-panel { border-left: 0; border-top: 1px solid var(--line); } }
.price-panel .big { font: 400 2.4rem/1 var(--display); color: var(--brand); font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; width: 24%; background: linear-gradient(90deg, var(--accent), var(--brand)); border-radius: inherit; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--ink-soft); }
.kv b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.example-note { margin-top: 14px; text-align: center; font-size: 0.82rem; color: var(--ink-soft); }

/* --- The journey: a route across the page ---------------------------------------------------- */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px; position: relative; counter-reset: none; }
.journey::before { content: ""; position: absolute; left: 10px; right: 4%; top: 13px; border-top: 1.5px dashed color-mix(in srgb, var(--accent) 70%, transparent); }
.journey li { position: relative; display: grid; gap: 8px; padding-top: 42px; }
.journey li::before { content: ""; position: absolute; top: 4px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--paper-deep); border: 1.5px solid var(--brand); box-shadow: 0 0 0 5px var(--paper-deep); }
.journey li:first-child::before, .journey li:last-child::before { background: var(--brand); }
.journey b { font: 400 1.2rem var(--display); color: var(--brand); }
.journey span { font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 1020px) {
  .journey { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 34px; }
  .journey::before { left: 9px; right: auto; top: 8px; bottom: 8px; border-top: 0; border-left: 1.5px dashed color-mix(in srgb, var(--accent) 70%, transparent); }
  .journey li { padding: 0 0 24px; }
  .journey li::before { left: -34px; top: 3px; }
}

/* --- Bento of featured parts and the rest ---------------------------------------------------- */
.bento { display: grid; gap: 18px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.5vw, 32px); display: grid; gap: 14px; align-content: start; text-decoration: none; color: inherit; box-shadow: var(--shadow); overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease; }
a.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 50%, transparent); color: inherit; }
.tile.wide { grid-column: span 7; }
.tile.narrow { grid-column: span 5; }
.tile.third { grid-column: span 4; }
@media (max-width: 960px) { .tile.wide, .tile.narrow { grid-column: span 12; } .tile.third { grid-column: span 6; } }
@media (max-width: 600px) { .tile.third { grid-column: span 12; } }
.tile p { color: var(--ink-soft); font-size: 0.97rem; }
.tile .more { margin-top: auto; font-size: 0.9rem; font-weight: 600; color: var(--brand); }
.icon { width: 50px; height: 50px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand) 60%, transparent); display: grid; place-items: center; color: var(--brand); background: var(--brand-wash); flex: none; }
.icon svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.scene { margin-top: 6px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 60%, var(--card)); padding: 14px; display: grid; gap: 8px; font-size: 0.82rem; }
.scene .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.scene .row span:first-child { color: var(--ink); }
.scene .lane { display: grid; grid-template-columns: 74px repeat(6, minmax(0, 1fr)); gap: 4px; align-items: center; }
.scene .lane b { font-weight: 600; color: var(--ink-soft); font-size: 0.76rem; }
.scene .slot { height: 18px; border-radius: 5px; background: var(--line); }
.scene .slot.on { background: color-mix(in srgb, var(--brand) 70%, transparent); }
.scene .slot.alt { background: color-mix(in srgb, var(--accent) 70%, transparent); }
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.doc { aspect-ratio: 3 / 4; border-radius: 8px; background: var(--card); border: 1px solid var(--line); padding: 10px; display: grid; gap: 6px; align-content: start; }
.doc .top { height: 14px; border-radius: 4px; background: var(--brand); }
.doc .l { height: 5px; border-radius: 3px; background: var(--line); }
.doc .l.s { width: 60%; }
.doc small { font: 400 0.62rem var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); }

/* --- Audiences ------------------------------------------------------------------------------- */
.audiences { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.audiences div { padding: 30px 26px; border-left: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.audiences div:first-child { border-left: 0; }
@media (max-width: 960px) { .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); } .audiences div:nth-child(3) { border-left: 0; } .audiences div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .audiences { grid-template-columns: minmax(0, 1fr); } .audiences div { border-left: 0 !important; border-top: 1px solid var(--line); } .audiences div:first-child { border-top: 0; } }

/* --- Split sections, ticks ------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 14px; height: 7px; border-left: 1.5px solid var(--brand); border-bottom: 1.5px solid var(--brand); transform: rotate(-45deg); }
.ticks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
@media (max-width: 700px) { .ticks.two { grid-template-columns: minmax(0, 1fr); } }

/* A deep band in the brand's colour */
.deep { background: var(--brand-deep); color: color-mix(in srgb, #fff 88%, var(--brand-deep)); }
.deep h2, .deep .caps { color: #fff; }
.deep .lead, .deep .muted { color: color-mix(in srgb, #fff 74%, var(--brand-deep)); }
.deep .ticks li::before { border-color: var(--accent); }
.deep .seal { width: min(320px, 70vw); aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, #fff 30%, transparent); display: grid; place-items: center; margin-inline: auto; position: relative; }
.deep .seal::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 1px dashed color-mix(in srgb, #fff 22%, transparent); }
.deep .seal svg { width: 34%; stroke: var(--accent); fill: none; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }

/* --- Features page --------------------------------------------------------------------------- */
.features-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { padding: 7px 0 7px 18px; margin-left: -1px; border-left: 1.5px solid transparent; color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.toc a:hover { color: var(--brand); border-left-color: var(--brand); }
@media (max-width: 960px) { .features-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static; display: flex; flex-wrap: wrap; gap: 8px; border: 0; } .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin: 0; background: var(--card); } }
.feature { display: grid; gap: 20px; padding-block: 48px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature-head { display: flex; gap: 18px; align-items: center; }

/* --- Pricing (templates/landing/_pricing.html) --------------------------------------------- */
.pricing { display: grid; gap: 24px; min-width: 0; --save: color-mix(in srgb, var(--ok) 72%, var(--ink)); }
.pricing-controls { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: center; align-items: center; }
.pricing-tabs, .billing-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 5px; background: var(--card); gap: 4px; margin: 0; box-shadow: var(--shadow); max-width: 100%; }
.pricing-tabs button, .billing-toggle button { flex: 1 1 auto; justify-content: center; border: 0; background: transparent; border-radius: 999px; padding: 10px 18px; min-height: 44px; font: 600 0.92rem var(--sans); color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease; }
.pricing-tabs button:hover, .billing-toggle button:hover { color: var(--ink); background: var(--brand-wash); }
.pricing-tabs button[aria-selected="true"], .billing-toggle button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.pricing-tabs button:focus-visible, .billing-toggle button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 560px) {
  .pricing-controls { flex-direction: column; align-items: stretch; }
  .pricing-tabs, .billing-toggle { display: flex; width: 100%; }
  .pricing-tabs button, .billing-toggle button { padding-inline: 10px; font-size: 0.86rem; }
}
.save-pill { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--save); white-space: nowrap; }
.billing-toggle button[aria-pressed="true"] .save-pill { background: color-mix(in srgb, var(--on-brand) 22%, transparent); color: var(--on-brand); }
[data-billing="annual"] .when-monthly, [data-billing="monthly"] .when-annual { display: none; }
.billing-toggle[hidden] { display: none !important; }
.pricing-promises { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 0.88rem; color: var(--ink-soft); }
.pricing-promises li { display: inline-flex; align-items: center; gap: 8px; }
.pricing-promises li::before { content: ""; width: 12px; height: 6px; border-left: 1.5px solid var(--save); border-bottom: 1.5px solid var(--save); transform: rotate(-45deg) translateY(-2px); }
.pricing-panel { display: grid; gap: 24px; min-width: 0; }
.pricing-panel[hidden] { display: none; }

/* Cards: their parts line up across the row (subgrid), whatever each plan says. */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 262px), 1fr)); padding-top: 14px; }
.plans[data-plans="1"] { max-width: 460px; margin-inline: auto; width: 100%; }
.plans[data-plans="2"] { max-width: 920px; margin-inline: auto; width: 100%; }
.plan { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 2.4vw, 30px); box-shadow: var(--shadow); text-align: left; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
@supports (grid-template-rows: subgrid) {
  .plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; gap: 20px; }
}
.plan:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.plan.is-highlight { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 30px 60px -30px color-mix(in srgb, var(--brand) 55%, transparent); background: linear-gradient(180deg, var(--brand-wash), var(--card) 42%); }
.plan-badge { position: absolute; top: 0; left: 50%; translate: -50% -50%; background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 5px 14px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 6px 16px -8px var(--brand); }
.plan-head { display: grid; gap: 6px; align-content: start; }
.plan-name { margin: 0; font: 600 1.5rem/1.2 var(--display); color: var(--ink); }
.plan.is-highlight .plan-name { color: var(--brand); }
.plan-desc { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.plan-price { display: grid; gap: 6px; align-content: start; }
.plan .price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan .price .cur { font: 600 0.95rem var(--sans); color: var(--ink-soft); align-self: flex-start; margin-top: 0.45rem; }
.plan .price .amt { font: 500 clamp(2.4rem, 3.6vw, 3rem)/1 var(--display); letter-spacing: -0.02em; }
.plan .price small { font: 400 0.95rem var(--sans); color: var(--ink-soft); }
.plan .price .was { font: 400 1.05rem var(--sans); color: var(--pencil); align-self: center; margin-right: 2px; }
.price-note { margin: 0; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.price-hint { color: var(--save); }
.price-save { color: var(--save); font-weight: 600; }
.plan-cta { display: grid; gap: 8px; align-content: start; }
.plan-cta .btn { width: 100%; }
.plan-cta-note { margin: 0; text-align: center; font-size: 0.8rem; color: var(--ink-soft); }
.plan-label { margin: 0 0 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pencil); }
.plan-facts { padding-top: 18px; border-top: 1px solid var(--line); }
.plan-facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.92rem; font-weight: 600; }
.plan-points { display: grid; gap: 12px; align-content: start; }
.plan-points .ticks { gap: 10px; }
.plan-base { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.plan-base strong { color: var(--ink); }
.plan-more { font-size: 0.86rem; font-weight: 600; color: var(--brand); }

.pricing-shared { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: clamp(20px, 3vw, 30px); display: grid; gap: 18px; }
.pricing-shared-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.pricing-shared h3 { margin: 0; font: 600 1.25rem/1.3 var(--display); color: var(--ink); }
.pricing-shared-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px 28px; }
.pricing-shared-more { display: none; }
@media (max-width: 640px) { .pricing-shared-list li:nth-child(n+9) { display: none; } .pricing-shared-more { display: inline; } }
.pricing-custom { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); background: linear-gradient(120deg, var(--paper-deep), var(--card)); border: 1px solid var(--line); }
.pricing-custom h3 { margin: 0 0 4px; font: 600 1.3rem/1.3 var(--display); color: var(--ink); }
.pricing-custom p { margin: 0; color: var(--ink-soft); }
.pricing-addons { display: grid; gap: 16px 32px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: clamp(20px, 3vw, 28px); }
@media (min-width: 860px) { .pricing-addons { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.pricing-addons h3 { margin: 0 0 4px; font: 600 1.25rem/1.3 var(--display); color: var(--ink); }
.pricing-addons p { margin: 0; }
.pricing-addons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pricing-addons li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.pricing-addons li:last-child { border-bottom: 0; padding-bottom: 0; }
.addon-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.pricing-foot { text-align: center; max-width: 68ch; margin: 0 auto; }
.pricing-foot a { color: var(--brand); }
.pricing-empty { display: grid; gap: 18px; justify-items: center; text-align: center; max-width: 520px; margin-inline: auto; }
.plan-compare .pc-choose { display: inline-block; margin-top: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent); color: var(--brand); font-size: 0.78rem; font-weight: 600; text-decoration: none; }
.plan-compare .pc-choose:hover { background: var(--brand-wash); }

/* --- Forms ----------------------------------------------------------------------------------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.form { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.88rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); }
.field .error { color: #b42318; font-size: 0.85rem; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 16px; }
.notice.error { border-color: color-mix(in srgb, #b42318 40%, var(--line)); }

/* --- Closing call to action and footer ------------------------------------------------------- */
.cta { text-align: center; display: grid; gap: 22px; justify-items: center; }
.cta .medallion { width: 150px; }
.site-foot { border-top: 1px solid var(--line); padding-block: 56px 36px; font-size: 0.92rem; color: var(--ink-soft); background: var(--paper); }
.site-foot .cols { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
.site-foot h4 { margin: 0 0 12px; font: 400 0.74rem var(--display); letter-spacing: 0.26em; text-transform: uppercase; color: var(--brand); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--brand); }
.site-foot .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.84rem; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .site-foot .about { grid-column: 1 / -1; } }

/* Ornament: the logo's horizon between parts */
.horizon { display: flex; align-items: center; justify-content: center; gap: 16px; color: color-mix(in srgb, var(--accent) 80%, transparent); padding-block: 8px; }
.horizon::before, .horizon::after { content: ""; height: 1px; width: min(200px, 28vw); background: currentColor; }
.horizon svg { width: 34px; height: 22px; stroke: var(--pencil); fill: none; stroke-width: 1.2; stroke-linecap: round; }

/* Gentle reveal as parts scroll into view (visible by default; JS adds the motion) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media print { .site-head, .site-foot, .hero-actions { display: none; } body { background: #fff; } }

/* --- Light and dark ----------------------------------------------------------------------------
   The light logo shows by default; with a dark logo uploaded, it replaces the light one in dark
   mode (the device's choice, unless the visitor picked light; or the visitor's own choice). */
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
  :root:not([data-theme="light"]) .only-light:has(+ .only-dark) { display: none !important; }
  :root:not([data-theme="light"]) .hero::before { opacity: 0.5; }
}
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light:has(+ .only-dark) { display: none !important; }

.theme-toggle { margin-left: auto; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--brand); cursor: pointer; transition: border-color 0.2s ease; }
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: inline; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
.theme-toggle[data-mode="auto"]::after { content: "A"; position: absolute; font: 700 0.55rem var(--sans); transform: translate(9px, 9px); color: var(--ink-soft); }
.theme-toggle { position: relative; }
.site-head .wrap .theme-toggle + .menu-toggle { margin-left: 8px; }
@media (min-width: 901px) { .theme-toggle { order: 3; margin-left: 8px; } .site-nav { order: 2; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: inline; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
}

/* --- The logo merged into the page --------------------------------------------------------------
   A soft glow of the page's own colour behind it, and the edges fading out (a radial mask), so
   the drawing sits in the paper rather than on it. */
.medallion.has-logo { display: grid; place-items: center; }
.medallion.has-logo .glow { position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--card) 92%, transparent) 0%, color-mix(in srgb, var(--card) 55%, transparent) 55%, transparent 100%); }
.medallion.has-logo img { position: relative; width: 100%; height: 100%; object-fit: contain;
  -webkit-mask-image: radial-gradient(closest-side, #000 74%, rgb(0 0 0 / 0.55) 88%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 74%, rgb(0 0 0 / 0.55) 88%, transparent 100%); }
.brand img { -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent 100%); mask-image: radial-gradient(closest-side, #000 80%, transparent 100%); }

/* --- Paper and night ----------------------------------------------------------------------------
   A faint paper grain in the light theme; a scatter of stars over the hero at night. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body { isolation: isolate; }
.night { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { opacity: 0.12; } :root:not([data-theme="light"]) .night { display: block; } }
:root[data-theme="dark"] body::before { opacity: 0.12; }
:root[data-theme="dark"] .night { display: block; }
.night { position: absolute; inset: 0; pointer-events: none; opacity: 0.7;
  background-image:
    radial-gradient(1px 1px at 12% 18%, var(--ink) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 8%, var(--ink) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 22%, var(--accent) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, var(--ink) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 30%, var(--ink) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 9%, var(--ink) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 42%, var(--ink) 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 38%, var(--ink) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 4%, var(--accent) 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 44%, var(--ink) 50%, transparent 51%); }

/* --- The acacia horizon between chapters --------------------------------------------------------- */
.horizon { padding-block: 0; margin-block: -8px; }
.horizon svg { width: 64px; height: 28px; }

/* Fixes after review: the fade starts
   beyond the lettering so "ON SAFARI" stays whole; the header logo is large enough to read;
   the acacia ornament sits in the space above the next chapter. */
.hero-art { position: relative; }
.medallion.has-logo img {
  -webkit-mask-image: radial-gradient(circle farthest-corner, #000 68%, rgb(0 0 0 / 0.6) 76%, transparent 86%);
  mask-image: radial-gradient(circle farthest-corner, #000 68%, rgb(0 0 0 / 0.6) 76%, transparent 86%); }
.brand img { height: 60px; -webkit-mask-image: radial-gradient(circle farthest-corner, #000 70%, transparent 88%); mask-image: radial-gradient(circle farthest-corner, #000 70%, transparent 88%); }
.horizon { margin: 0; padding-top: clamp(40px, 5vw, 64px); margin-bottom: calc(-1 * clamp(36px, 5vw, 72px)); position: relative; z-index: 1; }


/* ==== Editable pages (console > Public site; templates/landing/site/) ========================= */
/* Each band's colours, as tokens its parts read (--t-*): the light bands follow the site's
   colours (theme_css, then the global look's --heading, --eyebrow, --link...), the brand band
   writes in the colour that reads on the brand, dark bands and photographs in white. So a
   heading is always readable, in the light look and the dark, whatever the site's colours. */
.s-section {
  --t-bg: var(--paper); --t-ink: var(--ink); --t-heading: var(--heading, var(--brand));
  --t-muted: var(--ink-soft); --t-eyebrow: var(--eyebrow, var(--brand)); --t-link: var(--link, var(--brand));
  --t-link-hover: var(--link-hover, var(--brand-deep)); --t-line: var(--line); --t-accent: var(--brand);
  --t-on-accent: var(--on-brand); --t-card: var(--card-bg, var(--card)); --t-card-ink: var(--ink);
  --t-card-muted: var(--ink-soft); --t-card-line: var(--card-line, var(--line)); --t-wash: var(--brand-wash);
  position: relative; isolation: isolate; padding: var(--section-pad) 0; overflow: hidden;
  background: var(--t-bg); color: var(--t-ink);
}
.s-section.tone-card { --t-bg: var(--band-card, var(--card)); --t-card: var(--card-on-card, var(--paper)); }
.s-section.tone-brand {
  --t-bg: linear-gradient(135deg, var(--brand), var(--brand-band-end, var(--brand-deep))); --t-ink: var(--on-brand);
  --t-heading: var(--on-brand); --t-muted: color-mix(in srgb, var(--on-brand) 82%, transparent);
  --t-eyebrow: color-mix(in srgb, var(--on-brand) 70%, var(--accent)); --t-link: var(--on-brand);
  --t-link-hover: var(--on-brand); --t-line: color-mix(in srgb, var(--on-brand) 24%, transparent);
  --t-accent: var(--on-brand); --t-on-accent: var(--brand); --t-card: color-mix(in srgb, var(--on-brand) 9%, transparent);
  --t-card-ink: var(--on-brand); --t-card-muted: color-mix(in srgb, var(--on-brand) 80%, transparent);
  --t-card-line: color-mix(in srgb, var(--on-brand) 20%, transparent); --t-wash: color-mix(in srgb, var(--on-brand) 14%, transparent);
}
.s-section.tone-dark, .s-section.has-bg {
  --t-ink: #fff; --t-heading: var(--night-heading, #fff); --t-muted: rgb(255 255 255 / 0.82);
  --t-eyebrow: color-mix(in srgb, var(--accent) 70%, #fff); --t-link: #fff; --t-link-hover: #fff;
  --t-line: rgb(255 255 255 / 0.18); --t-accent: color-mix(in srgb, var(--accent) 70%, #fff); --t-on-accent: var(--night);
  --t-card: rgb(255 255 255 / 0.06); --t-card-ink: #fff; --t-card-muted: rgb(255 255 255 / 0.78);
  --t-card-line: rgb(255 255 255 / 0.14); --t-wash: rgb(255 255 255 / 0.1);
}
.s-section.tone-dark { --t-bg: radial-gradient(1200px 500px at 15% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--night); }
.s-section :is(h1, h2, h3, h4, .s-title) { color: var(--t-heading); }
.s-section :is(.s-lead, .s-muted) { color: var(--t-muted); }
.s-section .s-eyebrow { color: var(--t-eyebrow); }
.s-section :is(p, li, dd, .s-rich, .s-prose, figcaption) a:not(.btn) { color: var(--t-link); }
.s-section :is(p, li, dd, .s-rich, .s-prose, figcaption) a:not(.btn):hover { color: var(--t-link-hover); }
.s-section.has-bg { color: #fff; }
.s-section.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(0 0 0 / calc(var(--overlay) * 0.6)), rgb(0 0 0 / var(--overlay))); }
.s-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.s-section.has-bg .s-lead { color: rgb(255 255 255 / 0.86); }
.s-inner { position: relative; }
.s-eyebrow { margin: 0 0 12px; font: 600 0.78rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); }
.s-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
.s-hero .s-title { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); }
.s-lead { margin: 18px 0 0; max-width: 62ch; font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.22rem); line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.s-head { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.s-head .s-lead { margin-inline: auto; }
.s-head.is-left { margin-inline: 0; text-align: left; }
.s-head.is-left .s-lead { margin-inline: 0; }
.s-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.s-head .s-actions, .s-cta .s-actions { justify-content: center; }

/* Hero */
.s-hero { padding-block: clamp(80px, 12vw, 168px); }
.s-hero-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.s-hero-grid.layout-center { text-align: center; justify-items: center; }
.s-hero-grid.layout-center .s-lead { margin-inline: auto; }
.s-hero-grid.layout-center .s-actions { justify-content: center; }
@media (min-width: 960px) {
  .s-hero-grid.has-image:not(.layout-center) { grid-template-columns: 1.05fr 0.95fr; }
  .s-hero-grid.has-image.layout-left .s-hero-media { order: -1; }
}
.s-hero-media, .s-split-media { margin: 0; border-radius: calc(var(--radius) * 1.4); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--paper-deep); }
.s-hero-media img, .s-split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Text and image */
.s-split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) {
  .s-split:not(.no-image) { grid-template-columns: 1fr 1fr; }
  .s-split.layout-left .s-split-media { order: -1; }
}

/* Feature grid */
.s-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 900px) {
  .s-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .s-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .s-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.s-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; color: var(--ink); }
.s-card:hover { transform: var(--card-hover-move, translateY(-3px)); box-shadow: var(--card-hover-shadow, var(--shadow)); border-color: color-mix(in srgb, var(--t-accent, var(--brand)) 30%, var(--t-card-line, var(--line))); }
.s-card h3 { margin: 0; font: 600 1.18rem/1.3 var(--display); }
.s-card p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.s-card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-wash); color: var(--brand); }
.s-icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s-card-media { width: calc(100% + 56px); margin: -28px -28px 8px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.s-card-link { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--brand); }

/* Checklist */
/* Checklist: the heading above, across the whole row, the points below in columns (the panel's
   Heading setting puts it beside them instead). */
.s-checklist:where(:not(.s-section)) { display: grid; gap: clamp(20px, 3vw, 40px); }
.s-checklist > .s-head { max-width: none; margin-bottom: 0; }
.s-checklist > .s-head .s-lead { max-width: 75ch; }
.s-ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px 28px; }
@media (min-width: 640px) { .s-ticks.cols-2 { grid-template-columns: 1fr 1fr; } .s-ticks.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.s-ticks li { position: relative; padding: 2px 0 2px 34px; line-height: 1.55; }
.s-ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a1e16' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Steps */
.s-steps:where(:not(.s-section)) { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: step; }
.s-step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.s-step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 700 1rem var(--sans); box-shadow: 0 0 0 6px var(--brand-wash); }
.s-step h3 { margin: 0 0 6px; font: 600 1.08rem/1.3 var(--display); }
.s-step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }

/* Figures */
.s-stats:where(:not(.s-section)) { margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); text-align: center; }
.s-stat { position: relative; padding: 18px; }
.s-stat dd { margin: 0; order: -1; font: 600 clamp(2.2rem, 1.6rem + 2vw, 3.4rem)/1 var(--display); letter-spacing: -0.02em; }
.s-stat { display: flex; flex-direction: column; gap: 8px; }
.s-stat dt { font-size: 0.95rem; opacity: 0.85; }

/* Gallery */
.s-gallery:where(:not(.s-section)) { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
@media (min-width: 900px) { .s-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); } .s-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); } .s-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.s-shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-deep); }
.s-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.6s ease; }
.s-shot:hover img { transform: scale(1.04); }
.s-shot figcaption { padding: 10px 14px; font-size: 0.9rem; color: var(--ink-soft); }

/* Testimonials */
.s-quotes:where(:not(.s-section)) { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.s-quote { position: relative; margin: 0; padding: 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.s-quote blockquote { margin: 0; font: 400 1.18rem/1.55 var(--display); }
.s-quote blockquote p::before { content: "\201C"; }
.s-quote blockquote p::after { content: "\201D"; }
.s-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.s-quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.s-quote figcaption span { display: grid; }
.s-quote small { color: var(--ink-soft); }

/* Questions */
.s-faq:where(:not(.s-section)) { display: grid; gap: clamp(24px, 4vw, 64px); }
@media (min-width: 960px) { .s-faq:where(:not(.s-section)) { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.s-faq-list { display: grid; gap: 10px; }
.s-q { position: relative; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.s-q summary, .s-q-summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.s-q summary::-webkit-details-marker { display: none; }
.s-q summary::after, .s-q-summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; font-size: 1.4rem; color: var(--brand); transition: rotate 0.2s ease; }
.s-q[open] summary::after, .s-q.is-open .s-q-summary::after { rotate: 45deg; }
.s-q p { margin: 0; padding: 0 20px 20px; color: var(--ink-soft); line-height: 1.65; }

/* Logos */
.s-logos:where(:not(.s-section)) { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(24px, 4vw, 56px); }
.s-logos li { position: relative; }
.s-logos img { height: 40px; width: auto; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s, opacity 0.2s; }
.s-logos img:hover { filter: none; opacity: 1; }

/* Pricing, demo, call to action, text */
.s-pricing .s-head { margin-bottom: 32px; }
.plan-name { margin: 0; font: 600 1.8rem/1.2 var(--display); }
.s-demo:where(:not(.s-section)) { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .s-demo:where(:not(.s-section)) { grid-template-columns: 0.9fr 1.1fr; } }
/* The form's share of the row (editor panel "Form share of the row", or its drag handle). */
@media (min-width: 960px) {
  .s-section[data-s-form="1/2"] :is(.s-demo, .s-enquiry) { grid-template-columns: 1fr 1fr; }
  .s-section[data-s-form="2/3"] :is(.s-demo, .s-enquiry) { grid-template-columns: 1fr 2fr; }
  .s-section[data-s-form="3/4"] :is(.s-demo, .s-enquiry) { grid-template-columns: 1fr 3fr; }
  .s-section[data-s-form="full"] :is(.s-demo, .s-enquiry) { grid-template-columns: 1fr; }
}
.s-section[data-s-form="full"] :is(.s-demo, .s-enquiry) .form-card { width: 100%; }
.s-cta:where(:not(.s-section)) { max-width: 760px; margin-inline: auto; text-align: center; }
.s-cta .s-lead { margin-inline: auto; }
.s-prose { max-width: 72ch; margin-inline: auto; font-size: 1.06rem; line-height: 1.75; }
.s-prose h2 { font: 600 1.8rem/1.2 var(--display); margin: 1.6em 0 0.5em; }
.s-prose h3 { font: 600 1.3rem/1.3 var(--display); margin: 1.4em 0 0.4em; }
.s-prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.s-prose ul { padding-left: 1.2em; }
/* Formatted text (Text sections and text blocks): the marks of apps/landing/richtext.py. */
.s-rich > * + * { margin-top: 0.9em; }
.s-rich > :first-child { margin-top: 0; }
.s-rich h2 { font: 600 clamp(1.5rem, 1.2rem + 1vw, 1.9rem)/1.2 var(--display); margin: 1.4em 0 0.4em; }
.s-rich h3 { font: 600 clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem)/1.3 var(--display); margin: 1.2em 0 0.3em; }
.s-rich :is(ul, ol) { margin: 0.6em 0 0; padding-left: 1.3em; }
.s-rich li + li { margin-top: 0.3em; }
.s-rich blockquote { margin: 1em 0 0; padding: 0.2em 0 0.2em 1em; border-left: 3px solid var(--t-accent, var(--accent)); font-family: var(--display); font-size: 1.12em; font-style: italic; color: var(--t-muted, var(--ink-soft)); }
.s-rich a { text-decoration: underline; text-underline-offset: 3px; }
/* Cards of every kind read their band's tokens; the global look shapes them (site_styles.py). */
.s-section :is(.s-card, .s-step, .s-quote, .s-q) { background: var(--t-card); border-color: var(--t-card-line); color: var(--t-card-ink); box-shadow: var(--card-shadow, 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent)); border-radius: var(--card-radius, var(--radius)); }
.s-section :is(.s-card, .s-step, .s-quote, .s-q) :is(h3, .s-q-summary, summary) { color: var(--card-heading, var(--t-heading)); }
.s-section :is(.s-card p, .s-step p, .s-q p, .s-quote small, .s-shot figcaption) { color: var(--t-card-muted); }
.s-section:is(.tone-dark, .tone-brand, .has-bg) :is(.s-card, .s-step, .s-quote, .s-q) { backdrop-filter: blur(6px); box-shadow: none; }
.s-section .s-card-icon { background: var(--t-wash); color: var(--t-accent); }
.s-section .s-step-n { background: var(--t-accent); color: var(--t-on-accent); box-shadow: 0 0 0 6px var(--t-wash); }
.s-section .s-ticks li::before { background-color: var(--t-wash); }
.s-section:is(.tone-dark, .tone-brand, .has-bg) .s-ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.s-section :is(.s-q summary, .s-q-summary)::after { color: var(--t-accent); }
@media (prefers-reduced-motion: reduce) { .s-card, .s-shot img, .s-q summary::after { transition: none; } .s-card:hover { transform: none; } }

/* Go to menu for signed-in people: their organizations, the console, sign out. */
details.goto { position: relative; }
details.goto > summary { list-style: none; cursor: pointer; } details.goto > summary::-webkit-details-marker { display: none; }
.goto-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; max-height: 70vh; overflow-y: auto; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 30; }
.goto-menu a, .goto-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer; text-decoration: none; }
.goto-menu a:hover, .goto-menu button:hover { background: var(--brand-wash); color: var(--brand); }
.goto-label { margin: 8px 12px 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pencil); }
@media (max-width: 900px) { .goto-menu { position: static; box-shadow: none; margin-top: 6px; } }

/* Dropdowns in the top menu: pages placed under another page (console > Public site). */
details.nav-drop { position: relative; }
details.nav-drop > summary { list-style: none; cursor: pointer; color: var(--ink); padding: 9px 14px; border-radius: 999px; font-size: 0.95rem; }
details.nav-drop > summary::-webkit-details-marker { display: none; }
details.nav-drop > summary:hover, details.nav-drop[open] > summary, details.nav-drop > summary.is-current { color: var(--brand); background: var(--brand-wash); }
.nav-drop-menu { position: absolute; left: 0; top: calc(100% + 8px); min-width: 280px; padding: 8px; display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 30; }
.nav-drop-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.nav-drop-menu a small { color: var(--pencil); font-size: 0.82rem; }
.nav-drop-menu a:hover, .nav-drop-menu a[aria-current="page"] { background: var(--brand-wash); color: var(--brand); }
@media (max-width: 900px) { .nav-drop-menu { position: static; box-shadow: none; min-width: 0; } }
.site-foot h4 a { color: inherit; text-decoration: none; }

/* Pricing: what each plan includes, module by module (from the plans' own modules). */
.plan-compare { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.plan-compare > summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; color: var(--brand); list-style: none; position: relative; }
.plan-compare > summary::-webkit-details-marker { display: none; }
.plan-compare > summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; font-size: 1.4rem; transition: rotate 0.2s ease; }
.plan-compare[open] > summary::after { rotate: 45deg; }
.plan-compare > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: var(--radius); }
.plan-compare-wrap { overflow: auto; padding: 0 0 16px; max-height: 75vh; overscroll-behavior: contain; }
.plan-compare-wrap:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.plan-compare table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 0.92rem; }
.plan-compare th, .plan-compare td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.plan-compare thead th { position: sticky; top: 0; z-index: 2; background: var(--card); vertical-align: bottom; box-shadow: 0 1px 0 var(--line); }
.plan-compare th[scope="row"], .plan-compare thead th:first-child { text-align: left; font-weight: 500; position: sticky; left: 0; background: var(--card); z-index: 1; min-width: 180px; }
.plan-compare thead th:first-child { z-index: 3; }
.plan-compare .pc-name { display: block; font: 600 1rem var(--display); color: var(--ink); }
.plan-compare .pc-price { display: block; font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-top: 2px; }
.plan-compare .pc-value { font-variant-numeric: tabular-nums; font-weight: 600; }
.plan-compare th.is-part { padding-left: 28px; font-weight: 400; color: var(--ink-soft); }
.plan-compare-group th { text-align: left; padding-top: 18px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pencil); position: sticky; left: 0; background: var(--card); }
.plan-compare tbody tr:not(.plan-compare-group):hover > * { background: color-mix(in srgb, var(--brand-wash) 60%, var(--card)); }
.plan-compare .yes { color: var(--ok, #2f7a4a); font-weight: 700; }
.plan-compare .no { color: var(--pencil); }

/* --- Supplier Market (public directory and profiles; apps/market/public.py) ------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mk-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.mk-filter label { display: flex; }
.mk-filter .mk-q { flex: 1 1 260px; }
.mk-filter input, .mk-filter select { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 500 0.98rem var(--sans); }
.mk-filter input:focus-visible, .mk-filter select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mk-count { margin: 0 0 18px; color: var(--ink-soft); font-size: 0.92rem; }
.mk-count a { color: var(--brand); }
.mk-all { margin: 26px 0 0; text-align: center; }
.mk-card-top { display: flex; align-items: center; gap: 12px; }
.mk-logo { height: 40px; width: auto; max-width: 110px; object-fit: contain; }
.mk-initial { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-wash); color: var(--brand); font: 700 1.05rem var(--display); }
.mk-card .s-eyebrow { margin: 0; }
.mk-where { font-size: 0.9rem; }
.mk-pages { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px 0 0; color: var(--ink-soft); }
.mk-join { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 34px; padding: 22px 26px; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--brand-wash) 50%, transparent); }
.mk-join p { margin: 0; max-width: 60ch; }
.mk-profile { padding: 48px 0 72px; }
.mk-profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-bottom: 28px; }
.mk-profile-head .mk-logo { height: 72px; max-width: 200px; }
.mk-profile-head .mk-initial { width: 72px; height: 72px; font-size: 1.8rem; border-radius: 18px; }
.mk-profile-head h1 { margin: 4px 0; font: 600 clamp(1.8rem, 4vw, 2.6rem)/1.15 var(--display); }
.mk-profile-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
@media (max-width: 860px) { .mk-profile-grid { grid-template-columns: 1fr; } }
.mk-panel { padding: 24px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.mk-panel + .mk-panel { margin-top: 18px; }
.mk-panel h2 { margin: 0 0 12px; font: 600 1.2rem var(--display); }
.mk-panel p { line-height: 1.65; }
.mk-photos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-bottom: 24px; }
.mk-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.mk-services { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mk-services li { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mk-services li:last-child { border-bottom: 0; padding-bottom: 0; }
.mk-services small { display: block; color: var(--ink-soft); }
.mk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mk-tags li { padding: 4px 10px; border-radius: 999px; background: var(--brand-wash); color: var(--brand); font-size: 0.85rem; }
.mk-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 0.95rem; }
.mk-facts dt { color: var(--ink-soft); }
.mk-facts dd { margin: 0; }

/* --- Blog (apps/landing/blog.py) ---------------------------------------------------------------- */
.bl-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.bl-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.bl-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.bl-card-body { display: grid; gap: 10px; padding: 22px 24px 24px; }
.bl-card h3 { margin: 0; font: 600 1.2rem/1.3 var(--display); }
.bl-card h3 a { color: var(--ink); text-decoration: none; }
.bl-card h3 a:hover { color: var(--brand); }
.bl-card p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.bl-card .s-eyebrow { margin: 0; }
.mk-tags a { color: inherit; text-decoration: none; }
.bl-feed { margin: 22px 0 0; font-size: 0.9rem; }
.bl-feed a { color: var(--brand); }
.bl-post { padding: 48px 0 56px; max-width: 76ch; }
.bl-title { margin: 6px 0 12px; font: 600 clamp(2rem, 4.5vw, 3rem)/1.12 var(--display); }
.bl-lead { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 24px; }
.bl-hero { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); margin: 0 0 28px; }
.bl-body { font-size: 1.08rem; line-height: 1.75; }
.bl-preview { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 18%, var(--paper)); margin: 0 0 18px; }

/* Platform staff on the public site (templates/landing/_staff_bar.html). */
.staff-bar { background: var(--ink); color: var(--paper); font-size: 0.85rem; }
.staff-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-height: 40px; padding-block: 6px; }
.staff-bar-who { opacity: 0.75; }
.staff-bar-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px; }
.staff-bar a { color: inherit; text-decoration: none; opacity: 0.88; padding: 4px 10px; border-radius: 999px; }
.staff-bar a:hover, .staff-bar a:focus-visible { opacity: 1; background: color-mix(in srgb, var(--paper) 14%, transparent); }
.staff-bar a.is-main { opacity: 1; background: var(--brand); color: var(--on-brand, #fff); }
@media (max-width: 760px) { .staff-bar-links { margin-left: 0; } }

/* The footer (templates/landing/_base.html): the brand and its calls on the left, every column
   of links beside it; columns flow to fit any width. */
.site-foot .foot-top { display: grid; gap: 40px; grid-template-columns: minmax(240px, 1fr) minmax(0, 3fr); }
.site-foot .foot-top .cols { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.site-foot .foot-status { margin: 14px 0 0; font-size: 0.86rem; }
.site-foot .foot-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.site-foot .foot-cta .btn { padding-block: 10px; }
.site-foot ul a { position: relative; }
.site-foot ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.site-foot ul a:hover::after, .site-foot ul a:focus-visible::after { transform: scaleX(1); }
@media (max-width: 900px) { .site-foot .foot-top { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .site-foot ul a::after { transition: none; } }

/* The quiet footer: the brand and one line, a few short columns, the legal line. */
.site-foot.is-quiet { padding-block: 48px 28px; }
.site-foot.is-quiet .foot-top { grid-template-columns: minmax(220px, 1.2fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.site-foot.is-quiet .about p { margin: 12px 0 0; max-width: 34ch; }
.site-foot.is-quiet .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 24px; justify-self: end; width: min(100%, 560px); }
.site-foot.is-quiet ul { gap: 6px; }
.site-foot.is-quiet .legal { margin-top: 32px; align-items: center; }
.site-foot.is-quiet .legal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (max-width: 900px) { .site-foot.is-quiet .foot-top { grid-template-columns: 1fr; } .site-foot.is-quiet .cols { justify-self: stretch; } }

/* Supplier Network: promoted places and news (templates/landing/site/sections/market_directory.html). */
.mk-featured { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 0 0 22px; }
.mk-feature { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--card, #fff)), var(--card, #fff)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); transition: transform .15s ease, box-shadow .15s ease; }
.mk-feature:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--accent), 0 20px 40px -24px rgb(0 0 0 / .45); }
.mk-feature img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #fff; }
.mk-feature strong { display: block; }
.mk-feature small { color: var(--ink-soft); }
.mk-feature em { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.mk-sponsored { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.mk-news { margin-top: 48px; }
@media (prefers-reduced-motion: reduce) { .mk-feature:hover { transform: none; } }

/* --- Header and footer settings (apps/landing/chrome.py), both layouts --------------------- */
.site-announce { margin: 0; padding: 8px 16px; text-align: center; font-size: 0.88rem; background: var(--brand, #2f7d4a); color: #fff; }
.site-announce a { color: inherit; text-decoration: none; font-weight: 600; }
.site-announce a:hover { text-decoration: underline; }
:is(.site-head, .w-head).is-static { position: relative; top: auto !important; }
.site-head.menu-left .site-nav, .w-head.menu-left .w-nav { margin-left: 24px; }
.site-head.menu-left .site-nav > .btn-primary, .w-head.menu-left .w-nav > .btn-primary { margin-left: auto; }
.site-head.menu-center .site-nav, .w-head.menu-center .w-nav { margin-left: auto; margin-right: auto; }
.nav-home { display: inline-flex; align-items: center; gap: 6px; }
.nav-home svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foot-contact { margin: 10px 0 0; font-size: 0.92rem; }
.foot-contact a { color: inherit; }
.foot-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.foot-social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line, rgb(0 0 0 / 0.14)); color: inherit; text-decoration: none; font-weight: 700; transition: background 0.15s, border-color 0.15s; }
.foot-social a:hover { background: var(--brand-wash, rgb(47 125 74 / 0.1)); border-color: var(--brand, #2f7d4a); }
.w-tagline { margin: 10px 0 0; max-width: 32ch; opacity: 0.85; }
:is(.site-foot, .w-foot).foot-card { background: var(--card, #fff); }
:is(.site-foot, .w-foot).foot-dark { background: #141814; color: #e9ece8; }
:is(.site-foot, .w-foot).foot-brand { background: var(--brand, #2f7d4a); color: #fff; }
:is(.site-foot, .w-foot):is(.foot-dark, .foot-brand) a, :is(.site-foot, .w-foot):is(.foot-dark, .foot-brand) h4 { color: inherit; }
:is(.site-foot, .w-foot):is(.foot-dark, .foot-brand) .legal { border-top-color: rgb(255 255 255 / 0.18); }
:is(.site-foot, .w-foot):is(.foot-dark, .foot-brand) .foot-social a { border-color: rgb(255 255 255 / 0.3); }
@media (max-width: 900px) { .site-head.menu-left .site-nav, .site-head.menu-center .site-nav { margin: 0; } }

/* The Supplier Network page's listed suppliers: their logos passing in a strip
   (templates/landing/site/sections/market_directory.html). The list is written twice, so
   moving it by half loops without a gap; it pauses under the pointer or keyboard focus and
   stands still, wrapped, for people who ask for reduced motion. */
.mk-marquee { position: relative; overflow: hidden; margin: 8px 0 4px; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mk-track { display: flex; gap: 18px; width: max-content; margin: 0; padding: 0; list-style: none;
  animation: mk-pass calc(var(--mk-count, 14) * 3s) linear infinite; }
.mk-marquee:hover .mk-track, .mk-marquee:focus-within .mk-track { animation-play-state: paused; }
/* Left to right: the strip starts moved back by one round and slides forward to where it began. */
@keyframes mk-pass { from { transform: translateX(calc(-50% - 9px)); } to { transform: translateX(0); } }
.mk-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 148px; height: 112px; padding: 14px 12px; border-radius: 18px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
  transition: transform .25s ease, border-color .25s ease; }
.mk-chip:hover, .mk-chip:focus-visible { transform: translateY(-4px); border-color: var(--brand); }
.mk-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.mk-chip img { max-height: 52px; max-width: 112px; width: auto; object-fit: contain; }
.mk-chip .mk-initial { width: 52px; height: 52px; font-size: 1.4rem; }
.mk-chip-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 640px) { .mk-chip { width: 120px; height: 96px; } .mk-chip img { max-height: 40px; } }
@media (prefers-reduced-motion: reduce) {
  .mk-marquee { -webkit-mask-image: none; mask-image: none; }
  .mk-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .mk-again { display: none; }  /* Still: each supplier once. */
}
