/* ============================================================
   BLVCKMETA HOME -- web-only theme (data-theme="home"), light + dark.
   Light:  white rounded panel on a soft gradient page, near-black text, black pill buttons, pastel card tints, gold accents.
   Dark :  [data-mode="dark"]  charcoal panel on a deep page, muted dark-tinted cards, white text, gold accents (a real dark design, not inverted).
   Mode :  <html data-mode="light|dark"> is set by lib/home-theme-core.js (system preference until the visitor picks; bm:home-mode).
   Chrome: views/home-shell.js (mount points #home-left / #home-center / #home-right documented there).
   Contrast: every text/background pair below is >= 4.5:1 (body) / 3:1 (large + UI); checked by scripts/auditContrast.js (THEMES="home").
   Nothing here targets another theme. Safe to load on every page: every rule is scoped to [data-theme="home"].
   ============================================================ */

/* ---------- TOKENS: light ---------- */
[data-theme="home"] {
  --bm-bg: #F3F4F9;
  --bm-card: #F5F6FA;
  --bm-card-hover: #EBEDF5;
  --bm-accent: #111114;
  --bm-accent-soft: rgba(231, 170, 83, 0.20);
  --bm-accent-glow: rgba(17, 17, 20, 0.16);
  --bm-on-accent: #FFFFFF;
  --bm-accent-text: #7A4E00;
  --bm-text-primary: #0E0E12;
  --bm-text-secondary: rgba(14, 14, 18, 0.74);
  --bm-text-muted: rgba(14, 14, 18, 0.64);
  --bm-divider: rgba(14, 14, 18, 0.08);
  --bm-divider-strong: rgba(14, 14, 18, 0.16);

  --home-font: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --home-page-a: #E6ECFF;
  --home-page-b: #F6E9F6;
  --home-page-c: #FFEFDC;
  --home-panel: #FFFFFF;
  --home-panel-glass: rgba(255, 255, 255, 0.86);
  --home-pill: #111114;
  --home-on-pill: #FFFFFF;
  --home-gold: #E7AA53;
  --home-gold-deep: #B97A12;
  --home-focus: #A66A00;
  --home-tint-blue: #E4ECFF;
  --home-tint-cream: #FFF3D6;
  --home-tint-pink: #FFE4EC;
  --home-tint-mint: #DDF4E8;
  --home-shadow: 0 24px 64px rgba(40, 50, 100, 0.13), 0 2px 10px rgba(40, 50, 100, 0.06);
  --home-shadow-sm: 0 6px 20px rgba(40, 50, 100, 0.08);
  --home-r-xl: 32px;
  --home-r-lg: 24px;
  --home-r-md: 16px;
  --home-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

/* ---------- TOKENS: dark ---------- */
[data-theme="home"][data-mode="dark"],
html[data-mode="dark"] .bm-themed[data-theme="home"] {
  --bm-bg: #0E0F14;
  --bm-card: #1D1F26;
  --bm-card-hover: #272A33;
  --bm-accent: #E7AA53;
  --bm-accent-soft: rgba(231, 170, 83, 0.16);
  --bm-accent-glow: rgba(231, 170, 83, 0.32);
  --bm-on-accent: #14110A;
  --bm-accent-text: #F0C27A;
  --bm-text-primary: #F5F5F7;
  --bm-text-secondary: rgba(245, 245, 247, 0.78);
  --bm-text-muted: rgba(245, 245, 247, 0.66);
  --bm-divider: rgba(255, 255, 255, 0.09);
  --bm-divider-strong: rgba(255, 255, 255, 0.16);

  --home-page-a: #0A0B10;
  --home-page-b: #11131C;
  --home-page-c: #16120C;
  --home-panel: #15161B;
  --home-panel-glass: rgba(21, 22, 27, 0.88);
  --home-pill: #E7AA53;
  --home-on-pill: #14110A;
  --home-focus: #F2C26B;
  --home-tint-blue: #1B2540;
  --home-tint-cream: #2B2516;
  --home-tint-pink: #2F1E28;
  --home-tint-mint: #17291F;
  --home-shadow: 0 28px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --home-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

/* ---------- PAGE ---------- */
html[data-theme="home"],
html[data-theme="home"] body {
  background-color: var(--home-page-a);
  background-image:
    radial-gradient(900px 600px at 8% 0%, var(--home-page-a), transparent 70%),
    radial-gradient(900px 700px at 100% 10%, var(--home-page-b), transparent 70%),
    linear-gradient(160deg, var(--home-page-a) 0%, var(--home-page-b) 55%, var(--home-page-c) 100%);
  background-attachment: fixed;
  color: var(--bm-text-primary);
  font-family: var(--home-font);
  -webkit-font-smoothing: antialiased;
}
html[data-theme="home"][data-mode="dark"],
html[data-theme="home"][data-mode="dark"] body {
  background-image:
    radial-gradient(800px 520px at 12% -5%, rgba(231, 170, 83, 0.10), transparent 70%),
    radial-gradient(900px 640px at 100% 0%, rgba(90, 100, 190, 0.12), transparent 70%),
    linear-gradient(160deg, var(--home-page-a) 0%, var(--home-page-b) 60%, var(--home-page-c) 100%);
}
html[data-theme="home"] button,
html[data-theme="home"] input,
html[data-theme="home"] select,
html[data-theme="home"] textarea { font-family: inherit; }

/* focus rings: visible on every interactive thing, both modes */
html[data-theme="home"] :focus-visible {
  outline: 3px solid var(--home-focus);
  outline-offset: 2px;
  border-radius: 12px;
}
html[data-theme="home"] .hn-item:focus-visible,
html[data-theme="home"] .hl-btn:focus-visible,
html[data-theme="home"] .hb-item:focus-visible { border-radius: 999px; }

/* ---------- SHELL (signed in) ---------- */
html[data-theme="home"] .bm-layout {
  display: block;
  max-width: 1560px;
  margin: 0 auto;
  padding: 28px;
  min-height: 100vh;
}
html[data-theme="home"] #left-rail,
html[data-theme="home"] #right-rail,
html[data-theme="home"] #mobile-bottom-nav { display: none !important; }

html[data-theme="home"] .bm-home-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 320px;
  background: var(--home-panel);
  border-radius: var(--home-r-xl);
  box-shadow: var(--home-shadow);
  min-height: calc(100vh - 56px);
  border: 1px solid var(--bm-divider);
  overflow: clip;   /* rounded corners clip the sticky header; clip (not hidden) keeps sticky + position:fixed children working */
}
#home-left, #home-right { min-width: 0; }
html[data-theme="home"] #home-left {
  position: sticky; top: 28px; align-self: start;
  max-height: calc(100vh - 56px); overflow-y: auto; scrollbar-width: none;
  padding: 28px 18px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
html[data-theme="home"] #home-left::-webkit-scrollbar { width: 0; }
html[data-theme="home"] #home-center { min-width: 0; border-left: 1px solid var(--bm-divider); border-right: 1px solid var(--bm-divider); }
html[data-theme="home"] #home-right {
  position: sticky; top: 28px; align-self: start;
  max-height: calc(100vh - 56px); overflow-y: auto; scrollbar-width: none;
  padding: 28px 20px 22px;
  display: flex; flex-direction: column; gap: 16px;
}
html[data-theme="home"] #home-right:empty { display: none; }
html[data-theme="home"] .bm-home-shell:has(#home-right:empty) { grid-template-columns: 260px minmax(0, 1fr); }
html[data-theme="home"] .bm-home-shell:has(#home-right:empty) #home-center { border-right: 0; }

/* the existing view column: re-skinned, never rearranged */
html[data-theme="home"] .bm-center-column { background: transparent; border: 0; min-height: 0; overflow-x: hidden; }
html[data-theme="home"] .bm-tab-header {
  background: var(--home-panel-glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bm-divider);
  height: auto; min-height: 72px; padding: 18px 28px;
  border-top-left-radius: 0;
}
html[data-theme="home"] .bm-tab-header-title {
  font-size: 26px; font-weight: 800; letter-spacing: -0.4px; text-transform: lowercase; margin: 0;
}
html[data-theme="home"] .bm-tab-header-title::first-letter { text-transform: uppercase; }
html[data-theme="home"] .bm-view-container { padding-bottom: 48px; }

/* ---------- LEFT NAV ---------- */
.hn-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bm-text-primary); padding: 2px 8px 6px; }
.hn-brand-mark { width: 40px; height: 40px; object-fit: contain; flex: none; }
.hn-brand-word { display: flex; flex-direction: column; line-height: 1; }
.hn-brand-word b { font-size: 21px; font-weight: 800; letter-spacing: 0.06em; }
.hn-brand-word i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.5em; margin-top: 3px; color: var(--bm-text-secondary); }

.hn-me { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--home-r-md); text-decoration: none; color: var(--bm-text-primary); background: var(--bm-card); transition: background .2s var(--home-ease), box-shadow .2s var(--home-ease); }
.hn-me:hover { background: var(--bm-card-hover); }
.hn-me.is-active { box-shadow: inset 0 0 0 2px var(--home-pill); }
.hn-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--home-tint-cream) center / cover no-repeat; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--bm-text-primary); border: 2px solid var(--home-gold); }
.hn-me-text { display: flex; flex-direction: column; min-width: 0; }
.hn-me-name { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-me-handle { font-size: 13px; color: var(--bm-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hn-create { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 999px; padding: 13px 18px; font-size: 15px; font-weight: 700; background: var(--home-pill); color: var(--home-on-pill); transition: transform .2s var(--home-ease), box-shadow .2s var(--home-ease); }
.hn-create:hover { transform: translateY(-1px); box-shadow: 0 8px 22px var(--bm-accent-glow); }

.hn-nav { display: flex; flex-direction: column; gap: 2px; }
.hn-item { display: flex; align-items: center; gap: 14px; padding: 9px 16px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; text-decoration: none; text-align: left; width: 100%; font-size: 15px; font-weight: 600; color: var(--bm-text-secondary); transition: background .2s var(--home-ease), color .2s var(--home-ease); list-style: none; }
.hn-item::-webkit-details-marker { display: none; }
.hn-item:hover { background: var(--bm-card-hover); color: var(--bm-text-primary); }
.hn-item.is-active, .hn-item.is-active:hover { background: var(--home-pill); color: var(--home-on-pill); }
.hn-ic { flex: none; }
.hn-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-badge { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--home-gold); color: #14110A; }
.hn-item.is-active .hn-badge { background: var(--home-on-pill); color: var(--home-pill); }
.hn-more > summary { margin-top: 2px; }
.hn-more[open] > summary { color: var(--bm-text-primary); }
.hn-more-list { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 4px 10px; }
.hn-more-list .hn-item { font-size: 14px; padding: 9px 14px; }

.hn-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.hn-app { background: var(--home-tint-cream); border-radius: var(--home-r-lg); padding: 14px; }
.hn-app-title { font-weight: 800; font-size: 15px; }
.hn-app-sub { font-size: 13px; color: var(--bm-text-secondary); margin: 2px 0 12px; }
.hn-app-links { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.hn-store { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--home-pill); color: var(--home-on-pill); text-decoration: none; font-size: 13px; font-weight: 700; transition: transform .2s var(--home-ease); }
.hn-store:hover { transform: translateY(-1px); }
.hn-mode { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bm-card); }
.hn-mode-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; cursor: pointer; padding: 7px 4px; border-radius: 999px; background: transparent; color: var(--bm-text-secondary); font-size: 12px; font-weight: 700; }
.hn-mode-btn:hover { color: var(--bm-text-primary); }
.hn-mode-btn[aria-pressed="true"] { background: var(--home-pill); color: var(--home-on-pill); }

/* ---------- BOTTOM NAV (phone) + MORE SHEET + TEAIRA BUBBLE ---------- */
.bm-home-bottom, .bm-home-sheet { display: none; }
#app-shell.hidden ~ #home-bottom-nav, #app-shell.hidden ~ #home-more-sheet, #app-shell.hidden ~ #home-teaira-bubble { display: none !important; }
.bm-home-teaira { position: fixed; right: 28px; bottom: 28px; z-index: 60; width: 60px; height: 60px; padding: 0; border-radius: 50%; border: 3px solid var(--home-gold); background: var(--home-panel); cursor: pointer; box-shadow: var(--home-shadow-sm); overflow: hidden; transition: transform .2s var(--home-ease), box-shadow .2s var(--home-ease); }
.bm-home-teaira:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 30px var(--bm-accent-glow); }
.bm-home-teaira img { width: 100%; height: 100%; object-fit: cover; display: block; }
html:not([data-theme="home"]) .bm-home-teaira { display: none; }

/* ---------- GENERIC RE-SKIN (existing views keep their markup; only colors, radii, type change) ---------- */
html[data-theme="home"] .bm-card { border-radius: var(--home-r-lg); padding: 20px; border: 1px solid var(--bm-divider); }
html[data-theme="home"] .bm-card-hover:hover { box-shadow: var(--home-shadow-sm); transform: translateY(-1px); }
html[data-theme="home"] .bm-input, html[data-theme="home"] .bm-textarea { border-radius: var(--home-r-md); background: var(--bm-card); border: 1px solid var(--bm-divider-strong); color: var(--bm-text-primary); }
html[data-theme="home"] .bm-input:focus, html[data-theme="home"] .bm-textarea:focus { border-color: var(--home-focus); background: var(--home-panel); }
html[data-theme="home"] .bm-button-primary, html[data-theme="home"] .bm-button { border-radius: 999px; background: var(--home-pill); color: var(--home-on-pill); letter-spacing: 0.2px; text-transform: none; font-size: 14px; font-weight: 700; }
html[data-theme="home"] .bm-button-primary:hover:not(:disabled) { box-shadow: 0 10px 26px var(--bm-accent-glow); }
html[data-theme="home"] .bm-button-ghost { border-radius: 999px; letter-spacing: 0.2px; text-transform: none; font-size: 13px; font-weight: 700; border-color: var(--bm-divider-strong); color: var(--bm-text-primary); }
html[data-theme="home"] .bm-button-ghost:hover { background: var(--bm-card-hover); border-color: var(--bm-divider-strong); }
html[data-theme="home"] .bm-modal { border-radius: 28px; background: var(--home-panel); box-shadow: var(--home-shadow); color: var(--bm-text-primary); }
html[data-theme="home"] .bm-modal-backdrop { background: rgba(14, 14, 24, 0.5); }
html[data-theme="home"][data-mode="dark"] .bm-modal-backdrop { background: rgba(0, 0, 0, 0.66); }
html[data-theme="home"] .bm-subtab.active { color: var(--bm-text-primary); border-bottom-color: var(--home-gold); }
html[data-theme="home"] .bm-pulse-card { border-radius: var(--home-r-lg); }
/* contrast: inline-styled accents from existing widgets that assume a dark page */
html[data-theme="home"]:not([data-mode="dark"]) .bm-ic-act .i { color: #6B3FE0 !important; }

/* ---------- TABLET: two columns ---------- */
@media (max-width: 1100px) {
  .hn-mode-btn span { display: none; }   /* icon-only: the 232px nav is too narrow for three labels (aria-label + title keep the names) */
  html[data-theme="home"] .bm-layout { padding: 20px; }
  html[data-theme="home"] .bm-home-shell, html[data-theme="home"] .bm-home-shell:has(#home-right:empty) { grid-template-columns: 232px minmax(0, 1fr); }
  html[data-theme="home"] #home-left { grid-row: 1 / span 2; top: 20px; max-height: calc(100vh - 40px); padding: 24px 14px 18px; }
  html[data-theme="home"] #home-center { grid-column: 2; border-right: 0; }
  html[data-theme="home"] #home-right { grid-column: 2; position: static; max-height: none; border-left: 1px solid var(--bm-divider); border-top: 1px solid var(--bm-divider); padding: 20px; }
  html[data-theme="home"] .bm-tab-header { padding: 16px 22px; }
}

/* ---------- PHONE: one column + bottom nav ---------- */
@media (max-width: 700px) {
  html[data-theme="home"] .bm-layout { padding: 0; }
  html[data-theme="home"] .bm-home-shell, html[data-theme="home"] .bm-home-shell:has(#home-right:empty) { display: block; border-radius: 0; box-shadow: none; border: 0; min-height: 100vh; }
  html[data-theme="home"] #home-left { display: none; }
  html[data-theme="home"] #home-center { border: 0; }
  html[data-theme="home"] #home-right { border: 0; border-top: 1px solid var(--bm-divider); }
  html[data-theme="home"] .bm-tab-header { padding: 14px 18px; min-height: 60px; }
  html[data-theme="home"] .bm-tab-header-title { font-size: 22px; }
  html[data-theme="home"] .bm-view-container { padding-bottom: 104px; }
  html[data-theme="home"] .bm-home-bottom {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; gap: 2px;
    position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 50;
    padding: 8px 6px; border-radius: 28px; background: var(--home-panel-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--home-shadow); border: 1px solid var(--bm-divider);
  }
  .hb-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border: 0; background: transparent; border-radius: 18px; text-decoration: none; cursor: pointer; font-size: 11px; font-weight: 700; color: var(--bm-text-secondary); }
  .hb-item.is-active { color: var(--home-on-pill); background: var(--home-pill); }
  .hb-item .hn-badge { position: absolute; top: 2px; right: 10px; min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; margin: 0; }
  .hb-create { justify-self: center; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--home-pill); color: var(--home-on-pill); box-shadow: 0 8px 20px var(--bm-accent-glow); }
  .bm-home-teaira { right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .hn-mode-btn span { display: inline; }
  html[data-theme="home"] body > .bm-card[style*="position:fixed"] { bottom: calc(100px + env(safe-area-inset-bottom)) !important; }   /* one-time location prompt sits above the bottom nav */

  .bm-home-sheet { position: fixed; inset: 0; z-index: 400; background: rgba(14, 14, 24, 0.5); align-items: flex-end; }
  .bm-home-sheet:not([hidden]) { display: flex; }
  .hs-card { width: 100%; max-height: 86vh; overflow-y: auto; background: var(--home-panel); border-radius: 28px 28px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; box-shadow: var(--home-shadow); }
  .hs-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--bm-divider-strong); align-self: center; }
  body.hn-sheet-open { overflow: hidden; }
}
@media (min-width: 701px) { .bm-home-sheet, #home-more-sheet { display: none !important; } }

/* ---------- LOGGED-OUT HOME (landing + sign-in) ---------- */
html[data-theme="home"] .bm-auth-screen { display: block; min-height: 100vh; padding: 0; background: transparent; }
.hl-page { max-width: 1240px; margin: 0 auto; padding: 22px 24px 40px; color: var(--bm-text-primary); font-family: var(--home-font); }
.hl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 18px; }
.hl-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bm-text-primary); }
.hl-logo-mark { width: 44px; height: 44px; object-fit: contain; }
.hl-word { display: flex; flex-direction: column; line-height: 1; }
.hl-word b { font-size: 22px; font-weight: 800; letter-spacing: 0.06em; }
.hl-word i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.5em; margin-top: 3px; color: var(--bm-text-secondary); }
.hl-top-actions { display: flex; align-items: center; gap: 10px; }
.hl-btn { border: 1px solid transparent; cursor: pointer; border-radius: 999px; padding: 11px 22px; font-size: 14px; font-weight: 700; transition: transform .2s var(--home-ease), box-shadow .2s var(--home-ease), background .2s var(--home-ease); text-decoration: none; }
.hl-btn-lg { padding: 15px 30px; font-size: 16px; }
.hl-btn-solid { background: var(--home-pill); color: var(--home-on-pill); }
.hl-btn-solid:hover { transform: translateY(-1px); box-shadow: 0 10px 26px var(--bm-accent-glow); }
.hl-btn-ghost { background: transparent; color: var(--bm-text-primary); border-color: var(--bm-divider-strong); }
.hl-btn-ghost:hover { background: var(--bm-card-hover); }
.hl-icon-btn { border: 0; cursor: pointer; border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 700; background: var(--bm-card); color: var(--bm-text-primary); }
.hl-icon-btn:hover { background: var(--bm-card-hover); }

.hl-panel { background: var(--home-panel); border-radius: var(--home-r-xl); box-shadow: var(--home-shadow); border: 1px solid var(--bm-divider); padding: 48px; }
.hl-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hl-kicker { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: var(--home-tint-cream); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: var(--bm-text-primary); }
.hl-hero h1 { margin: 0 0 18px; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; }
.hl-lede { margin: 0 0 26px; max-width: 540px; font-size: 18px; line-height: 1.6; color: var(--bm-text-secondary); }
.hl-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hl-store { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 600; color: var(--bm-text-secondary); }
.hl-store-link { padding: 8px 16px; border-radius: 999px; background: var(--bm-card); color: var(--bm-text-primary); font-weight: 700; text-decoration: none; transition: background .2s var(--home-ease); }
.hl-store-link:hover { background: var(--bm-card-hover); }

.hl-auth { max-width: none; width: 100%; background: var(--home-tint-blue); border-radius: var(--home-r-xl); padding: 30px; box-shadow: var(--home-shadow-sm); }
.hl-auth-head { text-align: center; margin-bottom: 18px; }
.hl-auth-head h2 { margin: 6px 0 2px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.hl-auth-head p { margin: 0; font-size: 14px; color: var(--bm-text-secondary); }
.hl-lockup { width: 132px; height: 132px; object-fit: contain; display: block; margin: 0 auto; }
.hl-lockup-dark { display: none; }
[data-theme="home"][data-mode="dark"] .hl-lockup-light { display: none; }
[data-theme="home"][data-mode="dark"] .hl-lockup-dark { display: block; }
.hl-auth .bm-input { background: var(--home-panel); }
.hl-auth label, .hl-auth a { color: var(--bm-text-secondary); }
.hl-auth .bm-auth-error { color: #B3261E; background: rgba(179, 38, 30, 0.08); border-color: rgba(179, 38, 30, 0.3); }
[data-theme="home"][data-mode="dark"] .hl-auth .bm-auth-error { color: #FF9C94; }
.hl-auth .bm-teaira-tagline { color: var(--bm-text-secondary); }

.hl-preview { margin-top: 56px; }
.hl-preview h2 { margin: 0 0 6px; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.hl-preview-sub { margin: 0 0 24px; color: var(--bm-text-secondary); font-size: 16px; }
.hl-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hl-feature { border-radius: var(--home-r-lg); padding: 22px; transition: transform .25s var(--home-ease), box-shadow .25s var(--home-ease); }
.hl-feature:hover { transform: translateY(-3px); box-shadow: var(--home-shadow-sm); }
.hl-feature-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--home-panel); font-size: 22px; margin-bottom: 14px; }
.hl-feature h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.hl-feature p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--bm-text-secondary); }
.hl-tint-blue { background: var(--home-tint-blue); } .hl-tint-cream { background: var(--home-tint-cream); }
.hl-tint-pink { background: var(--home-tint-pink); } .hl-tint-mint { background: var(--home-tint-mint); }
.hl-sample { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.hl-sample-card { border-radius: var(--home-r-lg); padding: 20px; display: flex; flex-direction: column; gap: 2px; }
.hl-sample-card b { font-size: 15px; font-weight: 800; }
.hl-sample-card span { font-size: 13px; color: var(--bm-text-secondary); }
.hl-sample-card p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; }
.hl-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--bm-divider); font-size: 13px; color: var(--bm-text-secondary); }
.hl-foot a { color: var(--bm-text-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) { .hl-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hl-hero { gap: 28px; } .hl-panel { padding: 36px 30px; } }
@media (max-width: 820px) { .hl-hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .hl-page { padding: 12px 12px 28px; }
  .hl-panel { padding: 26px 18px; border-radius: 26px; }
  .hl-features, .hl-sample { grid-template-columns: minmax(0, 1fr); }
  .hl-auth { padding: 22px 18px; }
  .hl-btn { padding: 10px 16px; }
  .hl-btn-lg { padding: 13px 22px; font-size: 15px; }
  .hl-lede { font-size: 16px; }
  .hl-preview h2 { font-size: 26px; }
  .hl-word b { font-size: 18px; } .hl-word i { font-size: 10px; }
  .hl-cta .hl-btn-lg { flex: 1 1 140px; }
}

/* ---------- MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html[data-theme="home"] *, html[data-theme="home"] *::before, html[data-theme="home"] *::after,
  .hn-item, .hn-create, .hn-store, .hl-btn, .hl-feature, .bm-home-teaira { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .hl-feature:hover, .bm-home-teaira:hover, .hn-create:hover, .hn-store:hover, .hl-btn-solid:hover { transform: none; }
}
