/* ============================================================
   HomePrint — main.css
   Warm-minimal editorial. Fraunces display + Inter body.
   ============================================================ */

:root {
  --bg: #FAF7F2;
  --bg-alt: #F2EDE5;
  --ink: #1F1B16;
  --mid: #4A4138;
  --accent: #C26D4F;
  --accent-dark: #A85A3F;
  --deep: #2B2724;
  --oak: #C8A97E;
  --line: rgba(31, 27, 22, 0.12);
  --line-soft: rgba(31, 27, 22, 0.07);
  --card: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(31,27,22,.05), 0 4px 14px rgba(31,27,22,.06);
  --shadow-md: 0 2px 6px rgba(31,27,22,.06), 0 14px 34px rgba(31,27,22,.10);
  --shadow-lg: 0 8px 20px rgba(31,27,22,.10), 0 30px 70px rgba(31,27,22,.16);
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.22,.9,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.25; }

p { margin: 0 0 1em; }
a { color: inherit; }

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--mid);
  max-width: 38em;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.container-narrow { width: min(840px, calc(100% - 48px)); margin-inline: auto; }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-dark {
  background: var(--deep);
  color: #F4EFE8;
}
.section-dark h2, .section-dark h3 { color: #FAF7F2; }
.section-dark .lead, .section-dark p { color: rgba(244,239,232,.75); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-dark .eyebrow { color: var(--oak); }
.section-dark .eyebrow::before { background: var(--oak); }

.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-inline: auto; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s ease, color .2s ease;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(194,109,79,.32);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(194,109,79,.4); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }

.section-dark .btn-ghost { color: #F4EFE8; box-shadow: inset 0 0 0 1.5px rgba(244,239,232,.3); }
.section-dark .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(244,239,232,.8); }

.btn-lg { padding: 18px 34px; font-size: 1.08rem; }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ------------------------------------------------------------
   Nav
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(250,247,242,.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 4px 24px rgba(31,27,22,.06);
  background: rgba(250,247,242,.88);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  color: var(--mid);
  padding: 9px 14px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:not(.btn):hover { color: var(--ink); background: rgba(31,27,22,.05); }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--ink); font-weight: 600; }
.nav-links .btn { padding: 11px 22px; font-size: .92rem; margin-left: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
  border-radius: 12px;
}
.nav-toggle:focus-visible { outline: 3px solid var(--accent); }
.nav-toggle .bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s ease;
}
.nav-toggle .bar + .bar { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(250,247,242,.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    padding: 14px 24px 24px;
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 24px 40px rgba(31,27,22,.12);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 13px 14px; font-size: 1.05rem; }
  .nav-links .btn { margin: 10px 0 0; justify-content: center; }
}

/* ------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  padding: clamp(140px, 18vh, 190px) 0 clamp(64px, 8vw, 110px);
  position: relative;
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--mid); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Browser mockup */
.browser-wrap {
  perspective: 1400px;
}
.browser {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transform: rotateY(-7deg) rotateX(3deg);
  animation: heroFloat 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes heroFloat {
  0%, 100% { transform: rotateY(-7deg) rotateX(3deg) translateY(0); }
  50%      { transform: rotateY(-7deg) rotateX(3deg) translateY(-14px); }
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line-soft);
}
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #E8907A; }
.dot-y { background: #E5C078; }
.dot-g { background: #9DBB8F; }
.browser-bar .url {
  margin-left: 10px;
  flex: 1;
  background: #fff;
  border-radius: 8px;
  font-size: .72rem;
  color: var(--mid);
  padding: 5px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser img { width: 100%; }

/* Decorative floor-plan motifs */
.motif {
  position: absolute;
  pointer-events: none;
  color: var(--ink);
  opacity: .07;
  z-index: 0;
}
.section-dark .motif { color: var(--oak); opacity: .1; }
.section > .container, .section > .container-narrow { position: relative; z-index: 1; }
.hero > .container { position: relative; z-index: 1; }

/* ------------------------------------------------------------
   Stats strip
   ------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 560;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-num .unit { color: var(--accent); font-size: .55em; }
.stat-label { margin-top: 10px; font-size: .9rem; color: var(--mid); line-height: 1.45; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   Cards (tilt + lift)
   ------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 880px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2xl);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  transform-style: preserve-3d;
  position: relative;
}
.card:hover { box-shadow: var(--shadow-md); }
.card .card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 16px;
  transition: transform .35s var(--ease-out);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-3deg); }
.card p { color: var(--mid); font-size: .98rem; margin: 0; }
.card .card-link {
  margin-top: 18px;
  font-weight: 600;
  font-size: .94rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.card:hover .card-link .arrow { transform: translateX(4px); }
.card .arrow { transition: transform .25s var(--ease-out); }

/* ------------------------------------------------------------
   Marquee
   ------------------------------------------------------------ */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  margin-top: 44px;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  white-space: nowrap;
  color: rgba(244,239,232,.5);
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-track span::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ------------------------------------------------------------
   Pricing
   ------------------------------------------------------------ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(194,109,79,.35); }
.price-card.popular {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
}
.popular-tag {
  position: absolute;
  top: -13px; left: 28px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.18rem; margin-bottom: 6px; }
.price {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 560;
  line-height: 1.1;
  margin: 8px 0 4px;
}
.price .cur { font-size: .5em; color: var(--mid); font-weight: 500; margin-right: 4px; }
.price-desc { color: var(--mid); font-size: .93rem; margin: 0 0 18px; }
.price-card ul {
  list-style: none;
  margin: 0 0 22px; padding: 0;
  display: grid;
  gap: 9px;
  font-size: .93rem;
  color: var(--mid);
}
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; }
.price-card ul li svg { flex: none; margin-top: 4px; color: var(--accent); }
.price-card .btn { margin-top: auto; }

.price-card-wide {
  grid-column: 1 / -1;
  background: var(--deep);
  color: #F4EFE8;
  border: 1px solid rgba(200,169,126,.25);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
}
.price-card-wide:hover { border-color: rgba(200,169,126,.55); }
.price-card-wide h3 { color: #FAF7F2; font-size: 1.5rem; }
.price-card-wide .price { color: #FAF7F2; }
.price-card-wide .price .cur, .price-card-wide .price-desc, .price-card-wide ul { color: rgba(244,239,232,.7); }
.price-card-wide ul li svg { color: var(--oak); }
@media (max-width: 760px) { .price-card-wide { grid-template-columns: 1fr; } }

/* Payment steps */
.pay-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: pay;
}
@media (max-width: 760px) { .pay-steps { grid-template-columns: 1fr; } }
.pay-step {
  background: rgba(250,247,242,.04);
  border: 1px solid rgba(244,239,232,.12);
  border-radius: var(--r-xl);
  padding: 28px 26px;
  position: relative;
}
.pay-pct {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 560;
  color: var(--oak);
  line-height: 1;
}
.pay-step h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.pay-step p { font-size: .92rem; margin: 0; }

/* ------------------------------------------------------------
   Timeline (how it works)
   ------------------------------------------------------------ */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--line) 0 0);
}
.timeline-progress {
  position: absolute;
  left: 31px;
  top: 8px;
  width: 2px;
  height: 0;
  background: var(--accent);
  transition: height .2s linear;
}
.t-step {
  position: relative;
  padding: 0 0 clamp(48px, 7vw, 80px) 96px;
}
.t-step:last-child { padding-bottom: 0; }
.t-num {
  position: absolute;
  left: 0; top: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mid);
  transition: border-color .4s ease, color .4s ease, background .4s ease, transform .4s var(--ease-out);
}
.t-step.in .t-num {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}
.t-step h3 { margin-bottom: 8px; }
.t-step p { color: var(--mid); max-width: 34em; }
.t-meta {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
@media (max-width: 560px) {
  .timeline::before, .timeline-progress { left: 23px; }
  .t-step { padding-left: 70px; }
  .t-num { width: 48px; height: 48px; font-size: 1.2rem; }
}

/* ------------------------------------------------------------
   Accordion (FAQ)
   ------------------------------------------------------------ */
.accordion { display: grid; gap: 14px; }
.acc-item {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .3s ease;
}
.acc-item.open { box-shadow: var(--shadow-md); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: none;
  border: none;
  padding: 22px 26px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.acc-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.acc-icon {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: transform .35s var(--ease-out), background .3s ease, color .3s ease;
}
.acc-item.open .acc-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease-out);
}
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; }
.acc-panel p { padding: 0 26px 24px; margin: 0; color: var(--mid); }

/* ------------------------------------------------------------
   Alternating feature sections (what you get)
   ------------------------------------------------------------ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0;
}
.feature + .feature { border-top: 1px solid var(--line-soft); }
.feature:nth-child(even) .feature-art { order: -1; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-art { order: 0; }
  .feature-art { order: -1; }
}
.feature-num {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--accent);
  border: 1.5px solid rgba(194,109,79,.4);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feature p { color: var(--mid); }
.feature-art {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 44px);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.feature-art:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.feature-art svg { width: 100%; height: auto; }

.checklist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--mid); font-size: .98rem; }
.checklist li svg { flex: none; margin-top: 5px; color: var(--accent); }

/* Item-type chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-size: .82rem;
  font-weight: 500;
  color: var(--mid);
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  padding: 6px 13px;
  border-radius: 999px;
  transition: transform .25s var(--ease-out), background .2s ease, color .2s ease;
}
.chip:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* Guarantee strip */
.guarantees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 720px) { .guarantees { grid-template-columns: 1fr; } }
.guarantee {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: rgba(250,247,242,.04);
  border: 1px solid rgba(244,239,232,.12);
  border-radius: var(--r-xl);
  padding: 26px;
}
.guarantee svg { flex: none; color: var(--oak); margin-top: 3px; }
.guarantee h3 { font-size: 1.08rem; margin-bottom: 4px; }
.guarantee p { font-size: .93rem; margin: 0; }

/* Screenshot figure */
.shot-figure { margin: 0; }
.shot-figure .browser { transform: none; animation: none; }
.shot-figure figcaption {
  text-align: center;
  font-size: .88rem;
  color: var(--mid);
  margin-top: 16px;
}

/* ------------------------------------------------------------
   CTA banner
   ------------------------------------------------------------ */
.cta-banner {
  background: var(--deep);
  border-radius: var(--r-2xl);
  padding: clamp(48px, 7vw, 84px) clamp(28px, 5vw, 72px);
  text-align: center;
  color: #F4EFE8;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #FAF7F2; }
.cta-banner p { color: rgba(244,239,232,.72); max-width: 34em; margin-inline: auto; }
.cta-banner .btn-primary { margin-top: 22px; }
.cta-banner .motif { opacity: .12; color: var(--oak); }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--deep);
  color: rgba(244,239,232,.7);
  padding: clamp(56px, 7vw, 84px) 0 36px;
  margin-top: clamp(64px, 9vw, 120px);
}
.footer .logo { color: #FAF7F2; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(244,239,232,.12);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer p { font-size: .93rem; max-width: 30em; }
.footer h4 {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--oak);
  margin: 0 0 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: rgba(244,239,232,.78); text-decoration: none; font-size: .95rem; transition: color .2s ease; }
.footer a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact svg { color: var(--oak); flex: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  font-size: .85rem;
  color: rgba(244,239,232,.45);
}

/* ============================================================
   QUIZ (get-started)
   ============================================================ */
.quiz-page { padding: 130px 0 0; }
.quiz-shell {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-md);
  padding: clamp(26px, 4vw, 52px);
  position: relative;
  overflow: hidden;
}
.quiz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--mid);
}
.quiz-head .q-count { color: var(--accent); font-variant-numeric: tabular-nums; }
.progress {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--oak), var(--accent));
  border-radius: 999px;
  transition: width .5s var(--ease-out);
}

.q-step { display: none; }
.q-step.active { display: block; animation: stepIn .45s var(--ease-out); }
.q-step.leaving { animation: stepOut .3s var(--ease-out) forwards; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: none; }
}
@keyframes stepOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateX(-36px); }
}
.q-step h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; }
.q-help { color: var(--mid); font-size: .95rem; margin-bottom: 26px; }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.quiz-nav .hint { font-size: .82rem; color: var(--mid); display: none; }
@media (min-width: 700px) { .quiz-nav .hint { display: block; } }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* Option cards (generic radio cards) */
.opt-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.opt-grid-wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.opt-card { position: relative; }
.opt-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.opt-card label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  background: var(--bg);
  border: 2px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 18px;
  cursor: pointer;
  transition: transform .3s var(--ease-out), border-color .25s ease, box-shadow .3s var(--ease-out), background .25s ease;
}
.opt-card label:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(194,109,79,.4); }
.opt-card input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt-card input:checked + label {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(194,109,79,.15), var(--shadow-md);
}
.opt-name { font-weight: 600; font-size: .98rem; }
.opt-sub { font-size: .82rem; color: var(--mid); margin-top: -6px; }

/* Style vignettes */
.vignette {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
}
.vignette svg { width: 100%; height: auto; display: block; }

/* layered vignette animation */
.vg-lamp, .vg-sofa, .vg-rug, .vg-art, .vg-plant, .vg-extra {
  transition: transform .6s var(--ease-out), opacity .6s ease;
}
.opt-card label:hover .vg-lamp,
.opt-card input:checked + label .vg-lamp { transform: translateY(-4px); }
.opt-card label:hover .vg-sofa,
.opt-card input:checked + label .vg-sofa { transform: translateX(4px); }
.opt-card label:hover .vg-rug,
.opt-card input:checked + label .vg-rug { transform: translateX(-4px); }
.opt-card label:hover .vg-art,
.opt-card input:checked + label .vg-art { transform: translateY(-3px) rotate(-1.5deg); }
.opt-card label:hover .vg-plant,
.opt-card input:checked + label .vg-plant { transform: rotate(2.5deg); }
.opt-card label:hover .vg-extra,
.opt-card input:checked + label .vg-extra { transform: translateY(-3px) scale(1.04); }
.vg-plant { transform-origin: bottom center; }
.vg-extra { transform-origin: center; }

/* Colour swatches */
.swatches { display: flex; gap: 8px; }
.swatches i {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(31,27,22,.12);
  transition: transform .3s var(--ease-out);
}
.opt-card label:hover .swatches i { transform: translateY(-3px); }
.opt-card label:hover .swatches i:nth-child(2) { transition-delay: .04s; }
.opt-card label:hover .swatches i:nth-child(3) { transition-delay: .08s; }
.opt-card label:hover .swatches i:nth-child(4) { transition-delay: .12s; }

/* Wood tone swatch */
.wood-swatch {
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(31,27,22,.1);
}

/* Textareas + inputs */
.q-field { display: grid; gap: 8px; margin-bottom: 18px; }
.q-field label { font-weight: 600; font-size: .95rem; }
.q-field .sub { font-size: .85rem; color: var(--mid); font-weight: 400; }
textarea, .text-input, select.text-input {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--line-soft);
  border-radius: 14px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { min-height: 130px; resize: vertical; }
textarea:focus, .text-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(194,109,79,.14);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Submit panel */
.submit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.copy-ok { font-size: .88rem; color: var(--accent); font-weight: 600; align-self: center; opacity: 0; transition: opacity .3s ease; }
.copy-ok.show { opacity: 1; }
.quiz-reassure {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--bg-alt);
  border-radius: 14px;
  font-size: .9rem;
  color: var(--mid);
}
.error-msg { color: #B0432A; font-size: .88rem; font-weight: 600; margin-top: 10px; display: none; }
.error-msg.show { display: block; }

/* What happens next (dark strip on quiz page) */
.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 720px) { .next-steps { grid-template-columns: 1fr; } }
.next-step { display: flex; gap: 16px; align-items: flex-start; }
.next-step svg { flex: none; color: var(--oak); margin-top: 4px; }
.next-step h3 { font-size: 1.02rem; margin-bottom: 4px; }
.next-step p { font-size: .9rem; margin: 0; }

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .browser { transform: none; animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ============================================================
   PORTFOLIO PAGE (portfolio.html) — appended section.
   Everything below is scoped to .pf-* classes; existing rules
   above are untouched.
   ============================================================ */
.pf-hero { padding-bottom: clamp(40px, 5vw, 64px); }

.pf-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.pf-span-5 { grid-column: span 5; }
.pf-span-6 { grid-column: span 6; }
.pf-span-7 { grid-column: span 7; }
@media (max-width: 880px) {
  .pf-span-5, .pf-span-6, .pf-span-7 { grid-column: 1 / -1; }
}

.pf-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .35s var(--ease-out), border-color .3s ease;
}
.pf-card:hover { box-shadow: var(--shadow-md); border-color: rgba(194,109,79,.3); }

.pf-canvas-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(120% 90% at 50% 0%, #FFFDFA 0%, var(--bg-alt) 62%, #E9E1D4 100%);
  overflow: hidden;
}
.pf-span-7 .pf-canvas-wrap { aspect-ratio: 16 / 10; }

/* per-scene tint behind the diorama */
.pf-card[data-scene="jvc"] .pf-canvas-wrap     { background: radial-gradient(120% 90% at 50% 0%, #FCFAF6 0%, #F0EAE0 62%, #E5DCCC 100%); }
.pf-card[data-scene="downtown"] .pf-canvas-wrap{ background: radial-gradient(120% 90% at 50% 0%, #FDF8F2 0%, #F3E8DC 62%, #E8D6C2 100%); }
.pf-card[data-scene="villa"] .pf-canvas-wrap   { background: radial-gradient(120% 90% at 50% 0%, #FBFAF6 0%, #EEEDE2 62%, #DFDECB 100%); }
.pf-card[data-scene="airbnb"] .pf-canvas-wrap  { background: radial-gradient(120% 90% at 50% 0%, #FBF8F4 0%, #EDE7E2 62%, #DCD4CE 100%); }
.pf-card[data-scene="balcony"] .pf-canvas-wrap { background: radial-gradient(120% 100% at 50% 0%, #F4E9DB 0%, #DCC9B4 55%, #43403F 100%); }

.pf-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}
.pf-canvas:active { cursor: grabbing; }

.pf-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(194,109,79,.35);
  pointer-events: none;
  z-index: 2;
}

.pf-hint {
  position: absolute;
  bottom: 12px; right: 14px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--mid);
  background: rgba(250,247,242,.78);
  border: 1px solid var(--line-soft);
  padding: 4px 11px;
  border-radius: 999px;
  pointer-events: none;
  opacity: .85;
  z-index: 2;
}
.pf-card[data-scene="balcony"] .pf-hint { background: rgba(43,39,36,.6); color: rgba(244,239,232,.85); border-color: rgba(244,239,232,.2); }

.pf-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 24px;
}
.pf-meta h3 { font-size: 1.25rem; margin-bottom: 4px; }
.pf-spec { color: var(--mid); font-size: .92rem; margin: 0; }
.pf-tag {
  flex: none;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(194,109,79,.1);
  border: 1px solid rgba(194,109,79,.25);
  padding: 5px 13px;
  border-radius: 999px;
  white-space: nowrap;
  margin-top: 2px;
}

/* WebGL-unavailable fallback */
.pf-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--bg-alt) 0%, #E3D7C4 55%, var(--oak) 130%);
}
.pf-fallback span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 560;
  color: var(--ink);
  text-align: center;
  padding: 0 24px;
}
/* ============ end portfolio section ============ */

/* ============================================================
   PORTFOLIO v2 — dollhouse orbit videos (.pf-media block).
   The older .pf-canvas rules above are kept for the archived
   Three.js page; everything here is additive.
   ============================================================ */
.pf-media {
  position: relative;
  aspect-ratio: 16 / 11;
  background: radial-gradient(120% 90% at 50% 0%, #FFFDFA 0%, var(--bg-alt) 62%, #E9E1D4 100%);
  overflow: hidden;
  cursor: zoom-in;
}
.pf-span-7 .pf-media { aspect-ratio: 16 / 10; }

.pf-poster,
.pf-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-close { display: none; }
.pf-expanded-meta { display: none; }

/* ---- expanded (full-page) state: same element, fixed overlay,
   no DOM moves so playback never restarts ---- */
body.pf-lock { overflow: hidden; }

.pf-media.pf-expanded {
  position: fixed;
  inset: 0;
  z-index: 200;
  aspect-ratio: auto;
  border-radius: 0;
  background: #14100b;
  cursor: default;
}
.pf-media.pf-expanded .pf-poster,
.pf-media.pf-expanded .pf-video { object-fit: contain; }
.pf-media.pf-expanded .pf-video { cursor: grab; touch-action: none; }
.pf-media.pf-expanded .pf-video:active { cursor: grabbing; }

.pf-media.pf-expanded .pf-close {
  display: grid;
  place-items: center;
  position: absolute;
  top: 18px; right: 18px;
  width: 46px; height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(250,247,242,.94);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.pf-media.pf-expanded .pf-close:hover { background: #fff; }

.pf-media.pf-expanded .pf-expanded-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  left: 26px; bottom: 22px;
  z-index: 3;
  color: #FAF7F2;
  pointer-events: none;
}
.pf-media.pf-expanded .pf-expanded-meta b {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.45rem;
}
.pf-media.pf-expanded .pf-expanded-meta span {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .65;
}

.pf-media.pf-expanded .pf-hint {
  bottom: 26px; right: 22px;
  background: rgba(250,247,242,.16);
  color: rgba(250,247,242,.9);
  border-color: rgba(250,247,242,.25);
}
.pf-media.pf-expanded .pf-badge { top: 20px; left: 22px; }

@media (max-width: 640px) {
  .pf-media.pf-expanded .pf-expanded-meta b { font-size: 1.15rem; }
  .pf-media.pf-expanded .pf-close { top: 12px; right: 12px; }
}
/* ============ end portfolio v2 ============ */
