/* Shared styles for the pages scripts/build-seo-pages.mjs writes: the topic
   pages (floor plan maker, 3D home design, kitchen planner, room planner, AI
   home design) in every language, and the /de/, /fr/ and /es/ landing pages.
   The English home page keeps its own inline copy because it also carries the
   scroll film; the tokens below mirror it and the app. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/pjs.woff2') format('woff2');
}
:root {
  --bg: #0a0d14;
  --surface: #141924;
  --surface-2: #1a2030;
  --border: #232b3a;
  --text: #eef1f6;
  --text-2: #a3adbe;
  --brand: #0d63f8;
  --brand-2: #3d8bff;
  --grad: linear-gradient(135deg, #0d63f8, #3d8bff);
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 13, 20, 0.72);
  border-bottom: 1px solid rgba(35, 43, 58, 0.6);
}
.nav { display: flex; align-items: center; gap: 14px; height: 64px; }
.nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.nav .logo img { width: 32px; height: 32px; border-radius: 9px; }
.nav .links { display: flex; gap: 18px; margin-left: 26px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.nav .links a { white-space: nowrap; }
.nav .links a:hover, .nav .links a[aria-current] { color: var(--text); }
.nav .spacer { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap;
  padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  border: 1px solid var(--border); color: var(--text); background: var(--surface);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); background: var(--surface-2); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -10px rgba(13, 99, 248, 0.65); }
.nav .btn { padding: 9px 18px; font-size: 13.5px; }

.hero { padding: 132px 0 40px; text-align: center; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: -80px 0 0; pointer-events: none;
  background: radial-gradient(720px 340px at 50% 0%, rgba(13, 99, 248, 0.22), transparent 70%);
}
.hero > * { position: relative; }
.crumbs { font-size: 13px; color: var(--text-2); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }
.hero h1 { font-size: clamp(34px, 5.6vw, 56px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; max-width: 860px; margin: 0 auto; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { margin: 20px auto 0; max-width: 660px; color: var(--text-2); font-size: clamp(16px, 2.1vw, 18.5px); }
.ctas { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.play-badge { width: 210px; }
.hero-shot { margin: 44px auto 0; max-width: 980px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 40px 90px -40px rgba(13, 99, 248, 0.5); }
.hero-shot img { width: 100%; }

section.block { padding: 72px 0; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-2); }
h2.title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; }
p.lead { color: var(--text-2); font-size: 17px; max-width: 680px; margin-top: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-top: 56px; }
.split:nth-of-type(even) .pic { order: 2; }
.split .pic { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.split .pic.phone { max-width: 300px; margin: 0 auto; border-radius: 30px; }
.split h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.split p { color: var(--text-2); margin-top: 10px; font-size: 16px; }
.split ul { margin-top: 14px; padding-left: 20px; color: var(--text-2); font-size: 15.5px; }
.split li { margin: 6px 0; }
.split li b { color: var(--text); }

.band { background: var(--surface); border-block: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 36px; counter-reset: step; }
.step { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); font-weight: 800; margin-bottom: 12px; }
.step h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.step p { color: var(--text-2); font-size: 14.5px; margin-top: 6px; }

.faq { margin-top: 30px; display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; }
.faq summary { font-weight: 700; font-size: 16.5px; cursor: pointer; }
.faq details p { color: var(--text-2); margin-top: 10px; font-size: 15.5px; }

.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 30px; }
.more a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; transition: transform 0.2s, border-color 0.2s; }
.more a:hover { transform: translateY(-3px); border-color: #31405c; }
.more b { display: block; font-size: 16.5px; letter-spacing: -0.01em; }
.more span { color: var(--text-2); font-size: 14px; }

/* Topic cards on the language landing pages: the home page's "explore" cards.
   Narrower minimum than there, so that five cards share one row on a desktop. */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 44px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: transform 0.2s, border-color 0.2s; }
.feature:hover { transform: translateY(-4px); border-color: #31405c; }
.feature .shot { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.feature .shot img { width: 100%; height: 100%; object-fit: cover; }
.feature .body { padding: 18px 20px 22px; }
.feature h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.feature p { color: var(--text-2); font-size: 14px; margin-top: 6px; }

.get { text-align: center; border: 1px solid var(--border); border-radius: 26px; padding: 60px 26px; background: radial-gradient(560px 280px at 50% -10%, rgba(13, 99, 248, 0.28), transparent 70%), var(--surface); }
.get h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.get p { color: var(--text-2); max-width: 560px; margin: 12px auto 0; }

footer { padding: 40px 0 56px; color: var(--text-2); font-size: 14px; }
footer .row { display: flex; gap: 14px 22px; align-items: center; flex-wrap: wrap; }
footer a:hover { color: var(--text); }
footer .spacer { flex: 1; }
/* The same page in the other languages. */
footer .langs { margin-top: 18px; font-size: 13.5px; }
footer .langs a { margin: 0 4px; }
footer .langs a:first-child { margin-left: 0; }
footer .langs a[aria-current] { color: var(--text); font-weight: 700; }

/* Six links and two buttons do not fit a narrow desktop window. The Play button
   goes first (its badge is in the hero just below), then the links. */
@media (min-width: 1011px) and (max-width: 1150px) { .nav .btn:not(.primary) { display: none; } }
@media (max-width: 1010px) { .nav .links { display: none; } }
@media (max-width: 760px) {
  .nav .btn:not(.primary) { display: none; }
  .hero { padding-top: 112px; }
  section.block { padding: 56px 0; }
  .split { grid-template-columns: 1fr; gap: 22px; margin-top: 40px; }
  .split:nth-of-type(even) .pic { order: 0; }
}
