/* NestAI landing — light "paper & plan" look from the app (ui/theme/Color.kt): the Home's lavender ground #F7F6FF,
   primary #6969FF / #4747AD / #373785, text #1E1E1E / #616161, the pastel gradient tiles of the Home screen, and the
   3D Home Planner's grid paper. Bricolage Grotesque for display, Inter for text. Logical properties throughout (RTL). */

:root {
  --bg: #f7f6ff;
  --paper: #ffffff;
  --grid: rgba(105, 105, 255, .07);
  --grid-major: rgba(105, 105, 255, .12);
  --ink: #1e1e1e;
  --ink-2: #475467;
  --ink-3: #616161;
  --muted: #8a88a3;
  --line: #e7e5f6;
  --line-2: #d9d6f0;
  --p50: #f1f0ff;
  --p100: #dcd9f4;
  --p200: #c9c9ff;
  --p400: #8181ff;
  --p500: #6969ff;
  --p600: #5b4cf0;
  --p700: #4747ad;
  --p800: #373785;
  --violet: #6240ed;
  --orange: #ff8a3d;
  --cyan: #52b8e8;
  --grad: linear-gradient(100deg, #6969ff 0%, #8f5cff 52%, #d978c9 100%);
  --grad-btn: linear-gradient(135deg, #7a7aff 0%, #6240ed 100%);
  --shadow-sm: 0 1px 2px rgba(38, 38, 92, .06), 0 2px 8px rgba(38, 38, 92, .05);
  --shadow: 0 2px 6px rgba(38, 38, 92, .05), 0 12px 32px rgba(55, 55, 133, .1);
  --shadow-lg: 0 6px 18px rgba(38, 38, 92, .08), 0 28px 64px rgba(55, 55, 133, .16);
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --f-display: 'Bricolage Grotesque', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --tone-lilac: linear-gradient(165deg, #f6e6f6 0%, #d9cff9 55%, #bcb7fb 100%);
  --tone-peach: linear-gradient(165deg, #ffe6da 0%, #fcc9c4 55%, #f6a9b6 100%);
  --tone-apricot: linear-gradient(165deg, #fdeccb 0%, #fbc999 60%, #f7a774 100%);
  --tone-mint: linear-gradient(165deg, #e6f6cf 0%, #b7ead0 55%, #86dcc4 100%);
  --tone-sky: linear-gradient(165deg, #c3d2fb 0%, #dcd2f7 55%, #f3cdea 100%);
  --tone-aqua: linear-gradient(165deg, #c4f1ea 0%, #bccff3 55%, #aea8f6 100%);
  --tone-sage: linear-gradient(165deg, #cfe6c6 0%, #b5d8ac 60%, #9ec996 100%);
  --tone-rose: linear-gradient(165deg, #fde6ee 0%, #f8cbdc 60%, #f1b2c9 100%);
  --tone-gold: linear-gradient(165deg, #fff3cf 0%, #ffe0a0 60%, #ffcb73 100%);
}

/* scripts Inter / Bricolage don't cover: the Noto face loaded for that language (landing_head.hbs) */
html:lang(ar), html:lang(fa), html:lang(ur) { --f-text: 'Noto Sans Arabic', system-ui, sans-serif; --f-display: var(--f-text); }
html:lang(he) { --f-text: 'Noto Sans Hebrew', system-ui, sans-serif; --f-display: var(--f-text); }
html:lang(hi), html:lang(mr), html:lang(mai) { --f-text: 'Noto Sans Devanagari', system-ui, sans-serif; --f-display: var(--f-text); }
html:lang(bn), html:lang(as) { --f-text: 'Noto Sans Bengali', system-ui, sans-serif; --f-display: var(--f-text); }
html:lang(gu) { --f-text: 'Noto Sans Gujarati', system-ui, sans-serif; --f-display: var(--f-text); }
html:lang(pa) { --f-text: 'Noto Sans Gurmukhi', system-ui, sans-serif; --f-display: var(--f-text); }
html:lang(or) { --f-text: 'Noto Sans Oriya', system-ui, sans-serif; --f-display: var(--f-text); }
html:lang(ta) { --f-text: 'Noto Sans Tamil', system-ui, sans-serif; --f-display: var(--f-text); }
html:lang(te) { --f-text: 'Noto Sans Telugu', system-ui, sans-serif; --f-display: var(--f-text); }
html:lang(kn) { --f-text: 'Noto Sans Kannada', system-ui, sans-serif; --f-display: var(--f-text); }
html:lang(ml) { --f-text: 'Noto Sans Malayalam', system-ui, sans-serif; --f-display: var(--f-text); }
html:lang(th) { --f-text: 'Noto Sans Thai', system-ui, sans-serif; --f-display: var(--f-text); }
html:lang(km) { --f-text: 'Noto Sans Khmer', system-ui, sans-serif; --f-display: var(--f-text); }
html:lang(my) { --f-text: 'Noto Sans Myanmar', system-ui, sans-serif; --f-display: var(--f-text); }
html:lang(ko) { --f-text: 'Noto Sans KR', system-ui, sans-serif; --f-display: var(--f-text); }
html:lang(zh) { --f-text: 'Noto Sans SC', system-ui, sans-serif; --f-display: var(--f-text); }
html:lang(ja) { --f-text: 'Noto Sans JP', system-ui, sans-serif; --f-display: var(--f-text); }
/* Cyrillic / Greek titles: Bricolage has no such letters, Inter keeps them in one face */
html:lang(ru), html:lang(uk), html:lang(bg), html:lang(sr), html:lang(mk), html:lang(kk), html:lang(el) { --f-display: var(--f-text); }
/* stacking scripts need more air, and no letter-spacing tricks */
html:is(:lang(hi), :lang(mr), :lang(mai), :lang(bn), :lang(as), :lang(gu), :lang(pa), :lang(or), :lang(ta), :lang(te), :lang(kn), :lang(ml), :lang(th), :lang(km), :lang(my), :lang(ar), :lang(fa), :lang(ur)) {
  --lh-display: 1.32;
  --ls-display: 0;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  background-color: var(--bg);
  /* grid paper, as in the planner */
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
.i18n-wait body { visibility: hidden; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--p500); color: #fff; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(105, 105, 255, .55); outline-offset: 2px; border-radius: 8px; }

.container { width: min(1200px, 100%); margin-inline: auto; padding-inline: 24px; }
.container-narrow { width: min(820px, 100%); }
.ic { width: 20px; height: 20px; flex: none; fill: currentColor; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: var(--lh-display, 1.04);
  letter-spacing: var(--ls-display, -.025em);
  color: var(--ink);
  text-wrap: balance;
}
.display em, .pstep h2 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lead { font-size: clamp(16px, 1.35vw, 18.5px); color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--p700);
  font-weight: 600; font-size: 14px; line-height: 1.3;
}
.kicker .ic { width: 18px; height: 18px; color: var(--p500); }
.kicker-art { width: 20px; height: auto; }
.tag-new {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  background: #ff2d55; color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1.4;
}
.fine { font-size: 13px; color: var(--muted); line-height: 1.5; }
.link { color: var(--p600); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(105, 105, 255, .35); }
.link:hover { border-bottom-color: var(--p500); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 0;
  font-weight: 600; font-size: 15.5px; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 22px rgba(98, 64, 237, .32), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(98, 64, 237, .4), inset 0 1px 0 rgba(255, 255, 255, .25); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--p700); border: 1.5px solid var(--p200); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--p400); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn .ic { width: 19px; height: 19px; }
.btn .ic-crown { width: 16px; height: 16px; color: #ffd36b; margin-inline-start: 2px; }
.play-badge { display: inline-block; line-height: 0; border-radius: 12px; }
.play-badge img { width: auto; height: 58px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header.is-scrolled { background: rgba(247, 246, 255, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 12px rgba(55, 55, 133, .25); }
.brand-name { display: flex; flex-direction: column; font-family: 'Bricolage Grotesque', var(--f-text); font-weight: 800; font-size: 20px; line-height: 1.05; color: var(--p800); }
.brand-name small { font-family: var(--f-text); font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: .01em; margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.main-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); white-space: nowrap; transition: background-color .2s, color .2s; }
.main-nav a:hover { background: rgba(105, 105, 255, .08); color: var(--p700); }
.main-nav a.is-active { background: #fff; color: var(--p700); box-shadow: var(--shadow-sm); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.main-nav + .header-actions { margin-inline-start: 0; }
.lang-menu { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.lang-btn .ic { width: 18px; height: 18px; color: var(--p500); }
.lang-btn .chev { width: 14px; height: 14px; }
.lang-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
  width: 250px; max-height: min(420px, 70vh); overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.lang-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.lang-list li small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.lang-list li:hover, .lang-list li:focus { background: var(--p50); outline: none; }
.lang-list li[aria-selected="true"] { background: var(--p50); color: var(--p700); font-weight: 600; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; position: relative; }
.menu-toggle span { position: absolute; inset-inline-start: 12px; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, top .25s; }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.progress-track { position: absolute; inset: auto 0 0 0; height: 2px; }
.progress-fill { height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
[dir="rtl"] .progress-fill { transform-origin: 100% 50%; }
.site-header.is-compact .main-nav { display: none; }
.site-header.is-compact .menu-toggle { display: block; }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(72px, 9vw, 120px); overflow-x: clip; }
.sec-head { display: grid; justify-items: center; gap: 16px; text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 4vw, 52px); }
.sec-head .lead { max-width: 640px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ======================================================================
   3D Home Planner (hero)
   ====================================================================== */
.planner { position: relative; height: 820vh; }
.planner-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.planner-stage { position: absolute; inset: 0; }
.planner-stage canvas { width: 100%; height: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.planner.is-3d .planner-stage { cursor: grab; }
.planner-stage.is-dragging { cursor: grabbing; }
.planner-fallback { position: absolute; inset-inline-end: 6%; top: 50%; width: min(52vw, 640px); transform: translateY(-50%); opacity: 0; pointer-events: none; user-select: none; border-radius: 20px; box-shadow: var(--shadow-lg); }
.planner.no-webgl .planner-fallback { opacity: 1; }
.planner.no-webgl .planner-stage canvas, .planner.no-webgl .planner-drag, .planner.no-webgl .planner-rail { display: none; }
.planner-tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ptag { position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; will-change: transform, opacity; }
/* tags and the pen are placed with physical left/top + translate (projected screen coordinates), in RTL too */
.ptag-room { display: grid; justify-items: center; gap: 3px; text-align: center; }
.ptag-room b { padding: 3px 10px; border-radius: 999px; background: #6f6d86; color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.35; box-shadow: 0 2px 6px rgba(38, 38, 92, .18); }
.ptag-room small { font-size: 11.5px; font-weight: 600; color: #4a4860; background: rgba(255, 255, 255, .7); padding: 0 5px; border-radius: 6px; }
.ptag-dim { padding: 2px 9px; border-radius: 999px; background: var(--p500); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.5; box-shadow: 0 2px 6px rgba(105, 105, 255, .35); }
.planner-cursor { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; transition: opacity .25s; }
.planner-cursor.is-on { opacity: 1; }
.pc-ring { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--orange); background: rgba(255, 138, 61, .12); animation: pcspin 3s linear infinite; }
.pc-len { position: absolute; left: 22px; top: -14px; padding: 3px 10px; border-radius: 999px; background: #1e1e1e; color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pc-snap { position: absolute; left: 22px; top: 14px; padding: 2px 8px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
@keyframes pcspin { to { transform: rotate(360deg); } }
.planner-drag {
  position: absolute; inset-inline-end: 24px; bottom: 26px;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px;
  border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; pointer-events: none;
}
.planner-drag .ic { width: 18px; height: 18px; color: var(--p500); }
.planner.is-3d .planner-drag { opacity: 1; transform: none; }

.planner-ui { position: relative; height: 100%; pointer-events: none; }
.planner-copy { position: absolute; top: 50%; inset-inline-start: 24px; width: min(440px, 38%); transform: translateY(-44%); display: grid; pointer-events: none; }
.planner-copy > * { grid-area: 1 / 1; }
.planner-intro, .planner-steps { transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s; }
.planner-intro { display: grid; gap: 18px; align-content: center; align-items: start; justify-items: start; pointer-events: auto; }
.planner-intro .display { font-size: clamp(40px, 5vw, 66px); }
.planner-intro .kicker .tag-new { margin-inline-end: 2px; }
.planner:not(.is-intro) .planner-intro { opacity: 0; transform: translateY(-24px); visibility: hidden; pointer-events: none; }
.planner-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.proof { display: flex; align-items: center; gap: 7px; margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--p800); }
.proof .ic { width: 18px; height: 18px; flex: none; color: var(--p500); }
.planner-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: center; pointer-events: auto; }
.planner.is-intro .planner-steps { opacity: 0; transform: translateY(24px); visibility: hidden; pointer-events: none; }
.pstep { border-radius: var(--r); border: 1px solid transparent; padding: 10px 16px; transition: background-color .35s, box-shadow .35s, border-color .35s, opacity .35s; opacity: .62; }
.pstep.is-active { opacity: 1; background: rgba(255, 255, 255, .94); border-color: var(--line); box-shadow: var(--shadow); padding: 16px 18px 18px; }
.pstep-k { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.pstep-k .ic { width: 20px; height: 20px; color: var(--p500); }
.pstep.is-active .pstep-k { color: var(--p700); }
.pstep-body { display: none; }
.pstep.is-active .pstep-body { display: grid; row-gap: 10px; margin-top: 10px; animation: stepin .45s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateY(8px); } }
.pstep h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.12; letter-spacing: var(--ls-display, -.02em); }
.pstep p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.pstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4px 0 0; padding: 12px 6px; border-radius: 16px; background: var(--p50); border: 1px solid var(--line); text-align: center; }
.pstats div { display: grid; gap: 2px; }
.pstats div + div { border-inline-start: 1px solid var(--line-2); }
.pstats dd { margin: 0; order: -1; font-family: var(--f-display); font-weight: 800; font-size: 20px; line-height: 1.2; color: var(--ink); }
.pstats dt { font-size: 12.5px; color: var(--ink-3); }
.pstats-size { font-size: 13.5px !important; color: var(--muted) !important; }
.psamples-title { font-weight: 700; color: var(--ink) !important; font-size: 14px !important; margin-top: 2px !important; }
.psamples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.psample { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; text-align: start; transition: border-color .2s, box-shadow .2s; }
.psample:hover { border-color: var(--p200); }
.psample[aria-pressed="true"] { border-color: var(--p500); box-shadow: 0 0 0 3px rgba(105, 105, 255, .14); }
.psample img { width: 54px; height: 40px; object-fit: cover; border-radius: 8px; background: var(--p50); flex: none; pointer-events: none; }
.psample span { display: grid; min-width: 0; line-height: 1.25; }
.psample b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psample small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstep .btn { justify-self: start; margin-top: 4px; }
.planner-rail { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 6px; width: 240px; }
.planner-rail i { flex: 1; height: 4px; border-radius: 4px; background: rgba(105, 105, 255, .16); }
.planner-rail-fill { position: absolute; inset-inline-start: 0; top: 0; height: 4px; width: calc(var(--pp, 0) * 100%); border-radius: 4px; background: var(--grad); }
.planner.is-intro .planner-rail { opacity: 0; }
.planner-rail { transition: opacity .4s; }

/* ======================================================================
   Explore furniture
   ====================================================================== */
.catalogue { padding-top: clamp(56px, 7vw, 96px); }
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-card { position: relative; width: 100%; display: grid; justify-items: center; gap: 8px; padding: 14px 10px 14px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-img { position: relative; display: block; width: 100%; aspect-ratio: 1.15; border-radius: 14px; background: linear-gradient(180deg, #f6f5fe, #eceafb); overflow: hidden; }
.cat-img img { position: absolute; inset: 11%; width: 78%; height: 78%; object-fit: contain; pointer-events: none; }
.cat-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.cat-item.is-locked .cat-img img { filter: blur(6px) saturate(.8); opacity: .75; }
.cat-item.is-locked .cat-name { color: var(--muted); filter: blur(3px); }
.cat-lock { position: absolute; top: 12px; inset-inline-end: 12px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--p600); box-shadow: var(--shadow-sm); }
.cat-lock .ic { width: 16px; height: 16px; }
.cat-more .cat-card { height: 100%; align-content: center; background: var(--tone-sky); border: 0; color: var(--p800); }
.cat-more b { font-family: var(--f-display); font-size: 34px; font-weight: 800; line-height: 1; }
.cat-more span { font-size: 13.5px; font-weight: 600; }

/* ======================================================================
   AI Redesign
   ====================================================================== */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background-color .2s, color .2s; }
.seg-btn .ic { width: 20px; height: 20px; }
.seg-btn.is-on { background: var(--p500); color: #fff; box-shadow: 0 4px 12px rgba(105, 105, 255, .35); }
.seg-sm .seg-btn { min-height: 36px; padding: 0 14px; font-size: 14px; flex: 1; justify-content: center; }
.seg-sm { display: flex; width: 100%; }
.rd-modes { display: flex; width: max-content; margin: 0 auto 28px; }
.rd-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rd-stage { display: grid; gap: 12px; min-width: 0; }
.ba { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1080 / 707; background: var(--p50); box-shadow: var(--shadow-lg); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
[dir="rtl"] .ba-before { clip-path: inset(0 0 0 var(--x)); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.ba-handle { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--x); width: 0; z-index: 2; pointer-events: none; }
[dir="rtl"] .ba-handle { inset-inline-start: auto; left: var(--x); }
.ba-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .25); }
.ba-handle .ic { max-width: none; position: absolute; top: 50%; left: -22px; width: 44px; height: 44px; padding: 11px; margin-top: -22px; border-radius: 50%; background: #fff; color: var(--p600); box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.ba-label { position: absolute; top: 14px; z-index: 2; padding: 4px 12px; border-radius: 999px; background: rgba(30, 30, 30, .55); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.ba-label-b { left: 14px; }
.ba-label-a { right: 14px; background: rgba(98, 64, 237, .78); }
[dir="rtl"] .ba-label-b { left: auto; right: 14px; }
[dir="rtl"] .ba-label-a { right: auto; left: 14px; }
.ba-sample { position: absolute; bottom: 14px; inset-inline-start: 14px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.rd-samples { display: flex; gap: 10px; flex-wrap: wrap; }
.rd-sample { width: 92px; aspect-ratio: 1.45; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: var(--p50); box-shadow: var(--shadow-sm); transition: border-color .2s; }
.rd-sample img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rd-sample[aria-pressed="true"] { border-color: var(--p500); }
.rd-panel { padding: 22px; display: grid; gap: 12px; min-width: 0; }
.ctl-title { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.ctl-title small { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.ctl-title:not(:first-child) { margin-top: 6px; }
.ctl-help { font-size: 13px; color: var(--ink-3); min-height: 2.9em; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
[dir="rtl"] .chips, [dir="rtl"] .palettes { -webkit-mask-image: linear-gradient(270deg, #000 85%, transparent); mask-image: linear-gradient(270deg, #000 85%, transparent); }
.chip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 38px; padding: 0 14px 0 10px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s; }
.chip .ic { width: 18px; height: 18px; color: var(--muted); }
.chip[aria-pressed="true"] { border-color: var(--p500); background: var(--p50); color: var(--p700); }
.chip[aria-pressed="true"] .ic { color: var(--p500); }
.styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.style { position: relative; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: var(--p50); aspect-ratio: 1; transition: border-color .2s; }
.style img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.style .style-name { position: absolute; inset: auto 0 0 0; padding: 14px 6px 5px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .62)); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.style[aria-pressed="true"] { border-color: var(--p500); box-shadow: 0 0 0 3px rgba(105, 105, 255, .18); }
.style.is-locked img { filter: blur(4px) saturate(.85); transform: scale(1.08); }
.style.is-locked::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .25); }
.style .style-lock { position: absolute; top: 6px; inset-inline-end: 6px; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--p600); }
.style .style-lock .ic { width: 13px; height: 13px; }
.style.style-more { display: grid; place-items: center; background: var(--tone-lilac); color: var(--p800); font-weight: 800; font-size: 16px; font-family: var(--f-display); }
.palettes { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.palette { flex: none; display: grid; gap: 5px; justify-items: center; width: 78px; padding: 6px 4px 7px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-size: 11.5px; line-height: 1.2; color: var(--ink-2); text-align: center; }
.palette[aria-pressed="true"] { border-color: var(--p500); background: var(--p50); color: var(--p700); }
.palette .sw { display: flex; width: 62px; height: 22px; border-radius: 7px; overflow: hidden; }
.palette .sw i { flex: 1; }
.palette .sw-special { display: grid; place-items: center; width: 62px; height: 22px; border-radius: 7px; background: var(--p50); color: var(--p500); }
.palette .sw-special .ic { width: 16px; height: 16px; }
.palette b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rd-panel .btn-block { margin-top: 6px; }

/* ======================================================================
   Style Match
   ====================================================================== */
.sm-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.08fr); align-items: start; gap: 14px; }
.sm-card { margin: 0; display: grid; gap: 10px; padding: 14px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.sm-card figcaption { font-weight: 700; font-size: 15px; }
.sm-pic { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--p50); }
.sm-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity .4s; }
.sm-thumbs { display: flex; gap: 8px; }
.sm-thumb { width: 58px; height: 58px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--p50); flex: none; }
.sm-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sm-thumb[aria-pressed="true"] { border-color: var(--p500); }
.sm-op { align-self: center; margin-top: 30px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-family: var(--f-display); font-weight: 800; font-size: 24px; color: var(--p500); }
.sm-result { background: var(--tone-lilac); border: 0; }
.sm-result .sm-pic { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.sm-r1 { filter: blur(14px) saturate(1.1); transform: scale(1.15); }
.sm-r2 { mix-blend-mode: soft-light; opacity: .85; filter: blur(16px); transform: scale(1.15); }
.sm-scan { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, .55) 48%, transparent 52%); background-size: 100% 220%; animation: smscan 3.2s linear infinite; }
@keyframes smscan { from { background-position: 0 120%; } to { background-position: 0 -120%; } }
.lite .sm-scan, .is-paused .sm-scan { animation: none; }

/* ======================================================================
   Retouch
   ====================================================================== */
.rt-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rt-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: var(--p50); box-shadow: var(--shadow-lg); }
.rt-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rt-brush { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rt-brush path { fill: none; stroke: rgba(129, 129, 255, .55); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.rt-brush.is-drawing path { animation: brush 2.4s var(--ease) forwards; }
@keyframes brush { to { stroke-dashoffset: 0; } }
.rt-chip { position: absolute; top: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 600; color: var(--p700); box-shadow: var(--shadow-sm); }
.rt-chip .ic { width: 16px; height: 16px; }
.rt-samples { position: absolute; bottom: 14px; inset-inline-start: 14px; display: flex; gap: 8px; }
.rt-samples button { width: 56px; height: 56px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid #fff; background: #fff; box-shadow: var(--shadow); }
.rt-samples button[aria-pressed="true"] { border-color: var(--p500); }
.rt-samples img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rt-form { padding: 22px; display: grid; gap: 12px; }
.field { display: grid; gap: 5px; }
.field span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fbfbff; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--p400); box-shadow: 0 0 0 4px rgba(105, 105, 255, .12); background: #fff; }
.field input::placeholder { color: #a6a4bb; }
.rt-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px; margin-top: 6px; }

/* ======================================================================
   Layout Boost · Photo to Video
   ====================================================================== */
.mo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.mo-card { border-radius: var(--r-lg); padding: 14px; display: grid; gap: 14px; box-shadow: var(--shadow); min-width: 0; }
.mo-video { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .5); }
.mo-video video { width: 100%; height: 100%; object-fit: cover; }
.mo-body { display: grid; gap: 6px; padding: 0 6px 6px; }
.mo-body h3 { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: var(--ls-display, -.015em); color: var(--ink); }
.mo-body p { color: rgba(30, 30, 30, .72); }
.mo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mo-tab { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .7); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.mo-tab[aria-selected="true"] { background: #fff; color: var(--p700); box-shadow: var(--shadow-sm); }
.mo-tab.mo-app { background: var(--ink); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.mo-tab.mo-app .ic { width: 15px; height: 15px; color: #ffd36b; }
.tone-lilac { background: var(--tone-lilac); }
.tone-peach { background: var(--tone-peach); }
.tone-apricot { background: var(--tone-apricot); }
.tone-mint { background: var(--tone-mint); }
.tone-sky { background: var(--tone-sky); }
.tone-aqua { background: var(--tone-aqua); }
.tone-sage { background: var(--tone-sage); }
.tone-rose { background: var(--tone-rose); }
.tone-gold { background: var(--tone-gold); }

/* ======================================================================
   Inspiration
   ====================================================================== */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; justify-content: safe center; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 16px 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.tab .ic { width: 19px; height: 19px; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab[aria-selected="true"] .ic { color: #fff; }
.id-rooms { margin-bottom: 18px; }
.id-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.idea { position: relative; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--p50); aspect-ratio: 4 / 5; box-shadow: var(--shadow-sm); text-align: start; transition: transform .3s var(--ease), box-shadow .3s; }
.idea:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.idea img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .6s var(--ease); }
.idea:hover img { transform: scale(1.04); }
.idea-cap { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 28px 12px 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .66)); color: #fff; }
.idea-cap b { font-size: 15px; font-weight: 700; line-height: 1.2; }
.idea-cap span { flex: none; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--p700); font-size: 12px; font-weight: 700; }
.idea.is-locked img { filter: blur(9px) saturate(.9); transform: scale(1.12); }
.idea.is-locked .idea-cap b { filter: blur(4px); }
.idea.is-locked .idea-cap span { display: none; }
.idea-pin { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--p600); box-shadow: var(--shadow-sm); }
.idea-pin .ic { width: 15px; height: 15px; }
.idea-lockall { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 16px; text-align: center; color: #fff; z-index: 1; }
.idea-lockall b { font-family: var(--f-display); font-size: 20px; font-weight: 800; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.idea-lockall .ic { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #fff; color: var(--p600); }
.id-pick-title { margin: 44px 0 14px; font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: var(--ls-display, -.015em); }
.id-pick { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.id-pick .idea { aspect-ratio: 3 / 4; scroll-snap-align: start; }

/* ======================================================================
   Everything in NestAI
   ====================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; align-items: stretch; min-height: 250px; padding: 18px 18px 0; overflow: hidden;
  border: 0; border-radius: var(--r-lg); text-align: start; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .35s var(--ease), box-shadow .35s;
}
.feature:hover { box-shadow: var(--shadow-lg); }
.feature:first-child { grid-column: span 2; }
.feature-text { display: grid; gap: 4px; position: relative; z-index: 1; padding-inline-end: 34px; }
.feature-text b { font-size: 19px; font-weight: 700; line-height: 1.25; }
.feature-text span { font-size: 14px; line-height: 1.45; color: rgba(30, 30, 30, .74); }
.feature img { margin: auto auto 0; max-height: 150px; width: auto; max-width: 92%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 10px 16px rgba(38, 38, 92, .18)); transition: transform .5s var(--ease); }
.feature:first-child img { max-height: 190px; }
.feature:hover img { transform: translateY(-4px) scale(1.03); }
.feature img.blend { mix-blend-mode: multiply; filter: none; border-radius: 14px; }
.feature .tag-new { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 1; }
.feature-go { position: absolute; bottom: 14px; inset-inline-end: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); z-index: 1; }
.feature-go .ic { width: 20px; height: 20px; }
[dir="rtl"] .feature-go .ic, [dir="rtl"] .btn .ic-flip { transform: scaleX(-1); }

/* ======================================================================
   Download
   ====================================================================== */
.dl-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 36px; background: var(--tone-lilac); overflow: hidden; box-shadow: var(--shadow-lg); }
.dl-copy { display: grid; gap: 16px; justify-items: start; position: relative; z-index: 1; }
.dl-copy .kicker { background: rgba(255, 255, 255, .7); }
.dl-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.dl-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--p800); }
.dl-points .ic { width: 22px; height: 22px; padding: 4px; border-radius: 8px; background: #fff; color: var(--p500); }
.dl-get { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 6px; }
.dl-qr { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--ink-2); max-width: 260px; }
.dl-qr img { width: 76px; height: 76px; }
.dl-art { position: relative; min-height: 340px; }
.dl-room { position: absolute; inset: 0; margin: auto; width: 100%; height: auto; max-height: 360px; object-fit: contain; filter: drop-shadow(0 22px 30px rgba(38, 38, 92, .22)); }
.dl-icon { position: absolute; top: 2%; inset-inline-end: 4%; width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 16px 34px rgba(55, 55, 133, .35); }
.dl-wand { position: absolute; bottom: 4%; inset-inline-start: 0; width: 110px; transform: rotate(-8deg); }

/* ======================================================================
   FAQ
   ====================================================================== */
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 0 20px; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 16.5px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--p50); color: var(--p500); font-size: 20px; font-weight: 500; transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 18px; color: var(--ink-2); }
.faq-more { text-align: center; margin-top: 22px; }

/* ======================================================================
   Footer, dock, modal, toast, teaser
   ====================================================================== */
.site-footer { padding: 56px 0 120px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .55); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-brand { display: grid; gap: 12px; max-width: 420px; }
.footer-brand p { color: var(--ink-3); font-size: 14.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; }
.footer-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.footer-links a:hover { color: var(--p600); }
.footer-bottom { display: grid; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.disclaimer { font-size: 13px; color: var(--muted); max-width: 900px; }
.copyright { font-size: 13px; color: var(--muted); }

.get-dock {
  position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px; z-index: 40;
  display: none; align-items: center; gap: 10px; padding: 8px 8px 8px 10px;
  border-radius: 20px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.get-dock img { width: 40px; height: 40px; border-radius: 11px; }
.get-dock-text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.get-dock-text strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.get-dock-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.show-dock .get-dock { transform: none; }

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30, 28, 70, .45); backdrop-filter: blur(6px); animation: fade .25s; }
.modal-dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-lg); outline: none; animation: pop .35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--p50); color: var(--ink-2); }
.modal-app { display: flex; align-items: center; gap: 12px; padding-inline-end: 40px; }
.modal-app img { width: 56px; height: 56px; border-radius: 15px; box-shadow: var(--shadow); }
.modal-app-name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.modal-app-meta { font-size: 13px; color: var(--muted); }
.modal-title { margin-top: 18px; font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: var(--ls-display, -.015em); }
.modal-sub { margin-top: 6px; color: var(--ink-2); }
.modal-visual { display: flex; gap: 10px; margin-top: 14px; }
.modal-visual:empty { display: none; }
.modal-visual img { flex: 1; min-width: 0; max-height: 150px; object-fit: cover; border-radius: 16px; background: var(--p50); }
.modal-get { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 18px; padding: 16px; border-radius: 20px; background: var(--p50); }
.qr-block { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); text-align: center; max-width: 150px; }
.qr-tile { position: relative; padding: 10px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.qr-tile > img:first-child { width: 128px; height: 128px; }
.qr-logo { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 8px; border: 3px solid #fff; }
.modal-actions { display: grid; gap: 12px; }
.modal-actions .play-badge img { height: 54px; }
.modal-steps { margin: 0; padding-inline-start: 20px; display: grid; gap: 5px; font-size: 14px; color: var(--ink-2); }
.modal-steps .step-tap { display: none; }
.modal-open { overflow: hidden; }

.toast { position: fixed; left: 50%; bottom: 90px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; pointer-events: none; transition: opacity .3s, transform .3s; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

.unlock { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--grad-btn); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 6px 18px rgba(98, 64, 237, .3); }
.unlock .ic { width: 16px; height: 16px; color: #ffd36b; }
.locked-blur { position: relative; }

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1180px) {
  .main-nav a { padding: 8px 9px; font-size: 14.5px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .id-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .main-nav { display: none; position: absolute; top: calc(100% + 6px); inset-inline: 16px; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 16px; }
  .menu-toggle { display: block; }
  .sm-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-op { display: none; }
  .sm-result { grid-column: 1 / -1; }
  .sm-result .sm-pic { aspect-ratio: 16 / 9; }
}
@media (max-width: 980px) {
  .rd-grid, .rt-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-card { grid-template-columns: minmax(0, 1fr); }
  .dl-art { min-height: 260px; order: -1; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .id-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* the planner on phones and narrow tablets: the house above, one step card below */
@media (max-width: 899px) {
  .planner { height: 700vh; }
  .planner-copy { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); inset-inline: 16px; width: auto; transform: none; }
  .planner-intro { gap: 12px; padding: 18px; border-radius: 24px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .planner-intro .display { font-size: clamp(30px, 8.6vw, 44px); }
  .planner-intro .lead { font-size: 15px; }
  .planner-intro .play-badge img { height: 50px; }
  .planner-intro .btn { min-height: 44px; }
  .pstep { display: none; }
  .pstep.is-active { display: block; padding: 14px 16px 16px; }
  .planner-steps { align-content: end; }
  .pstep h2 { font-size: 21px; }
  .pstep p { font-size: 14px; }
  .psamples { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 2px; scrollbar-width: none; }
  .psamples::-webkit-scrollbar { display: none; }
  .psample { flex: none; }
  .psample img { width: 44px; height: 32px; }
  .planner-rail { display: none; }
  .planner-drag { top: calc(var(--header-h) + 10px); bottom: auto; }
  .pstats dd { font-size: 17px; }
}
@media (max-width: 720px) {
  :root { --header-h: 62px; }
  .container { padding-inline: 16px; }
  .header-cta { display: none; }
  .brand-name small { display: none; }
  .get-dock { display: flex; }
  .section { padding-block: 64px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature:first-child { grid-column: auto; }
  .feature { min-height: 210px; }
  .id-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .styles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mo-grid { grid-template-columns: minmax(0, 1fr); }
  .sm-board { grid-template-columns: minmax(0, 1fr); }
  .sm-result { grid-column: auto; }
  .sm-result .sm-pic { aspect-ratio: 1; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rd-panel, .rt-form { padding: 18px; }
  .rd-modes { width: 100%; }
  .rd-modes .seg-btn { flex: 1; justify-content: center; white-space: normal; text-align: center; line-height: 1.2; padding: 6px 10px; font-size: 14px; }
  .modal { place-items: end center; padding: 0; }
  .modal-dialog { width: 100%; border-radius: 26px 26px 0 0; max-height: 92vh; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); animation: sheet .35s var(--ease); }
  @keyframes sheet { from { transform: translateY(40%); opacity: .4; } }
  .modal-get { grid-template-columns: minmax(0, 1fr); }
  .qr-block { display: none; }
  .modal-steps .step-scan { display: none; }
  .modal-steps .step-tap { display: list-item; }
  .dl-qr { display: none; }
  .ba-label { top: 10px; font-size: 12px; }
  .planner-intro .lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-height: 700px) and (min-width: 900px) {
  .pstep.is-active { padding: 12px 16px 14px; }
  .pstep p { font-size: 14px; }
  .planner-intro .display { font-size: clamp(36px, 4.4vw, 56px); }
}

/* touch devices: fewer effects */
.lite .feature { transform: none; }
.lite .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(247, 246, 255, .97); }
.lite .modal-backdrop { backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pc-ring, .sm-scan { animation: none; }
}
