/* The Conversion Codex — site styles
   Plain CSS, no build step. Brand tokens live in :root. */

@font-face { font-family: "Rebond Grotesque"; src: url("../fonts/rebond-grotesque-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Rebond Grotesque"; src: url("../fonts/rebond-grotesque-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Rebond Grotesque"; src: url("../fonts/rebond-grotesque-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-var-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --orange: #C2512E;
  --orange-700: #A64322;
  --orange-050: #FBF5F2;
  --ink: #201E1E;
  --ink-2: #2C2C2C;
  --muted: #5E5955;
  --line: #E7E1DC;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(32, 30, 30, .06), 0 8px 24px -8px rgba(32, 30, 30, .14);
  --font-head: "Rebond Grotesque", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 40px, 820px); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.16;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.h3 { font-family: var(--font-head); font-weight: 500; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.01em; }
.eyebrow { font-style: italic; font-size: 18px; color: var(--ink); margin-bottom: 10px; }
.section { padding: clamp(52px, 9vw, 112px) 0; scroll-margin-top: var(--header-h); }
.section__head { text-align: center; max-width: 820px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section__sub { margin-top: 12px; font-size: 18px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 500; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-700); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 10px 16px; font-size: 15px; }
.btn--lg { padding: 15px 26px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- Announcement ---------- */
.announce { background: var(--orange); color: #fff; font-size: 14px; }
.announce a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 6px 16px; text-decoration: none; }
.announce a:hover span:not(.announce__pill) { text-decoration: underline; text-underline-offset: 3px; }
.announce__pill { background: #fff; color: var(--orange); font-weight: 600; font-size: 12px; letter-spacing: .04em; padding: 3px 8px; border-radius: 4px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px -12px rgba(0, 0, 0, .18); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.header__logo img { height: 20px; width: auto; }
.nav ul { display: flex; gap: 6px; }
.nav a { display: block; padding: 8px 10px; font-size: 15px; text-decoration: none; border-radius: 6px; transition: color .2s; }
.nav a:hover { color: var(--orange); }
.nav .nav__cta-mobile { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header__cta { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 24px; display: none; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .25);
    max-height: calc(100dvh - var(--header-h) - 48px); overflow-y: auto; overscroll-behavior: contain; /* phones in landscape (48px: announcement bar) */
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .nav__cta-mobile { display: flex; margin-top: 18px; width: 100%; padding: 14px 16px; border: 0; border-radius: var(--radius-sm); font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 5.5vw, 72px) 0 0; text-align: center; overflow: hidden; }

/* Hero wall: two straight rows of real designs drifting in opposite directions (decorative; links to the portfolio) */
.wall { display: block; position: relative; margin-top: clamp(28px, 3.5vw, 44px); padding: 6px 0 clamp(28px, 4vw, 48px); overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.wall__inner { display: flex; flex-direction: column; gap: 16px; }
.wall__row { display: flex; width: max-content; animation: wall-left 180s linear infinite; }
.wall__set { display: flex; gap: 16px; padding-right: 16px; }
.wall img { width: clamp(120px, 12vw, 170px); height: auto; aspect-ratio: 300 / 520; object-fit: cover; object-position: top; border-radius: 14px; border: 1.5px solid var(--ink); background: #f4f1ee; box-shadow: 0 10px 24px -14px rgba(32, 30, 30, .35); }
.wall:hover .wall__row { animation-play-state: paused; }
.wall:not(.is-ready) { visibility: hidden; }
@keyframes wall-left { to { transform: translateX(-50%); } }
/* Phones: taller cards with a real phone ratio (the thumbnails are 300x640) */
@media (max-width: 640px) { .wall img { width: 128px; aspect-ratio: 300 / 640; border-radius: 18px; } }
.hero__inner { max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.hero__title {
  font-family: var(--font-head); font-weight: 400; font-size: clamp(34px, 5vw, 54px); line-height: 1.14; letter-spacing: -.02em; text-wrap: balance;
}
.hero__sub { margin-top: 20px; max-width: 640px; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); text-wrap: pretty; }
.hero__ctas { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.trust { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 14px; font-weight: 500; }
.trust img { height: 16px; width: auto; }
.center .trust { margin-top: 0; }

/* ---------- Logos marquee ---------- */
.logos { background: var(--ink-2); padding: 24px 0; overflow: hidden; display: grid; gap: 22px; --ls: 1; }
.logos__row { overflow: hidden; }
.logos__track { display: flex; width: max-content; animation: marquee var(--dur, 100s) linear infinite; }
.logos__row--rev .logos__track { animation-direction: reverse; }
.logos:hover .logos__track, .logos:focus-within .logos__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .wall__row, .logos__track { animation: none; } }
.logos__list { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
/* --h (set per logo) balances visual weight: wide wordmarks shorter, compact marks taller */
.logos__list img { height: calc(var(--h, 30) * var(--ls) * 1px); width: auto; max-width: none; opacity: .92; }
@media (max-width: 640px) {
  .logos { --ls: .82; gap: 18px; padding: 20px 0; }
  .logos__list { gap: 40px; padding-right: 40px; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Portfolio ---------- */
.portfolio { padding-bottom: clamp(48px, 8vw, 96px); }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.tab {
  position: relative; padding: 8px 2px; border: 0; background: none; cursor: pointer; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink);
}
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--orange); transform: scaleX(0); transition: transform .25s; }
.tab:hover { color: var(--orange); }
.tab[aria-selected="true"] { color: var(--orange); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
/* Horizontal scrollers (portfolio tabs, prototype chips): fades + arrow show there's more */
.hscroll { position: relative; }
.hscroll__more { display: none; }
@media (max-width: 720px) {
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px 56px; gap: 22px; scroll-padding-inline: 20px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; white-space: nowrap; }
}
@media (max-width: 900px) {
  .hscroll::before, .hscroll::after { content: ""; position: absolute; top: 0; bottom: 0; width: 44px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
  .hscroll::before { left: -20px; background: linear-gradient(to right, var(--hs-bg, var(--white)), transparent); }
  .hscroll::after { right: -20px; width: 72px; background: linear-gradient(to left, var(--hs-bg, var(--white)) 45%, transparent); }
  .hscroll.can-left::before, .hscroll.can-right::after { opacity: 1; }
  .hscroll__more { display: grid; place-items: center; position: absolute; right: -4px; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .hscroll.can-right .hscroll__more { opacity: 1; pointer-events: auto; animation: more-nudge 1.8s ease-in-out 2; }
  .hscroll__more svg { width: 16px; height: 16px; }
}
@keyframes more-nudge { 50% { transform: translate(3px, -50%); } }
@media (prefers-reduced-motion: reduce) { .hscroll__more { animation: none !important; } }
.pf-hint { text-align: center; font-size: 14px; color: var(--muted); margin: 14px 0 30px; }
.pf-hint--touch { display: none; }
.no-autoscroll .pf-hint--hover { display: none; }
.no-autoscroll .pf-hint--touch { display: inline; }

.pf { --card-h: 560px; --phone-w: 260px; --desk-w: 500px; }
/* phones: one design per screen, with a peek of the next so it's clear you can swipe */
@media (max-width: 640px) {
  /* sized from the screen height so a design never fills the phone; width follows the phone shape */
  .pf { --card-h: min(500px, 58vh); --phone-w: calc(var(--card-h) / 2.08); --desk-w: min(330px, calc(100vw - 76px)); }
  @supports (height: 1svh) { .pf { --card-h: min(500px, 58svh); } }
  .pf-card { scroll-snap-stop: always; }
  .pf-card:not(.pf-card--desktop) .pf-screen { border-radius: 30px; border-width: 2px; }
}
.pf__panel[hidden] { display: none; }
.pf__track {
  display: flex; gap: 22px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 6px max(20px, calc((100vw - var(--container)) / 2)) 22px; scroll-padding-inline: max(20px, calc((100vw - var(--container)) / 2));
  scrollbar-width: none;
}
.pf__track::-webkit-scrollbar { display: none; }
.pf-card { flex: none; width: var(--phone-w); scroll-snap-align: start; margin: 0; }
.pf-card--desktop { width: var(--desk-w); }
.pf-screen {
  position: relative; display: block; width: 100%; height: var(--card-h); padding: 0; overflow: hidden; cursor: zoom-in;
  border: 1.5px solid var(--ink); border-radius: 18px; background: #f4f1ee; box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s;
}
.pf-card--desktop .pf-screen { border-radius: 12px; padding-top: 26px; }
.pf-card--desktop .pf-screen::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 26px; background: #EFEBE8; border-bottom: 1px solid var(--line); z-index: 2;
}
.pf-card--desktop .pf-screen::after {
  content: ""; position: absolute; top: 9px; left: 12px; width: 8px; height: 8px; border-radius: 50%; background: #E0705A; z-index: 3;
  box-shadow: 13px 0 0 #E6B44F, 26px 0 0 #73B562;
}
.pf-screen:hover { box-shadow: 0 2px 4px rgba(32, 30, 30, .08), 0 18px 36px -12px rgba(32, 30, 30, .3); }
.pf-img { width: 100%; height: auto; will-change: transform; transform: translate3d(0, 0, 0); backface-visibility: hidden; }
.pf-spin {
  position: absolute; right: 12px; bottom: 12px; z-index: 4; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .9); border-top-color: var(--orange); box-shadow: 0 0 0 3px rgba(0, 0, 0, .15);
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.pf-screen.is-loading .pf-spin { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pf-badge {
  position: absolute; top: 10px; left: 10px; z-index: 4; background: var(--orange); color: #fff; font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; pointer-events: none;
}
.pf-card--desktop .pf-badge { top: 34px; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pf-tags span { font-size: 12px; line-height: 1; padding: 6px 8px; border-radius: 999px; background: var(--orange-050); color: var(--orange-700); }
.pf-screen:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Sub-filters (carts) */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 15px; font-size: 14px; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--orange); color: var(--orange); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips__note { text-align: center; color: var(--muted); font-size: 14px; max-width: 560px; margin: 14px auto 26px; min-height: 2.6em; }
@media (max-width: 720px) {
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* Touch devices: designs auto-play their scroll (main.js); the screen never captures swipes,
   so the page scrolls and the carousel swipes normally. */
.no-autoscroll .pf-screen { cursor: pointer; -webkit-tap-highlight-color: transparent; }

.pf__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 6px; margin-bottom: 36px; }
.pf__arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s, opacity .2s;
}
.pf__arrow svg { width: 20px; height: 20px; }
.pf__arrow:hover { background: var(--orange); }
.pf__arrow:disabled { opacity: .25; cursor: default; background: var(--ink); }
.pf__progress { width: min(320px, 50vw); height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.pf__progress span { display: block; height: 100%; width: 20%; background: var(--orange); border-radius: 3px; transform-origin: left; transition: transform .15s linear, width .2s; }

/* ---------- Prototypes ---------- */
.protos { background: var(--orange-050); }
.protos__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 88px); align-items: center; }
.protos__lead { color: var(--muted); max-width: 520px; margin-top: 14px; }
.protos__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; max-width: 560px; }
.protos__list button { font: inherit; font-size: 15px; font-weight: 500; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.protos__list button:hover { border-color: var(--ink); }
.protos__list button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.protos__open { margin-top: 26px; }
.protos__note { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Phone frame. The screen keeps the designs' 390x844 ratio and scrolls the full page. */
.phone { width: min(360px, 86vw); padding: 11px; border-radius: 52px; background: #161515; box-shadow: 0 30px 60px -30px rgba(32, 30, 30, .55), inset 0 0 0 1.5px #3a3836; position: relative; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 28%; height: 22px; transform: translateX(-50%); border-radius: 20px; background: #161515; z-index: 3; pointer-events: none; }
.phone__screen { border-radius: 42px; overflow: hidden; background: #fff; isolation: isolate; }
.phone__status { height: 34px; padding: 0 26px 0 30px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink); }
.phone__status svg { width: 54px; height: 12px; }
.phone__stage { position: relative; aspect-ratio: 390 / 844; }
.phone__view { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior-y: auto; scrollbar-width: none; background: #fff; }
/* live Figma prototype: loads hidden underneath, fades in over the screenshot once ready */
.phone__live { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s; }
.phone__stage.is-live .phone__live { opacity: 1; visibility: visible; }
.phone__ready { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 2; white-space: nowrap; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 999px; border: 0; background: var(--orange); color: #fff; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(166, 67, 34, .7); }
.phone__ready[hidden] { display: none; }
.phone__ready:hover { background: var(--orange-700); }
.phone__view::-webkit-scrollbar { display: none; }
.phone__view:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.phone__page { display: block; width: 100%; height: auto; }
.phone__hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: rgba(22, 21, 21, .82); color: #fff; font-size: 14px; font-weight: 500; pointer-events: none; transition: opacity .3s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.phone__hint svg { width: 16px; height: 16px; animation: hint-bob 1.6s ease-in-out infinite; }
.phone__hint-live { display: none; }
.phone.is-scrolled .phone__hint { opacity: 0; }
.phone:has(.is-live) .phone__hint { opacity: 0; }
.phone.is-live-hint .phone__hint { opacity: 1; }
.phone.is-live-hint .phone__hint-scroll { display: none; }
.phone.is-live-hint .phone__hint-live { display: inline; }
@keyframes hint-bob { 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .phone__hint svg { animation: none; } }
@media (max-width: 900px) {
  .protos__inner { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .protos__copy { text-align: center; display: flex; flex-direction: column; align-items: center; min-width: 0; width: 100%; }
  .protos__list { justify-content: center; }
  .phone { width: min(320px, 78vw); }
}

/* Figma logo inside buttons that open Figma */
.figma-badge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; margin-right: 2px; flex: none; }
.figma-badge svg { width: 9px; height: 13.5px; }

/* Prototypes on phones/tablets: chips in one scrollable row, static phone preview, full-screen sheet */
.phone__tap { display: none; }
@media (max-width: 900px), (hover: none) {
  .phone.is-static .phone__view { overflow: hidden; pointer-events: none; }
  .phone.is-static .phone__hint { display: none; }
  .phone.is-static .phone__tap { display: flex; position: absolute; inset: 0; z-index: 3; align-items: flex-end; justify-content: center; padding: 0 0 34px; border: 0; background: linear-gradient(to bottom, transparent 55%, rgba(22, 21, 21, .45)); cursor: pointer; font: inherit; }
  .phone__tap span { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 600; font-size: 16px; box-shadow: 0 10px 24px -8px rgba(166, 67, 34, .7); }
  .phone__tap svg { width: 18px; height: 18px; }
}
@media (max-width: 900px) {
  .protos .hscroll { --hs-bg: var(--orange-050); width: 100%; margin-top: 22px; }
  .protos__list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 56px 2px 20px; max-width: none; scroll-padding-inline: 20px; }
  .protos__list::-webkit-scrollbar { display: none; }
  .protos__list button { flex: none; white-space: nowrap; }
}

.proto-sheet { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: #fff; height: 100dvh; visibility: hidden; opacity: 0; transform: translateY(24px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.proto-sheet.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease, visibility 0s; } /* visible at once so focus can move in */
.proto-sheet__bar { display: flex; align-items: center; gap: 6px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; border-bottom: 1px solid var(--line); background: #fff; }
.proto-sheet__title { flex: 1; text-align: center; font-weight: 600; font-size: 16px; }
.proto-sheet__nav, .proto-sheet__close { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.proto-sheet__close { margin-left: 6px; background: var(--ink); border-color: var(--ink); color: #fff; }
.proto-sheet__nav svg, .proto-sheet__close svg { width: 18px; height: 18px; }
.proto-sheet__stage { position: relative; flex: 1; min-height: 0; }
.proto-sheet__view { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.proto-sheet__stage.is-live .phone__live { opacity: 1; visibility: visible; }
.proto-sheet__loading { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 9px 14px; border-radius: 999px; background: rgba(22, 21, 21, .82); color: #fff; font-size: 13px; text-align: center; pointer-events: none; transition: opacity .3s; }
.proto-sheet__stage.is-live .proto-sheet__loading, .proto-sheet__stage:has(.phone__ready:not([hidden])) .proto-sheet__loading { opacity: 0; }
.proto-sheet .phone__ready { bottom: calc(20px + env(safe-area-inset-bottom)); }

/* ---------- Process ---------- */
.process { position: relative; isolation: isolate; background: var(--orange-050); }
.process::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/texture.webp") center / cover no-repeat; opacity: .13; pointer-events: none; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 48px 32px; max-width: 1000px; margin: 0 auto; counter-reset: none; }
.step { grid-column: span 2; text-align: center; }
.step:nth-child(4) { grid-column: 2 / span 2; }
.step:nth-child(5) { grid-column: 4 / span 2; }
.step__num { display: block; font-family: var(--font-head); font-size: 48px; line-height: 1; letter-spacing: -.02em; margin-bottom: 14px; }
.step__title { font-family: var(--font-body); font-weight: 500; font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; max-width: 300px; margin-inline: auto; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step, .step:nth-child(4), .step:nth-child(5) { grid-column: auto; }
  .step:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

.bonus { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: clamp(36px, 5vw, 56px) 0 0; text-align: center; }
.bonus + .center { margin-top: 30px; }
.bonus__label { font-weight: 500; font-size: 17px; }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.checks li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; text-align: left; }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks--stack { flex-direction: column; gap: 12px; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__title { font-family: var(--font-body); font-weight: 500; font-size: 19px; line-height: 1.3; padding: 24px 24px 10px; }
.card p { padding: 0 24px; color: var(--muted); font-size: 15px; }
.card__img { margin-top: auto; padding-top: 18px; width: 100%; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- ROI ---------- */
.roi__card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 980px; margin: 0 auto; padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow);
}
.roi__h { font-family: var(--font-body); font-weight: 600; font-size: 18px; }
.roi__note { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field label, .field__label { font-size: 15px; }
.field__value {
  justify-self: end; width: 8.5ch; text-align: right; font: 600 19px/1.2 var(--font-body); color: var(--ink); border: 1px solid transparent; border-radius: 6px;
  background: transparent; padding: 4px 6px; font-variant-numeric: tabular-nums;
}
input.field__value { width: 9.5ch; }
input.field__value:hover { border-color: var(--line); }
input.field__value:focus { outline: none; border-color: var(--orange); background: var(--orange-050); }
.range { grid-column: 1 / -1; width: 100%; margin: 8px 0 0; accent-color: var(--orange); height: 22px; cursor: pointer; }
.roi__result {
  margin-top: 22px; padding: 28px 24px; border-radius: 14px; color: #fff; text-align: center;
  background: linear-gradient(160deg, #D2643F 0%, #B4482A 55%, #7E2E19 100%);
}
.roi__result-label { font-size: 15px; opacity: .92; }
.roi__big { font-family: var(--font-head); font-weight: 500; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.roi__big span { font-family: var(--font-body); font-size: 15px; font-weight: 400; opacity: .9; }
.roi__result hr { border: 0; border-top: 1.5px dotted rgba(255, 255, 255, .55); margin: 18px 0 12px; }
.roi__small { margin-top: 16px; font-size: 13px; opacity: .9; line-height: 1.5; }
@media (max-width: 820px) { .roi__card { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Discovery call ---------- */
.call { padding-top: 24px; }
.call__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.call__embed { position: relative; min-height: 700px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.call__embed iframe { width: 100%; height: 700px; border: 0; display: block; opacity: 0; transition: opacity .35s ease; }
.call__embed.is-ready iframe { opacity: 1; }
/* Placeholder shown while Calendly boots, so the box never sits empty */
.call__skel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px; transition: opacity .35s ease, visibility .35s; }
.call__embed.is-ready .call__skel { opacity: 0; visibility: hidden; }
.call__skel-head { width: 46%; height: 18px; border-radius: 9px; background: var(--line); }
.call__skel-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; width: min(100%, 340px); }
.call__skel-grid i { aspect-ratio: 1; border-radius: 50%; background: var(--orange-050); }
.call__skel-grid i:nth-child(3n+2) { background: #F3E2D9; }
.call__skel-head, .call__skel-grid { animation: skel-pulse 1.4s ease-in-out infinite; }
.call__skel-text { font-size: 14px; color: var(--muted); }
@keyframes skel-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .call__skel-head, .call__skel-grid { animation: none; } }
.call__copy { display: flex; flex-direction: column; gap: 14px; }
.call__copy > p { color: var(--muted); }
.call__label { color: var(--ink) !important; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; margin-top: 8px; }
.call__note { font-size: 15px; }
.call__fallback { align-self: flex-start; margin-top: 6px; }
@media (max-width: 900px) {
  .call__inner { grid-template-columns: 1fr; }
  .call__copy { order: -1; }
  .call__embed, .call__embed iframe { min-height: 0; height: 640px; }
}

/* ---------- FAQ ---------- */
.faq { padding-top: 40px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--orange-050)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' fill='none' stroke='%23C2512E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--orange); }
.faq details p { padding: 0 4px 22px; color: var(--muted); max-width: 700px; }
.faq details p:has(+ p), .faq details p:has(+ ul) { padding-bottom: 10px; }
.faq details ul { list-style: disc; padding: 0 4px 22px 26px; color: var(--muted); max-width: 700px; display: grid; gap: 4px; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.footer__item { display: flex; flex-direction: column; gap: 8px; text-decoration: none; font-size: 15px; }
.footer__item a { text-decoration: none; }
.footer__item a:hover, .footer__book:hover .footer__person { color: var(--orange); }
.footer__label { color: var(--muted); font-size: 14px; }
.footer__person { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; transition: color .2s; }
.footer__person img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.footer__social { align-items: flex-end; }
.footer__icons { display: flex; gap: 14px; }
.footer__icons a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: border-color .2s, color .2s; }
.footer__icons a:hover { border-color: var(--orange); }
.footer__icons svg { width: 16px; height: 16px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__social { align-items: flex-start; }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* ---------- Viewer (full design) ---------- */
dialog { border: 0; padding: 0; color: inherit; }
dialog::backdrop { background: rgba(20, 18, 18, .72); backdrop-filter: blur(3px); }
.viewer { width: min(100vw - 24px, var(--vw, 430px)); height: min(100dvh - 24px, 1000px); max-height: none; border-radius: 18px; background: #fff; overflow: hidden; display: none; flex-direction: column; }
.viewer[open] { display: flex; }
.viewer.is-desktop { width: min(100vw - 24px, var(--vw, 960px)); }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.viewer__title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__title span { font-weight: 400; color: var(--muted); }
.viewer__actions { display: flex; gap: 6px; }
.viewer__btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.viewer__btn:hover { border-color: var(--ink); }
.viewer__btn svg { width: 18px; height: 18px; }
.viewer__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; background: #f4f1ee; }
.viewer__img { width: 100%; height: auto; }

/* ---------- Message modal ---------- */
.modal { width: min(100vw - 24px, 480px); border-radius: 18px; background: #fff; padding: 32px; position: relative; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.modal__close svg { width: 16px; height: 16px; }
.modal__sub { color: var(--muted); margin: 6px 0 20px; }
.msg { --x: #000000; --tg: #1670A3; --wa: #127D3B; /* brand colours, darkened slightly so white text stays readable */
  display: flex; flex-direction: column; gap: 10px; }
.msg__btn { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; color: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s, filter .2s; }
.msg__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .45); filter: brightness(1.08); }
.msg__btn--x { background: var(--x); }
.msg__btn--tg { background: var(--tg); }
.msg__btn--wa { background: var(--wa); }
.msg__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .16); flex: none; }
.msg__icon svg { width: 22px; height: 22px; }
.msg__text { display: flex; flex-direction: column; line-height: 1.25; }
.msg__text strong { font-weight: 600; font-size: 17px; }
.msg__text small { font-size: 13px; }
.modal__alt { margin-top: 18px; font-size: 14px; color: var(--muted); }
.modal__alt a { color: var(--ink); }
.modal label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.modal input, .modal textarea {
  font: 16px/1.4 var(--font-body); padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); resize: vertical;
}
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(194, 81, 46, .15); }
.modal .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.modal__error { color: #B42318; font-size: 14px; }
.modal__done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.modal__done p { color: var(--muted); }
body.has-modal { overflow: hidden; }
