/* Dawn Designs "See it in your room" (/ar/). Mirrors /ai-design/ai-design.css (same top bar, type, chips, buttons and
   footer) so the two tools feel like one site; colours and fonts come from /css/tokens.css. Only the opening headline
   is Fraunces, like the home page's opening. */

:root {
  --gutter: clamp(16px, 4vw, 56px);
  --hair: color-mix(in srgb, var(--ink) 16%, transparent);
  --dawn-text: color-mix(in srgb, var(--dawn) 55%, var(--ink));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--linen); padding: 10px 14px; z-index: 10; }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--dawn); outline-offset: 3px; }

/* ------------------------------------------------------------------ top bar */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--hair);
}
.top__brand img { width: 96px; height: auto; }
.top__nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-weight: 600; font-size: 14px; }
.top__nav a { text-decoration: none; }
.top__nav a:hover { color: var(--dawn-text); }
.top__cta { border: 1px solid var(--ink); border-radius: 999px; padding: 9px 18px; white-space: nowrap; }
.top__cta:hover { background: var(--ink); color: var(--linen) !important; }
@media (max-width: 420px) { .top__nav .top__more { display: none; } }

/* ------------------------------------------------------------------ type */
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dawn-text);
}
.eyebrow .rule { width: 32px; height: 1px; background: currentColor; }
.display {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -.015em; line-height: 1.02; margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
}
.intro .display { font-family: 'Fraunces', Georgia, serif; font-weight: 340; font-variation-settings: 'opsz' 144; letter-spacing: -.025em; }
.intro .display em { font-weight: 300; }
.display em { font-style: italic; color: var(--dawn); }
.lede { max-width: 40rem; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--ink-soft); margin: 22px 0 0; }

/* ------------------------------------------------------------------ layout */
main { padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.intro { padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); }
.tool {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--hair);
  padding-top: clamp(28px, 4vw, 48px);
}
@media (min-width: 980px) {
  .tool { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .stage { position: sticky; top: 24px; }
}

/* ------------------------------------------------------------------ 3D stage */
.frame {
  position: relative; margin: 0; overflow: hidden; border-radius: 16px;
  /* a soft "floor": paler wall above, sand below, so the contact shadow reads */
  background: linear-gradient(180deg, color-mix(in srgb, var(--linen) 80%, white) 0%, var(--linen) 55%, color-mix(in srgb, var(--sand) 80%, var(--walnut)) 100%);
}
model-viewer {
  display: block; width: 100%;
  height: clamp(360px, 60svh, 560px);
  background: transparent;
  --poster-color: transparent;
  --progress-bar-color: var(--dawn);
  --progress-bar-height: 3px;
  --progress-mask: transparent;
}
@media (min-width: 980px) { model-viewer { height: min(calc(100svh - 48px), 760px); } }
model-viewer:focus-visible { outline: 2px solid var(--dawn); outline-offset: -2px; }
.frame__tag {
  position: absolute; left: 14px; top: 14px; pointer-events: none;
  background: rgb(18 22 31 / .72); color: var(--linen); backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
}
.frame__hint {
  position: absolute; right: 14px; top: 14px; margin: 0; pointer-events: none;
  font-size: 12px; color: var(--ink-soft);
}
@media (max-width: 520px) { .frame__hint { display: none; } }

/* "View in your room": model-viewer only shows this slotted button where AR can start */
.ar-btn {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  white-space: nowrap; box-shadow: 0 10px 30px -12px rgb(18 22 31 / .55);
}
.ar-btn svg { width: 20px; height: 20px; flex: none; }
.frame__busy {
  position: absolute; inset: auto 0 18px; margin: 0; text-align: center; pointer-events: none;
  font-size: 13px; color: var(--ink-soft);
}

.handoff {
  display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 16px 18px;
  border: 1px solid var(--hair); border-radius: 14px; background: color-mix(in srgb, var(--linen) 55%, white);
}
.handoff__qr { flex: none; width: 104px; height: 104px; padding: 8px; border-radius: 10px; background: #fff; }
.handoff__qr svg { width: 100%; height: 100%; }
.handoff__qr path { fill: var(--ink); }
.handoff__title { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; }
.handoff p:last-child { margin: 0; font-size: 14px; color: var(--ink-soft); }
.handoff__url { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 520px) { .handoff__qr { width: 84px; height: 84px; } }

.error { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--dawn) 12%, var(--linen)); font-size: 15px; }

/* ------------------------------------------------------------------ picker */
.picker { display: grid; gap: 26px; align-content: start; }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend {
  display: block; margin-bottom: 10px; padding: 0;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border: 1px solid var(--hair); border-radius: 999px;
  font-size: 14px; font-weight: 600; background: color-mix(in srgb, var(--linen) 70%, white);
  transition: background .2s, border-color .2s, color .2s;
}
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--linen); }
.chips input:focus-visible + span { outline: 2px solid var(--dawn); outline-offset: 2px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); }
.chips input:checked + span .swatch { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
@media (prefers-reduced-motion: reduce) { .chips span, .btn { transition: none; } }

/* size */
.spec { padding-top: 22px; border-top: 1px solid var(--hair); }
.spec__name { margin: 0 0 14px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; }
.spec__name em { font-style: italic; color: var(--dawn); }
.dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--hair); border-radius: 12px; }
.dims div { padding: 12px 14px; }
.dims div + div { border-left: 1px solid var(--hair); }
.dims dt { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.dims dd { margin: 2px 0 0; font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.dims dd small { font-family: var(--font-body); font-size: 12px; color: var(--ink-soft); margin-left: 3px; }
.spec__about { margin: 14px 0 0; color: var(--ink-soft); font-size: 15px; }
.spec__typical { margin: 14px 0 0; padding: 14px 16px; border-left: 2px solid var(--dawn); background: color-mix(in srgb, var(--sand) 55%, var(--linen)); font-size: 15px; }
.spec__tip { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--ink);
  font: 700 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, opacity .2s, border-color .2s;
}
.btn--solid { background: var(--ink); color: var(--linen); }
.btn--solid:hover { background: var(--dawn); border-color: var(--dawn); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--linen); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact { margin: -8px 0 0; font-size: 14px; color: var(--ink-soft); }
.contact a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ how it works */
.how { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--hair); }
.how .display { font-size: clamp(2rem, 4.4vw, 3.6rem); margin-bottom: clamp(24px, 4vw, 48px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(20px, 3vw, 40px); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; padding-top: 18px; border-top: 1px solid var(--hair); }
.steps li::before { content: '0' counter(step); display: block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--dawn-text); }
.steps h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.2; }
.steps p { margin: 0; color: var(--ink-soft); max-width: 26rem; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 22px var(--gutter); border-top: 1px solid var(--hair); font-size: 13px; color: var(--ink-soft);
}
.foot p { margin: 0; }
