/* =====================================================================
   brandzax.com  |  assets/css/style.css
   One stylesheet. All colour, type and spacing tokens live in :root.
   ===================================================================== */

:root {
  /* Brand colours */
  --brass: #C89A46;
  --brass-300: #DCB66C;
  --brass-200: #E8CD96;
  --brass-100: #F4E4C4;
  --brass-600: #A87C34;
  --brass-700: #856027;   /* text-safe gold on light surfaces */
  --ink: #26252B;
  --parchment: #F1E7D6;
  --bone: #FAF7F2;

  /* Warm neutrals */
  --n-100: #E3D8C6;
  --n-200: #C9BDAA;
  --n-300: #A2988A;
  --n-400: #7A7268;
  --n-500: #575047;
  --n-600: #3D3833;
  --n-700: #2E2B28;

  /* Accent and semantics */
  --teal: #2C5A66;
  --success: #4F7A52;
  --warning: #C2571E;
  --error: #B33A2B;
  --info: #3F6E7D;

  /* Type */
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --fs-body: 16px;
  --lh-body: 1.7;
  --fs-prose: 17px;
  --lh-prose: 1.75;
  --fs-h1: clamp(34px, 5.4vw, 58px);
  --fs-h2: clamp(26px, 3.4vw, 38px);
  --fs-h3: 19px;
  --fs-eyebrow: 11px;
  --fs-small: 14px;

  /* Spacing and shape */
  --wrap: 1180px;
  --gutter: 24px;
  --section-y: clamp(56px, 8vw, 104px);
  --gap: 24px;
  --radius: 8px;
  --radius-lg: 14px;
  --ease: 180ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  background: var(--bone);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
blockquote, figure { margin: 0; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; }

/* ---------- Surfaces ----------
   Four surfaces only. Each sets its own text, muted, accent, line and card
   tokens so components never need to know where they sit. */
.s-ink       { background: var(--ink);       color: var(--parchment); --fg: var(--parchment); --muted: var(--n-200); --accent: var(--brass); --line: var(--n-600); --card: var(--n-700); --card-hover: var(--n-600); }
.s-bone      { background: var(--bone);      color: var(--ink);       --fg: var(--ink);       --muted: var(--n-500); --accent: var(--brass-700); --line: var(--n-100); --card: var(--parchment); --card-hover: var(--brass-100); }
.s-parchment { background: var(--parchment); color: var(--ink);       --fg: var(--ink);       --muted: var(--n-500); --accent: var(--brass-700); --line: var(--n-200); --card: var(--bone); --card-hover: var(--brass-100); }
.s-brass     { background: var(--brass);     color: var(--ink);       --fg: var(--ink);       --muted: var(--n-600); --accent: var(--ink);       --line: var(--brass-600); --card: var(--brass-200); --card-hover: var(--brass-100); }

.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; line-height: 1.12; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; max-width: 19ch; line-height: 1.06; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; max-width: 22ch; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.018em; line-height: 1.3; }
h4 { font-size: 16px; letter-spacing: -0.01em; }
.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}
.lede { font-size: 19px; line-height: 1.55; max-width: 58ch; color: var(--muted); }
.s-ink .lede { color: var(--n-200); }

/* Wordmark: Sora 600, lowercase with a capital brass "X", -0.04em. */
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.wordmark svg { width: 32px; height: 32px; flex: none; }
.wm { font-family: "Sora", var(--font); font-weight: 600; letter-spacing: -0.04em; font-size: 24px; line-height: 1; }
.wm-x { color: var(--brass); }
/* Safety: the wordmark only sits on ink, but if it ever lands on a light
   surface the "X" drops to the text-safe gold. */
.s-bone .wm-x, .s-parchment .wm-x, .s-brass .wm-x { color: var(--brass-700); }
.wordmark-sm .wm { font-size: 22px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; border-top: 1px solid transparent; }
.section-hero { padding-top: clamp(64px, 9vw, 120px); }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.center { text-align: center; }
.center h1, .center h2, .center p { margin-left: auto; margin-right: auto; }

/* ---------- Skip link and focus ---------- */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brass); color: var(--ink); padding: 10px 14px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; transition: top var(--ease);
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
.s-brass :focus-visible { outline-color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--n-600); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 22px; list-style: none; }
.nav-list a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--n-200); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--parchment); border-bottom-color: var(--brass); }
.nav-toggle { display: none; background: none; border: 1px solid var(--n-600); color: var(--parchment); border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { top: -7px; left: 0; }
.nav-toggle-bars::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
.text-link { color: var(--n-200); font-weight: 500; }
.text-link:hover { color: var(--parchment); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2;
  border: 1.5px solid transparent; transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
  cursor: pointer; font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-300); }
/* Primary follows the surface: ink on light, brass on ink, ink on brass. */
.btn-primary { background: var(--ink); color: var(--parchment); }
.btn-primary:hover { background: var(--n-600); }
.s-ink .btn-primary { background: var(--brass); color: var(--ink); }
.s-ink .btn-primary:hover { background: var(--brass-300); }
.s-brass .btn-primary { background: var(--ink); color: var(--parchment); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--fg); }
.s-ink .btn-secondary { border-color: var(--n-400); }
.s-ink .btn-secondary:hover { border-color: var(--parchment); }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 8px; transition: background var(--ease), border-color var(--ease);
}
.card:hover { background: var(--card-hover); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.s-ink .card p { color: var(--n-200); }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.card-meta { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags li { font-size: 12px; font-weight: 500; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.card-num { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--accent); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stat { border-left: 2px solid var(--accent); padding-left: 18px; }
.stat-n { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat p { margin: 8px 0 0; font-size: 15px; color: var(--muted); max-width: none; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
.step { border-top: 2px solid var(--line); padding-top: 18px; }
.step-n { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 10px; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }
.steps-2 { grid-template-columns: repeat(2, 1fr); }
.phases { list-style: none; display: grid; gap: var(--gap); }
.phase { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: var(--card); display: grid; grid-template-columns: 140px 1fr; gap: 24px; }
.phase-when { font-weight: 600; color: var(--accent); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.phase h3 { margin-top: 0; }
.phase ul { margin: 10px 0 0 18px; color: var(--muted); font-size: 15px; }

/* ---------- Ticks ---------- */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23000'/%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round'/%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 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23000'/%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.plain-list { margin-left: 20px; }
.plain-list li { margin-bottom: 8px; }
.plain-list li::marker { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 22px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "\2013"; }
.faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq-a p { margin: 0; max-width: 68ch; }

/* ---------- Price band ---------- */
.price-band { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.price-from { font-size: clamp(34px, 5vw, 54px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.price-note { font-size: 14px; color: var(--muted); margin-top: 6px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: stretch; }
.tier { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: var(--card); display: flex; flex-direction: column; }
.tier-featured { border-color: var(--brass-600); box-shadow: 0 0 0 1px var(--brass-600) inset; }
.tier .price-from { font-size: clamp(30px, 4vw, 42px); margin: 8px 0 4px; }
.tier .ticks { margin: 18px 0 24px; flex: 1; }
.tier .btn { align-self: flex-start; }

/* ---------- Article / prose ---------- */
.prose { font-size: var(--fs-prose); line-height: var(--lh-prose); max-width: 68ch; }
.prose p, .prose li { max-width: 68ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { margin: 0 0 1.2em 22px; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); font-size: 18px; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; background: var(--card); padding: 2px 6px; border-radius: 4px; }
.prose pre { background: var(--ink); color: var(--parchment); padding: 18px 20px; border-radius: var(--radius); overflow: auto; font-size: 14px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 1.2em 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.figure { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: var(--card); margin: 1.6em 0; }
.figure svg { width: 100%; height: auto; }
.figure figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 1.2em 0; }
.swatch { border-radius: var(--radius); padding: 14px 12px 10px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; }
.swatch span { display: block; font-family: ui-monospace, Menlo, monospace; font-weight: 400; opacity: 0.8; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.form-row { display: grid; gap: 6px; }
.form-2 { grid-template-columns: 1fr 1fr; display: grid; gap: 18px; }
label { font-weight: 600; font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); }
input, select, textarea {
  font: inherit; width: 100%; padding: 12px 14px; border-radius: var(--radius);
  border: 1.5px solid var(--n-200); background: var(--bone); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--brass-600); outline: 3px solid var(--brass-100); outline-offset: 0; }
textarea { min-height: 150px; resize: vertical; }
.form-status { font-size: 15px; font-weight: 500; min-height: 1.5em; }
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="ok"] { color: var(--success); }
.form-status[data-state="sending"] { color: var(--info); }
.field-error { border-color: var(--error) !important; }

/* ---------- Notices ---------- */
.notice-sample {
  background: var(--warning); color: var(--bone); padding: 14px var(--gutter); font-weight: 600; text-align: center;
}
.notice-sample a { color: inherit; }
.callout { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 1.4em 0; }
.legal-notice { border: 1px dashed var(--n-300); border-radius: var(--radius); padding: 14px 18px; background: var(--card); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(48px, 6vw, 72px) 0 28px; border-top: 1px solid var(--n-600); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-h { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin: 0 0 14px; }
.footer-list { list-style: none; display: grid; gap: 9px; font-size: 15px; color: var(--n-200); }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--parchment); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--n-600); flex-wrap: wrap; }
.footer-inline { list-style: none; display: flex; gap: 18px; font-size: 14px; }
.footer-inline a { color: var(--n-200); }
.footer-brand .muted { max-width: 38ch; }

/* ---------- Misc ---------- */
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.hr { height: 1px; background: var(--line); border: 0; margin: 32px 0; }
.two-col-text { columns: 2; column-gap: 40px; }
.two-col-text p { break-inside: avoid; }

/* ---------- Breakpoints ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .stats, .steps, .tiers { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col-text { columns: 1; }
  .phase { grid-template-columns: 1fr; gap: 8px; }

  /* Hamburger nav */
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); border-bottom: 1px solid var(--n-600);
    padding: 16px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 16px;
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-list a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--n-600); }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--brass); }
  .site-nav .btn { text-align: center; }
}
@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .grid-2, .grid-3, .grid-4, .stats, .steps, .tiers, .form-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .price-band { grid-template-columns: 1fr; }
  .wm { font-size: 22px; }
  .lede { font-size: 17px; }
  .prose { font-size: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
