/* Musafy v3 — the platform marketing site's design system.
 *
 * Taken from the `Musafy v3` design. It replaces "Classical" (the editorial serif system the
 * thirteen-page site used) entirely: v3 is Plus Jakarta Sans on white, with the green the
 * Classic storefront theme already ships — #0f5132 — and solid filled buttons. Classical
 * applied colour as stroke and never filled anything; v3 does the opposite. They are not
 * variants of each other, so mixing them would read as two products.
 *
 * **The fonts are self-hosted.** The design links fonts.googleapis.com with two preconnects.
 * `core/marketing.py` states this site has "no external request in the critical path", and on
 * a sign-up page that a stranger reaches on a phone over mobile data, a font that costs a DNS
 * lookup, a TLS handshake and a stylesheet round trip before the first glyph is requested is
 * exactly the wrong trade. Plus Jakarta Sans is SIL OFL, so hosting it here is permitted —
 * see fonts/OFL-NOTICE.txt. Only latin and latin-ext ship; `unicode-range` is Google's own.
 *
 * Every value below is the design's. Take colours, sizes and radii from the variables.
 */

/* §35.4 — one face per subset. The files are Google's variable build, in which one file carries
   every weight; the sheet declared a face per weight, each at its own copy's address, and the home
   page downloaded the same 27 KB three times (measured on production, 2 October 2026). */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- tokens ---------------------------------------------------------------------------- */

:root {
  --ink: #101418;
  --muted: #4a5158;
  --faint: #6b7178;

  --bg: #fff;
  --surface: #f7f8f9;
  --surface-alt: #f3f4f5;
  --surface-soft: #fbfcfc;

  --line: #e2e5e8;
  --line-soft: #eef0f2;
  --line-faint: #dfe3e6;
  --line-quiet: #e8eaec;
  --field-line: #d4d8dc;

  /* §35.1 — the design's dark colophon: its ground is the ink, its type the pale surface. */
  --on-dark: #f3f4f5;
  --on-dark-muted: #c9cccf;
  --on-dark-faint: #9ba1a6;

  /* The green is `seed_themes.py`'s Classic primary. The marketing site and the default
     storefront theme therefore agree, which is the point: an agency's first site looks like
     the site that sold it to them. */
  --brand: #0f5132;
  --brand-dark: #0b3f27;
  --brand-tint: #eef4f0;
  --gold-tint: #f2d9a8;

  --r-sm: 9px;
  --r-md: 11px;
  --r-lg: 14px;
  --r-xl: 16px;
  --r-pill: 999px;

  --measure: 1140px;
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: inherit; margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
button, input, select, textarea { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--faint); }

/* Themed, never the browser default — a green ring on a green site, not the OS blue. */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---- layout ---------------------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(44px, 6vw, 80px); }
.band--tint { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.centred { text-align: center; }
.narrow { max-width: 640px; margin-inline: auto; }

/* ---- type ------------------------------------------------------------------------------ */

.display {
  font-weight: 800;
  font-size: clamp(36px, 6.6vw, 74px);
  line-height: 1.04;
  letter-spacing: -.033em;
  max-width: 19ch;
  margin: 22px auto 0;
}
.display--sm { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -.03em; max-width: 20ch; margin: 0 auto; }
.title {
  font-weight: 800;
  font-size: clamp(27px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: -.025em;
  max-width: 24ch;
}
.title--centred { margin-inline: auto; text-align: center; }
.subtitle { font-weight: 700; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 56ch; margin: 18px auto 0; }
.small { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.fine { font-size: 12.5px; line-height: 1.55; color: var(--faint); }

/* An eyebrow above the headline — tinted, not outlined. */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-tint); color: var(--brand);
  border-radius: var(--r-pill); padding: 7px 15px;
  font-weight: 700; font-size: 13px;
}
.pill--quiet { background: var(--surface); border: 1px solid var(--line); color: var(--faint); font-size: 12.5px; padding: 6px 14px; }

/* ---- buttons --------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r-sm); padding: 11px 18px;
  font-weight: 700; font-size: 14.5px; line-height: 1.2;
  white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-quiet { background: none; color: var(--muted); padding: 8px 4px; font-size: 14.5px; }
.btn-quiet:hover { color: var(--brand); }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--field-line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { min-height: 52px; padding-inline: 26px; border-radius: var(--r-md); font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---- surfaces -------------------------------------------------------------------------- */

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.card--tint { background: var(--surface); }
.card--raised { box-shadow: 0 18px 44px -28px rgba(16, 20, 24, .35); }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 8px 0 0; }
.card .subtitle { color: var(--ink); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid--pair { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid-top { margin-top: clamp(26px, 4vw, 44px); }

/* ---- numbered steps -------------------------------------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.steps .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand);
  font-weight: 800; font-size: 15px; margin-bottom: 14px;
}

/* ---- pricing --------------------------------------------------------------------------- */

.plan { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; background: #fff; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--brand); box-shadow: 0 18px 44px -28px rgba(16, 20, 24, .35); }
.plan .price { font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.03em; margin: 16px 0 0; font-feature-settings: 'tnum' 1; }
.plan .period { font-size: 14.5px; color: var(--faint); font-weight: 600; }
.plan ul { list-style: none; margin: 20px 0 0; padding: 0; font-size: 14.5px; }
.plan li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.plan li:last-child { border-bottom: 0; }
.plan .cta { margin-top: auto; padding-top: 22px; }

/* ---- forms ----------------------------------------------------------------------------- */

.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font-weight: 700; font-size: 13px; margin-bottom: 7px; color: var(--ink); }
.input {
  width: 100%; min-height: 50px; padding: 0 15px;
  font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--field-line); border-radius: var(--r-md); background: #fff;
}
.input:hover { border-color: var(--faint); }
.input:focus-visible { border-color: var(--brand); outline-offset: 0; }
textarea.input { padding-block: 12px; min-height: 96px; line-height: 1.55; }

/* The address preview: an input and a fixed suffix reading as one control. */
.address { display: flex; align-items: stretch; border: 1.5px solid var(--field-line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.address .input { border: 0; border-radius: 0; min-width: 0; flex: 1 1 auto; }
.address .suffix { display: flex; align-items: center; padding: 0 14px; background: var(--surface); border-left: 1px solid var(--line); color: var(--faint); font-weight: 700; font-size: 14.5px; white-space: nowrap; }

.notice { border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--r-md); background: var(--surface); padding: 14px 16px; margin: 0 0 18px; font-size: 14.5px; }
.notice--bad { border-left-color: #b3261e; }

/* ---- §35.1: the design's components ------------------------------------------------------
 * Every value is the design's (`Musafy Website.html`). A page is built from these and the
 * primitives above; no page carries its own CSS or an inline style. */

/* A section's label above its heading. */
.kicker { display: block; margin: 0; font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.kicker + .title, .kicker + h1 { margin-top: 14px; }

/* A heading's paragraph when the heading is flush left. */
.lead--left { margin: 14px 0 0; font-size: 17.5px; line-height: 1.55; max-width: 54ch; }

/* An inner page's opening: its h1, a lead and the actions, flush left. */
.page-head { padding-block: clamp(44px, 6vw, 80px) clamp(24px, 3vw, 40px); }
.page-head h1 { font-weight: 800; font-size: clamp(33px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -.03em; max-width: 22ch; }
.page-head .lead { margin: 20px 0 0; font-size: 17.5px; line-height: 1.55; max-width: 52ch; }
.page-head .row { margin-top: 26px; }
.page-head--legal h1 { font-size: clamp(28px, 4vw, 44px); }
.updated { margin: 11px 0 0; font-size: 13.5px; color: var(--faint); }

/* "← Back to home" above a heading. */
.back { display: inline-block; margin-bottom: 18px; font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none; }
.back:hover { color: var(--brand-dark); text-decoration: underline; }

/* §39.8 — the directory of agencies: a city page's trail, each agency's card, the cities. */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.crumbs a { font-weight: 700; color: var(--brand); text-decoration: none; }
.crumbs a:hover { color: var(--brand-dark); text-decoration: underline; }
.agency__name { margin: 0; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.agency__name a { color: var(--ink); text-decoration: none; }
.agency__name a:hover { color: var(--brand); text-decoration: underline; }
.cities { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cities li { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 8px 14px; }
.cities a { font-weight: 700; color: var(--brand); text-decoration: none; }
.cities__count { font-size: 13px; color: var(--muted); }

/* Grids by count: a grid of N says how many fit a row at each width, so four cards are never
   three and one. `repeat(auto-fit, minmax(…))` left one stranded on production (§35.0). */
.grid--2, .grid--3, .grid--4 { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Features in columns, no cards: Home's "Everything your agency needs". */
.features { gap: 28px 32px; margin-top: 36px; }
.features h3 { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.features p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* The steps as numbered cards: Home's "Online in three steps". */
.steps--cards { margin-top: 40px; }
.steps--cards > li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.steps--cards .n { display: grid; place-items: center; width: 38px; height: 38px; margin: 0; border-radius: 10px; background: var(--brand); color: #fff; font-size: 17px; }
.steps--cards h3 { margin-top: 16px; font-weight: 700; font-size: 20px; letter-spacing: -.015em; }
.steps--cards p { margin: 9px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* The steps as a list beside a form: Sign-up's left column. */
.steps--list { display: grid; gap: 18px; margin-top: 34px; }
.steps--list > li { display: flex; gap: 14px; }
.steps--list .n { display: grid; place-items: center; flex: none; width: 34px; height: 34px; margin: 0; border-radius: 9px; font-size: 15px; }
.steps--list h2, .steps--list h3 { font-weight: 700; font-size: 17px; }
.steps--list p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* The deep-green band, and the outlined cards that sit on it. */
.band--brand { background: var(--brand); color: #fff; }
.band--brand .kicker { color: var(--gold-tint); }
.band--brand .title { color: #fff; }
.band--brand .lead { color: rgba(255, 255, 255, .88); }
.band--brand :focus-visible { outline-color: #fff; }
.card--on-brand { background: none; border: 1px solid rgba(255, 255, 255, .24); border-radius: 13px; padding: 20px; }
.card--on-brand h3 { font-weight: 700; font-size: 20px; letter-spacing: -.015em; color: var(--gold-tint); }
.card--on-brand p { margin: 9px 0 0; color: rgba(255, 255, 255, .86); }

/* Two columns, the second a raised card: Sign-up and Contact. */
.split { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; grid-template-columns: minmax(0, 1fr); padding-block: clamp(40px, 6vw, 84px); }
@media (min-width: 860px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split h1 { font-weight: 800; font-size: clamp(32px, 4.8vw, 56px); line-height: 1.06; letter-spacing: -.03em; max-width: 18ch; }
.split .lead { margin: 20px 0 0; font-size: 17px; line-height: 1.55; max-width: 42ch; }
.split__card { border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 32px); background: #fff; box-shadow: 0 18px 44px -30px rgba(16, 20, 24, .3); }

/* Label and value rows: Contact's details. */
.details { margin: 30px 0 0; }
.details > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.details > div:last-child { border-bottom: 1px solid var(--line); }
.details dt { color: var(--faint); }
.details dd { margin: 0; font-weight: 700; text-align: end; }

/* The legal pages' reading column, and the note under it. */
.reading { max-width: 70ch; }
.reading h2 { margin: 30px 0 0; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.reading p, .reading li { font-size: 15px; line-height: 1.7; color: var(--muted); }
.reading p { margin: 12px 0 0; }
.note { margin: 32px 0 0; padding: 15px 17px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 13px; line-height: 1.65; color: var(--muted); }

/* A browser around a screenshot: Home's example storefront. */
.frame { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); padding: clamp(12px, 2vw, 20px); box-shadow: 0 18px 44px -28px rgba(16, 20, 24, .35); }
.frame__window { border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--line-quiet); }
.frame__bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); background: var(--surface-soft); }
.frame__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-faint); }
.frame__host { margin-inline-start: 8px; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.frame img { display: block; width: 100%; height: auto; }
.frame__caption { margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; text-align: center; color: var(--faint); }

/* ---- §35.2: Home ------------------------------------------------------------------------ */

/* Read by a screen reader, not drawn: the hero field's label, which the design shows as a
   placeholder. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.accent { color: var(--brand); }

.hero { text-align: center; padding-block: clamp(44px, 7vw, 92px) clamp(30px, 4vw, 52px); }
.hero .lead { font-size: clamp(16.5px, 2vw, 20px); line-height: 1.55; max-width: 44ch; margin: 22px auto 0; }
.hero__form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 520px; margin: 30px auto 0; }
.hero__form .input { flex: 1 1 230px; min-width: 0; min-height: 52px; padding-inline: 16px; }
.hero__form .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .hero__form .btn { flex: 1 1 100%; } }
.hero__note { margin: 16px auto 0; font-size: 14.5px; line-height: 1.5; color: var(--faint); }
.hero__note strong { color: var(--brand); }
.hero__example { margin: 10px auto 0; font-size: 14.5px; line-height: 1.5; font-weight: 700; }
.hero__example a { text-decoration: none; }
.hero__example a:hover { text-decoration: underline; }

.preview { padding-bottom: clamp(40px, 6vw, 72px); }
.preview figure { margin: 0; }
.frame__caption a { font-weight: 700; text-decoration: none; }

/* A centred heading's one line under it: "Most agencies finish in an afternoon." */
.subhead { margin: 14px auto 0; max-width: 40ch; text-align: center; font-size: 16.5px; line-height: 1.55; color: var(--muted); }

/* Four cards to a row on the green band are narrower: the design sets their titles smaller. */
.band--brand .grid--4 .card--on-brand h3 { font-size: 18px; letter-spacing: 0; }

/* The closing call to action. */
.display--cta { font-weight: 800; font-size: clamp(29px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.028em; max-width: 20ch; margin: 0 auto; }
.closing { border-bottom: 0; padding-block: clamp(48px, 7vw, 90px); }
.closing .lead { font-size: 17px; max-width: 38ch; }
.closing .row { margin-top: 28px; }

/* ---- §35.2: Pricing --------------------------------------------------------------------- */

.page-head--centred { text-align: center; }
.page-head--centred h1, .page-head--centred .lead { margin-inline: auto; }

.plans-band { padding-bottom: clamp(40px, 6vw, 72px); }
/* Four plans need about 250 pixels each for a price on one line: at 1024 they had 221, and two
   prices wrapped. Two and two until 1180, as pricing tables do on a tablet. */
@media (min-width: 1000px) and (max-width: 1179px) { .plans.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plans__note { margin: 18px 0 0; }
/* Each part of a plan — its name, its price, its allowances, its button — on the same line as the
   same part of the plans beside it, however long each is: Free has no launch price or GST line,
   and its allowances started higher than the others'. A browser without subgrid keeps each card
   as a column, as before. */
@supports (grid-template-rows: subgrid) {
  .plans > .plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .plans > .plan .cta { align-self: end; }
}

/* A check before each line: the plan's allowances and every feature on every plan. Drawn with a
   mask in this sheet, so it costs no request and takes the brand colour. */
.plan__list, .checks { list-style: none; padding: 0; }
.plan__list { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; }
.plan .plan__list li { padding: 0; border: 0; color: var(--ink); }
.checks { margin: 28px 0 0; gap: 14px 28px; }
.plan__list li, .checks li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.checks li { font-size: 15px; color: var(--ink); }
.plan__list li::before, .checks li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- §35.3: the inner pages -------------------------------------------------------------- */

/* A feature in a row of three: Product and Who it's for. */
.card--feature { border-radius: var(--r-lg); padding: 24px; }
.card--feature h3 { font-weight: 700; font-size: 20px; letter-spacing: -.015em; }
.card--feature p { margin: 9px 0 0; font-size: 15px; line-height: 1.65; }

/* A tinted band that runs into the next one: one rule between them, not two. */
.band--joined { border-bottom: 0; }
.title--sm { font-size: clamp(23px, 2.8vw, 32px); }

/* Product's developer note, beside the webhook events that exist. */
.api { display: grid; gap: 28px 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .api { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.api__text { margin: 14px 0 0; max-width: 48ch; font-size: 15px; line-height: 1.65; color: var(--muted); }
.events { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.events h3 { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.events ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.events code { font-family: inherit; font-size: 13.5px; line-height: 1.9; color: var(--muted); overflow-wrap: anywhere; }

/* The legal pages run to the colophon; a sent form stands alone, centred. */
.page-head--legal { padding-bottom: clamp(44px, 6vw, 80px); }
.page-head--sent { padding-block: clamp(48px, 8vw, 96px); }
.page-head--sent h1 { margin-top: 18px; }
.page-head--sent strong { color: var(--ink); }
.page-head--sent .row { margin-top: 28px; }
.sent-note { margin: 18px 0 0; }

/* Contact's details and the forms' small print. */
.details a { color: var(--ink); text-decoration: none; }
.details a:hover { color: var(--brand); text-decoration: underline; }
.company { margin: 22px 0 0; max-width: 44ch; }
.field-note { margin: 7px 0 14px; }
.field + .field-note { margin-top: -7px; }
.form-note { margin: 14px 0 0; }
.split .back { margin-bottom: 26px; }

/* ---- masthead and colophon -------------------------------------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-quiet);
}
.masthead .wrap { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
.masthead .brand { font-weight: 800; font-size: 21px; letter-spacing: -.025em; color: var(--brand); text-decoration: none; margin-right: auto; }
/* §33.3 — on a laptop the links sit in the bar; on a phone they are behind Menu. */
.masthead__links { display: contents; }
.masthead__menu { display: none; position: relative; }
@media (max-width: 760px) {
  .masthead__links { display: none; }
  .masthead__menu { display: block; }
  .masthead__menu summary { list-style: none; cursor: pointer; }
  .masthead__menu summary::-webkit-details-marker { display: none; }
  .masthead__menu nav {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 13rem;
    display: grid; padding: 6px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--r-md); box-shadow: 0 12px 32px rgba(16, 20, 24, .14);
  }
  .masthead__menu nav a { padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
  .masthead__menu nav a:hover, .masthead__menu nav a[aria-current] { background: var(--brand-tint); color: var(--brand); }
}

/* §35.1 — the design's colophon: dark, the brand and what Musafy is, then three columns. */
.colophon { padding-block: clamp(36px, 5vw, 56px); }
.colophon--dark { background: var(--ink); color: var(--on-dark); }
.colophon__top { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; justify-content: space-between; }
.colophon__name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; margin: 0; }
.colophon__line { font-weight: 700; font-size: 17.5px; line-height: 1.35; letter-spacing: -.015em; margin: 14px 0 0; max-width: 24ch; }
.colophon__about { font-size: 14px; line-height: 1.6; margin: 10px 0 0; max-width: 34ch; color: var(--on-dark-muted); }
.colophon__columns { display: flex; flex-wrap: wrap; gap: 26px 44px; }
.colophon h2 { font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-faint); margin: 0 0 10px; }
.colophon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.colophon a { color: var(--on-dark); font-weight: 600; font-size: 14px; text-decoration: none; }
.colophon a:hover { color: var(--gold-tint); }
.colophon__fineprint { margin: 32px 0 0; padding-top: 18px; border-top: 1px solid rgba(243, 244, 245, .18); font-size: 13px; color: rgba(243, 244, 245, .66); }
.colophon--dark :focus-visible { outline-color: var(--gold-tint); }

/* ---- odds and ends ---------------------------------------------------------------------- */

.muted { color: var(--muted); }
.stack { display: grid; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row--centred { justify-content: center; }
/* §35.1 — on a phone a row of large buttons wraps; full width, they stack evenly. */
@media (max-width: 480px) { .row > .btn-lg { flex: 1 1 100%; } }
.scroller { overflow-x: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 30; background: #fff; padding: 10px 14px; border: 1px solid var(--brand); border-radius: var(--r-sm); }
