/* MadeToQuote site v3: light theme on the brand kit (amber leads, ink structure, paper base; amber never carries text). */
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #F6F3EC; --white: #FFFFFF; --ink: #15171C; --muted: #5E5F63; --line: #E4DFD4;
  --amber: #E8912A; --umber: #9A5410;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 20px; --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 1rem var(--body); text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(232,145,42,.7); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.link-arrow { font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link-arrow span { display: inline-block; transition: transform .15s; }
.link-arrow:hover span { transform: translateX(3px); }
:focus-visible { outline: 2px solid var(--umber); outline-offset: 3px; border-radius: 6px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 1.4rem var(--display); letter-spacing: -0.02em; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink); opacity: .85; }
.nav a:hover { opacity: 1; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; padding-block: 18px 40px; }
.hero-photo { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 600px; background: #e9e3d8; }
.hero-photo .room { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-copy { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { font-size: clamp(2.4rem, 3.5vw, 3.9rem); }
.hero-copy .lead { font-size: 1.15rem; color: #2b2d33; margin-top: 22px; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.facts { list-style: none; margin: 38px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-size: .95rem; }
.facts li { display: grid; gap: 10px; }
.facts svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#hero-owner { white-space: nowrap; }

/* the live iPad */
/* the iPad sits in the middle of the drapery, its step chip centred under it */
.ipad-stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(78%, 680px); display: flex; flex-direction: column; align-items: center; }
.ipad-stage .ipad { width: 100%; }
.ipad { background: #1b1c20; border-radius: 26px; padding: 12px; box-shadow: 0 40px 80px -30px rgba(40,30,15,.55), 0 0 0 1px rgba(255,255,255,.06) inset; }
.screen { --b: #8a8f98; --bt: #fff; aspect-ratio: 4 / 3; background: #fff; border-radius: 15px; overflow: hidden; display: grid; grid-template-columns: 30% 1fr; grid-template-rows: 13% 1fr; font-size: clamp(8px, 1.05vw, 13px); }
.bar { grid-column: 1 / -1; display: flex; align-items: center; gap: .7em; padding: 0 1.2em; background: var(--b); color: var(--bt); transition: background .7s ease; position: relative; }
.bar-logo { width: 2.2em; height: 1.5em; display: inline-flex; }
.bar-logo svg { width: 100%; height: 100%; }
.bar-name { font: 600 1.15em var(--body); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side { padding: 1.1em .9em; display: grid; align-content: start; gap: .5em; border-right: 1px solid #eee; }
.room-item { position: relative; padding: .6em .8em; border-radius: .6em; font-size: 1em; }
.room-item.on { background: color-mix(in srgb, var(--b) 14%, #fff); }
.room-item b { font-weight: 500; transition: opacity .5s; }
.main { position: relative; padding: 1.1em; }
/* screens swap cleanly: the old one fades out first, then the new one fades in */
.pane { position: absolute; inset: 1.1em; transition: opacity .3s ease; }
.photo { position: relative; height: 70%; border-radius: .8em; overflow: hidden; background: #f1efea; }
/* taller than its box so the app's 'Your home, finished' caption at the bottom stays hidden */
.photo img { width: 100%; height: 140%; margin-top: -2.5%; object-fit: cover; object-position: 50% 0; transition: opacity .7s; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5em; margin-top: .8em; height: calc(30% - .8em); }
.tile { display: grid; grid-template-rows: 1fr auto; overflow: hidden; border-radius: .6em; border: 1px solid #e6e3dc; font-size: .8em; font-weight: 500; transition: background .6s, color .6s, border-color .6s; }
.tile img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.tile span { padding: .3em .2em .35em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.on { background: var(--b); color: var(--bt); border-color: var(--b); }
.rv-title { font: 600 1.5em var(--body); margin-bottom: .6em; }
.rv-lines { list-style: none; margin: 0; padding: 0; }
.rv-lines li { display: flex; justify-content: space-between; padding: .62em 0; border-bottom: 1px solid #eee; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.rv-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .9em; }
.rv-total b { font: 600 2.1em var(--body); color: var(--b); font-variant-numeric: tabular-nums; }
.rv-btn { display: block; margin-top: .8em; text-align: center; padding: .8em; border-radius: 999px; background: var(--b); color: var(--bt); font-weight: 600; }

/* step 1, Your inventory: unbranded bar with an empty company slot, the dealer's products and colours arriving one by one */
.bar-slot { display: none; align-items: center; gap: .6em; color: #9a9890; font-weight: 500; }
.bar-slot::before { content: ""; width: 1.9em; height: 1.4em; border: 1.5px dashed #cfcbc3; border-radius: .35em; }
.inv-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .7em; }
.inv-head b { font: 600 1.35em var(--body); }
.inv-count { color: #8a8f98; font-size: .9em; }
.inv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.inv-card { border: 1px solid #ece9e2; border-radius: .7em; overflow: hidden; background: #fff; opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .4s, transform .4s; }
.inv-card img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.inv-card p { display: flex; justify-content: space-between; align-items: center; gap: .3em; padding: .45em .55em; font-size: .85em; font-weight: 500; white-space: nowrap; }
.inv-card p > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.inv-sw { display: flex; }
.inv-sw i { width: .8em; height: .8em; border-radius: 50%; margin-left: -.22em; box-shadow: 0 0 0 1.5px #fff; }
.inv-card.add { display: grid; place-items: center; border-style: dashed; color: #8a8f98; font-size: .85em; font-weight: 500; }
.ipad[data-step="1"] .inv-card { opacity: 1; transform: none; }
.ipad[data-step="1"] .screen { --b: #f4f3f0; --bt: #15171C; }
.ipad[data-step="1"] .bar-slot { display: inline-flex; }
.ipad[data-step="1"] .bar-logo, .ipad[data-step="1"] .bar-name { display: none; }
.ipad[data-step="1"] .room-item.on { background: #f1efea; }
.ipad .pane-inventory { opacity: 0; }
.ipad[data-step="1"] .pane-inventory { opacity: 1; transition-delay: .3s; }
.ipad[data-step="1"] .pane-lens { opacity: 0; transition-delay: 0s; }
.ipad .pane-review { opacity: 0; pointer-events: none; }
.ipad[data-step="3"] .pane-lens { opacity: 0; }
.ipad[data-step="3"] .pane-review { opacity: 1; transition-delay: .3s; }
.ipad[data-step="2"] .pane-lens { transition-delay: .3s; }
.ipad[data-step="3"] .rv-lines li { opacity: 1; transform: none; transition-delay: .35s; }
.ipad[data-step="3"] .rv-lines li:nth-child(2) { transition-delay: .5s; }
.ipad[data-step="3"] .rv-lines li:nth-child(3) { transition-delay: .65s; }
.ipad[data-step="3"] .rv-lines li:nth-child(4) { transition-delay: .8s; }
.bar-logo, .bar-name { transition: opacity .5s .2s; }

.step-chip { display: inline-flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 10px 18px; background: var(--white); border-radius: 999px; font-weight: 500; font-size: .95rem; box-shadow: 0 10px 30px -14px rgba(40,30,15,.35); }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .3s; }
.dots i.on { background: var(--amber); }

/* section 2: what we build for you */
.build { padding-block: clamp(80px, 10vw, 140px) 40px; }
.build-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px 64px; align-items: end; }
.build h2 { font-size: clamp(2.2rem, 4vw, 4rem); max-width: 16ch; }
.build-aside { display: grid; gap: 18px; font-size: 1.15rem; padding-bottom: 8px; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 46px; height: 1px; background: var(--line); }
.steps li { position: relative; background: var(--white); border-radius: var(--radius); padding: 26px 22px 22px; display: flex; flex-direction: column; }
.steps .num { position: relative; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font: 500 .95rem var(--display); color: var(--muted); margin-bottom: 22px; }
.steps li:first-child .num { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.steps h3 { font-size: 1.6rem; }
.steps p { color: #2b2d33; margin-top: 8px; min-height: 3.1em; }
.steps figure { margin: 22px 0 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3.4; background: #eee; margin-top: auto; }
.steps figure img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.preview-note { color: var(--muted); font-size: .85rem; text-align: center; padding-block: 48px 64px; }

/* tablet */
@media (max-width: 1180px) {
  .nav { display: none; }
  .head-row .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: repeat(5, minmax(240px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .steps li { scroll-snap-align: start; }
  .steps::before { display: none; }
}
/* phone */
@media (max-width: 720px) {
  .brand span { font-size: 1.15rem; }
  .head-row { min-height: 64px; gap: 12px; }
  .head-row .btn { min-height: 38px; padding: 0 14px; font-size: .82rem; }
  .hero { padding-top: 8px; }
  .hero-copy { order: -1; padding: 28px 22px; }
  .hero-photo { aspect-ratio: 4 / 4.4; }
  .ipad-stage { width: 90%; }
  .ipad { border-radius: 16px; padding: 7px; }
  .screen { border-radius: 10px; font-size: 2.1vw; }
  .step-chip { margin: 10px 0 0; padding: 7px 14px; font-size: .85rem; }
  .facts { grid-template-columns: 1fr 1fr 1fr; font-size: .85rem; }
  .build-head { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(5, 78%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
