/* Mad Crown Maker marketing pages (landing.html, business.html).
   Tokens mirror app.css so the pages and the builder read as one product. */
:root {
  --f-ui: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: 'Montserrat', var(--f-ui);
  --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --bg: #FAFAF8;
  --surface: #F3F3F0;
  --surface-2: #EFEFEC;
  --ink: #0B0B0C;
  --ink-2: #354155;
  --muted: #5A6270;
  --faint: #969EAA;
  --line: #E3E4E7;
  --line-strong: #D5D8DD;
  --solid: #111214;
  --solid-hover: #2A2C30;
  --on-solid: #FAFAFA;
  --sweep-center: #F7F7F4;
  --sweep-mid: #ECECE8;
  --sweep-edge: #DCDCD7;
  --ok: oklch(0.62 0.12 150);
  --shadow-soft: 0 1px 2px #0B0B0C1A;
  --shadow-pop: 0 18px 50px #0B0B0C24;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #131416;
  --surface: #1B1C1F;
  --surface-2: #25272C;
  --ink: #F2F2F0;
  --ink-2: #C9CDD3;
  --muted: #9AA1AC;
  --faint: #6F7580;
  --line: #2A2C30;
  --line-strong: #3A3D42;
  --solid: #F2F2F0;
  --solid-hover: #D8D8D4;
  --on-solid: #111214;
  --sweep-center: #E6E6E2;
  --sweep-mid: #D7D7D2;
  --sweep-edge: #C2C2BC;
  --shadow-soft: 0 1px 2px #00000066;
  --shadow-pop: 0 18px 50px #00000080;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--f-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--solid); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 600 11px/1 var(--f-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .02em; }
.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font: 700 clamp(30px, 4.2vw, 46px)/1.05 var(--f-display); letter-spacing: -.025em; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 17px; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 8px; background: var(--solid); color: var(--on-solid); font: 600 15px/1 var(--f-ui); text-decoration: none; border: 1px solid var(--solid); transition: background .15s, transform .15s; white-space: nowrap; }
.btn:hover { background: var(--solid-hover); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn.small { height: 40px; padding: 0 18px; font-size: 13.5px; }
.text-link { font: 600 15px/1.3 var(--f-ui); color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: color .15s, border-color .15s; }
.text-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.is-stuck { border-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; flex-direction: column; gap: 2px; font: 600 12px/1 var(--f-ui); letter-spacing: .32em; white-space: nowrap; text-decoration: none; }
.brand span + span { color: var(--faint); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* ---------- hero ---------- */
@font-face { font-family: 'Cabazon'; src: url('./assets/fonts/Cabazon.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; align-content: center; }
.hero h1 { font: 800 clamp(44px, 6.4vw, 84px)/.98 var(--f-display); letter-spacing: -.04em; text-wrap: balance; }
.hero h1 em { font-style: italic; }
.hero-copy:has(#hero-title) { container-type: inline-size; }
#hero-title { font-size: clamp(28px, 11.3cqi, 64px); line-height: 1.08; text-wrap: initial; }
.hero-title-line { display: block; white-space: nowrap; }
.hero-title-payoff { margin-top: .4em; font-size: .65em; font-weight: 600; letter-spacing: -.025em; color: var(--ink-2); }
.hero-lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34ch; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.hero-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); }
.hero-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }

/* The builder frame: a trimmed copy of the builder chrome around the live hat. */
.stage { position: relative; aspect-ratio: 6 / 5; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-pop);
  background: radial-gradient(120% 95% at 50% 36%, var(--sweep-center) 0%, var(--sweep-mid) 53%, var(--sweep-edge) 100%); }
.stage-video, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* A rendered Cabazon frame also serves reduced-motion and data-saving visitors. */
.stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .6s ease; }
.stage:not(.is-live):not(.is-clip) :is(.stage-steps, .stage-caption, .stage-hint) { visibility: hidden; }
.stage-video { object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.stage canvas { opacity: 0; transition: opacity .8s ease; outline: none; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage.is-live canvas, .stage.is-clip .stage-video { opacity: 1; }
/* The recorded clip already shows the step pill and caption. */
.stage.is-clip .stage-steps, .stage.is-clip .stage-caption, .stage.is-clip .stage-hint { display: none; }
/* landing.html?capture: the hero stage alone, at the clip's size (scripts/record-hero-clip.mjs). */
.is-capture body { overflow: hidden; }
.is-capture *, .is-capture *::before, .is-capture *::after { transition: none !important; animation: none !important; }
.is-capture .stage { position: fixed; left: 0; top: 0; width: 400px; height: 420px; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; z-index: 1000; }
.is-capture .stage-hint, .is-capture .topbar, .is-capture .sticky-cta { display: none; }
.stage.is-live .stage-poster, .stage.is-clip .stage-poster { opacity: 0; }
.stage-steps { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: center; gap: 4px; padding: 4px; margin: 0 auto; width: max-content; max-width: calc(100% - 32px); border-radius: 8px; background: color-mix(in srgb, var(--bg) 88%, transparent); border: 1px solid var(--line-strong); box-shadow: var(--shadow-soft); z-index: 2; }
.stage-steps span { padding: 8px 14px; border-radius: 8px; font: 600 10.5px/1 var(--f-ui); letter-spacing: .18em; color: var(--muted); transition: background .3s, color .3s; white-space: nowrap; }
.stage-steps span.is-on { background: var(--solid); color: var(--on-solid); }
@media (max-width: 480px) { .stage-steps { gap: 0; } .stage-steps span { padding: 8px 9px; font-size: 9px; letter-spacing: .1em; } }
.stage-caption { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-soft); font-size: 13px; font-weight: 600; white-space: nowrap; z-index: 2; max-width: calc(100% - 32px); }
.stage-caption .chip { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #0000001f; flex: none; transition: background .3s; }
.stage-caption .label { color: var(--muted); font-weight: 500; }
.stage-caption .value { overflow: hidden; text-overflow: ellipsis; }
.stage-caption .caret { display: inline-block; width: 1.5px; height: 14px; background: currentColor; margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.stage-hint { position: absolute; right: 16px; bottom: 24px; font: 500 11px/1 var(--f-mono); color: var(--faint); z-index: 2; opacity: 0; transition: opacity .4s; }
.stage.is-live .stage-hint { opacity: 1; }
@media (max-width: 1080px) { .stage-hint { display: none; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { text-align: left; }
  .stage { aspect-ratio: 4 / 4.2; border-radius: 20px; }
}

/* ---------- gallery ---------- */
.style-gallery-head { max-width: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; align-items: end; margin-bottom: 44px; }
.style-gallery-head > .eyebrow { grid-column: 1 / -1; }
.style-gallery-head h2 { font-size: clamp(36px, 4.3vw, 54px); line-height: 1.06; }
.style-gallery-intro { max-width: 43ch; display: grid; gap: 12px; padding-bottom: 3px; }
.style-gallery-intro > p:first-child { color: var(--ink); font-weight: 500; }
.style-gallery-intro .style-gallery-detail { font-size: 15px; line-height: 1.6; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.design { display: grid; grid-template-rows: auto 1fr; min-width: 0; text-decoration: none; border-radius: 16px; }
.style-preview { position: relative; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 16px; background: #f3f3f1; }
.style-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.design-body { display: grid; grid-template-rows: auto auto 1fr auto; gap: 9px; padding: 20px 2px 0; }
.style-card-meta { display: flex; justify-content: space-between; gap: 12px; font: 600 10px/1.3 var(--f-ui); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.style-card-meta > span + span { font-family: var(--f-mono); color: var(--faint); }
.design-body h3 { font: 700 19px/1.25 var(--f-display); letter-spacing: -.025em; }
.design-body p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.design-body .open { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.design-body .open span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 17px; transition: color .2s, background .2s; }
.design:hover .open span { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; } .style-gallery-head { column-gap: 32px; } }
@media (max-width: 600px) { .style-gallery-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 30px; } .gallery { grid-template-columns: 1fr; gap: 36px; } .style-gallery-intro { max-width: 40ch; } }
@media (prefers-reduced-motion: reduce) { .style-preview img, .design-body .open span { transition: none; } .design:hover .style-preview img { transform: none; } }

/* ---------- design it your way ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { display: grid; grid-template-rows: auto auto 1fr; gap: 12px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.step-num { display: flex; align-items: center; justify-content: space-between; }
.step-num b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 var(--f-display); background: var(--bg); border: 1px solid var(--line-strong); }
.step h3 { font: 700 20px/1.15 var(--f-display); letter-spacing: -.015em; }
.step p { color: var(--muted); font-size: 15px; }
.step-visual { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-end; }
.step-visual .pill { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.swatches { display: flex; gap: 0; }
.swatches i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); margin-right: -6px; box-shadow: 0 0 0 1px #00000014; }

/* ---------- design to hat ---------- */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }
.path { padding: 28px; border-radius: 20px; border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.path .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); }
.path h3 { font: 700 21px/1.15 var(--f-display); letter-spacing: -.015em; }
.path p { color: var(--muted); font-size: 15px; }
.path ul { margin: 4px 0 0; padding: 0 0 0 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }

/* ---------- makers ---------- */
.makers-head { max-width: none; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 64px; }
.makers-head h2 { margin-top: 18px; font-size: clamp(36px, 4.6vw, 56px); }
.makers-head > p { max-width: 36ch; justify-self: end; padding-bottom: 4px; }
.makers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.maker { min-width: 0; border-radius: 24px; padding: 30px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; color: #17231f; }
.maker-personal { grid-row: span 2; background: #eeeae2; }
.maker-team { background: #e4e9df; }
.maker-seller { background: #1d342c; color: #f7f6ee; }
.maker-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; font: 600 10px/1.4 var(--f-ui); letter-spacing: .17em; text-transform: uppercase; }
.maker-arrow { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid currentColor; border-radius: 50%; font: 400 20px/1 var(--f-ui); transition: transform .2s, background .2s, color .2s; }
.maker:hover .maker-arrow { transform: rotate(45deg); background: #17231f; color: #fff; border-color: #17231f; }
.maker-seller:hover .maker-arrow { background: #e6edb4; color: #1d342c; border-color: #e6edb4; }
.maker-copy { position: relative; z-index: 1; }
.maker-copy h3 { font: 700 clamp(24px, 2.5vw, 31px)/1.1 var(--f-display); letter-spacing: -.035em; }
.maker-copy p { max-width: 38ch; margin-top: 15px; font-size: 14px; line-height: 1.6; color: #4e5a52; }
.maker-personal .maker-copy h3 { font-size: clamp(42px, 5.2vw, 64px); }
.maker-personal .maker-copy h3 em { font-weight: 500; }
.maker-personal .maker-copy p { max-width: 36ch; font-size: 15px; }
.maker-personal-photo { position: relative; margin: auto -30px 0; }
.maker-personal-photo img { width: 100%; height: auto; mix-blend-mode: multiply; mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 90%, transparent); }
.maker-note { position: absolute; right: 26px; bottom: 24px; transform: rotate(-7deg); padding: 13px 16px; border-radius: 3px; background: #e7edb8; box-shadow: 0 4px 16px #26332118; font: 600 12px/1.4 var(--f-ui); }
.maker-team-content { display: grid; grid-template-columns: 1.2fr .9fr; align-items: center; }
.maker-team-content img { width: 130%; height: auto; max-width: none; margin-left: -8%; mix-blend-mode: multiply; mask-image: radial-gradient(ellipse, #000 45%, transparent 73%); }
.maker-team-content .maker-copy p { max-width: 25ch; }
.maker-seller .maker-copy p { color: #c4d0c8; max-width: 44ch; }
.maker-seller .maker-copy em { color: #e6edb4; font-style: normal; }
.maker-action { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 18px; margin-top: 26px; border-top: 1px solid #17231f26; font-size: 14px; font-weight: 700; }
.maker-action-note { font-size: 11px; font-weight: 400; color: #536057; }
.maker-seller .maker-action { border-color: #f7f6ee30; }
.maker-seller .maker-action-note { color: #bdc9c1; }
.maker:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
@media (max-width: 1000px) and (min-width: 701px) {
  .maker { padding: 24px; }
  .maker-personal-photo { margin-left: -24px; margin-right: -24px; }
  .maker-team-content { grid-template-columns: 1fr; }
  .maker-team-content img { width: 64%; justify-self: end; margin: -20px -16px -10px 0; }
  .maker-team-content .maker-copy p { max-width: 34ch; }
}
@media (max-width: 700px) {
  .makers-head { grid-template-columns: 1fr; gap: 20px; }
  .makers-head > p { justify-self: start; font-size: 16px; }
  .makers { grid-template-columns: 1fr; gap: 16px; }
  .maker { padding: 24px; border-radius: 20px; }
  .maker-personal { grid-row: auto; }
  .maker-personal-photo { margin: 12px -24px 0; }
  .maker-personal .maker-copy h3 { font-size: 48px; }
  .maker-team-content { grid-template-columns: 1fr; }
  .maker-team-content .maker-copy p { max-width: 34ch; }
  .maker-team-content img { width: 78%; margin: -6px -20px -14px 0; justify-self: end; }
  .maker-action { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .maker-arrow { transition: none; }
  .maker:hover .maker-arrow { transform: none; }
}

/* ---------- business ---------- */
.business { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: var(--solid); color: var(--on-solid); }
@media (max-width: 860px) { .business { grid-template-columns: 1fr; } }
.business .eyebrow { color: color-mix(in srgb, var(--on-solid) 60%, transparent); }
.business h2 { font: 700 clamp(28px, 3.6vw, 40px)/1.08 var(--f-display); letter-spacing: -.025em; margin: 14px 0 14px; text-wrap: balance; }
.business p { color: color-mix(in srgb, var(--on-solid) 72%, transparent); font-size: 16px; max-width: 46ch; }
.business .btn { margin-top: 26px; background: var(--on-solid); color: var(--solid); border-color: var(--on-solid); }
.business .btn:hover { background: color-mix(in srgb, var(--on-solid) 86%, var(--solid)); }
.biz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--on-solid) 14%, transparent); }
.biz-list li { display: grid; gap: 4px; padding: 18px 20px; background: var(--solid); }
.biz-list strong { font: 600 15px/1.3 var(--f-ui); }
.biz-list span { font-size: 14px; color: color-mix(in srgb, var(--on-solid) 62%, transparent); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 600 18px/1.3 var(--f-display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq .answer { padding: 0 0 24px; color: var(--muted); font-size: 16px; max-width: 62ch; display: grid; gap: 10px; }

/* ---------- final CTA + footer ---------- */
.final { text-align: center; padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid var(--line); }
.final h2 { font: 800 clamp(36px, 5.6vw, 68px)/1 var(--f-display); letter-spacing: -.035em; text-wrap: balance; margin-bottom: 18px; }
.final p { color: var(--muted); font-size: 18px; margin-bottom: 34px; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 13px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { text-decoration: none; color: var(--muted); }
.footer a:hover { color: var(--ink); }
.theme-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.theme-btn:hover { color: var(--ink); }

/* Mobile: one primary action pinned once the hero button scrolls away. */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30; display: none; }
.sticky-cta .btn { width: 100%; box-shadow: var(--shadow-pop); }
@media (max-width: 820px) { .sticky-cta { display: block; transform: translateY(140%); transition: transform .3s ease; } .sticky-cta.is-shown { transform: none; } body { padding-bottom: 8px; } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .stage-caption .caret { animation: none; }
  .design, .design:hover { transition: none; transform: none; }
}

/* Shared marketing palette: paper, sage, forest, and a restrained lime accent. */
:is(.landing-page, .business-page) {
  --bg: #f7f6f0;
  --surface: #eeeae2;
  --surface-2: #e4e9df;
  --ink: #17231f;
  --ink-2: #354c40;
  --muted: #536057;
  --faint: #647067;
  --line: #d8ddd2;
  --line-strong: #bec8bb;
  --solid: #1d342c;
  --solid-hover: #2d4c3e;
  --on-solid: #f7f6ee;
  --shadow-pop: 0 18px 50px #1d342c1a;
  --page-cream: #eeeae2;
  --page-sage: #e4e9df;
  --page-paper: #f7f6f0;
  --page-forest: #1d342c;
  --page-lime: #e6edb4;
  --page-on-forest: #f7f6ee;
}
:root[data-theme="dark"] :is(.landing-page, .business-page) {
  --bg: #14221c;
  --surface: #203128;
  --surface-2: #2c4033;
  --ink: #f1f1e5;
  --ink-2: #d4dec8;
  --muted: #b2c0b3;
  --faint: #a4b4a5;
  --line: #354a3c;
  --line-strong: #52694f;
  --solid: #e6edb4;
  --solid-hover: #f0f4d0;
  --on-solid: #17231f;
  --page-cream: #243028;
  --page-sage: #20372b;
  --page-paper: #18271f;
}
:is(.landing-page, .business-page) .topbar { border-bottom-color: var(--line); }
.landing-page .hero { background: var(--page-cream); }
.landing-page .hero-title-payoff { color: var(--ink-2); }
.landing-page .hero h1 em { text-decoration: underline; text-decoration-color: var(--page-lime); text-decoration-thickness: .12em; text-underline-offset: .06em; text-decoration-skip-ink: none; }
.landing-page .hero-note { color: var(--muted); }
.landing-page .stage { border-color: var(--line-strong); box-shadow: 0 20px 60px #1d342c12; }
.landing-page #gallery { background: var(--page-paper); }
.landing-page .design-body .open span { background: var(--page-sage); border-color: transparent; }
.landing-page .design:hover .open span { background: var(--solid); }
:is(.landing-page, .business-page) #how { background: var(--page-sage); }
:is(.landing-page, .business-page) .step { background: var(--page-paper); border-color: transparent; }
:is(.landing-page, .business-page) .step-num b { background: var(--page-forest); color: var(--page-lime); border-color: transparent; }
.landing-page .step-visual .pill { background: var(--page-sage); border-color: transparent; }
.landing-page #next { background: var(--page-cream); }
.landing-page .path { background: var(--page-paper); border-color: transparent; }
.landing-page .path .icon { background: var(--page-lime); color: #1d342c; }
.landing-page #makers { background: var(--page-paper); }
.landing-page #business { background: var(--page-sage); }
.landing-page .business {
  --solid: var(--page-forest);
  --on-solid: var(--page-on-forest);
}
.landing-page .business .btn { background: var(--page-lime); color: var(--page-forest); border-color: var(--page-lime); }
.landing-page .business .btn:hover { background: #f0f4d0; border-color: #f0f4d0; }
:is(.landing-page, .business-page) #faq { background: var(--page-cream); }
:is(.landing-page, .business-page) .faq details[open] summary { color: var(--ink-2); }
.landing-page .final, :is(.landing-page, .business-page) .footer {
  --ink: #f7f6ee;
  --muted: #c4d0c8;
  --faint: #b5c5b9;
  --line: #40584b;
  --solid: #e6edb4;
  --solid-hover: #f0f4d0;
  --on-solid: #1d342c;
  background: var(--page-forest);
  color: var(--ink);
}
.landing-page .final h2 { color: var(--page-lime); }
:is(.landing-page, .business-page) .footer { background: #172a22; }
.landing-page :is(.business, .final, .footer) :focus-visible { outline-color: var(--page-lime); }

/* ================= business.html ================= */
.badge { display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line-strong); font: 600 12px/1 var(--f-ui); color: var(--ink-2); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.biz-hero h1 { font-size: clamp(40px, 5.6vw, 72px); }
.fine { font-size: 13px; color: var(--faint); }

/* Hero mock: a store product page with the builder inside, and the build sheet it produces. */
.biz-mock { position: relative; padding: 0 0 40px; }
.shop.big { width: 100%; border-radius: 18px; box-shadow: var(--shadow-pop); }
.shop.big .shop-bar { align-items: center; padding: 11px 14px; }
.shop.big .shop-bar i { width: 9px; height: 9px; flex: none; }
.shop.big .url { margin-left: 10px; padding: 5px 12px; border-radius: 8px; background: var(--surface); color: var(--faint); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.shop.big .shop-body { grid-template-columns: 1.4fr 1fr; gap: 20px; padding: 20px; }
.builder-pane { display: grid; gap: 14px; justify-items: center; padding: 14px; border-radius: 14px;
  background: radial-gradient(120% 95% at 50% 36%, var(--sweep-center) 0%, var(--sweep-mid) 53%, var(--sweep-edge) 100%); }
.pane-steps { display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line-strong); }
.pane-steps span { padding: 5px 9px; border-radius: 8px; font: 600 9px/1 var(--f-ui); letter-spacing: .16em; color: var(--muted); }
.pane-steps span.is-on { background: var(--solid); color: var(--on-solid); }
.builder-pane .mini { width: 62%; border-radius: 14px; }
.builder-pane .mini span { font-size: clamp(13px, 1.5vw, 18px); }
.pane-dots { display: flex; gap: 6px; }
.pane-dots b { width: 16px; height: 16px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px #0000001f; }
.pane-dots b.is-on { border-color: var(--bg); box-shadow: 0 0 0 2px var(--solid); }
.shop.big .shop-lines { gap: 10px; align-content: center; }
.shop.big .shop-lines > i { height: 9px; }
.shop.big .shop-lines > i:first-child { height: 12px; }
.shop-lines .price { color: var(--ink); font-size: 12px; font-weight: 500; }
.shop-lines .qty { display: flex; gap: 5px; }
.shop-lines .qty i { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); }
.shop.big .buy { height: 34px; display: grid; place-items: center; color: var(--on-solid); font: 600 12px/1 var(--f-ui); }
.shop-lines .note { color: var(--faint); font-size: 10px; text-align: center; }
.sheet-card { position: absolute; right: -12px; bottom: 0; width: 44%; display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop); transform: rotate(2deg); }
.sheet-card .mono { font-size: 9.5px; color: var(--ink-2); letter-spacing: .08em; }
.sheet-card i { height: 7px; border-radius: 4px; background: var(--surface-2); }
.sheet-card i:nth-of-type(2) { width: 70%; }
.sheet-card i:nth-of-type(3) { width: 45%; }
@media (max-width: 900px) { .sheet-card { right: 8px; } }
@media (max-width: 520px) { .shop.big .shop-body { grid-template-columns: 1fr; } .shop.big .shop-lines { display: none; } .sheet-card { width: 60%; } }

/* Orders */
.orders-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .orders-grid { grid-template-columns: 1fr; } }
.orders-grid .section-head .fine { margin-top: 6px; }
.deliverables { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.deliverables li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.deliverables .mono { color: var(--faint); padding-top: 3px; }
.deliverables strong { display: block; font: 700 17px/1.25 var(--f-display); letter-spacing: -.01em; margin-bottom: 4px; }
.deliverables li span:not(.mono) { color: var(--muted); font-size: 15px; }

/* Integrations */
.integrations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .integrations { grid-template-columns: 1fr; } }
.integration { padding: 24px; border-radius: 20px; border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.int-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.integration h3 { font: 700 20px/1.2 var(--f-display); letter-spacing: -.015em; }
.integration p { color: var(--muted); font-size: 15px; }
.status { flex: none; padding: 5px 10px; border-radius: 8px; font: 600 11px/1 var(--f-ui); letter-spacing: .04em; color: var(--muted); background: var(--surface-2); }
.status.is-live { color: var(--on-solid); background: var(--solid); }

/* Features */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: 20px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-grid li { display: grid; gap: 6px; align-content: start; padding: 24px; background: var(--bg); }
.feature-grid strong { font: 700 17px/1.25 var(--f-display); letter-spacing: -.01em; }
.feature-grid span { color: var(--muted); font-size: 15px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }
.plan { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg); }
.plan.is-featured { border-color: var(--solid); box-shadow: var(--shadow-pop); }
.plan-flag { position: absolute; top: -12px; left: 28px; padding: 6px 12px; border-radius: 8px; background: var(--solid); color: var(--on-solid); font: 600 11px/1 var(--f-ui); letter-spacing: .06em; }
.plan h3 { font: 700 20px/1.2 var(--f-display); letter-spacing: -.015em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font: 800 40px/1 var(--f-display); letter-spacing: -.03em; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-for { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; margin: 6px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; font-size: 15px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ''; width: 12px; height: 7px; margin-top: 6px; flex: none; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan .btn { width: 100%; margin-top: 10px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); }

/* Request form */
.request-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .request-grid { grid-template-columns: 1fr; } }
.request-form { position: relative; display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 500; color: var(--faint); margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--f-ui); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--solid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--solid) 14%, transparent); }
.field input[aria-invalid="true"] { border-color: oklch(0.58 0.17 25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form-foot .btn:disabled { opacity: .6; cursor: progress; }
.form-status { font-size: 15px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { color: oklch(0.55 0.17 25); }
:root[data-theme="dark"] .form-status.is-error { color: oklch(0.72 0.14 25); }
.form-status.is-ok { color: var(--ink); }
.request-form.is-sent > :not(.form-status) { display: none; }
.request-form.is-sent .form-status { font: 600 20px/1.35 var(--f-display); letter-spacing: -.01em; }
/* Dropdown lists follow the theme (the option popup does not inherit colours). */
select { color-scheme: inherit; }
select option, select optgroup { background-color: var(--bg); color: var(--ink); }

/* Site logo (assets/ui/mad-crown-logo.svg) replaces the stacked wordmark. */
.brand-logo { display: block; height: 32px; width: auto; }
@media (max-width: 760px) { .brand-logo { height: 26px; } }
