/* Layout: a furniture-retail homepage. Utility bar, centred wordmark and a tracked
   category row; a full-width hero; two promo tiles; card rows with solid caption blocks.
   Drawings stand in for product photos until real ones are added. One light theme on purpose. */
:root {
  --bg: #FFFFFF;
  --panel: #F3F2EE;       /* product backdrop grey */
  --panel-2: #ECE6DC;     /* warmer backdrop behind wood */
  --ink: #1D1D1B;
  --ink-2: #5F5C56;
  --line: #E3E0D9;
  --block: #1F3D2C;       /* deep neem green: caption blocks, tiles, buttons */
  --block-2: #2A4D39;
  --on-block: #FFFFFF;
  --on-block-2: #C8D5CB;
  --bar: #1D1D1B;
  --on-bar: #EFEFEA;
  --brass: #B8862F;       /* markers in the drawings */
  --timber: #9A5D33;
  --timber-dk: #6E4123;
  --metal: #2E322F;
  --shadow: rgba(29, 29, 27, .16);

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Century Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --head-h: 68px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p, dl, dd, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--brass); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }

.wrap {
  max-width: 1320px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.kicker, .mini-label, .sheet-head, legend, .card-k, .badge, .foot-h {
  font: 500 .72rem/1.35 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
}
.mini-label, .sheet-head, legend { color: var(--ink-2); }
h3 { font: 500 1.08rem/1.35 var(--font-body); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px; border: 1.5px solid transparent; border-radius: 2px;
  font: 500 .8rem/1.15 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn .ic { width: 18px; height: 18px; flex: none; }
.btn-green { background: var(--block); color: var(--on-block); }
.btn-green:hover { background: var(--block-2); }
.btn-white { background: #FFFFFF; color: var(--ink); }
.btn-white:hover { background: var(--panel); }
.btn-ghost { border-color: #FFFFFF; color: #FFFFFF; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #FFFFFF; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .72rem; }
.btn-block { width: 100%; }
.u-link { display: inline-block; font: 500 .92rem/1.3 var(--font-body); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.u-link:hover { text-decoration-thickness: 2px; }

/* ---------- Top of page ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.util { background: var(--bar); color: var(--on-bar); font: 500 .7rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.util a, .util-left { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.util .ic { width: 14px; height: 14px; flex: none; }
@media (max-width: 560px) { .util-left { display: none; } .util .wrap { justify-content: center; } }

.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.head-row { height: var(--head-h); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.head-links { display: flex; gap: 24px; font-size: .9rem; }
.head-links a { text-decoration: none; color: var(--ink-2); }
.head-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.logo { justify-self: center; font: 400 2rem/1 var(--font-display); letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.logo em { font-style: italic; color: var(--block); }
.head-cta { justify-self: end; }
@media (max-width: 760px) {
  .head-row { grid-template-columns: minmax(0, 1fr) auto; }
  .head-links { display: none; }
  .logo { justify-self: start; font-size: 1.7rem; }
}
@media (max-width: 420px) { .head-cta span { display: none; } .head-cta { width: 42px; padding: 0; } }

.cats { border-bottom: 1px solid var(--line); }
.cats ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 36px; overflow-x: auto; scrollbar-width: none; }
.cats ul::-webkit-scrollbar { display: none; }
.cats a { display: block; padding: 15px 0 13px; border-bottom: 2px solid transparent; font: 500 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.cats a:hover { border-bottom-color: var(--ink); }
@media (max-width: 900px) { .cats ul { justify-content: flex-start; gap: 26px; } }

.promos { background: var(--panel); }
.promos ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.promos li { padding: 11px 10px; font-size: .88rem; }
.promos li + li { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .promos ul { grid-template-columns: minmax(0, 1fr); } .promos li + li { display: none; } }
.offer { background: var(--block); color: var(--on-block); text-align: center; font: 500 .76rem/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.offer a { display: block; padding-block: 11px; text-decoration: none; }
.offer b { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; align-items: end; min-height: clamp(460px, 44vw, 640px); overflow: hidden; background: var(--block); color: #FFFFFF; }
.hero-media { position: absolute; inset: 0; }
.hero-media svg, .hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(14, 22, 18, .55) 0%, rgba(14, 22, 18, 0) 55%),
    linear-gradient(90deg, rgba(14, 22, 18, .6) 0%, rgba(14, 22, 18, .25) 45%, rgba(14, 22, 18, 0) 65%);
}
.hero-copy { position: relative; z-index: 1; width: 100%; display: grid; gap: 18px; justify-items: start; padding-block: 56px; }
.hero h1 { max-width: 11em; font: 400 clamp(2.6rem, 5.2vw, 4.6rem)/1.02 var(--font-display); letter-spacing: -.01em; }
.hero-sub { max-width: 30em; font-size: 1.08rem; color: rgba(255, 255, 255, .88); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.room .floor { display: none; }
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; }
  .hero::after { display: none; }
  .hero-media { position: relative; aspect-ratio: 16 / 10; max-width: 100%; }
  .hero-copy { padding-block: 28px 36px; }
  .cta-row .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.sec { padding-block: clamp(56px, 8vw, 96px); }
.sec-tight { padding-block: clamp(40px, 6vw, 72px); }
.sec-panel { background: var(--panel); }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 32px); }
.row-head h2, .sec-title { font: 400 clamp(1.95rem, 3.2vw, 2.6rem)/1.08 var(--font-display); }
.sec-intro { max-width: 42em; margin-top: 12px; color: var(--ink-2); font-size: 1.05rem; }

/* ---------- Promo tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tile { display: grid; gap: 14px; align-content: start; }
.tile .u-link { justify-self: start; }
.tile-box { position: relative; display: block; aspect-ratio: 6 / 5; max-width: 100%; overflow: hidden; text-decoration: none; }
.tile-art { background: var(--panel-2); }
.tile-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile-art:hover img { transform: scale(1.03); }
.tile-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 22, 18, .6) 0%, rgba(14, 22, 18, .15) 45%, rgba(14, 22, 18, 0) 70%); }
.tile-over { position: absolute; top: 9%; left: 0; right: 0; z-index: 1; display: grid; justify-items: center; gap: 10px; padding-inline: 20px; text-align: center; color: #FFFFFF; }
.tile-h { font: 400 clamp(1.9rem, 3.6vw, 3.2rem)/1.02 var(--font-display); text-transform: uppercase; }
.tile-solid { padding: 16px; background: var(--block); color: var(--on-block); }
.tile-frame { height: 100%; display: grid; align-content: center; justify-items: center; gap: 20px; padding: 28px; border: 1px solid rgba(255, 255, 255, .4); text-align: center; }
.tile-frame p:not(.tile-h):not(.tile-mark) { max-width: 24em; color: var(--on-block-2); }
.tile-mark { margin-top: 10px; font: 400 1.4rem/1 var(--font-display); }
.tile-mark em, .foot-logo em { font-style: italic; color: inherit; }
@media (max-width: 760px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile-solid { aspect-ratio: auto; }
  .tile-frame { padding-block: 44px; }
}

/* ---------- Card rows ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: inherit; }
.card-img { display: block; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--panel); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.card:hover .card-img img { transform: scale(1.05); }
.card-cap { flex: 1; display: grid; align-content: start; gap: 6px; padding: 14px 18px 18px; background: var(--block); color: var(--on-block); }
.card-k { color: var(--on-block-2); }
.card-h { font: 400 1.5rem/1.1 var(--font-display); text-transform: uppercase; }
.card-solid { display: grid; align-content: start; gap: 12px; padding: 22px; background: var(--block); color: var(--on-block); }
.card-solid p:not(.card-k):not(.card-h) { color: var(--on-block-2); font-size: .95rem; }
.card-solid .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 960px) {
  .cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(230px, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .card { scroll-snap-align: start; }
}
@media (min-width: 961px) {
  .cards.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cards.c5 .card-cap { padding-inline: 14px; }
  .cards.c5 .card-h { font-size: 1.3rem; }
}

/* ---------- Drawings ---------- */
.draw { display: block; width: 100%; height: auto; overflow: visible; }
.draw .floor { stroke: var(--ink-2); stroke-opacity: .35; stroke-width: .25; }
.draw .shade { fill: var(--shadow); }
.draw .wood { fill: var(--timber); stroke: var(--timber-dk); stroke-width: .18; }
.draw .cblock { fill: var(--brass); }
.draw .leg-wood { fill: var(--timber); }
.draw .leg-metal { fill: var(--metal); }
.draw .leg-plinth { fill: var(--timber-dk); }
.draw .dim line { stroke: var(--ink-2); stroke-width: .22; }
.draw .dim-t { fill: var(--ink); font: 500 3px var(--font-body); }
.draw .wall { stroke: var(--ink-2); stroke-width: .4; }
.draw .hatch { stroke: var(--ink-2); stroke-opacity: .5; stroke-width: .25; }
.draw .rivet { fill: var(--metal); }
@media (max-width: 640px) {
  .draw .dim-t { font-size: 4.4px; }
}

.sheet { padding: 16px 20px 20px; background: var(--bg); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sheet > .draw { margin-top: 16px; }

/* ---------- Customiser ---------- */
.cfg { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cfg-view { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--head-h) + 20px); }
.cfg-photo, .cfg-draw { margin-top: 16px; }
.cfg-photo { display: grid; gap: 10px; }
.cfg-photo img { width: 100%; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--panel); }
.cfg-photo figcaption { font-size: .88rem; color: var(--ink-2); }
.sheet-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); align-items: start; }
.sheet-foot .draw { margin-top: 8px; }
.readout { display: grid; font-size: .9rem; font-variant-numeric: tabular-nums; }
.readout div { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; border-bottom: 1px solid var(--line); }
.readout dt { color: var(--ink-2); }
.readout dd { text-align: right; font-weight: 500; }

.cfg-form { display: grid; gap: 26px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 0; margin-bottom: 12px; }
legend output, legend b { font: 500 .9rem/1.35 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.chips { display: grid; gap: 8px; }
.chips.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips.c2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }   /* an odd one out takes the full row */
.chips.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip, .swatch { position: relative; display: block; min-width: 0; }
.chip input, .swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span {
  display: grid; gap: 2px; justify-items: start; height: 100%; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--bg); cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.chip b { font-weight: 500; font-size: .95rem; }
.chip small { font-size: .8rem; line-height: 1.35; color: var(--ink-2); }
.chip:hover span { border-color: var(--ink-2); }
.chip input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:focus-visible + span { outline: 2.5px solid var(--brass); outline-offset: 2px; }
.shape-ic { width: 34px; height: 30px; margin-bottom: 4px; fill: var(--panel); stroke: var(--ink-2); stroke-width: 1.4; stroke-linejoin: round; }
.chip input:checked + span .shape-ic { fill: var(--panel-2); stroke: var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch .dot { display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16); cursor: pointer; }
.swatch input:checked + .dot { outline: 2px solid var(--ink); outline-offset: 3px; }
.swatch input:focus-visible + .dot { outline: 2.5px solid var(--brass); outline-offset: 3px; }
input[type="range"] { width: 100%; height: 28px; margin: 0; accent-color: var(--block); }
.range-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: .8rem; color: var(--ink-2); }
.plan-mob { display: none; margin-top: 14px; }
textarea {
  display: block; width: 100%; min-height: 92px; margin-top: 10px; padding: 12px 14px; resize: vertical;
  border: 1px solid var(--line); border-radius: 2px; background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem;
}
textarea:focus { outline: none; border-color: var(--ink); }
.send { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.send .note { font-size: .9rem; color: var(--ink-2); text-align: center; }

@media (max-width: 900px) {
  .cfg { grid-template-columns: minmax(0, 1fr); }
  /* On phones the drawing stays pinned under the header while the options scroll past. */
  .cfg-view {
    top: calc(env(safe-area-inset-top, 0px) + var(--head-h)); z-index: 5; padding-block: 6px 10px; background: var(--panel);
    /* reach across the side gutter so options scrolling underneath don't peek out at the edges */
    margin-left: calc(-1 * max(32px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(32px, env(safe-area-inset-right, 0px)));
    padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
  .cfg-view .sheet { padding: 10px 12px 12px; }
  .cfg-view .cfg-photo, .cfg-view .cfg-draw { margin-top: 8px; }
  .cfg-photo { gap: 6px; }
  .cfg-photo img { aspect-ratio: 2 / 1; }
  .cfg-photo figcaption { font-size: .8rem; }
  .cfg-view .sheet-foot { display: none; }
  .plan-mob { display: block; }
}
@media (max-width: 719px) {
  .cfg-view {
    margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- Workshop ---------- */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.photo { display: grid; gap: 12px; align-content: start; }
.photo-box { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; max-width: 100%; padding: 10%; overflow: hidden; background: var(--bg); }
.photo-box svg { width: 100%; height: 100%; }
.photo-box.has-img { padding: 0; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 0; left: 0; z-index: 1; padding: 7px 11px; background: var(--ink); color: #FFFFFF; font-size: .64rem; }
.photo figcaption { font-size: .95rem; font-weight: 500; }
@media (max-width: 760px) { .photos { grid-template-columns: minmax(0, 1fr); } .photo-box { aspect-ratio: 16 / 10; } }

.ws-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); margin-top: clamp(40px, 6vw, 64px); align-items: start; }
.chain { display: grid; gap: 22px; padding: clamp(22px, 3vw, 32px); background: var(--bg); }
.chain > p:last-child { color: var(--ink-2); }
.chain-row { display: grid; gap: 10px; }
.chain-row ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.chain-row li { position: relative; padding: 7px 14px; border: 1px solid var(--line); font-size: .94rem; }
.chain-row li + li::before { content: "→"; position: absolute; left: -21px; top: 50%; transform: translateY(-52%); color: var(--ink-2); }
.chain-row.theirs li { color: var(--ink-2); }
.chain-row.ours li { background: var(--block); border-color: var(--block); color: var(--on-block); font-weight: 500; }
.ws-points { list-style: none; margin: 0; padding: 0; display: grid; }
.ws-points li { display: grid; gap: 6px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.ws-points li:first-child { padding-top: 0; }
.ws-points p { color: var(--ink-2); }
.ws-points .u-link { justify-self: start; margin-top: 4px; }
@media (max-width: 860px) { .ws-grid { grid-template-columns: minmax(0, 1fr); } }

/* Photo / Measurements switch in the customiser */
.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button { padding: 8px 14px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: 500 .7rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }

/* ---------- Materials ---------- */
.neem { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); background: var(--block); color: var(--on-block); }
.neem-photo { min-height: 320px; }
.neem-photo img { width: 100%; height: 100%; object-fit: cover; }
.neem-body { display: grid; gap: 32px; align-content: center; padding: clamp(28px, 5vw, 56px); }
.neem .kicker { color: var(--on-block-2); }
.neem-claim { display: grid; gap: 18px; align-content: start; }
.neem-big { font: 400 clamp(1.9rem, 3.6vw, 2.9rem)/1.08 var(--font-display); text-wrap: balance; }
.neem-claim p:last-child { color: var(--on-block-2); max-width: 36em; }
.neem-facts { list-style: none; margin: 0; padding: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.neem-facts li { display: grid; gap: 6px; align-content: start; }
.neem-facts p { color: var(--on-block-2); font-size: .95rem; }
@media (max-width: 960px) { .neem-facts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .neem { grid-template-columns: minmax(0, 1fr); } .neem-photo { min-height: 0; aspect-ratio: 16 / 10; } }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 26px 22px 0 0; }
.steps li::before { content: ""; position: absolute; top: -7.5px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 1.5px solid var(--ink); }
.steps li:last-child::before { background: var(--block); border-color: var(--block); }
.steps .n { font: 500 .72rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.steps h3 { font: 400 1.35rem/1.2 var(--font-display); }
.steps p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 980px) {
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1.5px solid var(--ink); margin-left: 7px; }
  .steps li { padding: 0 0 30px 28px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before { top: 4px; left: -8px; }
}

/* ---------- Delivery ---------- */
.dl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.dl-photo { aspect-ratio: 4 / 3; max-width: 100%; background: var(--panel); }
.dl-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 85%; }
.dl-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.dl-time { display: grid; gap: 8px; align-content: start; padding: 24px; background: var(--panel); }
.dl-time.ours { background: var(--block); color: var(--on-block); }
.dl-big { font: 400 clamp(2rem, 3.4vw, 2.8rem)/1.05 var(--font-display); }
.dl-big::first-letter { text-transform: uppercase; }
.dl-time p:last-child { color: var(--ink-2); font-size: .95rem; }
.dl-time.ours .kicker, .dl-time.ours p:last-child { color: var(--on-block-2); }
.dl-points { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.dl-points li { display: grid; gap: 4px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.dl-points li:last-child { border-bottom: 0; padding-bottom: 0; }
.dl-points p { color: var(--ink-2); }
@media (max-width: 900px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } .dl-photo { aspect-ratio: 16 / 10; } }
@media (max-width: 520px) { .dl-times { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-grid > div:first-child { display: grid; gap: 4px; justify-items: start; }
.faq-grid > div:first-child .btn { margin-top: 18px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 20px 44px 20px 0; list-style: none; cursor: pointer; font-weight: 500; font-size: 1.06rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 300 1.6rem/1 var(--font-body); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding-bottom: 22px; color: var(--ink-2); max-width: 40em; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pinterest band and footer ---------- */
.cta-band {
  position: relative; overflow: hidden; background: var(--block); color: var(--on-block);
  padding-block: 16px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
/* The text sits over photos, so it's white with a soft shadow to stay readable on light sofas. */
.cta-frame { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px); text-align: center; text-shadow: 0 1px 14px rgba(14, 22, 18, .55); }
.cta-frame h2 { max-width: 13em; font: 400 clamp(2.1rem, 4.4vw, 3.5rem)/1.05 var(--font-display); }
/* Red on green and photos has little contrast, so a dark glow behind the word keeps it readable. */
.pin-word { color: #E60023; text-shadow: 0 0 2px rgba(10, 16, 13, .9), 0 0 12px rgba(10, 16, 13, .9), 0 0 26px rgba(10, 16, 13, .8); }
.cta-frame p { max-width: 30em; color: #FFFFFF; }
.cta-frame .btn { margin-top: 6px; text-shadow: none; }
.cta-num b { color: var(--on-block); font-weight: 500; user-select: all; }

/* Saved sofa pictures across the full width of the screen, under a green wash that's lightest at the edges.
   The board runs slightly past both edges, so the pictures carry on off the screen with no green strip beside them. */
.cta-pins { position: absolute; inset: 0 -24px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: 100%; gap: 12px; pointer-events: none; }
.cta-pins::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(31, 61, 44, .15) 0%, rgba(31, 61, 44, .66) 25%, rgba(31, 61, 44, .72) 50%, rgba(31, 61, 44, .66) 75%, rgba(31, 61, 44, .15) 100%);
}
/* Columns overshoot the band top and bottom, and the tiles share that height, so the board always fills it. */
.pin-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin-top: -34px; height: calc(100% + 68px); }
.pin-col:nth-child(even) { margin-top: -80px; height: calc(100% + 130px); }
.pin { position: relative; display: block; flex: 1 1 0; min-height: 0; overflow: hidden; border-radius: 14px; background: var(--block-2); }
.pin.tall { flex-grow: 1.35; }
.pin img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* z-index lifts the tags above the green wash, so they stay crisp white wherever they sit. */
.pin.saved::after { content: "Saved"; position: absolute; z-index: 1; top: 8px; right: 8px; padding: 5px 10px; border-radius: 999px; background: #FFFFFF; color: var(--ink); font: 600 .68rem/1 var(--font-body); }
/* The last column runs past the screen edge, so its tags sit on the left of the tile to stay fully visible. */
.pin-col:last-child .pin.saved::after { right: auto; left: 8px; }
/* Fewer columns as the screen narrows, so the tiles stay big enough to read as sofas. */
@media (max-width: 1100px) {
  .cta-pins { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pin-col:nth-child(n+7) { display: none; }
  .pin-col:nth-child(6) .pin.saved::after { right: auto; left: 8px; }
  .pin-col:nth-child(3) .pin.saved::after { display: none; }   /* it would touch the text at this width */
}
@media (max-width: 760px) {
  .cta-pins { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pin-col { gap: 8px; }
  .pin-col:nth-child(n+4) { display: none; }
  .pin.saved::after { display: none; }   /* it would land behind the heading on a screen this narrow */
  .cta-pins::after { background: linear-gradient(180deg, rgba(31, 61, 44, .4) 0%, rgba(31, 61, 44, .74) 22%, rgba(31, 61, 44, .74) 78%, rgba(31, 61, 44, .4) 100%); }
  .cta-frame { padding-inline: 8px; }
}

.site-foot { background: var(--panel); border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 56px 32px; }
.foot-about { display: grid; gap: 12px; align-content: start; max-width: 26em; color: var(--ink-2); }
.foot-logo { justify-self: start; font-size: 1.8rem; }
.foot-logo em { color: var(--block); }
.foot-h { margin-bottom: 12px; color: var(--ink); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot ul a { text-decoration: none; color: var(--ink-2); }
.site-foot ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot-base { padding-block: 18px 104px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }
@media (max-width: 760px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }

.fab {
  position: fixed; z-index: 25;
  /* bottom clears Netlify's free-plan badge, which covers the lowest 64px of this corner and blocks taps */
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--block); color: var(--on-block); box-shadow: 0 10px 28px var(--shadow);
  transition: opacity .2s ease, transform .2s ease;
}
.fab .ic { width: 28px; height: 28px; }
.fab.away { opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; }

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