/* ============================================================
   3D Spaces by Amenify — design tokens & global styles
   Swap the brand tokens below to match Amenify's official palette.
   ============================================================ */
:root {
  /* ============================================================
     Theme extracted from amenify.ai (live computed styles, Jun 2026):
     Plus Jakarta Sans · brand #2563eb · slate ink #0f172a / #64748b
     pill buttons (9999px) with blue-200 glow · slate-50 surfaces ·
     dramatic soft card shadow · translucent blurred nav.
     ============================================================ */
  --brand: #2563EB;          /* amenify primary blue */
  --brand-dark: #1D4ED8;     /* hover / pressed */
  --brand-navy: #0f1f4b;
  --brand-light: #eff6ff;    /* tint fills (amenify blue-50) */
  --blue-mid: #3b82f6;       /* amenify mid blue */
  --blue-light: #60a5fa;     /* amenify accents */
  --blue-soft: #93c5fd;      /* amenify on-dark accents */
  --accent: #f59e0b;
  --accent-purple: #7c3aed;  /* amenify hero gradient end */
  --accent-green: #16a34a;   /* amenify success */
  --ink: #0f172a;            /* amenify slate-900 */
  --ink-soft: #64748B;       /* amenify slate-500 */
  --ink-mute: #94a3b8;       /* amenify slate-400 */
  --surface: #ffffff;
  --surface-alt: #f8fafc;    /* amenify slate-50 */
  --line: rgba(15, 23, 42, 0.10);
  --line-solid: #e2e8f0;     /* amenify slate-200 border */
  --radius: 14px;
  --radius-lg: 22px;
  --btn-radius: 9999px;      /* amenify pill buttons */
  --btn-shadow: 0 10px 15px -3px rgba(191,219,254,0.9), 0 4px 6px -4px rgba(191,219,254,0.9);
  --shadow: 0 2px 4px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.04);
  --shadow-lg: 0 1px 0 0 rgba(15,23,42,0.04), 0 18px 40px -12px rgba(15,23,42,0.22);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--surface); line-height: 1.55; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }
.hidden { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 0.92rem var(--font); padding: 11px 26px; border-radius: var(--btn-radius);
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease;
  white-space: nowrap; letter-spacing: -0.01em;
}
.btn-lg { padding: 14px 32px; font-size: 1.02rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--btn-shadow); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 14px 22px -4px rgba(147,197,253,0.95), 0 6px 10px -6px rgba(147,197,253,0.95); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-alt); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 8px 20px -8px rgba(15,23,42,0.25); }
.btn-light:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 14px 26px -8px rgba(15,23,42,0.3); }
.btn-outline-light { background: rgba(255,255,255,0.05); color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: rgba(255,255,255,0.14); }
.btn-danger { background: #b3261e; color: #fff; }
.btn-danger:hover { background: #8c1d17; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid rgba(226,232,240,0.8);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
/* the header bar may span a touch wider than the 1180px body content so the
   brand + full nav + signed-in actions never get cramped on large screens */
.site-header .container { width: min(1320px, 94%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; white-space: nowrap; flex: none; }
.brand-logo { height: 30px; width: auto; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--brand); color: #fff; font-size: 0.95rem; letter-spacing: 0.5px;
}
.brand-text em { font-style: normal; font-weight: 500; color: var(--ink-soft); font-size: 0.8em; }
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); padding: 4px 8px; }

/* room builder banner */
.builder-banner {
  display: flex; align-items: center; gap: 28px; padding: 28px 32px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.builder-banner:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.builder-banner-art svg { width: 110px; height: 84px; }
.builder-banner h2 { font-size: 1.35rem; margin-bottom: 4px; }
.builder-banner .btn { margin-left: auto; white-space: nowrap; }
.main-nav { display: flex; gap: clamp(8px, 1.2vw, 18px); margin-left: 6px; min-width: 0; overflow: hidden; }
.main-nav a { font-weight: 500; color: var(--ink-soft); padding: 6px 2px; border-bottom: 2px solid transparent; white-space: nowrap; font-size: clamp(0.84rem, 1vw, 0.95rem); }
.main-nav a:hover { color: var(--brand); border-color: var(--brand); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; white-space: nowrap; }
/* signed-in state swaps this button to "name · Sign out". Only the name ellipsizes
   (.acct-name); the "· Sign out" affordance always stays fully visible. */
#signin-btn { max-width: 280px; overflow: hidden; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 0; }
.acct-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-sep { flex: none; white-space: nowrap; margin-left: 5px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: 0; background: linear-gradient(120deg, #0f1f4b, #1e40af 55%, #3b82f6); }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7,15,38,0.78) 0%, rgba(7,15,38,0.45) 55%, rgba(7,15,38,0.25) 100%); }
.hero-content { position: relative; z-index: 2; padding: 90px 0; max-width: 760px; }
.hero-kicker { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.22em; color: #93c5fd; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.025em; }
.hero-sub { margin-top: 20px; font-size: clamp(1.05rem, 2vw, 1.28rem); color: rgba(255,255,255,0.92); max-width: 560px; }
.hero-ctas { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-chips { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip-stat {
  font-size: 0.8rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}
/* hero app-window card */
.hero-split { display: flex; align-items: center; gap: 48px; max-width: none; }
.hero-split > div:first-child { max-width: 640px; }
.hero-app {
  flex: 1; min-width: 0; max-width: 620px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.18);
  transform: rotate(1.2deg);
}
.hero-app-bar { display: flex; gap: 6px; padding: 10px 12px; background: #0b1430; }
.hero-app-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.hero-app-bar span:first-child { background: #f87171; }
.hero-app-bar span:nth-child(2) { background: #fbbf24; }
.hero-app-bar span:nth-child(3) { background: #34d399; }
.hero-app img, .hero-app video { width: 100%; display: block; }
@media (max-width: 1100px) { .hero-app { display: none; } }

.scroll-cue {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 1.6rem; z-index: 2; animation: bob 1.8s ease-in-out infinite; opacity: 0.85;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* hero entrance animation */
.rise { opacity: 0; transform: translateY(22px); animation: riseIn 0.7s ease forwards; }
.rise.d1 { animation-delay: 0.12s; }
.rise.d2 { animation-delay: 0.26s; }
.rise.d3 { animation-delay: 0.4s; }
.rise.d4 { animation-delay: 0.54s; }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- product marquee ---------- */
.product-strip { background: var(--surface); border-bottom: 1px solid var(--line); padding: 26px 0 18px; overflow: hidden; }
.marquee { display: flex; gap: 18px; width: max-content; animation: slide 60s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee .mq-item {
  width: 110px; height: 110px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.marquee .mq-item:hover { transform: translateY(-4px) scale(1.04); box-shadow: var(--shadow); }
.marquee img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.strip-caption { text-align: center; color: var(--ink-soft); font-size: 0.85rem; margin-top: 16px; }

/* ---------- shared section flourishes ---------- */
.eyebrow { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.eyebrow.light { color: #93c5fd; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- furnished rooms with scene imagery ---------- */
.furnished-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.furnished-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; border: none;
  aspect-ratio: 4/3; text-align: left; background: var(--surface-alt);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.furnished-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.furnished-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.furnished-card:hover img { transform: scale(1.05); }
.furnished-label {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 44px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(7,15,38,0.78)); color: #fff;
}
.furnished-label h3 { font-size: 1.15rem; font-weight: 800; }
.furnished-label p { font-size: 0.82rem; opacity: 0.9; }
.furnished-cta {
  position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(255,255,255,0.92); color: var(--ink);
  font-size: 0.75rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; opacity: 0; transition: opacity 0.2s ease;
}
.furnished-card:hover .furnished-cta { opacity: 1; }

/* ---------- navy builder banner ---------- */
.section-navy { background: linear-gradient(120deg, #0f1f4b, #1e3a8a); color: #fff; }
.builder-banner-v2 { display: flex; align-items: center; gap: 48px; }
.builder-banner-v2 h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.builder-banner-v2 p { color: rgba(255,255,255,0.85); max-width: 480px; margin-bottom: 22px; }
.shape-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; flex: none; }
.shape-row svg { width: 92px; height: 70px; }
.shape-row svg rect, .shape-row svg path {
  fill: rgba(255,255,255,0.12); stroke: #93c5fd; stroke-width: 3;
  transition: fill 0.2s ease;
}
.shape-row svg:hover rect, .shape-row svg:hover path { fill: rgba(147,197,253,0.35); }

/* ---------- steps ---------- */
.step-icon { font-size: 2rem; margin-bottom: 10px; }

/* ---------- empty room cards ---------- */
.empty-room-card {
  --accent: var(--brand);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 22px; cursor: pointer; text-align: left; font-family: var(--font);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex; flex-direction: column; gap: 4px;
}
.empty-room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.empty-room-icon {
  width: 64px; height: 64px; border-radius: 16px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, white);
}
.empty-room-icon svg { width: 38px; height: 38px; stroke: var(--accent); }
.empty-room-card h3 { font-size: 1.08rem; font-weight: 800; color: var(--ink); }
.empty-room-card p { font-size: 0.84rem; color: var(--ink-soft); }
.empty-room-cta { margin-top: 12px; font-size: 0.84rem; font-weight: 700; color: var(--accent); opacity: 0; transition: opacity 0.18s ease; }
.empty-room-card:hover .empty-room-cta { opacity: 1; }

/* ---------- stats band ---------- */
.stats-band { background: var(--surface-alt); border-top: 1px solid var(--line); padding: 46px 0; }
.stats-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; color: var(--brand); }
.stat span { color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head.center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.025em; }
.section-head h2 em { font-style: italic; color: var(--brand); }

/* ---------- feature showcase ---------- */
.feature-showcase .section-head { margin-bottom: 44px; max-width: 680px; margin-left: auto; margin-right: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-shot {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, #eef1f6, #e3e7ee);
  display: flex; align-items: center; justify-content: center;
}
.feature-shot > img { width: 100%; height: 100%; object-fit: cover; }
.badge-360 {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(10,14,26,0.78); color: #fff; font: 800 0.8rem var(--font);
  padding: 6px 12px; border-radius: 999px; letter-spacing: 0.02em; backdrop-filter: blur(4px);
}
/* AR phone frame */
.feature-ar { background: linear-gradient(135deg, #1e2b4d, #2563eb); }
.phone-frame {
  position: relative; width: 38%; aspect-ratio: 9 / 19; margin: 18px 0;
  border: 5px solid #0a0e1a; border-radius: 26px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; }
.ar-chip {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: #fff; color: var(--brand); font: 800 0.72rem var(--font);
  padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.feature-text { padding: 22px 24px 26px; flex: 1; position: relative; }
.feature-step {
  position: absolute; top: -20px; left: 24px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(37,99,235,0.4); border: 3px solid var(--surface);
}
.feature-text h3 { font-size: 1.2rem; font-weight: 800; margin: 10px 0 8px; letter-spacing: -0.01em; }
.feature-text h3 em { font-style: italic; color: var(--brand); }
.feature-text p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; margin-bottom: 14px; }
.feature-link { font-weight: 700; color: var(--brand); font-size: 0.92rem; }
.feature-link:hover { text-decoration: underline; }
@media (max-width: 1040px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .phone-frame { width: 46%; } }

/* ---------- status banner ---------- */
.status-banner {
  margin-bottom: 22px; padding: 12px 18px; border-radius: var(--radius);
  background: var(--brand-light); color: var(--brand-dark); font-weight: 500; font-size: 0.92rem;
}
.status-banner.error { background: #fdecea; color: #8c1d17; }

/* ---------- designs grid ---------- */
.designs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.design-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.design-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.design-thumb { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; }
.design-thumb .room-badge {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.92);
  color: var(--ink); font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.design-body { padding: 16px 18px 18px; }
.design-body h3 { font-size: 1.05rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.design-meta { margin-top: 4px; font-size: 0.82rem; color: var(--ink-soft); }
.design-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.design-actions .btn { padding: 7px 11px; font-size: 0.8rem; flex: none; min-width: 0; }

.card-skeleton { border-radius: var(--radius-lg); background: linear-gradient(90deg, #eee 25%, #f6f6f6 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; min-height: 260px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; border: 2px dashed var(--line); border-radius: var(--radius-lg); }
.empty-art { font-size: 3.4rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 6px; }
.empty-state .btn { margin-top: 18px; }

/* ---------- showrooms ---------- */
.showroom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.showroom-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  aspect-ratio: 4/5; display: flex; align-items: flex-end;
  transition: transform 0.18s ease, box-shadow 0.18s ease; border: none; text-align: left;
}
.showroom-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.showroom-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 4.4rem; }
.showroom-label {
  position: relative; z-index: 2; width: 100%; padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.62));
  color: #fff;
}
.showroom-label h3 { font-size: 1.1rem; font-weight: 700; }
.showroom-label p { font-size: 0.82rem; opacity: 0.85; }

/* ---------- steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; background: var(--surface-alt); }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-brand { white-space: nowrap; }
.footer-nav { display: flex; gap: clamp(14px, 2vw, 26px); flex-wrap: wrap; margin: 0 auto; }
.footer-nav a { color: var(--ink-soft); font-size: 0.9rem; font-weight: 500; white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; }
.footer-nav a:hover { color: var(--brand); border-color: var(--brand); }
.footer-inner > p { margin-left: auto; white-space: nowrap; }

/* ---------- modal ---------- */
/* the global `* { margin: 0 }` reset kills the browser's native dialog
   centering (`dialog { margin: auto }`) — restore it explicitly */
dialog { margin: auto; }
.modal { border: none; border-radius: var(--radius-lg); padding: 0; box-shadow: var(--shadow-lg); width: min(440px, 92vw); }
.modal::backdrop { background: rgba(0,0,0,0.45); }
.modal form { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.modal h3 { font-size: 1.3rem; }
.modal label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.modal label[hidden] { display: none; } /* display:flex above would otherwise defeat the hidden attribute */
.modal input, .modal select {
  font: 400 1rem var(--font); padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
}
.modal input:focus, .modal select:focus { outline: 2px solid var(--brand); border-color: transparent; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.modal-wide { width: min(960px, 94vw); max-height: 86vh; padding: 24px; overflow-y: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head .icon-btn { border: none; background: var(--surface-alt); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 0.9rem; }
.design-more-card {
  display: flex; align-items: center; justify-content: center; width: 100%;
  margin-top: 16px; padding: 14px; cursor: pointer;
  font: 600 0.92rem var(--font); color: var(--brand);
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-lg);
}
.design-more-card:hover { border-color: var(--brand); background: #eff6ff; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-split { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 0; }
  .hero-content { padding: 70px 0 60px; }
  .builder-banner-v2 { flex-direction: column; align-items: flex-start; gap: 28px; }
  .shape-row svg { width: 72px; height: 56px; }
}

/* Collapse the inline nav into the hamburger before brand + nav + the (wider
   when signed-in "name · Sign out") actions block ever get cramped. The signed-in
   header needs ~1212px to lay out inline; below 1240 we use the hamburger menu. */
@media (max-width: 1240px) {
  .hamburger { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 0; box-shadow: var(--shadow);
    overflow: visible;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 24px; border-bottom: none; font-size: 1rem; }
}

@media (max-width: 860px) {
  .hero { min-height: 64vh; }
  .header-actions .btn-primary { padding: 8px 14px; font-size: 0.85rem; }
  .builder-banner { flex-direction: column; text-align: center; gap: 16px; }
  .builder-banner .btn { margin-left: 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- responsive: phones ---------- */
@media (max-width: 560px) {
  .header-inner { gap: 10px; }
  .brand-text { display: none; }
  /* On phones the header is brand + Sign in + menu. "Start designing" is hidden
     (redundant with the hero CTAs, the empty-room cards, and the menu) — keeping
     all three buttons overflowed the viewport ~15px. NOTE: hide via #id so it
     beats the #signin-btn id-specificity rule; a .class rule would be ignored. */
  #signin-btn { max-width: 150px; }
  .header-actions .btn-primary { display: none; }
  .hero-content { padding: 54px 0 48px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-sub { font-size: 1rem; }
  .hero-ctas .btn-lg { padding: 12px 18px; font-size: 0.95rem; width: 100%; justify-content: center; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-chips { gap: 8px; }
  .chip-stat { font-size: 0.72rem; padding: 6px 10px; }
  .scroll-cue { display: none; }
  .marquee .mq-item { width: 84px; height: 84px; }
  .section { padding: 48px 0; }
  .designs-grid { grid-template-columns: 1fr; }
  .furnished-grid { grid-template-columns: 1fr; }
  .showroom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .empty-room-card { padding: 18px 14px; }
  .empty-room-icon { width: 48px; height: 48px; }
  .empty-room-icon svg { width: 28px; height: 28px; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .builder-banner-v2 h2 { font-size: 1.3rem; }
  .shape-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .shape-row svg { width: 100%; height: auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner > p { margin-left: 0; }
}

/* ===== whole-home flow band (homepage) ===== */
#home-flow .section-head.center { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flow-card { background: var(--surface, #fff); border: 1px solid var(--line, rgba(15,23,42,.1)); border-radius: 18px; padding: 0 0 18px; overflow: hidden; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.flow-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15,23,42,.12); }
.flow-shot { aspect-ratio: 4/3; overflow: hidden; background: #eef2f8; border-bottom: 1px solid var(--line, rgba(15,23,42,.08)); }
.flow-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flow-card:first-child .flow-shot img { object-position: top center; }
.flow-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#2563eb,#7c4dff); color: #fff; font-weight: 800; margin: 16px 0 4px 18px; }
.flow-card h3 { margin: 4px 18px 6px; font-size: 1.12rem; letter-spacing: -.01em; }
.flow-card p { margin: 0 18px 12px; color: var(--ink-soft, #64748b); font-size: .92rem; line-height: 1.5; }
.flow-card .feature-link { margin: auto 18px 0; align-self: flex-start; font-weight: 700; color: var(--brand, #2563eb); text-decoration: none; }
.flow-card .feature-link:hover { text-decoration: underline; }
@media (max-width: 980px) { .flow-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flow-grid { grid-template-columns: 1fr; } }

/* ===== two ways to start ===== */
.start-paths .section-head.center { text-align:center; max-width:680px; margin:0 auto 30px; }
.paths-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.path-card { background:var(--surface,#fff); border:1px solid var(--line,rgba(15,23,42,.1)); border-radius:20px; padding:30px 28px; transition:transform .18s, box-shadow .18s; display:flex; flex-direction:column; }
.path-card:hover { transform:translateY(-4px); box-shadow:0 20px 50px rgba(15,23,42,.12); }
.path-home { background:linear-gradient(165deg,#eef3ff, #ffffff 60%); border-color:#dbe6ff; }
.path-room { background:linear-gradient(165deg,#f4f0ff, #ffffff 60%); border-color:#e6dcff; }
.path-icon { font-size:2.2rem; margin-bottom:6px; }
.path-card h3 { font-size:1.35rem; letter-spacing:-.02em; margin-bottom:8px; }
.path-card > p { color:var(--ink-soft,#64748b); line-height:1.55; margin-bottom:14px; }
.path-list { list-style:none; padding:0; margin:0 0 22px; display:flex; flex-direction:column; gap:9px; }
.path-list li { font-size:.92rem; font-weight:600; color:var(--ink,#0a0e1a); }
.path-ctas { margin-top:auto; display:flex; gap:10px; flex-wrap:wrap; }
.path-ctas .btn { font-weight:700; }
@media (max-width:760px){ .paths-grid { grid-template-columns:1fr; } }
