/* Hangz site — one stylesheet for the landing page and the legal pages.
   A dark "lights-off living room" with one warm screen-glow accent; light theme for people who prefer it. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
  /* Layout: a dark "lights-off living room" with one warm screen-glow accent; wide bands, content in a 1100px column */
  :root {
    --bg: #0f1020;
    --bg-2: #171933;
    --card: #1d1f3d;
    --line: #2d3058;
    --fg: #f3f1ff;
    --muted: #a9a8c9;
    --glow: #ffb547;        /* warm screen glow */
    --glow-2: #ff7a59;
    --cyan: #5ee6ff;        /* secondary, used sparingly */
    --display: "Unbounded", "Arial Black", sans-serif;
    --body: "Nunito", "Segoe UI", system-ui, sans-serif;
    color-scheme: dark;
  }
  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
      --bg: #f6f3ec; --bg-2: #ece8dd; --card: #ffffff; --line: #d9d3c4;
      --fg: #171933; --muted: #5a5878; --glow: #e8891a; --glow-2: #e0573a; --cyan: #0e9bb5;
      color-scheme: light;
    }
  }
  :root[data-theme="light"] {
    --bg: #f6f3ec; --bg-2: #ece8dd; --card: #ffffff; --line: #d9d3c4;
    --fg: #171933; --muted: #5a5878; --glow: #e8891a; --glow-2: #e0573a; --cyan: #0e9bb5;
    color-scheme: light;
  }

  * { box-sizing: border-box; }
  body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.55; }
  a { color: inherit; }
  h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; }
  h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; }
  h3 { font-size: 1.05rem; font-weight: 700; }
  p { margin: 0; }
  .wrap {
    max-width: 1100px; margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  section { padding-block: 72px; }
  .eyebrow { font-family: var(--display); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--glow); font-weight: 700; }
  .lead { color: var(--muted); max-width: 60ch; font-size: 1.1rem; }

  /* Nav */
  nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
  nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
  .logo { font-family: var(--display); font-weight: 900; font-size: 1.5rem; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 0; text-decoration: none; }
  .logo .z { position: relative; display: inline-block; color: var(--glow); }
  .logo .z svg { position: absolute; left: 1px; top: -9px; width: 15px; height: 9px; }
  .logo .z, .logo .z svg { pointer-events: none; }
  nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; font-weight: 600; }
  nav ul a { text-decoration: none; color: var(--muted); }
  nav ul a:hover { color: var(--fg); }
  @media (max-width: 640px) { nav ul { display: none; } }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; font-family: var(--body); font-size: 1rem; }
  .btn-glow { background: var(--glow); color: #1a1200; box-shadow: 0 0 0 0 var(--glow); transition: box-shadow .25s, transform .15s; }
  .btn-glow:hover { box-shadow: 0 0 28px -4px var(--glow); transform: translateY(-1px); }
  .btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--fg); }
  .btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

  /* Hero */
  .hero { padding-block: 56px 40px; position: relative; overflow: hidden; }
  .hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
  @media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
  .hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; letter-spacing: -.02em; }
  .hero h1 em { font-style: normal; color: var(--glow); }
  .hero .lead { margin-top: 18px; }
  .hero-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
  .hero-note { margin-top: 14px; font-size: .9rem; color: var(--muted); }
  .scene { position: relative; aspect-ratio: 5/4; max-width: 100%; }
  .scene svg { width: 100%; height: 100%; display: block; }
  .glow-bg { position: absolute; inset: auto 0 0 0; height: 60%; background: radial-gradient(60% 70% at 50% 100%, color-mix(in oklab, var(--glow) 32%, transparent), transparent 70%); pointer-events: none; }
  @media (prefers-reduced-motion: no-preference) {
    .screen-flicker { animation: flick 6s infinite; }
    @keyframes flick { 0%,92%,100% { opacity: 1 } 94% { opacity: .82 } 96% { opacity: 1 } 98% { opacity: .9 } }
    .bob { animation: bob 4s ease-in-out infinite; transform-origin: center; }
    .bob.d2 { animation-delay: -1.3s } .bob.d3 { animation-delay: -2.6s }
    @keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-5px) } }
  }

  /* Works with */
  .with { border-block: 1px solid var(--line); background: var(--bg-2); padding-block: 22px; }
  .with .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; font-size: .95rem; }
  .with .label { font-family: var(--display); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg); }
  .with .soon { font-weight: 400; font-size: .8rem; }

  /* Steps */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
  @media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
  .step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 10px; min-width: 0; }
  .step .n { font-family: var(--display); color: var(--glow); font-size: .85rem; font-weight: 700; }
  .step p { color: var(--muted); }

  /* Rooms */
  .rooms { background: var(--bg-2); }
  .room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
  @media (max-width: 900px) { .room-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .room-grid { grid-template-columns: 1fr; } }
  .room { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); min-width: 0; display: grid; grid-template-rows: auto 1fr; }
  .room .frame { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
  .room .art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
  .room .body { padding: 18px 20px 20px; display: grid; gap: 6px; }
  .room .tag { font-size: .78rem; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .room p { color: var(--muted); font-size: .95rem; }

  /* Features */
  .feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
  @media (max-width: 760px) { .feat { grid-template-columns: 1fr; } }
  .f { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); min-width: 0; }
  .f svg { width: 52px; height: 52px; }
  .f p { color: var(--muted); margin-top: 4px; }

  /* Founders */
  .founders .box { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 36px; border-radius: 24px; background: linear-gradient(135deg, color-mix(in oklab, var(--glow) 18%, var(--card)), var(--card)); border: 1px solid color-mix(in oklab, var(--glow) 40%, var(--line)); }
  @media (max-width: 760px) { .founders .box { grid-template-columns: 1fr; padding: 24px; } }
  .founders ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
  .founders .badge { font-family: var(--display); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; background: var(--glow); color: #1a1200; padding: 6px 10px; border-radius: 6px; display: inline-block; }

  /* Waitlist */
  .waitlist { text-align: center; }
  .waitlist form { margin: 28px auto 0; max-width: 560px; display: grid; gap: 10px; }
  .row { display: flex; gap: 10px; flex-wrap: wrap; }
  .row input { flex: 1 1 200px; min-width: 0; padding: 14px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--fg); font: inherit; font-size: 1rem; }
  .row input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
  .waitlist .fine { font-size: .85rem; color: var(--muted); margin-top: 12px; }
  .done { display: none; margin-top: 24px; padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--glow); }
  .done.show { display: block; }

  /* FAQ */
  details { border-top: 1px solid var(--line); padding: 18px 0; }
  details:last-of-type { border-bottom: 1px solid var(--line); }
  summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
  summary::after { content: "+"; color: var(--glow); font-family: var(--display); }
  details[open] summary::after { content: "–"; }
  details p { margin-top: 10px; color: var(--muted); max-width: 65ch; }
  .faq .list { margin-top: 28px; }

  footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: .9rem; }
  footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
  footer ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
  footer a { text-decoration: none; }

  /* Hero video and Founder image */
  .shot { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #0b0c1a; aspect-ratio: 16/9; box-shadow: 0 30px 80px -30px color-mix(in oklab, var(--glow) 45%, transparent); }
  .shot video, .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .founders .art-wrap { border-radius: 18px; overflow: hidden; aspect-ratio: 16/9; background: #0d0e16; }
  .founders .art-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .price { font-family: var(--display); font-weight: 700; font-size: 1.4rem; margin-top: 16px; }
  .price small { font-family: var(--body); font-size: .9rem; color: var(--muted); font-weight: 600; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

  /* Legal pages */
  .legal { padding-block: 48px 72px; }
  .legal .wrap { max-width: 780px; }
  .legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 900; letter-spacing: -.02em; }
  .legal .updated { color: var(--muted); margin-top: 10px; font-size: .95rem; }
  .legal h2 { font-size: 1.3rem; margin-top: 40px; margin-bottom: 10px; }
  .legal h3 { font-size: 1rem; margin-top: 22px; margin-bottom: 4px; }
  .legal p, .legal li { color: var(--muted); max-width: 70ch; }
  .legal p { margin-top: 10px; }
  .legal strong { color: var(--fg); }
  .legal li { margin: 6px 0; }
  .legal a { color: var(--glow); }
  .legal .summary { margin-top: 28px; background: var(--card); border: 1px solid color-mix(in oklab, var(--glow) 40%, var(--line)); border-radius: 18px; padding: 22px 24px; }
  .legal .summary h2 { margin-top: 0; }
  .legal .summary ul { margin: 0; padding-left: 20px; }
  .tablewrap { overflow-x: auto; margin-top: 12px; }
  .legal table { border-collapse: collapse; width: 100%; font-size: .92rem; }
  .legal th, .legal td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); color: var(--muted); }
  .legal th { font-family: var(--display); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }
  .legal td:first-child { min-width: 180px; }
