:root {
  --bg: oklch(98% 0.004 240);
  --surface: oklch(100% 0 0);
  --fg: oklch(20% 0.02 240);
  --muted: oklch(50% 0.018 240);
  --border: oklch(90% 0.006 240);
  --accent: oklch(56% 0.12 170);
  --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
  --fg-soft: color-mix(in oklch, var(--fg) 6%, transparent);
  --font-display: 'Söhne', 'Avenir Next', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 14px 30px color-mix(in oklch, var(--fg) 8%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }

.container { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
.topnav { position: sticky; top: 0; z-index: 10; background: color-mix(in oklch, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topnav-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topnav .logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.topnav nav { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.topnav nav a:hover { color: var(--fg); }

.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius); border: 1px solid transparent; padding: 10px 16px; font-size: 14px; font-weight: 650; transition: .16s ease; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in oklch, var(--accent) 28%, transparent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--surface); border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in oklch, var(--accent) 88%, black); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 8px; }
.btn-ghost:hover { color: var(--accent); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.hero { padding-block: 72px; }
.hero-center { text-align: center; max-width: 720px; margin-inline: auto; }
.eyebrow { color: var(--accent); font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.h1, h1 { font-size: clamp(34px, 6vw, 72px); line-height: 1.04; letter-spacing: -.05em; }
.h2, h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.h3, h3 { font-size: 20px; line-height: 1.24; letter-spacing: -.025em; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 58ch; }
.meta { color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.section { padding-block: 72px; }
.section + .section { border-top: 1px solid var(--border); }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.card-flat { background: transparent; border: 0; padding: 0; }
.tag, .pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.tag { border: 1px solid var(--border); padding: 5px 9px; color: var(--muted); }
.pill { background: var(--accent-soft); color: var(--accent); padding: 5px 9px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }
.pagefoot { padding: 32px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

.gallery { min-height: 100vh; padding-bottom: 80px; }
.gallery-hero { padding: 72px 0 48px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.gallery-card { overflow: hidden; padding: 0; }
.gallery-card iframe { display: block; width: 100%; border: 0; background: var(--surface); }
.gallery-card-copy { padding: 18px 20px 20px; }
.gallery-card-copy p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.flowline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.flowline .tag { background: var(--surface); }

/* mini-program screen */
.wx-page { min-height: 100vh; background: var(--bg); }
.wx-shell { min-height: 844px; background: var(--bg); }
.wx-status { height: 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: var(--muted); font-size: 11px; }
.wx-status .signal { display: inline-flex; gap: 6px; }
.wx-bar { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: color-mix(in oklch, var(--bg) 94%, transparent); border-bottom: 1px solid var(--border); }
.wx-bar h1 { font-family: var(--font-body); font-size: 18px; letter-spacing: -.02em; font-weight: 700; }
.wx-bar .bar-action { color: var(--muted); font-size: 13px; }
.wx-content { padding: 18px 18px 92px; }
.wx-tabbar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 420px); height: 72px; display: grid; grid-template-columns: repeat(3, 1fr); background: color-mix(in oklch, var(--surface) 94%, transparent); border-top: 1px solid var(--border); backdrop-filter: blur(16px); z-index: 20; }
.wx-tabbar a { display: grid; place-items: center; align-content: center; gap: 4px; color: var(--muted); font-size: 11px; }
.wx-tabbar a.active { color: var(--accent); font-weight: 700; }
.wx-tabbar svg { width: 19px; height: 19px; }
.wx-section { margin-bottom: 18px; }
.wx-section:last-child { margin-bottom: 0; }
.wx-kicker { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.wx-title { font-family: var(--font-display); font-size: 28px; line-height: 1.12; letter-spacing: -.045em; }
.wx-subtitle { color: var(--muted); font-size: 13px; line-height: 1.55; }
.wx-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: 0 8px 18px color-mix(in oklch, var(--fg) 6%, transparent); }
.wx-card + .wx-card { margin-top: 12px; }
.community-select { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.community-select strong { display: block; font-size: 15px; }
.community-select span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.select-caret { color: var(--muted); font-size: 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { min-height: 34px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; white-space: nowrap; }
.chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.listing-card { display: block; }
.listing-card .listing-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.listing-card .listing-title { font-size: 17px; font-weight: 700; }
.listing-card .listing-location { margin-top: 4px; color: var(--muted); font-size: 12px; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.listing-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--border); }
.listing-price { color: var(--fg); font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.listing-price small { color: var(--muted); font-family: var(--font-body); font-size: 11px; font-weight: 500; }
.link-arrow { color: var(--accent); font-size: 13px; font-weight: 700; }
.banner { padding: 14px 16px; border-radius: 14px; background: var(--fg); color: var(--surface); }
.banner strong { display: block; font-size: 14px; }
.banner span { display: block; margin-top: 3px; color: color-mix(in oklch, var(--surface) 72%, transparent); font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.good { color: var(--accent); }
.status.wait { color: oklch(60% 0.12 80); }
.status.muted { color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field + .field { margin-top: 14px; }
.field label { color: var(--muted); font-size: 12px; }
.input, .textarea, .select { width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface); color: var(--fg); }
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: 3px solid color-mix(in oklch, var(--accent) 22%, transparent); border-color: var(--accent); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; background: var(--fg-soft); border-radius: 12px; }
.segmented button { min-height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11px; }
.segmented button.active { background: var(--surface); color: var(--fg); box-shadow: 0 2px 7px color-mix(in oklch, var(--fg) 8%, transparent); font-weight: 700; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.check-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); }
.helper { color: var(--muted); font-size: 11px; line-height: 1.5; }
.sticky-cta { position: fixed; left: 50%; bottom: 82px; transform: translateX(-50%); width: min(calc(100% - 36px), 384px); z-index: 15; }
.sticky-cta .btn { width: 100%; box-shadow: 0 10px 22px color-mix(in oklch, var(--fg) 14%, transparent); }
.detail-hero { padding: 20px 18px; background: var(--fg); color: var(--surface); border-radius: 0 0 20px 20px; }
.detail-hero .wx-kicker { color: color-mix(in oklch, var(--surface) 62%, transparent); }
.detail-hero .wx-title { color: var(--surface); }
.detail-hero .listing-location { color: color-mix(in oklch, var(--surface) 72%, transparent); }
.detail-price { margin-top: 18px; font-family: var(--font-display); font-size: 34px; font-weight: 750; }
.detail-price small { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: color-mix(in oklch, var(--surface) 70%, transparent); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-item { padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.detail-item span { display: block; color: var(--muted); font-size: 11px; }
.detail-item strong { display: block; margin-top: 3px; font-size: 14px; }
.notice { padding: 12px 13px; background: var(--accent-soft); border: 1px solid color-mix(in oklch, var(--accent) 22%, var(--border)); border-radius: 12px; color: var(--fg); font-size: 12px; }
.notice strong { color: var(--accent); }
.progress { display: flex; gap: 5px; }
.progress span { flex: 1; height: 4px; border-radius: 999px; background: var(--border); }
.progress span.active { background: var(--accent); }
.empty { padding: 42px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 42px; height: 42px; margin: 0 auto 12px; color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 11px 15px; border-radius: 999px; background: var(--fg); color: var(--surface); font-size: 12px; transition: .2s ease; z-index: 30; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-size: 23px; font-weight: 700; }
.profile-name { font-size: 18px; font-weight: 750; }
.profile-note { margin-top: 3px; color: var(--muted); font-size: 12px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.list-row:first-child { border-top: 0; padding-top: 0; }
.list-row:last-child { padding-bottom: 0; }
.list-row strong { font-size: 14px; }
.list-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--muted); }
.icon-btn:hover { border-color: var(--fg); color: var(--fg); }

@media (max-width: 920px) { .gallery-grid { grid-template-columns: 1fr; } .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (min-width: 600px) { .wx-shell { max-width: 420px; margin-inline: auto; border-inline: 1px solid var(--border); } }
