/* 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.
 */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-400-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;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-400-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;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-500-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: 500;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-500-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;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-600-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: 600;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-600-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;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-700-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: 700;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-700-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;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-800-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: 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-800-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;
  --field-line: #d4d8dc;

  /* 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: 1px solid var(--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; }

/* ---- 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 #e8eaec;
}
.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; }

.colophon { border-top: 1px solid var(--line); padding-block: clamp(32px, 5vw, 56px); }
.colophon .columns { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.colophon h2 { font-weight: 800; font-size: 15px; margin: 0 0 12px; }
.colophon ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.colophon li { margin: 8px 0; }
.colophon a { color: var(--muted); text-decoration: none; }
.colophon a:hover { color: var(--brand); }
.colophon .fineprint { margin: 30px 0 0; }

/* ---- 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; }
.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); }
