/* ─────────────────────────────────────────────────────────────────────────
   Hummo landing — design tokens + components.
   Single stylesheet shared by index / privacy / terms / support pages.
   Dark theme, orange accent. Brand: bg #0b0b0e, card #15131a,
   text #f1f1f3, subtle #9a9aa5, accent gradient #ff5722 → #ff7849.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0b0b0e;
  --bg-soft: #100e14;
  --bg-elev: #15131a;
  --bg-mute: #1d1a24;
  --text: #f1f1f3;
  --text-muted: #c3c3cc;
  --text-subtle: #9a9aa5;
  --border: #26222f;
  --border-strong: #383143;

  --accent: #ff5722;
  --accent-2: #ff7849;
  --accent-hover: #ff6a33;
  --accent-soft: rgba(255, 87, 34, .14);
  --grad: linear-gradient(135deg, #ff5722 0%, #ff7849 100%);

  --success: #34d399;
  --success-soft: rgba(52, 211, 153, .14);
  --neutral: #6b6b74;

  --shadow-sm: 0 1px 0 rgba(0,0,0,.5);
  --shadow-md: 0 1px 0 rgba(0,0,0,.5), 0 8px 24px -12px rgba(0,0,0,.7);
  --shadow-lg: 0 1px 0 rgba(0,0,0,.5), 0 24px 48px -16px rgba(0,0,0,.85);
  --shadow-accent: 0 16px 40px -16px rgba(255, 87, 34, .45);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --maxw: 1120px;
  --maxw-narrow: 760px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Noto Sans KR",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 620px at 50% -8%, #1c130f 0%, transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: var(--maxw-narrow); }

.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.small { font-size: 14px; }
.micro { font-size: 12px; }
.mono { font-family: var(--font-mono); }

/* ─ Brand mark (favicon as inline chip) ───────────────────────────────── */
.brand-mark {
  width: 22px; height: 22px; flex-shrink: 0;
  background-image: url("/favicon.svg");
  background-size: contain; background-repeat: no-repeat;
}

/* ─ Nav ───────────────────────────────────────────────────────────────── */
nav.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  color: var(--text-muted); font-size: 14px;
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.nav-links a:not(.btn):hover {
  color: var(--text); background: var(--bg-mute); text-decoration: none;
}

.lang-picker-mount {
  display: inline-flex; align-items: center;
  margin-left: 4px; position: relative;
}
.lang-picker-mount::after {
  content: ""; position: absolute;
  right: 11px; top: 50%; width: 7px; height: 7px;
  margin-top: -5px;
  border-right: 1.5px solid var(--text-subtle);
  border-bottom: 1.5px solid var(--text-subtle);
  transform: rotate(45deg);
  pointer-events: none;
  transition: border-color 0.15s;
}
.lang-picker-mount:hover::after { border-color: var(--text); }
select.lang-picker {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 6px 28px 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer; font-size: 12px; font-weight: 500;
  color: var(--text-muted); font-family: inherit; line-height: 1.2;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
select.lang-picker:hover { color: var(--text); border-color: var(--accent); background: var(--bg-mute); }
select.lang-picker:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-color: var(--accent); color: var(--text); }
select.lang-picker option { background: var(--bg-elev); color: var(--text); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-strong);
  padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer;
  color: var(--text);
}

/* ─ Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer; font-family: inherit;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-accent {
  background: var(--grad); color: #fff;
}
.btn-accent:hover { filter: brightness(1.06); }
.btn-outline {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--bg-mute); border-color: var(--accent); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

/* ─ Status banner (?paid / ?canceled) ─────────────────────────────────── */
.status-banner {
  max-width: var(--maxw); margin: 16px auto 0; padding: 14px 20px;
  border-radius: var(--radius-md); font-size: 15px; font-weight: 600;
  border: 1px solid var(--border-strong);
}
.status-banner.banner-success {
  background: var(--success-soft); color: var(--success);
  border-color: color-mix(in srgb, var(--success) 40%, transparent);
}
.status-banner.banner-canceled {
  background: var(--bg-mute); color: var(--text-muted);
}

/* ─ Section ───────────────────────────────────────────────────────────── */
section { padding: 80px 0; }
.alt-bg { background: var(--bg-soft); }
section h2 {
  font-size: 36px; line-height: 1.15; margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  word-break: keep-all; overflow-wrap: anywhere;
}
.hero h1 { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) .hero h1, :lang(ja) section h2 { word-break: normal; }
section .section-lead {
  font-size: 17px; color: var(--text-muted); max-width: 640px; margin: 0 0 48px 0;
}

/* ─ Hero ──────────────────────────────────────────────────────────────── */
.hero { padding: 80px 0 64px 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.hero-grid > * { min-width: 0; }
.hero-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 5px 12px; border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 54px; line-height: 1.06; letter-spacing: -0.03em;
  margin: 0 0 20px 0;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  font-size: 18px; color: var(--text-muted); max-width: 560px;
  margin: 0 0 28px 0;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-fineprint {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--text-subtle);
}
.hero-fineprint .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-subtle); }

/* ─ App / room mock ───────────────────────────────────────────────────── */
.app-mock {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-sans);
}
.app-titlebar {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px;
  background: var(--bg-mute);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.app-logo {
  width: 18px; height: 18px; flex-shrink: 0;
  background-image: url("/favicon.svg");
  background-size: contain; background-repeat: no-repeat;
}
.app-title { font-weight: 700; color: var(--text); }
.app-room { margin-left: auto; color: var(--text-subtle); font-size: 12px; }

.np {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px 10px 18px;
}
.np-art {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-accent);
}
.np-meta { min-width: 0; flex: 1; }
.np-track { font-weight: 600; color: var(--text); font-size: 15px; }
.np-artist { color: var(--text-subtle); font-size: 13px; }
.np-sync {
  flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  color: var(--success);
  background: var(--success-soft);
  border-radius: var(--radius-pill); padding: 4px 10px;
  display: inline-flex; align-items: center; gap: 6px;
}
.np-sync::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
}
.np-bar {
  margin: 0 18px; height: 5px; border-radius: 3px;
  background: var(--bg-mute); overflow: hidden;
}
.np-bar-fill { width: 46%; height: 100%; background: var(--grad); border-radius: 3px; }
.np-time {
  display: flex; justify-content: space-between;
  padding: 6px 18px 12px 18px;
  font-size: 11px; color: var(--text-subtle);
  font-family: var(--font-mono);
}

.app-section { padding: 12px 18px; border-top: 1px solid var(--border); }
.app-section-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-subtle); margin-bottom: 10px;
}
.badge-count {
  margin-left: auto; background: var(--accent-soft); color: var(--accent-2);
  border-radius: var(--radius-pill); padding: 1px 9px;
  font-size: 11px; font-weight: 700; letter-spacing: 0;
}
.queue-shuffle { margin-left: auto; color: var(--accent-2); font-weight: 600; }

.listeners { display: flex; flex-wrap: wrap; gap: 7px; }
.listener {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
  background: var(--bg-mute); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 4px 11px;
}
.listener-host { color: var(--text); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.host-tag {
  font-size: 9px; font-weight: 800; letter-spacing: 0.06em;
  color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 5px;
}

.queue { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.queue li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 6px 0; font-size: 13px;
  counter-increment: q;
}
.queue li::before {
  content: counter(q);
  flex: none; width: 18px; color: var(--text-subtle);
  font-family: var(--font-mono); font-size: 11px;
}
.q-title { color: var(--text); }
.q-by { margin-left: auto; color: var(--text-subtle); font-size: 11px; }

.app-chat {
  padding: 12px 18px 16px; border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.chat-line { font-size: 13px; color: var(--text-muted); padding: 2px 0; }
.chat-line b { color: var(--accent-2); font-weight: 600; margin-right: 4px; }
.chat-input {
  margin-top: 8px; font-size: 13px; color: var(--text-subtle);
  background: var(--bg-mute); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 8px 14px;
}

/* ─ Proof strip ───────────────────────────────────────────────────────── */
.proof-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--bg-soft);
}
.proof-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px;
  font-size: 13px; color: var(--text-muted);
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.proof-item { display: inline-flex; align-items: center; gap: 8px; }
.proof-item svg { color: var(--accent-2); flex: none; }

/* ─ How it works ──────────────────────────────────────────────────────── */
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: 48px;
}
.step {
  border: 1px solid var(--border); background: var(--bg-elev);
  border-radius: var(--radius-lg); padding: 24px;
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 14px;
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin: 0 0 8px 0; }
.step p { color: var(--text-muted); margin: 0; font-size: 14px; }

.diagram-wrap {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
  color: var(--text-muted);
}
.diagram-wrap .diagram-title {
  font-size: 13px; color: var(--text-subtle);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 14px 0;
}
.diagram-wrap svg { display: block; max-width: 100%; height: auto; }
.diagram-wrap .diagram-sub { fill: var(--text-subtle); }
.diagram-note { margin: 14px 0 0 0; }

/* ─ Feature grid ──────────────────────────────────────────────────────── */
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.feature-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature-card .icon {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  background: var(--accent-soft); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 15px; margin: 0 0 6px 0; }
.feature-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* ─ Pricing ───────────────────────────────────────────────────────────── */
.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.price-grid.two {
  grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto;
}
.price-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.price-card .recommended {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: var(--radius-pill);
  letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
}
.price-card h3 { font-size: 22px; margin: 0 0 4px 0; }
.price-card .tier-tagline { color: var(--text-subtle); font-size: 13px; margin: 0 0 18px 0; }
.price-card .price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.price-card .price-num { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.price-card .price-period { color: var(--text-subtle); font-size: 14px; }
.price-card .key-spec {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 14px 16px; background: var(--bg-mute);
  border-radius: var(--radius-md); margin-bottom: 18px;
}
.price-card .key-spec .spec-num {
  font-size: 22px; font-weight: 800; color: var(--accent-2);
}
.price-card .key-spec .spec-label { font-size: 13px; color: var(--text-muted); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px 0; flex: 1; }
.price-card ul li {
  padding: 6px 0 6px 24px; position: relative; font-size: 14px; color: var(--text-muted);
}
.price-card ul li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 13px; height: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%23ff7849' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.price-card .cta { width: 100%; }
.pricing-note { text-align: center; max-width: 620px; margin: 24px auto 0; }

/* ─ FAQ ───────────────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--bg-elev); margin-bottom: 10px; padding: 16px 20px;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.faq summary {
  font-weight: 600; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 20px; color: var(--accent-2); font-weight: 400; flex: none;
  transition: transform .15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-muted); margin: 12px 0 0 0; font-size: 15px; }
.faq details p strong { color: var(--text); }

/* ─ Footer ────────────────────────────────────────────────────────────── */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px 0; background: var(--bg-soft);
}
.site-footer-grid {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
  align-items: flex-start;
}
.site-footer .brand { font-size: 16px; }
.site-footer .footer-links {
  display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px;
}
.site-footer .footer-links a { color: var(--text-muted); }
.site-footer .footer-links a:hover { color: var(--text); }
.site-footer .copy {
  width: 100%; color: var(--text-subtle); font-size: 12px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between;
}
.site-footer .copy .credit { color: var(--text-subtle); }
.site-footer .copy .credit a { color: var(--text-subtle); }
.site-footer .copy .credit a:hover { color: var(--accent-2); }

/* ─ Legal / support pages (privacy / terms / support) ─────────────────── */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: 36px; margin: 0 0 6px 0; letter-spacing: -0.02em; }
.legal h2 {
  font-size: 20px; margin: 36px 0 12px 0;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.legal p { color: var(--text-muted); }
.legal ul { padding-left: 18px; color: var(--text-muted); }
.legal ul li { padding: 3px 0; }
.legal strong { color: var(--text); }
.legal a { color: var(--accent-2); }
.legal .meta {
  display: inline-block; font-size: 13px; color: var(--text-subtle);
  padding: 4px 10px; background: var(--bg-mute);
  border-radius: var(--radius-pill); margin-bottom: 24px;
}

/* ─ Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .price-grid, .price-grid.two { grid-template-columns: 1fr; gap: 16px; max-width: 480px; }
  .hero h1 { font-size: 42px; }
  section h2 { font-size: 28px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 32px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 20px 16px; gap: 4px;
  }
  .nav-links.open a:not(.btn) { width: 100%; padding: 10px 8px; }
  .nav-links.open .lang-picker-mount { margin: 8px 0 0; }
  .nav-links.open .btn { margin-top: 8px; }

  .feature-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 16px; }
  .site-footer .copy { flex-direction: column; gap: 6px; }
}

/* ─ Accessibility: skip link, focus ring, reduced motion ──────────────── */
.skip-link {
  position: absolute; left: 8px; top: -56px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
  text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 8px; }
:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px;
}
.site-footer .copy .disclaimer { opacity: .9; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
