:root {
  --bg: #f8f9fc;
  --panel: #fff;
  --ink: #271e52;
  --muted: #61677d;
  --line: #e1e5ee;
  --accent: #37216e;
  --accent-soft: #f0edfa;
  --cyan: #03c5d0;
  --cyan-ink: #006f7e;
  --success: #225d50;
  --danger: #9c334b;
  --shadow: none;
  --radius: 15px;
}
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--ink); font-family: Geist, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { line-height: 1.5; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.045em; }
h1 { font-weight: 750; line-height: 1.04; }
h2 { font-weight: 700; line-height: 1.17; }
.muted, .small.muted { color: var(--muted); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .13em; color: var(--cyan-ink); }
.brand-lockup { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: .095em; line-height: 1; white-space: nowrap; }
.mark { color: var(--accent); width: 32px; height: 32px; flex: none; }
.btn, .chip { transition: background .16s, border-color .16s, color .16s; }
.btn { min-height: 46px; border-radius: 10px; font-weight: 650; }
.btn:hover:not(:disabled) { border-color: #a7a6bf; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn.primary:hover { background: #291752; }
.btn.soft { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.btn.link { color: var(--accent); }
.card, .price-card, .auth-card { box-shadow: none; }
.card { border-radius: 15px; }
.chip.active, .settings-tabs .chip.active, .step-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(55,33,110,.10); }
.notice { background: #f2f4f9; color: #474e68; }
.notice.ok { background: #eaf5f2; color: #185b50; }
.notice.warn { background: #fbf3e6; color: #745017; }
.side { background: #fff; border-color: var(--line); }
.side .brand { margin: 2px 0 20px 6px; }
.nav button { color: #515672; border-radius: 9px; font-size: 14px; }
.nav button:hover, .nav button.active { background: var(--accent-soft); color: var(--accent); }
.account-link { background: #f8f9fc; border-color: var(--line); }
.account-link:hover, .account-link.active { border-color: #bcb4df; }
.avatar { background: #e7e3f6; color: var(--accent); }
.main { padding-top: 40px; }
.topbar { margin-bottom: 23px; }
.topbar h1 { font-size: clamp(32px, 4vw, 48px); }
.lead { color: var(--muted); }
.door { background: #fff; min-height: 174px; border-radius: 14px; }
.door:hover { border-color: #a9a0cf; transform: translateY(-2px); }
.door .choice-index, .choice-index, .door-arrow { color: var(--accent); }
.door strong { color: var(--ink); }
.selection { color: var(--ink); }
.selection:hover, .selection.active { background: var(--accent-soft); border-color: #bcb4df; }
.selection span { color: var(--accent); }
.goal-tag { color: var(--accent); background: #f0edfa; }
.step-pill.done { border-color: #a9a0cf; color: var(--accent); }
.reference-thumb { background: #f0f2f8; color: var(--accent); }
.mobile-nav button.active { color: var(--accent); background: var(--accent-soft); }
.auth-tabs { background: #f3f4f8; }
.auth-tabs button.active { box-shadow: none; }
.inspiration-result { border-color: #dcd6ef; background: #fbfaff; }
.price-card.featured { border-color: #bcb4df; box-shadow: none; }
.public-header { background: rgba(255,255,255,.92); }
.public-main { max-width: 1100px; }
.public-main h1 { font-weight: 750; }
.reference-dialog { background: #fff; }
.status-dot.ok { background: #148577; }
.spinner { border-top-color: var(--accent); }

/* Public entry: product first, sign-in immediately after. */
.landing { min-height: 100dvh; background: var(--bg); }
.landing-header { position: sticky; top: 0; z-index: 40; height: 70px; padding: 0 clamp(20px, 5vw, 74px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(248,249,252,.95); backdrop-filter: blur(16px); }
.landing-header .btn { min-height: 40px; padding: 8px 16px; }
.landing-main { max-width: 1320px; margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 28px clamp(28px, 5vw, 90px); padding: clamp(38px, 5vw, 72px) clamp(20px, 5vw, 74px) 68px; align-items: center; }
.landing-intro { max-width: 650px; }
.landing-intro h1 { font-size: clamp(46px, 5.4vw, 82px); line-height: 1.01; letter-spacing: -.073em; margin: 18px 0 22px; }
.hero-transition { display: inline; color: var(--accent); background: linear-gradient(transparent 82%, #a8f0ee 82%); animation: highlight-in .9s ease-out both; }
@keyframes highlight-in { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
.landing-intro > p:not(.landing-trust) { font-size: clamp(16px,1.5vw,19px); color: #4f566d; max-width: 520px; line-height: 1.55; margin: 0 0 24px; }
.landing-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.landing-actions .primary { padding: 12px 19px; }
.btn.quiet { border: 0; background: transparent; color: var(--accent); }
.process-line { display: flex; align-items: center; gap: 10px; margin: 38px 0 12px; font-size: 12px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.process-line b { color: var(--cyan-ink); font-size: 10px; margin-right: 3px; }
.process-line i { display: block; flex: 1; max-width: 31px; height: 1px; background: #b4bad0; position: relative; }
.process-line i::after { content: ''; position: absolute; right: 0; top: -2px; width: 4px; height: 4px; border-top: 1px solid #8a8eac; border-right: 1px solid #8a8eac; transform: rotate(45deg); }
.landing-trust { color: var(--muted); font-size: 12px; margin: 0; }
.product-window { border: 1px solid #dce0ec; border-radius: 17px; background: #fff; overflow: hidden; box-shadow: 0 22px 55px rgba(41,29,83,.08); transform: rotate(-1deg); }
.window-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 17px; background: #f9f9fd; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .1em; font-weight: 700; }
.window-top .brand-lockup { font-size: 11px; gap: 4px; }
.window-top .mark { width: 20px; height: 20px; }
.window-body { padding: 30px clamp(16px,3vw,35px) 24px; }
.preview-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; }
.preview-heading h2 { font-size: clamp(20px,2vw,28px); margin: 4px 0 0; max-width: 280px; }
.preview-count { white-space: nowrap; border-radius: 100px; padding: 5px 9px; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.preview-item { display: grid; grid-template-columns: 43px 1fr auto; gap: 13px; align-items: center; border-top: 1px solid var(--line); padding: 15px 0; }
.preview-date { width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid #d7d3ea; border-radius: 9px; color: var(--accent); font-weight: 750; }
.preview-item strong, .preview-item small { display: block; }
.preview-item strong { font-size: 13px; }
.preview-item small { font-size: 11px; color: var(--muted); margin-top: 2px; }
.preview-arrow { font-size: 18px; color: var(--cyan-ink); }
.preview-footer { border-top: 1px solid var(--line); padding-top: 15px; font-size: 11px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.preview-accent { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.landing-signin { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 35px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 25px; scroll-margin-top: 90px; }
.signin-copy { max-width: 420px; }
.signin-copy h2 { font-size: clamp(25px,3vw,39px); margin: 8px 0; }
.signin-copy p { color: var(--muted); margin: 0; }
.landing-signin .auth-card { justify-self: end; width: min(430px,100%); padding: 20px 25px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.landing-signin .auth-tabs { margin: 0 0 16px; }
.landing-signin .field input { min-height: 46px; }
.landing-signin #auth-form { gap: 11px; }
.landing-signin #auth-form .btn.link { justify-self: start; }

@media (max-width: 900px) {
  .landing-main { grid-template-columns: 1fr; max-width: 690px; padding-top: 32px; gap: 27px; }
  .landing-intro h1 { font-size: clamp(42px, 8vw, 62px); }
  .product-window { transform: none; }
  .landing-signin { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .mobile-brand { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 35; align-items: center; justify-content: space-between; height: calc(62px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 15px 0; margin: 0; background: rgba(248,249,252,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
  .mobile-brand .brand-lockup { font-size: 17px; }
  .mobile-brand .mark { width: 30px; height: 30px; }
  .mobile-brand .btn { min-height: 39px; padding: 7px 13px; font-size: 13px; }
  .main { padding: calc(83px + env(safe-area-inset-top)) 16px calc(106px + env(safe-area-inset-bottom)); }
  .topbar { margin-bottom: 17px; align-items: end; }
  .topbar h1 { font-size: clamp(29px, 8vw, 41px); }
  .topbar > .btn { min-height: 38px; font-size: 12px; padding: 7px 10px; flex: none; }
  .mobile-nav { background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -5px 20px rgba(36,25,89,.04); }
  .mobile-nav button { color: #575b73; }
  .mobile-nav button.active { background: var(--accent-soft); color: var(--accent); }
  .door { min-height: 135px; padding: 17px 20px; }
  .door strong { max-width: calc(100% - 20px); }
  .card { padding: 18px; }
  .reference-item { padding: 12px; }
  .landing-header { height: calc(62px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0; }
  .landing-header .mark { width: 30px; height: 30px; }
  .landing-main { padding: 29px 16px 45px; gap: 26px; }
  .landing-intro h1 { font-size: clamp(38px, 10vw, 54px); line-height: 1.05; margin: 12px 0 14px; }
  .landing-intro > p:not(.landing-trust) { font-size: 15px; margin-bottom: 17px; }
  .process-line { margin: 23px 0 8px; }
  .product-window { box-shadow: 0 8px 30px rgba(41,29,83,.06); }
  .window-body { padding: 20px 18px; }
  .landing-signin { grid-template-columns: 1fr; gap: 16px; padding-top: 29px; }
  .landing-signin .auth-card { justify-self: stretch; width: 100%; }
}
@media (max-width: 360px) {
  .mobile-nav button { font-size: 9px; letter-spacing: -.02em; }
  .mobile-brand .brand-lockup, .landing-header .brand-lockup { font-size: 15px; gap: 5px; }
  .mobile-brand .btn { padding: 7px 10px; }
  .landing-intro h1 { font-size: 36px; }
  .process-line { gap: 5px; font-size: 11px; }
  .preview-item { gap: 8px; }
  .preview-item small { font-size: 10px; }
  .library-tools { grid-template-columns: 1fr; }
  .library-tools .field:first-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-transition { animation: none; }
}