:root {
  --green: #637c59;
  --green-dark: #3f5039;
  --green-light: #e8ede5;
  --paper: #f7f7f3;
  --ink: #252824;
  --muted: #70766d;
  --gold: #c89b63;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scrollbar-gutter: stable; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; color: var(--ink); background: var(--paper); font-family: Manrope, sans-serif; }
body > main { flex: 1 0 auto; }
.home-header, .home-footer { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 4px; }
.home-hero, .home-features, .online-intro, .home-footer { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.home-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-height: 102px; padding-inline: max(40px, calc((100% - 1180px) / 2)); border-bottom: 1px solid #d4dece; background: var(--paper); }
.home-brand { flex-shrink: 0; }
.home-brand img { display: block; width: 204px; height: auto; }
.home-nav { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 600; }
.home-nav a { padding-block: 10px; border-bottom: 2px solid transparent; }
.nav-current { color: var(--green-dark); border-bottom-color: var(--green); }
.nav-room { display: flex; align-items: center; gap: 18px; border: 1px solid #cbd5c5; border-radius: 8px; padding: 12px 17px; }
.nav-room:hover { border-color: var(--green); background: var(--green-light); }
.hero-band { background: var(--green-light); }
.home-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; padding-block: 36px 40px; }
.eyebrow { margin: 0 0 23px; color: var(--green); font-size: 10px; font-weight: 600; letter-spacing: .23em; }
h1 { margin: 0 0 28px; font: 700 clamp(58px, 7vw, 94px)/1.05 Manrope, sans-serif; letter-spacing: -.055em; }
h1 span { color: var(--green-dark); }
.hero-description { max-width: 435px; margin: 0 0 29px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; gap: 25px; padding: 14px 23px; color: #fff; background: var(--green); border-radius: 8px; font-size: 12px; font-weight: 700; box-shadow: 0 6px 14px #3f50391b; transition: background .15s, transform .15s; }
.primary-link:hover { background: var(--green-dark); transform: translateY(-2px); }
.hero-caption { display: flex; align-items: center; gap: 9px; margin: 24px 0 0; color: var(--muted); font-size: 10px; }
.hero-caption span { color: var(--gold); font-size: 19px; }
.hero-visual { position: relative; display: grid; align-content: center; min-width: 0; min-height: 435px; padding: 15px; }
.visual-orbit { position: absolute; inset: 15px 0 0; border-radius: 50%; background: radial-gradient(ellipse, #dfe7d9 0%, #e8ede580 45%, transparent 70%); }
.chord-demo { position: relative; padding: 28px; border: 1px solid #edf0e9; border-radius: 18px; background: #fff; box-shadow: 0 22px 50px #3f50391a, 0 3px 12px #3f503910; }
.demo-header { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8px; letter-spacing: .17em; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.chord-demo h2 { margin: 23px 0 5px; font-size: 28px; font-weight: 600; letter-spacing: -.06em; }
.demo-subtitle { margin: 0 0 23px; color: var(--muted); font-size: 11px; }
.demo-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 19px; color: var(--ink); font-size: 12px; letter-spacing: .14em; }
.demo-bottom i { padding-inline: 6px; color: var(--gold); font-style: normal; }
.demo-note { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: var(--green); border-radius: 50%; font-size: 24px; }
.visual-label { position: relative; justify-self: end; margin: 24px 6px 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.visual-label > span { float: left; margin: 4px 10px 0 0; color: var(--gold); }
.visual-label strong { color: var(--green-dark); font-weight: 600; }
.home-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; padding-block: 32px 64px; scroll-margin-top: 24px; }
.feature-card { display: flex; align-items: center; gap: 14px; padding: 23px 18px; border: 1px solid #e8ede5; border-radius: 10px; background: #fff; }
.feature-link:hover { border-color: var(--green); background: var(--green-light); }
.feature-icon { flex: 0 0 30px; width: 30px; height: 30px; color: var(--green-dark); font-size: 31px; line-height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.feature-card h2 { margin: 0 0 5px; font-size: 12px; font-weight: 700; }
.feature-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.online-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 40px 48px; color: var(--paper); background: var(--green-dark); border-radius: 14px; scroll-margin-top: 24px; }
.online-intro .eyebrow { color: #bdcdb4; margin-bottom: 14px; }
.online-intro h2 { margin: 0; font: 600 33px/1.2 Manrope, sans-serif; letter-spacing: -.03em; }
.online-copy p { margin: 0 0 18px; color: #dce4d7; font-size: 13px; line-height: 1.8; }
.coming-soon { display: inline-block; padding: 5px 10px; border: 1px solid #829477; border-radius: 999px; color: #e0e7da; font-size: 9px; }
.home-footer { display: flex; align-items: center; justify-content: space-between; padding-block: 35px; color: var(--muted); font-size: 11px; }
.home-footer span:last-child { font-size: 8px; letter-spacing: .2em; }
.online-room-dialog { width: min(430px, calc(100% - 36px)); padding: 28px; border: 1px solid #d4dece; border-radius: 16px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 70px #25282440; font-family: Manrope, sans-serif; }
.online-room-dialog::backdrop { background: #25282480; }
.online-room-dialog[open] { animation: online-room-in .2s ease-out; }
.online-room-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.online-room-heading .eyebrow { margin-bottom: 6px; }
.online-room-heading h2 { margin: 0; font: 700 25px/1.3 Manrope, sans-serif; letter-spacing: -.04em; }
.online-room-close { flex: 0 0 30px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; font: 24px/1 Manrope, sans-serif; }
.online-room-close:hover { color: var(--green-dark); background: #e8ede5; }
.online-room-dialog p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.online-room-create-section { display: grid; gap: 12px; justify-items: center; margin-top: 23px; text-align: center; }
.online-room-create-section p { margin: 0; color: var(--green-dark); font-size: 14px; font-weight: 700; }
.online-room-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.online-room-divider::before, .online-room-divider::after { content: ''; flex: 1; height: 1px; background: #d4dece; }
.online-room-divider span { flex: 0 0 auto; }
.online-room-dialog label { display: block; margin: 0 0 9px; font-size: 13px; font-weight: 700; text-align: center; }
.online-room-code { display: block; width: min(220px, 100%); margin-inline: auto; padding: 14px; border: 1px solid #cbd5c5; border-radius: 8px; color: var(--ink); background: #fff; font: 700 18px/1.2 Manrope, sans-serif; letter-spacing: .18em; text-align: center; text-transform: uppercase; }
.online-room-code::placeholder { color: #a5aca1; letter-spacing: .16em; }
.online-room-code:focus { border-color: var(--green); outline: 3px solid #637c5926; outline-offset: 1px; }
.online-room-status { margin: 12px 0 0; color: var(--green-dark); font-size: 12px; line-height: 1.6; text-align: center; }
.online-room-status.is-error { color: #a65449; }
.online-room-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.online-room-actions button { padding: 11px 18px; border: 1px solid #cbd5c5; border-radius: 8px; cursor: pointer; font: 600 12px Manrope, sans-serif; }
.online-room-create-section button { padding: 11px 18px; border: 1px solid var(--green); border-radius: 8px; cursor: pointer; font: 600 12px Manrope, sans-serif; }
.online-room-cancel { color: var(--muted); background: transparent; }
.online-room-cancel:hover { background: #e8ede5; }
.online-room-create, .online-room-access { border-color: var(--green); color: #fff; background: var(--green); }
.online-room-create:hover, .online-room-access:hover { background: var(--green-dark); }
.online-room-dialog button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@keyframes online-room-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .home-hero, .home-features, .online-intro, .home-footer { width: calc(100% - 48px); }
  .home-header { padding-inline: 24px; }
  .home-hero { gap: 30px; padding-block: 32px 36px; }
  .chord-demo { padding: 20px; }
  .home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .online-intro { gap: 30px; padding: 32px; }
}
@media (max-width: 600px) {
  .home-hero, .home-features, .online-intro, .home-footer { width: calc(100% - 36px); }
  .home-header { min-height: 82px; gap: 15px; padding-inline: 18px; }
  .home-brand img { width: 135px; }
  .home-nav { gap: 14px; font-size: 10px; }
  .nav-room { gap: 6px; padding: 9px; }
  .home-hero { grid-template-columns: 1fr; gap: 12px; padding-block: 28px 30px; }
  h1 { font-size: 72px; }
  .hero-visual { min-height: 0; padding: 15px 0; }
  .chord-demo { padding: 25px; }
  .visual-label { margin-top: 17px; }
  .feature-card { gap: 9px; padding: 18px 12px; }
  .feature-card p { font-size: 8px; }
  .home-features { gap: 10px; padding-bottom: 30px; }
  .online-intro { grid-template-columns: 1fr; gap: 23px; padding: 28px 24px; }
  .online-intro h2 { font-size: 29px; }
  .home-footer { gap: 15px; font-size: 10px; }
  .home-footer span:last-child { font-size: 7px; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-link { transition: none; }
  .online-room-dialog[open] { animation: none; }
}
