/* ==========================================================================
   Zeetracks: "precision with a spark" (white + blue)
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Components  6. Sections
   7. Mockups  8. Motion  9. Utilities
   ========================================================================== */

/* 1. FONTS (self-hosted, latin subset) ----------------------------------- */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* 2. TOKENS --------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* color: white + blue */
  --ink: #101318;
  --ink-soft: #3A404A;
  --muted: #5B6270;            /* clears AA 4.5:1 on white and on --wash */
  --paper: #FFF1E6;            /* page background: soft blue */
  --surface: #FFF8F2;          /* cards, panels */
  --line: #F2C9A8;
  --orange: #C2410C;           /* brand blue: fills only, always with dark ink text */
  --orange-hover: #9A330A;     /* hover / pressed fill */
  --wash: #FFE0C7;             /* neutral off-white panel (white is the primary colour) */
  --on-orange: #FFFFFF;        /* the only text color allowed on blue */
  --link: #A8380A;             /* deep blue: text links and focus rings (6.4:1 on white) */
  --signal: #A8380A;
  --success: #1E8E5A;
  --success-text: #17784B;
  --error: #C8382E;
  --shadow: 0 10px 30px -12px rgba(16, 19, 24, .22), 0 2px 6px rgba(16, 19, 24, .06);

  /* type families */
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* fluid type scale (defined once, reused everywhere) */
  --fs-h1: clamp(2.5rem, 1.35rem + 5.1vw, 5.25rem);     /* 40px -> 84px */
  --fs-h2: clamp(1.875rem, 1.25rem + 2.7vw, 3.25rem);    /* 30px -> 52px */
  --fs-h3: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
  --fs-body: clamp(1rem, .96rem + .2vw, 1.125rem);       /* 16px -> 18px */
  --fs-small: .875rem;
  --fs-label: .75rem;

  /* spacing: 8px base */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px; --s16: 128px;
  --section-y: clamp(64px, 5vw + 44px, 128px);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;

  /* shape */
  --r-card: 14px;
  --r-pill: 999px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Dark theme: same tokens, new values. Light is the default; dark only when the visitor picks it. */
/* Dark theme: deep green-black, same teal. Light is the default; dark only when the visitor picks it. */
:root[data-bl-theme="dark"] {
  color-scheme: dark;
  --ink: #FFF4EA; --ink-soft: #E8D3BF; --muted: #C9AE98;
  --paper: #0E0906; --surface: #1A110B; --line: #5A3414;
  --wash: #2A1A0E; --link: #FFB26B; --signal: #FFB26B;
  --success: #3CC285; --success-text: #3CC285; --error: #FF7A70;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
}
/* 3. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
p { margin: 0; max-width: 66ch; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--on-orange); }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* 4. LAYOUT --------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; } }
section { padding-block: var(--section-y); }
.section-line { border-top: 1px solid var(--line); }

.label {
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); flex: none; }
.lede { font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); color: var(--ink-soft); line-height: 1.55; }
.section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.section-head h2 { margin-top: 20px; max-width: 18ch; }
.section-head .lede { margin-top: 20px; }

/* 5. COMPONENTS ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .18s, border-color .18s, transform .18s var(--ease), box-shadow .18s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); text-decoration: none; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); line-height: 1.2; white-space: nowrap;
}
.tag.is-sample { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }

.icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; color: var(--ink); text-decoration: none; margin-right: auto; border-radius: 8px; }
.brand .logo-svg { height: 30px; width: auto; }
.nav { display: none; gap: 4px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .9375rem; padding: 8px 12px; border-radius: var(--r-pill); }
.nav a:hover { color: var(--ink); }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; transition: border-color .18s;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle .icon { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-bl-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-bl-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; }
.menu-btn .icon { width: 20px; height: 20px; }
.header-cta { display: none; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 12px var(--gutter) 20px; background: var(--paper); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 4px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 16px; width: 100%; border-bottom: 1px solid var(--orange); }
@media (min-width: 1100px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
  .mobile-nav, .mobile-nav.open { display: none; }
}

/* 6. SECTIONS ------------------------------------------------------------- */

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 96px); padding-bottom: var(--section-y); position: relative; overflow: clip; }
.hero::before { /* the single subtle texture: a fine technical grid, fading out */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 35%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 75% 35%, #000, transparent 75%);
}
.hero .wrap { position: relative; }
.hero-copy { grid-column: 1 / -1; }
.hero-copy .label { margin-bottom: 28px; }
.hero h1 .line { display: block; }
.mark { background: var(--orange); color: var(--on-orange); padding: 0 .14em; margin-inline: -.04em; border-radius: .14em; white-space: nowrap; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-sub { grid-column: 1 / -1; display: grid; gap: 32px; margin-top: clamp(28px, 3vw, 40px); align-items: end; }
.hero .lede { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: var(--fs-small); color: var(--muted); max-width: 48ch; }
.hero-stage { grid-column: 1 / -1; margin-top: clamp(48px, 7vw, 88px); position: relative; }
@media (min-width: 900px) {
  .hero-sub { grid-template-columns: 6fr 5fr; column-gap: 24px; }
  .hero-side { justify-self: start; }
}

/* Services: open rows, not identical cards */
.services-list { border-top: 1px solid var(--ink); }
.service { display: grid; grid-template-columns: 1fr; gap: 16px 24px; padding-block: 36px; border-bottom: 1px solid var(--line); position: relative; }
.service .label { grid-column: 1 / -1; }
.service h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); letter-spacing: -.03em; }
.service-body > .icon { width: 32px; height: 32px; color: var(--ink); margin-bottom: 12px; }
.service p { color: var(--ink-soft); }
.service ul { display: grid; gap: 8px; color: var(--ink-soft); font-size: .9375rem; align-content: start; }
.service li { display: flex; gap: 10px; align-items: baseline; }
.service li::before { content: ""; width: 10px; height: 2px; background: var(--ink); flex: none; transform: translateY(-4px); }
.service .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; width: fit-content; }
.service .more:hover { background: var(--orange); color: var(--on-orange); }
@media (min-width: 900px) {
  .service { grid-template-columns: 1fr 5fr 4fr; padding-block: 48px; align-items: start; }
  .service .label { grid-column: auto; padding-top: 10px; }
  .service-body { display: block; }
  .service:hover .service-body > .icon { transform: rotate(-4deg); }
  .service-body > .icon { transition: transform .25s var(--ease); }
}

/* Templates */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { min-height: 40px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); font-weight: 500; font-size: .9375rem; cursor: pointer; transition: border-color .18s, background-color .18s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tpl-grid { display: grid; grid-template-columns: 1fr; gap: 48px 24px; }
@media (min-width: 700px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tpl-grid { grid-template-columns: repeat(3, 1fr); } .tpl:nth-child(3n+2) { margin-top: 40px; } }
.tpl[hidden] { display: none; }
.tpl-frame { position: relative; transition: transform .25s var(--ease); }
.tpl:hover .tpl-frame { transform: translateY(-4px); }
.tpl:hover .browser { box-shadow: var(--shadow); }
.tpl .tag.is-sample { position: absolute; top: -12px; left: 16px; z-index: 2; }
.tpl > h3 { font-size: 1.25rem; margin-top: 20px; letter-spacing: -.02em; }
.tpl > p { margin-top: 6px; font-size: .9375rem; color: var(--ink-soft); }
.tpl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; font-size: .9375rem; }
.tpl-meta .price { font-family: var(--font-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tpl-meta a { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--orange); }
.tpl-meta a:hover { background: var(--orange); color: var(--on-orange); }
.fine-print { margin-top: 48px; font-size: var(--fs-small); color: var(--muted); max-width: 64ch; }

/* Email + WhatsApp feature sections */
.feature { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 6fr 5fr; gap: 80px; } .feature.flip { grid-template-columns: 5fr 6fr; } .feature.flip .feature-visual { order: -1; } }
.feature h2 { margin-top: 20px; max-width: 16ch; }
.feature .lede { margin-top: 20px; }
.checks { margin-top: 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.checks .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--ink); }
.caveat { margin-top: 24px; font-size: var(--fs-small); color: var(--muted); max-width: 52ch; }
.feature-visual { position: relative; }
.band { background: var(--wash); border-block: 1px solid var(--line); }

/* Process */
.steps { display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: step; }
.step { display: grid; align-content: start; grid-template-columns: 56px 1fr; gap: 0 16px; padding-bottom: 40px; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; background: var(--surface); border: 1px solid var(--ink); color: var(--ink); position: relative; z-index: 1; }
.step:first-child .step-n { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }
.step h3 { font-size: 1.375rem; padding-top: 6px; }
.step p { margin-top: 8px; color: var(--ink-soft); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .step { grid-template-columns: 1fr; padding-bottom: 0; }
  .step:not(:last-child)::before { left: 48px; right: -24px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .step h3 { margin-top: 24px; padding-top: 0; }
}

/* Principles */
.principles { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
.principle { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 8px 32px; }
.principle h3 { font-size: 1.375rem; }
.principle p { color: var(--ink-soft); }
@media (min-width: 900px) { .principle { grid-template-columns: 4fr 7fr; padding: 36px 0; } }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--ink-soft); }
.faq .answer { padding: 0 48px 28px 0; color: var(--ink-soft); }
.faq .answer p + p { margin-top: 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 80px; } }
.contact-info h2 { margin-top: 20px; max-width: 12ch; }
.contact-info .lede { margin-top: 20px; }
.channels { margin-top: 32px; display: grid; gap: 14px; }
.channels a, .channels span { display: inline-flex; gap: 12px; align-items: center; color: var(--ink); font-weight: 500; }
.channels .icon { width: 22px; height: 22px; }
.channels:empty { display: none; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(20px, 3vw, 36px); display: grid; gap: 20px; }
.row2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field > label, .field > legend, legend.field-label { font-weight: 600; font-size: .9375rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; transition: border-color .18s, box-shadow .18s;
}
textarea.input { min-height: 140px; resize: vertical; }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 28%, transparent); }
.input[aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-size: var(--fs-small); min-height: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.checkgrid { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 640px) { .checkgrid { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; font-size: .9375rem; }
.check:hover { border-color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.check:has(input:checked) { border-color: var(--ink); background: var(--wash); }
.form-status { min-height: 24px; font-size: .9375rem; }
.form-status[data-state="ok"] { color: var(--success-text); font-weight: 600; }
.form-status[data-state="error"] { color: var(--error); font-weight: 600; }
.form-status[data-state="info"] { color: var(--ink-soft); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--fs-small); color: var(--muted); }

/* Closing band: the one deliberate blue section */
.closing { background: var(--orange); color: var(--on-orange); padding-block: clamp(64px, 8vw, 112px); }
.closing .label { color: var(--on-orange); }
.closing .label::before { background: var(--on-orange); }
.closing-in { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .closing-in { grid-template-columns: 8fr 4fr; } }
.closing h2 { max-width: 16ch; margin-top: 20px; }
.closing p { margin-top: 16px; max-width: 46ch; }
.closing .btn { background: var(--on-orange); color: #F2F4F7; border-color: var(--on-orange); justify-self: start; }
.closing .btn:hover { background: #2A303A; border-color: #2A303A; }
@media (min-width: 900px) { .closing .btn { justify-self: end; } }

/* Footer */
.site-footer { padding-block: 64px 40px; }
.footer-top { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 5fr 3fr 4fr; } }
.footer-top .brand { margin-bottom: 16px; }
.footer-top p { color: var(--ink-soft); font-size: .9375rem; max-width: 36ch; }
.footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 40px; align-content: start; }
.footer-nav a { color: var(--ink); text-decoration: none; font-weight: 500; width: fit-content; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--orange-hover); text-decoration-thickness: 2px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social:empty { display: none; }
.footer-contact { display: grid; gap: 8px; align-content: start; font-size: .9375rem; }
.footer-contact:empty { display: none; }
.footer-contact a { color: var(--ink); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: var(--fs-small); color: var(--muted); }

/* Floating WhatsApp (rendered only when a number is configured) */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; background: var(--orange); color: var(--on-orange); border-radius: var(--r-pill); font-weight: 600; text-decoration: none; box-shadow: var(--shadow); border: 1px solid var(--orange-hover); }
.wa-float.show { display: inline-flex; }
.wa-float:hover { background: var(--orange-hover); text-decoration: none; }
.wa-float .icon { width: 22px; height: 22px; }

/* 7. MOCKUPS (all built in HTML/CSS; every one is fictional) --------------- */
.browser { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: box-shadow .25s; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.browser-bar > i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); border: 1px solid color-mix(in srgb, var(--muted) 35%, transparent); }
.browser-bar .url { margin-left: 10px; flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sample site viewport: sizes scale with the container so previews stay sharp at any width */
.vp { container-type: inline-size; aspect-ratio: 4 / 3; background: var(--sp-bg, #fff); color: var(--sp-ink, #14202b); overflow: hidden; position: relative; font-family: var(--font-body); line-height: 1.35; }
.vp, .vp * { color-scheme: light; }
.sp-nav { display: flex; align-items: center; gap: 3.2cqw; padding: 3cqw 4.5cqw; font-size: 2.1cqw; border-bottom: 1px solid color-mix(in srgb, var(--sp-ink) 12%, transparent); }
.sp-nav b { font-family: var(--font-display); font-size: 2.9cqw; letter-spacing: -.02em; margin-right: auto; }
.sp-nav span { opacity: .75; }
.sp-btn { display: inline-block; background: var(--sp-accent); color: var(--sp-on, #fff); font-style: normal; font-weight: 600; font-size: 2.1cqw; padding: 1.3cqw 2.8cqw; border-radius: 99px; }
.sp-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4cqw; padding: 5.5cqw 4.5cqw 3cqw; align-items: center; }
.sp-hero h4 { font-family: var(--font-display); font-size: 6.3cqw; line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin-bottom: 2cqw; }
.sp-hero p { font-size: 2.2cqw; opacity: .78; margin-bottom: 3cqw; max-width: none; }
.sp-art { aspect-ratio: 1 / 1; border-radius: 3cqw; background: var(--sp-art-bg, var(--sp-accent)); position: relative; overflow: hidden; }
.sp-art::before, .sp-art::after { content: ""; position: absolute; border-radius: 50%; }
.sp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; padding: 1.5cqw 4.5cqw 4cqw; }
.sp-row div { border: 1px solid color-mix(in srgb, var(--sp-ink) 14%, transparent); border-radius: 1.8cqw; padding: 2cqw; font-size: 1.9cqw; }
.sp-row b { display: block; font-size: 2.2cqw; margin-bottom: .6cqw; }
.sp-row div span { opacity: .7; }

/* variants (flat colors only) */
.sp-dental { --sp-bg: #FFEFE0; --sp-ink: #12302F; --sp-accent: #9A330A; --sp-art-bg: #CFE7E3; }
.sp-dental .sp-art::before { width: 62%; height: 62%; left: 19%; top: 24%; background: #9A330A; border-radius: 50% 50% 46% 46%; }
.sp-dental .sp-art::after { width: 20%; height: 20%; right: 12%; top: 12%; background: #FFEFE0; }
.sp-bakery { --sp-bg: #FBF3E6; --sp-ink: #3A2315; --sp-accent: #C2562B; --sp-art-bg: #F1D9B5; }
.sp-bakery .sp-art::before { width: 70%; height: 46%; left: 15%; top: 30%; background: #C2562B; border-radius: 50% 50% 14% 14%; }
.sp-bakery .sp-art::after { width: 70%; height: 10%; left: 15%; top: 70%; background: #3A2315; border-radius: 99px; }
.sp-consult { --sp-bg: #EEF1F6; --sp-ink: #121B2E; --sp-accent: #1B2A4A; --sp-art-bg: #1B2A4A; }
.sp-consult .sp-hero h4 { font-weight: 600; }
.sp-consult .sp-art::before { width: 56%; height: 3%; left: 22%; top: 38%; background: #C2410C; }
.sp-consult .sp-art::after { width: 36%; height: 3%; left: 22%; top: 50%; background: #8E9AB3; border-radius: 0; }
.sp-cafe { --sp-bg: #1D2420; --sp-ink: #F1EDE3; --sp-accent: #E4C07A; --sp-on: #1D2420; --sp-art-bg: #2C382F; }
.sp-cafe .sp-art::before { width: 54%; height: 54%; left: 23%; top: 23%; border: 1.2cqw solid #E4C07A; background: transparent; }
.sp-cafe .sp-art::after { width: 14%; height: 14%; left: 43%; top: 43%; background: #E4C07A; }
.sp-studio { --sp-bg: #FFFFFF; --sp-ink: #111111; --sp-accent: #111111; --sp-art-bg: #E9E6E1; }
.sp-studio .sp-hero h4 { font-weight: 500; letter-spacing: -.045em; }
.sp-studio .sp-art::before { width: 46%; height: 60%; left: 12%; top: 20%; background: #111; }
.sp-studio .sp-art::after { width: 30%; height: 38%; right: 12%; bottom: 14%; background: #C9C3B9; }
.sp-repair { --sp-bg: #F4F5F2; --sp-ink: #1A241B; --sp-accent: #2F6B3A; --sp-art-bg: #DDE6DA; }
.sp-repair .sp-art::before { width: 60%; height: 12%; left: 20%; top: 44%; background: #2F6B3A; border-radius: 99px; transform: rotate(-30deg); }
.sp-repair .sp-art::after { width: 40%; height: 12%; left: 30%; top: 44%; background: #1A241B; border-radius: 99px; transform: rotate(30deg); }

/* Phone + chat: everything inside scales with the phone's own width (cqw), so it never clips */
.phone { container-type: inline-size; width: min(100%, 260px); aspect-ratio: 9 / 18.5; border: 8px solid var(--ink); border-radius: 38px; background: #EFEAE2; overflow: hidden; position: relative; display: grid; grid-template-rows: auto 1fr auto; box-shadow: var(--shadow); color-scheme: light; color: #14202b; }
:root[data-bl-theme="dark"] .phone { border-color: #3A404A; }

.phone::before { content: ""; position: absolute; top: 3cqw; left: 50%; width: 26cqw; height: 6.5cqw; margin-left: -13cqw; border-radius: 99px; background: #101318; z-index: 3; }
.chat-head { display: flex; align-items: center; gap: 4cqw; padding: 13cqw 5.7cqw 4cqw; background: #FFFFFF; border-bottom: 1px solid #E3E6EB; }
.avatar { width: 12.3cqw; height: 12.3cqw; border-radius: 50%; background: #F1D9B5; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 5.3cqw; color: #3A2315; flex: none; }
.chat-head b { display: block; font-size: 5.3cqw; line-height: 1.2; }
.chat-head small { font-size: 4.3cqw; color: #5B6270; }
.chat-body { padding: 5.7cqw 4.9cqw; display: flex; flex-direction: column; gap: 3.3cqw; justify-content: flex-end; min-height: 0; }
.bubble { max-width: 82%; padding: 3.3cqw 4.5cqw; border-radius: 4.9cqw; font-size: 5.1cqw; line-height: 1.4; background: #FFFFFF; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.bubble.out { align-self: flex-end; background: #D6F2CF; border-top-right-radius: 1.2cqw; }
.bubble.in { border-top-left-radius: 1.2cqw; }
.bubble time { display: block; font-size: 3.9cqw; color: #5B6270; text-align: right; margin-top: .8cqw; }
.chat-input { display: flex; align-items: center; gap: 3.3cqw; padding: 4cqw 4.9cqw 6.5cqw; }
.chat-input span { flex: 1; background: #FFFFFF; border-radius: 99px; padding: 3.3cqw 5.7cqw; font-size: 4.9cqw; color: #5B6270; }
.chat-input i { width: 12.3cqw; height: 12.3cqw; border-radius: 50%; background: #1F8A5C; flex: none; display: grid; place-items: center; }
.chat-input i svg { width: 5.7cqw; height: 5.7cqw; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Inbox */
.inbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); }
.inbox-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.inbox-bar b { font-family: var(--font-display); font-size: 1.0625rem; letter-spacing: -.02em; }
.inbox-bar .addr { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.mail { display: grid; grid-template-columns: 36px 1fr auto; gap: 4px 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.mail:last-child { border-bottom: 0; }
.mail .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .8125rem; background: var(--wash); color: var(--ink); border: 1px solid var(--line); grid-row: span 2; }
.mail strong { font-weight: 600; font-size: .9375rem; }
.mail time { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.mail p { grid-column: 2 / -1; font-size: .875rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: none; }
.mail.unread strong::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--orange-hover); vertical-align: middle; }
.visual-tag { position: absolute; top: -12px; left: 16px; z-index: 3; }

/* Hero composition: layered, overlapping, deliberately off-grid */
.stage { position: relative; padding: 14px 0 0; }
.st { position: relative; }
.st .tag { position: absolute; top: -12px; left: 16px; z-index: 4; }
.st-browser { z-index: 1; width: 100%; }
.st-browser .browser { box-shadow: var(--shadow); }
.st-inbox { display: none; }
.st-phone { position: absolute; right: 2%; bottom: -56px; width: 36%; min-width: 128px; max-width: 250px; z-index: 3; }
.st-phone .phone { width: 100%; border-width: 6px; border-radius: 28px; }
.stage { margin-bottom: 72px; }
@media (min-width: 900px) {
  .stage { margin-bottom: 56px; padding-bottom: 8px; }
  .st-browser { width: 70%; }
  .st-inbox { display: block; position: absolute; right: 0; top: 0; width: 31%; z-index: 2; }
  .st-phone { right: 5%; bottom: -56px; width: 24%; max-width: 270px; }
}
.mini-inbox .mail { padding: 10px 14px; grid-template-columns: 28px 1fr auto; }
.mini-inbox .mail .dot { width: 28px; height: 28px; font-size: .6875rem; }
.mini-inbox .mail strong { font-size: .8125rem; }
.mini-inbox .mail p { font-size: .75rem; }
.mini-inbox .inbox-bar { padding: 10px 14px; }
.mini-inbox .inbox-bar b { font-size: .9375rem; }
.mini-inbox .inbox-bar .addr { font-size: 10px; }
.st .tag:not(.is-sample) { background: var(--surface); color: var(--ink); border-color: var(--line); }

/* 8. MOTION (purposeful, restrained) -------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero .label, .hero h1 .line, .hero .lede, .hero-actions, .hero-note { animation: rise .7s var(--ease) both; }
.hero .label { animation-delay: .05s; }
.hero h1 .line:nth-child(1) { animation-delay: .15s; }
.hero h1 .line:nth-child(2) { animation-delay: .27s; }
.hero h1 .line:nth-child(3) { animation-delay: .39s; }
.hero .lede { animation-delay: .5s; }
.hero-actions { animation-delay: .6s; }
.hero-note { animation-delay: .68s; }
.st-browser { animation: slide-in .9s var(--ease) .35s both; }
.st-inbox { animation: slide-up .9s var(--ease) .65s both; }
.st-phone { animation: slide-up .9s var(--ease) .8s both; }
.st .tag { animation: rise .6s var(--ease) 1.1s both; }

/* Scroll reveal: only hidden when JS is running, so the page is complete without it */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .08s; }
.js .reveal[data-d="2"] { transition-delay: .16s; }
.js .reveal[data-d="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 9. UTILITIES ------------------------------------------------------------ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* ==========================================================================
   10. MULTI-PAGE COMPONENTS
   ========================================================================== */

/* Reading progress + header state */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; z-index: 60; pointer-events: none; }
.header-in { transition: min-height .25s var(--ease); }
.site-header { transition: box-shadow .25s; view-transition-name: site-header; }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(16, 19, 24, .35); }
.site-header.scrolled .header-in { min-height: 60px; }

/* Nav: animated underline, current page marked */
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.mobile-nav a[aria-current="page"] { color: var(--link); }
.footer-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* Ticker: audience list, the one slim orange band under the hero */
.ticker { background: var(--orange); color: var(--on-orange); overflow: hidden; white-space: nowrap; border-block: 1px solid var(--on-orange); }
.ticker-track { display: inline-flex; animation: marquee 40s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; padding: 14px 0 14px 28px; display: inline-flex; align-items: center; gap: 28px; }
.ticker span::after { content: ""; width: 8px; height: 8px; background: var(--on-orange); border-radius: 2px; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Page hero for inner pages */
.page-hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 96px); position: relative; overflow: clip; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .6; -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000, transparent 75%); }
.page-hero::after { content: ""; position: absolute; right: -5%; top: -38%; width: min(42vw, 480px); aspect-ratio: 1; border-radius: 50%; background: var(--orange); opacity: .16; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-24px, 28px) scale(1.06); } }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.25rem, 1.1rem + 4.6vw, 4.75rem); max-width: 16ch; margin-top: 24px; }
.page-hero .lede { margin-top: 24px; max-width: 52ch; }
.page-hero .hero-actions { margin-top: 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.crumbs i { font-style: normal; opacity: .6; }

/* Link rows: home page service index (fills orange on hover) */
.linklist { border-top: 1px solid var(--ink); }
.linkrow { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; padding: 28px 12px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; position: relative; isolation: isolate; overflow: hidden; }
.linkrow::before { content: ""; position: absolute; inset: 0; background: var(--orange); transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
.linkrow:hover::before, .linkrow:focus-visible::before { transform: none; }
.linkrow .label { grid-column: 1 / -1; transition: color .3s; }
.linkrow h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); letter-spacing: -.03em; transition: transform .45s var(--ease), color .3s; }
.linkrow p { color: var(--ink-soft); grid-column: 1 / -1; transition: color .3s; }
.lr-arrow { grid-row: 2; grid-column: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: transform .45s var(--ease), background-color .3s, color .3s, border-color .3s; }
.lr-arrow .icon { width: 20px; height: 20px; }
.linkrow:hover, .linkrow:focus-visible { color: var(--on-orange); }
.linkrow:hover .label, .linkrow:hover p, .linkrow:focus-visible .label, .linkrow:focus-visible p { color: var(--on-orange); }
.linkrow:hover h3 { transform: translateX(10px); }
.linkrow:hover .lr-arrow { background: var(--on-orange); color: #FFF4EA; border-color: var(--on-orange); transform: rotate(-45deg); }
@media (min-width: 900px) {
  .linkrow { grid-template-columns: 90px 5fr 6fr 56px; padding: 40px 20px; }
  .linkrow .label { grid-column: auto; }
  .linkrow p { grid-column: auto; }
  .lr-arrow { grid-row: auto; grid-column: auto; }
}

/* Section header with a side link */
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.head-row .section-head { margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; width: fit-content; transition: background-color .2s, color .2s; }
.text-link:hover { background: var(--orange); color: var(--on-orange); }
.text-link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* Shop cards are links */
.tpl-link { display: block; text-decoration: none; color: inherit; border-radius: var(--r-card); }
.tpl-frame { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transition: transform .25s var(--ease); will-change: transform; }
.tpl:hover .tpl-frame { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.tpl > h3 a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--orange), var(--orange)); background-size: 0 3px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .35s var(--ease); }
.tpl:hover > h3 a { background-size: 100% 3px; }
.shop-note { margin-bottom: 40px; padding: 18px 20px; background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-card); max-width: 70ch; font-size: .9375rem; color: var(--ink-soft); }
.shop-note b { color: var(--ink); }

/* Template detail */
.detail { display: grid; gap: 48px; }
@media (min-width: 960px) { .detail { grid-template-columns: 7fr 4fr; gap: 72px; align-items: start; } .detail-side { position: sticky; top: 96px; } }
.detail-main { position: relative; padding-top: 14px; }
.detail-main .tag.is-sample { position: absolute; top: 2px; left: 16px; z-index: 3; }
.detail-main .browser { box-shadow: var(--shadow); }
.detail-side h2 { font-size: var(--fs-h3); }
.detail-side .lede { margin-top: 12px; font-size: 1.0625rem; }
.spec { margin: 28px 0 0; border-top: 1px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--font-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 3px; }
.spec dd { margin: 0; color: var(--ink-soft); font-size: .9375rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.pn a { text-decoration: none; color: var(--ink); display: grid; gap: 4px; padding: 14px 0; }
.pn a:last-child { text-align: right; }
.pn small { font-family: var(--font-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pn strong { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.02em; background-image: linear-gradient(var(--orange), var(--orange)); background-size: 0 3px; background-position: 0 100%; background-repeat: no-repeat; width: fit-content; transition: background-size .35s var(--ease); }
.pn a:last-child strong { margin-left: auto; background-position: 100% 100%; }
.pn a:hover strong { background-size: 100% 3px; }

@media (min-width: 900px) { .steps.three { grid-template-columns: repeat(3, 1fr); } }

/* Simple stack list for services page */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; } }
.split h2 { margin-top: 20px; max-width: 14ch; }
.split .lede { margin-top: 20px; }
.contact-note { margin-top: 28px; font-size: var(--fs-small); color: var(--muted); max-width: 40ch; }

/* 404 */
.nf { min-height: 60vh; display: grid; align-content: center; }
.nf h1 { font-size: clamp(5rem, 3rem + 14vw, 12rem); letter-spacing: -.06em; line-height: .9; }
.nf h1 span { color: var(--link); }

/* ==========================================================================
   11. MORE MOTION
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .38s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* highlighter wipe on the key words */
.mark { background-image: linear-gradient(var(--orange), var(--orange)); background-repeat: no-repeat; background-position: 0 0; background-size: 0% 100%; background-color: transparent; animation: wipe .8s var(--ease) .95s forwards; }
@keyframes wipe { to { background-size: 100% 100%; color: var(--on-orange); } }

/* scroll-reveal variants */
.js .reveal[data-anim="left"] { transform: translateX(-32px); }
.js .reveal[data-anim="right"] { transform: translateX(32px); }
.js .reveal[data-anim="scale"] { transform: scale(.95); }
.js .reveal.in[data-anim] { transform: none; }

/* hero mockups float gently once settled; parallax uses `translate`, which composes with the entrance animation */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.st { translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * 10px); transition: translate .5s var(--ease); }
.st-inbox .inbox { animation: float 7s ease-in-out 1.8s infinite; }
.st-phone .phone { animation: float 8.5s ease-in-out 2.2s infinite reverse; }
.st-phone { translate: calc(var(--px, 0) * -22px) calc(var(--py, 0) * -14px); }

/* chat plays out message by message; inbox rows arrive one by one */
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes mail-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.js .phone:not(.play) .bubble { opacity: 0; }
.js .phone.play .bubble { animation: pop-in .5s var(--ease) both; }
.js .phone.play .bubble:nth-child(1) { animation-delay: .35s; }
.js .phone.play .bubble:nth-child(2) { animation-delay: 1.5s; }
.js .phone.play .bubble:nth-child(3) { animation-delay: 2.6s; }
.js .inbox:not(.play) .mail { opacity: 0; }
.js .inbox.play .mail { animation: mail-in .55s var(--ease) both; }
.js .inbox.play .mail:nth-child(2) { animation-delay: .2s; }
.js .inbox.play .mail:nth-child(3) { animation-delay: .5s; }
.js .inbox.play .mail:nth-child(4) { animation-delay: .8s; }
.js .inbox.play .mail:nth-child(5) { animation-delay: 1.1s; }

/* process line draws itself */
.js .step::before { transform: scaleY(0); transform-origin: top; transition: transform .9s var(--ease) .35s; }
.js .step.in::before { transform: none; }
@media (min-width: 900px) { .js .step::before { transform: scaleX(0); transform-origin: left; } .js .step.in::before { transform: none; } }

/* buttons */
.btn { position: relative; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -12px rgba(16, 19, 24, .55); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost:hover { transform: translateY(-2px); }

/* logo mark tilts on hover */
.brand .logo-svg rect, .brand .logo-svg path:first-of-type { transition: transform .4s var(--ease); transform-origin: 16px 16px; }
.brand:hover .logo-svg rect, .brand:hover .logo-svg > path:first-of-type { transform: rotate(-8deg); }

/* stepped entrance for the page hero on inner pages */
.page-hero .crumbs, .page-hero .label, .page-hero h1, .page-hero .lede, .page-hero .hero-actions { animation: rise .7s var(--ease) both; }
.page-hero .crumbs { animation-delay: .05s; }
.page-hero .label { animation-delay: .1s; }
.page-hero h1 { animation-delay: .2s; }
.page-hero .lede { animation-delay: .35s; }
.page-hero .hero-actions { animation-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  .mark { background-size: 100% 100%; color: var(--on-orange); }
  .ticker-track { animation: none; }
  .js .phone .bubble, .js .inbox .mail { opacity: 1 !important; }
  .js .step::before, .js .step.in::before { transform: none; }
  .st, .st-phone, .tpl-frame { translate: none; }
  .progress { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Entrance animations start slightly off-screen; clip them so they never create sideways scroll.
   (clip, unlike hidden, leaves position: sticky working.) */
main { overflow-x: clip; }

/* Floating mockups: leave headroom so their "Sample ..." tags sit above, never over, the content */
.st-inbox, .st-phone { padding-top: 14px; }
.st-inbox .tag, .st-phone .tag { top: 0; }

/* Dashboard-driven "Sold out" label */
.tag.soldout { position: absolute; top: -12px; right: 16px; z-index: 3; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.detail-main { position: relative; }
.is-soldout .browser { filter: saturate(.55); }


/* ==========================================================================
   12. White-first layout. White is the primary colour; orange is an accent only
   (buttons, the highlighter mark, small marks and rules).
   ========================================================================== */
/* Ticker and closing: white with an orange accent, no orange fields */
.ticker { background: var(--paper); color: var(--ink); border-block: 1px solid var(--line); }
.ticker span::after { background: var(--orange); }
.closing { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); text-align: center; position: relative; }
.closing::before { content: ""; position: absolute; top: -1px; left: 50%; width: 96px; height: 4px; transform: translateX(-50%); background: var(--orange); border-radius: 0 0 4px 4px; }
.closing .label { color: var(--muted); justify-content: center; }
.closing .label::before { background: var(--orange); }
.closing-in { justify-items: center; align-items: center; }
.closing h2 { max-width: 20ch; margin-inline: auto; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.75rem); }
.closing p { margin-inline: auto; color: var(--ink-soft); }
.closing .btn { background: var(--orange); color: var(--on-orange); border-color: var(--orange); justify-self: center; margin-top: 8px; }
.closing .btn:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
/* Page headers: quiet white, thin orange rule instead of a coloured disc */
.page-hero::after { width: 96px; height: 4px; border-radius: 0 0 4px 4px; aspect-ratio: auto; top: auto; bottom: -1px; left: var(--gutter); right: auto; opacity: 1; animation: none; }
.page-hero .wrap::after { content: none; }
.band { background: var(--paper); border-block: 0; }

/* Services: a 2x2 grid of cards instead of full-width rows */
.linklist { display: grid; gap: 16px; border-top: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .linklist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.linkrow { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); align-content: start; min-height: 220px; transition: border-color .3s, box-shadow .3s, transform .35s var(--ease); }
.linkrow::before { background: var(--wash); border-radius: inherit; }
.linkrow:hover, .linkrow:focus-visible { color: var(--ink); border-color: var(--orange); box-shadow: 0 14px 34px -18px rgba(16, 19, 24, .28); transform: translateY(-4px); }
.linkrow:hover .label, .linkrow:hover p, .linkrow:focus-visible .label, .linkrow:focus-visible p { color: var(--ink-soft); }
.linkrow:hover h3 { transform: none; }
.linkrow:hover .lr-arrow { background: var(--orange); color: var(--on-orange); border-color: var(--orange); transform: rotate(-45deg); }
.linkrow h3 { font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem); }

/* Section heads: heading left, intro right on wide screens */
@media (min-width: 900px) {
  .section-head:has(.lede) { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 48px; align-items: end; }
  .section-head:has(.lede) .label { grid-column: 1 / -1; }
  .section-head:has(.lede) .lede { margin-top: 0; }
}

/* Home hero: split layout, copy left and live mock-ups right */
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 4vw, 72px); align-items: center; }
  .hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
  .hero-sub { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr); margin-top: 28px; align-self: start; }
  .hero-stage { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; padding-bottom: 64px; }
  .hero h1 { font-size: clamp(2.5rem, 1rem + 3.6vw, 4.5rem); }
}
.hero::before { opacity: .5; }
.hero h1 { font-size: clamp(2.3rem, .8rem + 3.2vw, 4rem); }
.linkrow { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.linkrow .lr-arrow { margin-top: auto; align-self: flex-end; }
.linkrow p { max-width: 38ch; }
.closing-in, .closing .closing-in { grid-template-columns: minmax(0, 1fr); text-align: center; }
.closing-in > div { display: flex; flex-direction: column; align-items: center; }


/* ==========================================================================
   13. Teal opener at the top of the home page: tagline + rotating emblem.
   ========================================================================== */
.dream { background: radial-gradient(1200px 600px at 78% 40%, #EA6A1A 0%, #C2410C 45%, #7C2D12 100%); color: #FFFFFF; padding-block: clamp(40px, 6vw, 88px); overflow: clip; }
.dream-in { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; justify-items: start; }
@media (min-width: 820px) { .dream-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .dream-emblem { justify-self: center; } }
.dream-copy { display: grid; gap: 0; justify-items: start; }
.dw { margin: 0; overflow: hidden; padding-bottom: .04em; font: 700 clamp(3rem, 1rem + 8vw, 7rem)/1 var(--font-display, var(--font)); letter-spacing: -.04em; }
.dw span { display: block; animation: dw-up .8s cubic-bezier(.2, .8, .2, 1) both; }
.dw:nth-child(2) span { animation-delay: .12s; } .dw:nth-child(3) span { animation-delay: .24s; }
.dw .ul { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .09em; }
.dream-sub { margin: 22px 0 0; font: 600 clamp(1.1rem, .9rem + .9vw, 1.6rem)/1.3 var(--font); animation: rise .7s var(--ease) .5s both; }
.dream-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; animation: rise .7s var(--ease) .65s both; }
.dream-btn { background: #FFFFFF; color: #A8380A; border-color: #FFFFFF; }
.dream-btn:hover { background: #FFE8D4; border-color: #FFE8D4; color: #A8380A; }
.dream-ghost { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255,255,255,.8); }
.dream-ghost:hover { background: #FFFFFF; color: #A8380A; }
.dream-emblem { width: clamp(180px, 34vw, 380px); aspect-ratio: 1; animation: dream-pop .8s var(--ease) .2s both; }
.bn-spin { transform-origin: 100px 100px; animation: bn-rot 4s linear infinite; }
@keyframes bn-rot { to { transform: rotate(360deg); } }
@keyframes dw-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes dream-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bn-spin, .dw span, .dream-sub, .dream-actions, .dream-emblem { animation: none !important; } }

/* Hero stage without a website mock-up: inbox and phone side by side */
.stage { display: flex; gap: clamp(14px, 3vw, 28px); align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.st-inbox { display: block; position: relative; right: auto; top: auto; width: auto; flex: 1 1 260px; max-width: 400px; margin-top: 56px; }
.st-phone { position: relative; right: auto; bottom: auto; flex: 0 1 230px; width: 230px; max-width: 46%; min-width: 150px; }
@media (max-width: 520px) { .st-phone { max-width: 70%; } }
.hero-stage { padding-bottom: 0; }
/* Three services: three columns on wide screens */
@media (min-width: 980px) { .linklist:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


/* ==========================================================================
   14. More motion (all switched off for reduced-motion visitors)
   ========================================================================== */
/* Teal opener: drifting shapes, bobbing emblem with a breathing shadow, pointer glow */
.dream { position: relative; --bx: 0; --by: 0; }
.dream::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at calc(50% + var(--bx) * 50%) calc(50% + var(--by) * 50%), rgba(120, 230, 205, .35), transparent 70%); transition: background-position .2s; }
.dz-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dz { position: absolute; display: block; border: 3px solid rgba(255,255,255,.75); opacity: .9; animation: dz-float 9s ease-in-out infinite; }
.dz1 { width: 22px; height: 22px; border-radius: 50%; left: 46%; top: 12%; }
.dz2 { width: 16px; height: 16px; background: #fff; border-radius: 4px; transform: rotate(20deg); left: 8%; bottom: 14%; animation-delay: -2s; animation-duration: 11s; }
.dz3 { width: 30px; height: 30px; border-radius: 50%; background: #fff; right: 10%; top: 14%; animation-delay: -4s; }
.dz4 { width: 14px; height: 14px; background: rgba(255,255,255,.85); transform: rotate(45deg); right: 36%; bottom: 12%; animation-delay: -6s; animation-duration: 12s; }
.dz5 { width: 40px; height: 12px; border-radius: 12px; right: 4%; bottom: 22%; animation-delay: -1s; animation-duration: 10s; }
.dz6 { width: 18px; height: 18px; border-radius: 50%; left: 54%; bottom: 8%; background: #fff; animation-delay: -5s; }
@keyframes dz-float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 14px -26px; rotate: 90deg; } }
.dream .wrap { position: relative; z-index: 1; }
.dream-emblem { position: relative; translate: calc(var(--bx) * 18px) calc(var(--by) * 14px); }
.dream-emblem svg { animation: bn-bob 3.2s ease-in-out infinite; overflow: visible; }
.bn-shadow { position: absolute; left: 22%; right: 22%; bottom: -6%; height: 7%; border-radius: 50%; background: rgba(255, 178, 107, .45); filter: blur(10px); animation: bn-shade 3.2s ease-in-out infinite; }
@keyframes bn-bob { 0%, 100% { transform: translateY(-3%); } 50% { transform: translateY(3%); } }
@keyframes bn-shade { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.7); opacity: .5; } }
/* Tagline: each line gets a brief highlighter sweep, one after another, on a loop */
.dw span { position: relative; }
.dw span::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .22em; background: rgba(255, 255, 255, .28); transform-origin: left; transform: scaleX(0); z-index: -1; animation: dw-sweep 6s ease-in-out infinite; }
.dw:nth-child(1) span::after { animation-delay: 1.2s; } .dw:nth-child(2) span::after { animation-delay: 2.4s; } .dw:nth-child(3) span::after { animation-delay: 3.6s; }
@keyframes dw-sweep { 0% { transform: scaleX(0); transform-origin: left; } 12% { transform: scaleX(1); transform-origin: left; } 24% { transform: scaleX(1); transform-origin: right; } 36%, 100% { transform: scaleX(0); transform-origin: right; } }
.dw span { z-index: 0; isolation: isolate; }

/* Buttons: light sweep across primary buttons, arrow nudge, soft pulse on the main CTA */
.btn { position: relative; overflow: hidden; }
.btn-primary::after, .dream-btn::after, .closing .btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 38%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: btn-shine 4.5s ease-in-out infinite; pointer-events: none; }
.dream-btn::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); }
@keyframes btn-shine { 0%, 55% { left: -60%; } 80%, 100% { left: 130%; } }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(5px); }
.dream-btn, .closing .btn { animation: cta-pulse 2.8s ease-out infinite; }
@keyframes cta-pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 19, 24, .35); } 70%, 100% { box-shadow: 0 0 0 16px rgba(16, 19, 24, 0); } }
.closing .btn { animation-name: cta-pulse-y; }
@keyframes cta-pulse-y { 0% { box-shadow: 0 0 0 0 rgba(194, 65, 12, .7); } 70%, 100% { box-shadow: 0 0 0 18px rgba(194, 65, 12, 0); } }

/* Cards and steps: 3D lift on hover, numbers pop when revealed */
.linklist { perspective: 1000px; }
.linkrow { transform-style: preserve-3d; transition: transform .45s var(--ease), box-shadow .3s, border-color .3s; }
.linkrow:hover { transform: translateY(-6px) rotateX(2deg); }
.linkrow .label::before { transition: transform .4s var(--ease); }
.linkrow:hover .label::before { transform: scale(1.8); }
.step.in .step-n { animation: n-pop .7s var(--ease) both; }
@keyframes n-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.18); } 100% { transform: none; } }
/* Headings: gentle word-by-word rise when they scroll into view */
.sh-word { display: inline-block; opacity: 0; transform: translateY(.6em); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.in .sh-word, .sh-in .sh-word { opacity: 1; transform: none; }
/* Closing section: slow rising dots */
.closing { overflow: hidden; }
.closing::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, #C2410C 3px, transparent 3.5px); background-size: 46px 46px; animation: dots-rise 7s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); }
@keyframes dots-rise { to { background-position: 0 -46px; } }
/* Header logo mark wobble */
.brand:hover .logo-svg rect { animation: logo-wob .6s var(--ease); transform-origin: 16px 16px; }
@keyframes logo-wob { 30% { transform: rotate(-12deg) scale(1.08); } 65% { transform: rotate(6deg); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .dz, .dream::before, .dream-emblem svg, .bn-shadow, .dw span::after, .btn::after, .dream-btn, .closing .btn, .closing::after, .step.in .step-n { animation: none !important; }
  .sh-word { opacity: 1; transform: none; transition: none; }
  .dream-emblem { translate: none; }
}


/* "New" markers for the AI chatbots service */
.new-badge { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; background: var(--ink); color: var(--paper); font: 600 .6875rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; }
.new-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #C2410C; animation: new-blink 1.6s ease-in-out infinite; }
.new-badge.inline { margin-right: 10px; vertical-align: middle; }
.linkrow .new-badge { margin-bottom: 2px; }
.nav-new { margin-left: 5px; padding: 2px 6px; border-radius: 99px; background: #C2410C; color: #FFFFFF; font: 600 .5625rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; vertical-align: super; }
.mobile-nav .nav-new { vertical-align: middle; font-size: .625rem; }
@keyframes new-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .new-badge::before { animation: none; } }

.field label .opt{font-weight:400;color:var(--muted,#6b6f76);font-size:.9em}

/* Zeetracks emblem: two counter-rotating orbits around a still bolt core */
.bn-spin-rev { transform-origin: 100px 100px; animation: bn-rot 11s linear infinite reverse; }
.bn-core { transform-origin: 100px 100px; animation: nx-pulse 3s ease-in-out infinite; }
@keyframes nx-pulse { 0%, 100% { opacity: .22; transform: scale(1); } 50% { opacity: .4; transform: scale(1.12); } }
.bn-spin { animation-duration: 18s; }
@media (prefers-reduced-motion: reduce) { .bn-spin-rev, .bn-core { animation: none !important; } }

/* Zeetracks globe: meridians sweep like a turning wireframe globe */
.mer { transform-box: fill-box; transform-origin: center; animation: mer 6s ease-in-out infinite; }
.mer2 { animation-delay: -2s; } .mer3 { animation-delay: -4s; }
@keyframes mer { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.04); } }
@media (prefers-reduced-motion: reduce) { .mer { animation: none !important; } }

/* ==========================================================================
   Assistant: floating helper (bottom right) and its chat panel
   ========================================================================== */
.wa-float { right: auto; left: 16px; }
.as-fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--orange); color: var(--on-orange); font: 600 .95rem/1 var(--font); box-shadow: 0 12px 30px -10px rgba(10, 95, 82, .55), 0 3px 8px rgba(0, 0, 0, .18); transition: transform .2s var(--ease), background .2s; }
.as-fab:hover { background: var(--orange-hover); transform: translateY(-2px); }
.as-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.as-fab.is-open { opacity: 0; pointer-events: none; }
.as-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(234, 106, 26, .55); animation: as-ring 3.2s ease-out infinite; pointer-events: none; }
@keyframes as-ring { 0% { box-shadow: 0 0 0 0 rgba(234, 106, 26, .5); } 60%, 100% { box-shadow: 0 0 0 16px rgba(234, 106, 26, 0); } }

.as-panel { position: fixed; right: 16px; bottom: 16px; z-index: 61; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 32px)); display: grid; grid-template-rows: auto 1fr auto auto auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45), 0 6px 18px rgba(0, 0, 0, .12); overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(.97); transform-origin: bottom right; transition: opacity .18s ease, transform .22s var(--ease); }
.as-panel[hidden] { display: none; }
.as-panel.on { opacity: 1; transform: none; }
.as-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(135deg, #EA6A1A, #C2410C 55%, #7C2D12); color: #fff; }
.as-av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); flex: none; }
.as-av svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.as-ttl { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.as-ttl b { font: 600 1rem var(--font-display, var(--font)); }
.as-ttl span { font-size: .78rem; opacity: .9; }
.as-x { width: 34px; height: 34px; border-radius: 10px; border: 0; cursor: pointer; background: transparent; color: #fff; display: grid; place-items: center; }
.as-x:hover { background: rgba(255, 255, 255, .18); }
.as-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.as-log { overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); scroll-behavior: smooth; }
.as-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: .92rem; line-height: 1.5; animation: as-in .28s var(--ease) both; }
.as-msg p { margin: 0; }
.as-bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.as-me { align-self: flex-end; background: var(--orange); color: var(--on-orange); border-bottom-right-radius: 5px; }
@keyframes as-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.as-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.as-link { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 99px; background: var(--orange); color: var(--on-orange); font-weight: 600; font-size: .84rem; text-decoration: none; }
.as-link:hover { background: var(--orange-hover); text-decoration: none; }
.as-typing { display: inline-flex; gap: 5px; padding: 13px 15px; }
.as-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: as-dot 1s ease-in-out infinite; }
.as-typing i:nth-child(2) { animation-delay: .15s; } .as-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes as-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
.as-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px 10px; background: var(--paper); min-height: 0; }
.as-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 8px 13px; font: 500 .84rem var(--font); cursor: pointer; transition: background .15s, border-color .15s; }
.as-chip:hover { border-color: var(--orange); background: var(--wash); }
.as-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.as-in { flex: 1; min-width: 0; height: 44px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 0 16px; font: .95rem var(--font); }
.as-in:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
.as-send { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--orange); color: var(--on-orange); display: grid; place-items: center; flex: none; }
.as-send:hover { background: var(--orange-hover); }
.as-send svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.as-note { margin: 0; padding: 0 14px 11px; font-size: .74rem; color: var(--muted); background: var(--surface); }
@media (max-width: 520px) {
  .as-panel { right: 0; bottom: 0; width: 100vw; height: min(78dvh, 640px); border-radius: 22px 22px 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .as-fab span { display: none; } .as-fab { padding: 0 15px; }
}
@media (prefers-reduced-motion: reduce) { .as-fab::after, .as-msg, .as-typing i { animation: none !important; } .as-panel { transition: none; } }
.as-chip { min-height: 0; font-size: .8rem; line-height: 1.2; padding: 7px 12px; }
.as-chips { gap: 6px; padding: 4px 14px 10px; }
.as-link { min-height: 0; line-height: 1.2; padding: 8px 13px; }

/* ==========================================================================
   Price meter
   ========================================================================== */
.pm[hidden] { display: none; }
.pm-grid { display: grid; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .pm-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.pm-copy h2 { margin: 10px 0 14px; }
.pm-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(20px, 3.2vw, 34px); box-shadow: var(--shadow); display: grid; gap: 14px; justify-items: center; text-align: center; }
.pm-sale { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; width: 100%; padding: 10px 14px; border-radius: 14px; background: linear-gradient(135deg, #EA6A1A, #C2410C 60%, #7C2D12); color: #fff; }
.pm-sale-tag { font: 600 .72rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.pm-sale b { font: 700 1.05rem/1 var(--font-display, var(--font)); background: #fff; color: #A8380A; padding: 5px 10px; border-radius: 99px; }
.pm-ends { font-size: .8rem; opacity: .92; }
.pm-gauge { position: relative; width: min(100%, 300px); }
.pm-gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.pm-track, .pm-fill { fill: none; stroke-width: 14; stroke-linecap: round; }
.pm-track { stroke: var(--wash); }
.pm-fill { stroke: var(--orange); stroke-dasharray: 0 100; transition: stroke-dasharray .35s var(--ease); }
.pm-read { position: absolute; left: 0; right: 0; bottom: 4px; display: grid; justify-items: center; line-height: 1; }
.pm-read strong { font: 700 clamp(2.6rem, 8vw, 3.6rem)/1 var(--font-display, var(--font)); letter-spacing: -.03em; }
.pm-read span { margin-top: 4px; font: 500 .72rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pm-ctl { display: flex; align-items: center; gap: 12px; width: 100%; }
.pm-step { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 600 1.4rem/1 var(--font); cursor: pointer; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.pm-step:hover:not(:disabled) { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }
.pm-step:disabled { opacity: .4; cursor: not-allowed; }
#pm-range { --pm-p: 30%; flex: 1; min-width: 0; height: 28px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
#pm-range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--orange) var(--pm-p), var(--wash) var(--pm-p)); }
#pm-range::-moz-range-track { height: 8px; border-radius: 99px; background: var(--wash); }
#pm-range::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--orange); }
#pm-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
#pm-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
#pm-range:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 8px; }
.pm-total { display: grid; gap: 2px; justify-items: center; }
.pm-total del { color: var(--muted); font: 500 1.05rem/1.2 var(--font); text-decoration-thickness: 2px; }
.pm-total strong { font: 700 clamp(2.2rem, 7vw, 3.2rem)/1.1 var(--font-display, var(--font)); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pm-save { margin: 0; color: var(--link); font-weight: 600; }
.pm-rate { margin: 0; color: var(--muted); font-size: .9rem; }
.pm-fine { margin: 0; color: var(--muted); font-size: .8rem; }
.pm-card .btn { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .pm-fill { transition: none; } }

/* ==========================================================================
   Penalty challenge
   ========================================================================== */
.pg[hidden] { display: none; }
.pg-head h2 { margin: 10px 0 12px; }
.pg-grid { display: grid; gap: clamp(18px, 3vw, 32px); margin-top: 26px; align-items: start; }
@media (min-width: 900px) { .pg-grid { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); } }
.pg-levels { display: grid; gap: 12px; }
@media (max-width: 899px) { .pg-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pg-levels { grid-template-columns: 1fr; } }
.pg-lvl { text-align: left; display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.pg-lvl:hover { transform: translateY(-2px); border-color: var(--orange); }
.pg-lvl.on { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(234, 106, 26, .22), var(--shadow); background: var(--wash); }
.pg-lvl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pg-lvl em { font: 600 .7rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: var(--muted); }
.pg-lvl b { font: 700 .82rem/1 var(--font); background: var(--orange); color: var(--on-orange); padding: 5px 9px; border-radius: 99px; }
.pg-lvl strong { font: 700 1.1rem/1.2 var(--font-display, var(--font)); }
.pg-lvl small { color: var(--muted); font-size: .8rem; }

.pg-play { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(12px, 2.4vw, 20px); box-shadow: var(--shadow); display: grid; gap: 12px; }
.pg-hud { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.pg-count, .pg-left { display: grid; line-height: 1.1; }
.pg-count b, .pg-left b { font: 700 1.9rem/1 var(--font-display, var(--font)); font-variant-numeric: tabular-nums; }
.pg-count span, .pg-left span { font: 500 .66rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pg-left { text-align: right; }
.pg-dots { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.pg-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--wash); border: 1.5px solid var(--line); }
.pg-dots i.g { background: #22B26B; border-color: #22B26B; } .pg-dots i.s { background: #E5484D; border-color: #E5484D; }

.pg-field { --kc: #C6F26B; --kd: #2E7D32; position: relative; aspect-ratio: 16 / 11; border-radius: 18px; overflow: hidden; color-scheme: light; user-select: none; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, #8FD3F4 0%, #CFEFFF 34%, #3FA15A 34.1%, #2F8A49 100%); }
.pg-field::before { content: ""; position: absolute; inset: 34% 0 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 8%, transparent 8% 16%); pointer-events: none; }
.pg-goal { position: absolute; left: 14%; right: 14%; top: 10%; aspect-ratio: 16 / 6.4; border: 5px solid #fff; border-bottom: 0; border-radius: 6px 6px 0 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.pg-net { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .3) 0 1px, transparent 1px 11px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .3) 0 1px, transparent 1px 11px), rgba(0, 0, 0, .14); }
.pg-goal.hit .pg-net { animation: pg-net .55s ease-out; }
@keyframes pg-net { 0% { transform: scale(1); } 30% { transform: scale(1.05, 1.04); } 100% { transform: scale(1); } }
.pg-zones { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); z-index: 3; }
.pg-zone { appearance: none; border: 1px dashed rgba(255, 255, 255, .35); background: transparent; cursor: crosshair; display: grid; place-items: center; padding: 0; transition: background .15s; }
.pg-zone i { width: 34%; max-width: 34px; aspect-ratio: 1; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .0); transition: border-color .15s, transform .15s; }
.pg-zone:hover i, .pg-zone:focus-visible i { border-color: #fff; transform: scale(1.12); }
.pg-zone:hover, .pg-zone:focus-visible { background: rgba(255, 255, 255, .16); outline: none; }
.pg-zone.yes { background: rgba(34, 178, 107, .5); } .pg-zone.no { background: rgba(229, 72, 77, .5); }
.pg-field.busy .pg-zone, .pg-field.done .pg-zone { pointer-events: none; }

.pg-keeper { --kx: 0; --ky: 0; --kr: 0deg; position: absolute; left: 50%; bottom: 0; width: 19%; z-index: 2; pointer-events: none; transform-origin: 50% 70%;
  transform: translate(calc(-50% + var(--kx) * 175%), calc(var(--ky) * -65%)) rotate(var(--kr)); transition: transform .38s cubic-bezier(.25, .8, .3, 1); }
.pg-keeper.dive { transition-duration: .34s; }
.pg-keeper svg { display: block; width: 100%; height: auto; overflow: visible; }
.pg-keeper.sway svg { animation: pg-sway 1.1s ease-in-out infinite; }
@keyframes pg-sway { 0%, 100% { transform: translateX(-4%); } 50% { transform: translateX(4%); } }
.k-shirt { fill: var(--kc); stroke: #101318; stroke-width: 2.2; } .k-shorts { fill: var(--kd); stroke: #101318; stroke-width: 2.2; }
.k-leg { fill: #F1C9A5; stroke: #101318; stroke-width: 2.2; } .k-boot { fill: #101318; }
.k-glove { fill: #fff; stroke: #101318; stroke-width: 2.2; } .k-head { fill: #F1C9A5; stroke: #101318; stroke-width: 2.2; } .k-hair { fill: #3b2a20; }

.pg-spot { position: absolute; left: 50%; bottom: 11%; width: 2.2%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .85); transform: translate(-50%, 50%); }
.pg-ball { --fly: 460ms; position: absolute; left: 50%; bottom: 8.5%; width: 8%; aspect-ratio: 1; margin-left: -4%; z-index: 4; pointer-events: none; transition: transform var(--fly) cubic-bezier(.2, .75, .3, 1); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); }
.pg-ball svg { display: block; width: 100%; height: auto; }
.pg-ball.goal svg { animation: pg-settle .5s ease-out; }
.pg-ball.save svg { animation: pg-bounce .6s ease-out forwards; }
@keyframes pg-settle { from { transform: scale(1.15); } to { transform: none; } }
@keyframes pg-bounce { 0% { transform: none; } 100% { transform: translate(40%, 120%) rotate(200deg); opacity: .6; } }
.pg-flash { position: absolute; left: 0; right: 0; top: 46%; text-align: center; font: 800 clamp(2rem, 9vw, 4rem)/1 var(--font-display, var(--font)); letter-spacing: -.02em; z-index: 6; pointer-events: none; opacity: 0; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.pg-flash.good { color: #fff; } .pg-flash.bad { color: #FFE0E0; }
.pg-flash.show { animation: pg-pop .9s var(--ease) both; }
@keyframes pg-pop { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; transform: scale(1.08); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }
.pg-result { position: absolute; inset: 0; z-index: 8; display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center; padding: 18px; background: rgba(6, 16, 14, .78); color: #fff; backdrop-filter: blur(3px); }
.pg-result[hidden] { display: none; }
.pg-result h3 { margin: 0; font: 700 clamp(1.7rem, 6vw, 2.6rem)/1.1 var(--font-display, var(--font)); }
.pg-result p { margin: 0; max-width: 34ch; opacity: .95; }
.pg-res-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.pg-result .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .7); background: transparent; }
.pg-result .btn-ghost:hover { background: #fff; color: #A8380A; }
.pg-result .btn-primary { background: #fff; color: #A8380A; border-color: #fff; }
.pg-msg { margin: 0; min-height: 1.4em; text-align: center; color: var(--muted); font-size: .92rem; }
.pg-fine { margin-top: 16px; text-align: center; }
.pm-game { margin: 0; font-size: .86rem; color: var(--muted); }
.pm-playlink { font-size: .86rem; font-weight: 600; color: var(--link); }
@media (prefers-reduced-motion: reduce) { .pg-keeper, .pg-ball { transition-duration: .1s !important; } .pg-keeper.sway svg, .pg-goal.hit .pg-net { animation: none !important; } }

/* promo code (price meter) */
.pm-promo { width: 100%; margin: 14px 0 2px; text-align: left; }
.pm-promo label { display: block; font: 600 var(--fs-label)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pm-promo-row { display: flex; gap: 8px; }
.pm-promo-row input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--line); background: var(--paper); color: var(--ink); font: 600 1rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.pm-promo-row input:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.pm-promo-row .btn { padding: 12px 18px; }
.pm-promo-msg { margin: 8px 0 0; min-height: 1.2em; font-size: var(--fs-small); color: var(--muted); }
.pm-promo-msg.ok { color: var(--success-text); font-weight: 600; }
.pm-promo-msg.bad { color: var(--error); }


/* ---- Memberships, Secret Room, intro notice ---- */
.mb { padding-block: var(--section-y); }
.mb-head { max-width: 62ch; margin-bottom: 28px; }
.mb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 820px) { .mb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.mb-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.mb-card h3 { margin: 0; font: 700 1.5rem/1.1 var(--font-display); }
.mb-price { margin: 0; color: var(--muted); }
.mb-price b { font: 700 1.75rem/1 var(--font-display); color: var(--ink); }
.mb-list { margin: 0 0 6px; padding: 0; list-style: none; display: grid; gap: 8px; flex: 1; }
.mb-list li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.mb-list li::before { content: ""; position: absolute; left: 0; top: .4em; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px var(--wash); }
.mb-platinum { border-color: #9FB4C7; } .mb-platinum h3 { color: #5B7A99; }
.mb-gold { border-color: #E2B33C; } .mb-gold h3 { color: #A6781A; }
.mb-diamond { border-color: #4FB7E8; background: linear-gradient(160deg, var(--surface), color-mix(in srgb, #4FB7E8 14%, var(--surface))); } .mb-diamond h3 { color: #1E86B8; }
.mb-card.on { outline: 3px solid var(--link); outline-offset: 3px; }
.mb-card .btn[aria-disabled="true"] { opacity: .7; pointer-events: none; }
.mb-unlock { margin-top: 28px; padding: 22px; border-radius: 18px; border: 2px dashed var(--line); max-width: 560px; }
.mb-unlock h3 { margin: 0 0 6px; font: 700 1.2rem/1.2 var(--font-display); }
.mb-unlock p { margin: 0 0 12px; color: var(--ink-soft); }
.mb-row { display: flex; gap: 8px; }
.mb-row input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 600 1rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.mb-row input:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.mb-msg { margin: 10px 0 0; min-height: 1.2em; font-size: var(--fs-small); color: var(--muted); }
.mb-msg.ok { color: var(--success-text); font-weight: 600; } .mb-msg.bad { color: var(--error); }
.mb-status { margin: 8px 0 0; font-weight: 600; color: var(--link); }
.mb-fine { margin-top: 18px; }
.pm-wm { margin: 4px 0 8px; font-size: var(--fs-small); color: var(--muted); text-align: center; }
.sr { padding-block: var(--section-y) 8px; background: linear-gradient(180deg, var(--wash), transparent); border-top: 3px double var(--line); }
.sr-head h2 { margin: 6px 0 10px; font-size: var(--fs-h2); }
.sr-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 20px; }
@media (min-width: 820px) { .sr-grid { grid-template-columns: 1fr 1fr; } }
.sr-card { padding: 22px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); }
.sr-card h3 { margin: 10px 0 8px; font: 700 1.3rem/1.2 var(--font-display); }
.sr-card p { margin: 0 0 8px; color: var(--ink-soft); }
.sr-codes { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.sr-codes li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.sr-codes code { padding: 6px 10px; border-radius: 8px; background: var(--wash); font: 600 .9rem/1 var(--font-mono); letter-spacing: .06em; }
.sr-codes span { color: var(--ink-soft); font-size: var(--fs-small); }
.sr-copy { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--link); font: 600 .75rem/1 var(--font-mono); text-transform: uppercase; cursor: pointer; }

.dream-note { margin: 14px 0 0; max-width: 46ch; padding: 10px 14px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.55); background: rgba(0,0,0,.18); color: #fff; font-size: var(--fs-small); line-height: 1.45; }
.dream-note b { display: block; margin-bottom: 2px; font: 700 .72rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }

/* ==========================================================================
   10. BOLD OUTLINE DESIGN LAYER
   Thick ink outlines, hard offset shadows, pill shapes and stickers.
   Colours are untouched: every colour below comes from the existing tokens.
   ========================================================================== */
:root { --bd: 3px; --hard: 5px 5px 0 var(--ink); --hard-s: 3px 3px 0 var(--ink); --r-big: 28px; }
:root[data-bl-theme="dark"] { --hard: 5px 5px 0 #000; --hard-s: 3px 3px 0 #000; }

/* floating pill header */
.site-header { position: sticky; top: 10px; z-index: 50; background: transparent; border: 0; box-shadow: none; padding: 0 var(--gutter); }
.site-header .header-in { background: var(--surface); border: var(--bd) solid var(--ink); border-radius: var(--r-pill); box-shadow: var(--hard); padding: 6px 12px 6px 14px; min-height: 64px; max-width: var(--max); margin-inline: auto; width: 100%; }
.site-header.scrolled { box-shadow: none; }
.site-header.scrolled .header-in { min-height: 56px; }
.site-header .wrap { padding-inline: 0; }
.nav a::after { display: none; }
.nav a { border: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--ink); background: var(--wash); text-decoration: none; }
.theme-toggle, .menu-btn { border: var(--bd) solid var(--ink) !important; border-radius: 14px !important; background: var(--surface); box-shadow: var(--hard-s); }
.theme-toggle:active, .menu-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.mobile-nav { border: var(--bd) solid var(--ink); border-radius: 24px; box-shadow: var(--hard); margin: 12px var(--gutter) 0; background: var(--surface); }

/* buttons */
.btn { border: var(--bd) solid var(--ink); border-radius: var(--r-pill); box-shadow: var(--hard-s); font-weight: 600; transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .15s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--orange); border-color: var(--ink); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--wash); color: var(--ink); }
.dream .btn, .dream-btn, .dream-ghost { box-shadow: 4px 4px 0 #101318; border-color: #101318; }

/* labels become outlined pills */
.label { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-pill); box-shadow: var(--hard-s); font-weight: 600; width: fit-content; }
.label::before { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); background: var(--orange); }

/* highlighter marks on headline words */
.mark, .page-hero h1 em { background: linear-gradient(transparent 58%, var(--orange) 58%); color: inherit; padding: 0 .12em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* cards and panels */
.pm-card, .mb-card, .sr-card, .pg, .contact-info, .detail, .service, .tpl, .step, .principle, .feature, .about-step, .about-note, .as-panel, .chip { border: var(--bd) solid var(--ink) !important; border-radius: var(--r-big) !important; box-shadow: var(--hard) !important; background: var(--surface); }
.mb-card { border-radius: 24px !important; }
.mb-card.mb-gold, .mb-card.mb-diamond, .mb-card.mb-platinum { border-color: var(--ink) !important; }
.mb-price { background: var(--orange); color: var(--on-orange); border: 2px solid var(--ink); border-radius: var(--r-pill); padding: 2px 14px; width: fit-content; }
.sr-card { background: var(--wash); }
.faq { border-top: 0; display: grid; gap: 14px; }
.faq details { border: var(--bd) solid var(--ink); border-radius: 22px; background: var(--surface); box-shadow: var(--hard-s); padding: 0 22px; }
.faq details[open] { background: var(--wash); }
.faq summary { padding: 18px 40px 18px 0; }
.faq .answer { padding: 0 0 22px; }

/* service list rows as chunky cards */
.linklist { display: grid; gap: 16px; }
.linkrow { border: var(--bd) solid var(--ink); border-radius: var(--r-big); background: var(--surface); box-shadow: var(--hard); padding: 22px 24px; }
.linkrow:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.linkrow::before { display: none; }
.new-badge, .nav-new { border: 2px solid var(--ink); border-radius: var(--r-pill); background: var(--orange); color: var(--on-orange); }

/* tilted marquee band */
.ticker { transform: rotate(-1.4deg); margin: 28px -8px; border: var(--bd) solid var(--ink); border-radius: var(--r-pill); box-shadow: var(--hard); background: var(--wash); color: var(--ink); }
.ticker span::after { background: var(--ink); border-radius: 50%; transform: none; }

/* page headers */
.page-hero { border-bottom: 0; }
.page-hero::before { display: none; }
.page-hero::after { display: none; }
.page-hero .wrap { background: var(--orange); color: var(--on-orange); border: var(--bd) solid var(--ink); border-radius: 36px; box-shadow: 8px 8px 0 var(--ink); padding: clamp(24px, 5vw, 56px); max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: auto; background-image: radial-gradient(rgba(255,255,255,.28) 1.6px, transparent 1.6px); background-size: 26px 26px; }
.page-hero h1, .page-hero .lede, .page-hero .crumbs, .page-hero .crumbs a { color: var(--on-orange); }
.page-hero .mark { background: none; }
.page-hero .label { color: var(--ink); }

/* rotating sticker */
.sticker { position: absolute; right: clamp(16px, 4vw, 48px); bottom: -34px; width: 112px; height: 112px; animation: fq-spin 18s linear infinite; z-index: 2; }
.stk-bg { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.stk-t { font: 700 11px var(--font-mono); letter-spacing: .08em; fill: var(--ink); }
.stk-star { fill: var(--ink); }
@keyframes fq-spin { to { transform: rotate(360deg); } }

/* about page */
.about-split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .about-split { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.about-steps { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .about-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .about-steps { grid-template-columns: repeat(4, 1fr); } }
.about-step { padding: 22px; }
.about-step b { display: inline-grid; place-items: center; min-width: 44px; height: 36px; padding: 0 10px; background: var(--orange); color: var(--on-orange); border: 2px solid var(--ink); border-radius: var(--r-pill); font: 700 .95rem var(--font-mono); }
.about-step h3 { margin: 14px 0 6px; }
.about-step p { margin: 0; color: var(--ink-soft); }
.about-note { padding: 22px 26px; background: var(--wash); }
.about-note p { margin: 6px 0 0; }

/* form fields, inputs */
.input, input[type="text"], input[type="email"], input[type="tel"], select, textarea { border: 2px solid var(--ink); border-radius: 14px; background: var(--surface); }
.pm-step { border: 2px solid var(--ink); box-shadow: var(--hard-s); }

/* floating buttons */
.as-fab, .wa-float { border: var(--bd) solid var(--ink) !important; box-shadow: var(--hard-s) !important; }

/* footer */
.site-footer { margin-top: 24px; }
.footer-bottom { border-top: var(--bd) solid var(--ink); }

/* loading screen */
.fq-loader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--orange); background-image: radial-gradient(rgba(255,255,255,.25) 1.6px, transparent 1.6px); background-size: 26px 26px; opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility 0s .18s; }
.fq-loader.on { opacity: 1; visibility: visible; transition: opacity .18s ease; }
.fq-load-box { display: grid; justify-items: center; gap: 18px; }
.fq-load-mark { position: relative; width: 116px; height: 116px; border-radius: 30px; background: #050807; border: var(--bd) solid #fff; box-shadow: 6px 6px 0 #101318; display: grid; place-items: center; animation: fq-bob 1s ease-in-out infinite; }
.fq-load-mark img { width: 84px; height: 84px; }
.fq-load-mark i { position: absolute; inset: -16px; border-radius: 40px; border: 3px dashed #fff; opacity: .8; animation: fq-spin 2.2s linear infinite; }
.fq-load-t { margin: 0; font: 700 1.05rem var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--on-orange); }
.fq-load-bar { width: 180px; height: 16px; border: var(--bd) solid #101318; border-radius: var(--r-pill); background: #fff; overflow: hidden; box-shadow: 3px 3px 0 #101318; }
.fq-load-bar b { display: block; height: 100%; width: 0; background: #101318; }
.fq-loader.on .fq-load-bar b { animation: fq-fill .7s ease-out forwards; }
@keyframes fq-fill { to { width: 100%; } }
@keyframes fq-bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .sticker, .fq-load-mark, .fq-load-mark i { animation: none; } }
.page-hero { overflow: visible; }

/* fixes */
.mark, .page-hero h1 em { background: var(--orange); color: var(--on-orange); padding: 0 .16em; border-radius: 8px; }
.page-hero .mark { background: #101318; color: #fff; }
.page-hero .wrap { width: min(var(--max), 100% - 2 * var(--gutter)); max-width: none; margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }
.sticker { top: -34px; right: 14px; bottom: auto; width: 92px; height: 92px; }
@media (min-width: 700px) { .sticker { top: -40px; right: 36px; width: 120px; height: 120px; } }
.fq-load-t { margin-top: 14px; }

/* profiles */
.nav-avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; object-fit: cover; vertical-align: middle; border: 2px solid var(--ink); background: var(--orange); color: var(--on-orange); font: 700 .72rem var(--font-mono); }
.acct { max-width: 620px; margin-inline: auto; }
.acct-card { background: var(--surface); border: var(--bd) solid var(--ink); border-radius: var(--r-big); box-shadow: var(--hard); padding: clamp(20px, 4vw, 34px); }
.acct-card label:not(.btn) { display: block; margin: 16px 0 6px; font: 600 var(--fs-label, .78rem)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.acct-card input:not([type="file"]), .acct-card textarea { width: 100%; padding: 13px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; }
.acct-card input:focus-visible, .acct-card textarea:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.acct-card .btn[type="submit"] { margin-top: 18px; }
.acct-tabs { display: flex; gap: 8px; margin: 4px 0 6px; }
.acct-tabs button { flex: 1; padding: 11px 12px; border: 2px solid var(--ink); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font: 600 .95rem var(--font-body, inherit); cursor: pointer; }
.acct-tabs button[aria-selected="true"] { background: var(--orange); color: var(--on-orange); box-shadow: var(--hard-s); }
.acct-offer { margin: 0 0 14px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 16px; background: var(--wash); }
.acct-offer.ok { margin: 14px 0 0; }
.acct-preview { margin: 0 0 14px; padding: 10px 14px; border: 2px dashed var(--ink); border-radius: 14px; font-size: .9rem; color: var(--ink-soft); }
.acct-msg { min-height: 1.3em; margin: 12px 0 0; font-weight: 600; }
.acct-msg.bad { color: var(--link); } .acct-msg.ok { color: var(--ink); }
.acct-fine { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.acct-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.acct-photo { width: 104px; height: 104px; flex: none; border-radius: 50%; border: var(--bd) solid var(--ink); background: var(--orange); color: var(--on-orange); overflow: hidden; display: grid; place-items: center; box-shadow: var(--hard-s); font: 700 2.4rem var(--font-display, inherit); }
.acct-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-head h2 { margin: 0; font-size: 1.4rem; overflow-wrap: anywhere; }
.acct-email { margin: 2px 0 10px; color: var(--muted); overflow-wrap: anywhere; }
.acct-photo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-photo-btns .btn { cursor: pointer; }
.acct-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.acct-actions .btn[type="submit"] { margin-top: 0; }
#a-file:focus-visible + * , .acct-photo-btns label:focus-within { outline: 3px solid var(--link); }
.acct-owner { margin: 14px 0 0; } .acct-owner summary { cursor: pointer; font-size: .9rem; color: var(--muted); }
