:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #F5F1EA;
  --text: #211D17;
  --accent: #C2410C;
  --accent-soft: #FEF0E7;
  --accent-strong: #9A3412;
  --secondary: #0F766E;
  --secondary-soft: #E6F3F1;
  --ink: #16233A;
  --ink-2: #21344F;
  --muted: #78716C;
  --border: #EAE5DD;
  --danger: #B91C1C;
  --danger-soft: #FEE2E2;
  --shadow-sm: 0 1px 2px rgba(33, 29, 23, 0.06);
  --shadow: 0 8px 24px rgba(33, 29, 23, 0.07);
  --shadow-lg: 0 20px 48px rgba(33, 29, 23, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --sidebar-w: 248px;
}

#blazor-error-ui {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: #FEE2E2; color: #991B1B;
  padding: 0.8rem 2.5rem 0.8rem 1.2rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.12); font-weight: 600;
}
#blazor-error-ui .reload { text-decoration: underline; margin-left: 0.5rem; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.9rem; top: 0.7rem; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
/* Don't show a focus ring for programmatic focus (e.g. blazor-focus-on-navigate on <h1>);
   keyboard users still get :focus-visible rings. The h1/tabindex rule is unconditional because
   Chrome treats the on-load programmatic focus as :focus-visible. */
:focus:not(:focus-visible) { outline: none; }
h1:focus, [tabindex="-1"]:focus { outline: none; }
img { max-width: 100%; display: block; }
h1 { font-size: 1.75rem; margin: 0 0 0.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; margin: 0 0 0.25rem; }
p { margin: 0 0 0.5rem; }

/* ---------- App shell with sidebar ---------- */
.app-shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; align-self: start;
  height: 100vh; display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.25rem 0.9rem; background: var(--surface); border-right: 1px solid var(--border);
}
.sidebar-brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.2rem; padding: 0.4rem 0.6rem 1rem; letter-spacing: -0.02em; }
.sidebar-logo { font-size: 1.4rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.nav-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 0.75rem; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-strong); }
.nav-item.subtle { font-weight: 500; }
.nav-icon { font-size: 1.1rem; width: 1.4rem; text-align: center; }
.content { min-width: 0; }
.content-inner { padding: 2rem clamp(1rem, 4vw, 2.75rem); max-width: 1120px; margin: 0 auto; }

/* ---------- Plain shell (anonymous pages) ---------- */
.plain-shell { min-height: 100vh; display: flex; flex-direction: column; }
.plain-topbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.plain-main { flex: 1; padding: 1.5rem; max-width: 1120px; margin: 0 auto; width: 100%; }
.brand { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-bau { color: var(--accent); }
/* Logo mark: a house with two "story" lines. Uses currentColor via a mask, so it stays legible
   on light headers and on the dark/accent panels alike. */
.brand::before, .sidebar-logo {
  content: ""; display: inline-block; width: 1.3em; height: 1.3em; vertical-align: -0.28em; margin-right: 0.32rem; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill-rule='evenodd'%20d='M12,2.4L21.6,10V21.6H2.4V10ZM7,12.8H17V14.3H7ZM7,16.3H17V17.8H7Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill-rule='evenodd'%20d='M12,2.4L21.6,10V21.6H2.4V10ZM7,12.8H17V14.3H7ZM7,16.3H17V17.8H7Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* On the dark/accent panels keep the whole wordmark light so "Bau" doesn't vanish on accent. */
.auth-brand .brand-bau, .landing-footer .brand-bau { color: inherit; }
.nav-link { color: var(--muted); font-weight: 600; padding: 0.5rem; }
.nav-link:hover { color: var(--text); }

/* ---------- Typography helpers ---------- */
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.muted { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Layout primitives ---------- */
.stack { display: grid; gap: 1.25rem; }
.grid { display: grid; gap: 1rem; }
.two-up { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.three-up { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.split { display: grid; gap: 1.25rem; }
.toolbar { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.inline-list { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.25rem; }
.summary-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.summary-value { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.empty-state { text-align: center; padding: 2.5rem 1.5rem; }
.list { padding-left: 1.25rem; }
.item-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.chip { background: var(--secondary-soft); color: var(--secondary); border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.85rem; font-weight: 600; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
  padding: 0.6rem 1rem; font-weight: 600; transition: transform .05s, background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.button:hover { background: var(--surface-2); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: 0.55; cursor: not-allowed; }
.button-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-sm); }
.button-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.button-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.button-secondary:hover { background: #0c5d57; }
.button-ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.button-ghost:hover { background: var(--surface-2); color: var(--text); }
.button-danger { background: var(--danger-soft); color: var(--danger); border-color: #FCA5A5; }
.button.small { padding: 0.4rem 0.7rem; font-size: 0.875rem; border-radius: 8px; }
.button.full { width: 100%; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea, input[type=date], .share-url {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus, .share-url:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; font-family: inherit; }
.form-error { color: var(--danger); background: var(--danger-soft); padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid #FCA5A5; }
.form-shell { display: grid; place-items: center; min-height: 78vh; }
.form-card { width: min(30rem, 100%); }

/* ---------- Diary: composer + welcome ---------- */
.welcome-card { max-width: 32rem; }
.composer .composer-actions { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.composer .composer-actions .field { margin: 0; }

/* ---------- Diary: share bar ---------- */
.share-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: linear-gradient(120deg, var(--accent-soft), var(--secondary-soft)); border-color: transparent; }
.share-bar-text { display: flex; flex-direction: column; }
.share-url { max-width: 22rem; font-size: 0.85rem; color: var(--muted); background: #fff; }

/* ---------- Diary: timeline ---------- */
.timeline { display: grid; gap: 1.25rem; position: relative; }
.entry-card { display: grid; gap: 0.75rem; }
.entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.entry-date { color: var(--accent); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.entry-body { white-space: pre-wrap; color: #3f3a33; }
.entry-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; padding-top: 0.5rem; border-top: 1px dashed var(--border); }
.file-button { position: relative; overflow: hidden; }
.file-button input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.recording-dot { color: var(--danger); font-weight: 600; font-size: 0.85rem; animation: pulse 1.2s infinite; }
.drop-hint { font-size: 0.76rem; color: var(--muted); margin-left: auto; }
.entry-card, .plan-card { outline: none; transition: outline-color .12s, background .12s; }
.entry-card:focus-visible, .plan-card:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.drop-active { outline: 2px dashed var(--accent) !important; outline-offset: 4px; background: var(--accent-soft); }
@keyframes pulse { 50% { opacity: 0.4; } }

/* ---------- Media gallery ---------- */
.gallery { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.media-card { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.5rem; display: flex; flex-direction: column; gap: 0.4rem; }
.media-card img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.media-caption { font-size: 0.82rem; color: var(--muted); }
.media-delete { position: absolute; top: 0.4rem; right: 0.4rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: none; background: rgba(0,0,0,0.55); color: #fff; font-size: 1rem; line-height: 1; display: grid; place-items: center; }
.media-delete:hover { background: var(--danger); }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; width: fit-content; }
.badge-ai { background: linear-gradient(120deg, #7C3AED, #C2410C); color: #fff; }
.voice { display: grid; gap: 0.4rem; }
.voice audio { width: 100%; }
.transcript { font-size: 0.82rem; color: var(--muted); font-style: italic; }
.media-open { position: relative; display: block; width: 100%; padding: 0; border: none; background: none; border-radius: 8px; overflow: hidden; cursor: pointer; }
.media-open img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 8px; transition: transform .15s; }
.media-open:hover img { transform: scale(1.02); }
.versions-pill { position: absolute; bottom: 0.4rem; right: 0.4rem; background: rgba(0,0,0,0.62); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; }

/* ---------- Visualization studio ---------- */
.studio-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(20,16,12,0.6); display: grid; place-items: center; padding: 1.5rem; }
.studio { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: min(880px, 100%); max-height: 92vh; overflow-y: auto; padding: 1.25rem; display: grid; gap: 1rem; }
.studio-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.studio-head p { margin: 0.25rem 0 0; font-size: 0.85rem; max-width: 52ch; }
.studio-stage { position: relative; display: grid; gap: 0.5rem; }
.studio-stage img { width: 100%; max-height: 52vh; object-fit: contain; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.studio-stage-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.studio-prompt-echo { font-size: 0.85rem; color: var(--muted); font-style: italic; }
.studio-filmstrip { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.2rem 0.1rem 0.4rem; }
.studio-thumb { position: relative; flex: 0 0 auto; width: 92px; border: none; padding: 0; background: none; cursor: pointer; }
.studio-thumb img { width: 92px; height: 70px; object-fit: cover; border-radius: 6px; display: block; border: 2px solid transparent; }
.studio-thumb.is-selected img { border-color: var(--accent); }
.studio-thumb-label { display: block; font-size: 0.68rem; font-weight: 700; color: var(--muted); text-align: center; padding-top: 0.15rem; }
.studio-thumb.is-selected .studio-thumb-label { color: var(--accent); }
.studio-thumb-del { position: absolute; top: -0.4rem; right: -0.4rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: none; background: rgba(0,0,0,0.62); color: #fff; font-size: 0.85rem; line-height: 1; display: grid; place-items: center; }
.studio-thumb-del:hover { background: var(--danger); }
.studio-thumb-star { position: absolute; top: -0.45rem; left: -0.45rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.72rem; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.badge-shared { background: #FEF3C7; color: #92400E; }
.share-toggle { border: 1px solid var(--border); background: #fff; color: var(--muted); border-radius: 999px; padding: 0.32rem 0.8rem; font-size: 0.8rem; font-weight: 700; }
.share-toggle.is-on { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent); }
.studio-compose { display: grid; gap: 0.5rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.8rem; }
.studio-basedon { font-size: 0.82rem; }
.studio-compose textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 0.55rem 0.7rem; resize: vertical; background: #fff; }

/* ---------- Planning hub ---------- */
.composer-grid { display: grid; gap: 1rem; grid-template-columns: minmax(10rem, 1fr) 2fr; }
.composer-grid .field { margin: 0; }
.plan-group { display: grid; gap: 0.75rem; }
.plan-group-head { display: flex; align-items: center; gap: 0.6rem; padding-top: 0.5rem; }
.plan-group-head h2 { margin: 0; }
.plan-cat-icon { font-size: 1.4rem; }
.chip-shared { background: #DCFCE7; color: #166534; }
.plan-card { display: grid; gap: 0.7rem; }
.plan-card .grid { gap: 1rem; }
.edit-title { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; font-weight: 700; }
.status-select { border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.8rem; font-weight: 700; background: var(--surface-2); }
.status-open { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.status-decided { background: var(--secondary-soft); color: var(--secondary); border-color: #99E0DA; }
.status-ordered { background: #DBEAFE; color: #1E40AF; border-color: #BFDBFE; }
.status-installed { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }
@media (max-width: 640px) { .composer-grid { grid-template-columns: 1fr; } }
.plan-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.button.icon-only { padding: 0.4rem 0.55rem; line-height: 1; font-size: 1rem; }
.upload-modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: min(440px, 100%); padding: 1.25rem; display: grid; gap: 1rem; }
.upload-dropzone { border: 2px dashed var(--border); border-radius: var(--radius-sm); background: var(--surface-2); padding: 1.8rem 1rem; display: grid; gap: 0.7rem; place-items: center; text-align: center; color: var(--muted); outline: none; }
.upload-dropzone-icon { font-size: 1.9rem; }

/* ---------- Public shared diary ---------- */
.public-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.public-topbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.public-main { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 2rem 1.25rem; }
.public-footer { text-align: center; padding: 1.5rem; }
.public-head { text-align: center; margin-bottom: 1.5rem; }
.public-card { max-width: 32rem; margin: 3rem auto; }
.public-diary { display: grid; gap: 1.25rem; }
.comments { display: grid; gap: 0.75rem; }
.comment-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.comment-list li { background: var(--surface-2); border-radius: var(--radius-sm); padding: 0.8rem 1rem; }
.comment-head { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; margin-bottom: 0.25rem; }
.comment-form { margin-top: 0.5rem; }

/* ---------- Hero (marketing) ---------- */
.hero { display: grid; gap: 1.5rem; align-items: center; padding: 2rem 0; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.feature-card ul { padding-left: 1.25rem; }

/* ---------- Landing page ---------- */
.landing { display: flex; flex-direction: column; min-height: 100vh; }
.lp-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

.landing-nav { position: sticky; top: 0; z-index: 20; background: rgba(250,247,242,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.landing-nav-inner { max-width: 1120px; margin: 0 auto; padding: 0.8rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.landing-nav-links { display: flex; gap: 1.4rem; margin-left: 1rem; }
.landing-nav-links a { color: var(--muted); font-weight: 600; }
.landing-nav-links a:hover { color: var(--text); }
.landing-nav-actions { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.lang-toggle { font-weight: 700; font-size: 0.8rem; color: var(--muted); }
.lang-toggle:hover { color: var(--accent); }
.lang-sep { color: var(--border); }

.lp-hero { padding: clamp(3rem, 8vw, 7rem) 0; color: #F4EFE8; background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 42px 42px,
    radial-gradient(900px 460px at 88% -15%, rgba(194,65,12,0.45), transparent 58%),
    radial-gradient(700px 420px at 4% 112%, rgba(15,118,110,0.30), transparent 60%),
    var(--ink); }
.lp-hero .lp-eyebrow { background: rgba(255,255,255,0.10); color: #F4C9B4; border-color: rgba(255,255,255,0.14); }
.lp-hero-copy h1 { color: #FCF7F1; }
.lp-hero .lp-lead { color: rgba(244,239,232,0.82); }
.lp-hero .lp-note { color: rgba(244,239,232,0.60); }
.lp-hero .lp-actions .button:not(.button-primary) { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.28); }
.lp-hero .lp-actions .button:not(.button-primary):hover { background: rgba(255,255,255,0.14); }
.lp-hero-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; border: 1px solid rgba(255,255,255,0.12); }
.lp-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.lp-eyebrow { display: inline-block; background: var(--accent-soft); border: 1px solid transparent; color: var(--accent-strong); font-weight: 800; font-size: 0.78rem; padding: 0.4rem 0.9rem; border-radius: 999px; letter-spacing: 0.07em; text-transform: uppercase; }
.lp-hero-copy h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; margin: 1.1rem 0; }
.lp-lead { color: var(--muted); font-size: 1.15rem; max-width: 42ch; }
.lp-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.lp-cta { padding: 0.85rem 1.4rem; font-size: 1.02rem; border-radius: 12px; }
.lp-note { margin-top: 1rem; font-size: 0.85rem; }
.lp-hero-art { position: relative; display: block; }
.lp-art-card { position: absolute; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0.85rem 1rem; display: none; align-items: center; gap: 0.6rem; font-weight: 600; }
.lp-art-card span { font-size: 0.9rem; }
.lp-art-1 { top: -1.1rem; left: -1.3rem; border-left: 4px solid var(--secondary); }
.lp-art-2 { bottom: -1.1rem; right: -1.3rem; border-left: 4px solid var(--accent); }
.lp-art-3 { display: none; }

.lp-section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.lp-section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.5rem; }
.lp-section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; }
.lp-feature-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lp-feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.lp-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lp-feature h3 { font-size: 1.15rem; }
.lp-steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lp-step { text-align: center; padding: 1rem; }
.lp-step h3 { color: var(--accent-strong); }

.lp-pricing { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.lp-plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 1.5rem; text-align: center; display: flex; flex-direction: column; gap: 0.6rem; box-shadow: var(--shadow-sm); }
.lp-plan-featured { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.lp-plan-badge { position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; }
.lp-price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.lp-plan .button { margin-top: auto; }

.lp-faq { max-width: 48rem; }
.lp-faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 0.75rem; }
.lp-faq-item summary { font-weight: 700; cursor: pointer; }
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item[open] { box-shadow: var(--shadow-sm); }
.lp-faq-item p { margin-top: 0.6rem; }

.lp-cta-band { padding: clamp(3rem, 7vw, 5rem) 0; background: linear-gradient(120deg, var(--accent), var(--accent-strong)); color: #fff; text-align: center; }
.lp-cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.lp-cta-band .lp-lead { color: rgba(255,255,255,0.9); margin: 0.5rem auto 1.5rem; }
.lp-cta-band .button-primary { background: #fff; color: var(--accent-strong); border-color: #fff; }

.landing-footer { margin-top: auto; background: var(--ink); color: #E7E5E4; padding: 2.5rem 0 1.5rem; }
.landing-footer-inner { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.landing-footer .brand { color: #fff; }
.landing-footer .muted { color: #A8A29E; }
.landing-footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.landing-footer-links a { color: #D6D3D1; }
.landing-footer-links a:hover { color: #fff; }
.landing-copyright { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; }
.lp-legal { max-width: 46rem; }
.lp-legal h2 { margin-top: 1.5rem; }

@media (min-width: 860px) {
  .lp-hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .lp-art-card { display: flex; }
}
@media (max-width: 640px) {
  .landing-nav-links { display: none; }
}

/* ---------- Auth (login / register) ---------- */
.auth-card { width: min(56rem, 100%); display: grid; grid-template-columns: 1fr; overflow: hidden; padding: 0; }
.auth-brand { display: none; padding: 2.2rem; color: #fff; background:
    radial-gradient(600px 300px at 0% 0%, var(--accent), transparent 70%), var(--accent-strong); }
.auth-brand .brand { color: #fff; font-size: 1.4rem; }
.auth-brand h2 { margin-top: 1rem; font-size: 1.6rem; letter-spacing: -0.02em; }
.auth-brand ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.auth-brand li { display: flex; gap: 0.6rem; align-items: flex-start; color: rgba(255,255,255,0.92); }
.auth-form { padding: 2.2rem; }
@media (min-width: 760px) {
  .auth-card { grid-template-columns: 1fr 1fr; }
  .auth-brand { display: block; }
}

/* ---------- Floorplan (existing) ---------- */
.floorplan-layout { display: grid; gap: 1rem; }
.floorplan-canvas { width: 100%; min-height: 65vh; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.floorplan-canvas svg { width: 100%; height: 68vh; touch-action: none; display: block; }
.side-panel { display: grid; gap: 1rem; }
.tenant-card { text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 1rem; }
.drawer { border-left: 4px solid var(--accent); }
svg .room { fill: rgba(194,65,12,0.12); stroke: var(--accent); stroke-width: 2; }
svg .room.selected { fill: rgba(194,65,12,0.22); }
svg .wall { stroke: rgba(15,118,110,0.4); stroke-width: 8; cursor: pointer; }
svg .wall.active { stroke: var(--secondary); }
svg .draft { fill: none; stroke: var(--muted); stroke-dasharray: 4 4; stroke-width: 2; }
svg .point { fill: var(--secondary); }
svg .pin { fill: var(--text); cursor: pointer; }

/* ---------- Responsive ---------- */
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.3fr 0.9fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .floorplan-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}

@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; height: auto; flex-direction: row; align-items: center;
    gap: 0.25rem; overflow-x: auto; padding: 0.6rem 0.75rem; z-index: 10;
  }
  .sidebar-brand { padding: 0.4rem 0.6rem; }
  .sidebar-brand span:last-child { display: none; }
  .sidebar-nav { flex-direction: row; }
  .sidebar-footer { margin-top: 0; margin-left: auto; flex-direction: row; border-top: none; padding-top: 0; border-left: 1px solid var(--border); padding-left: 0.5rem; }
  .nav-item { padding: 0.5rem 0.6rem; }
  .nav-item span:not(.nav-icon) { display: none; }
  .content-inner { padding: 1.25rem; }
}
