/* Roomframe website. Same tokens as the app (styles.css). Day is the default; data-theme="dark" is night.
   Layout: one column on phones; hero splits copy | teaser at 900px; cards on a tinted page like the apps. */
:root {
  --bg: #f6f5fb; --surface: #ffffff; --surface2: #eeecf7; --line: #dcd9ea; --ink: #15162c; --muted: #5d5f7c;
  --accent: #5a3de0; --accent-ink: #ffffff; --soft: #ebe6ff; --amber: #9a5a00; --ok: #1b7543; --danger: #c0352b;
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 18px; --max: 1120px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0d19; --surface: #151931; --surface2: #1c2040; --line: #272b4a; --ink: #eeedf8; --muted: #a4a6c3;
  --accent: #a68bff; --accent-ink: #0b0d19; --soft: #26214f; --amber: #f2b548; --ok: #4fd08c; --danger: #ff7b6c;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); }
img, svg, video { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(28px, 4.2vw, 42px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.hi { color: var(--accent); }
.small { font-size: 14px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* sections share one gutter and max width */
.top-in, main > section, .foot-in {
  max-width: var(--max); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
main > section { padding-block: 56px; scroll-margin-top: 72px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 16px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn.big { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); padding-top: env(safe-area-inset-top, 0px); }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 22px var(--display); letter-spacing: -0.02em; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.top nav { display: none; gap: 4px; margin-left: 20px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 10px; }
.top nav a:hover { color: var(--ink); background: var(--surface2); }
.daynight { margin-left: auto; display: inline-flex; gap: 2px; padding: 3px; border: 0; border-radius: 99px; background: var(--surface2); cursor: pointer; }
.daynight span { width: 34px; height: 32px; border-radius: 99px; display: grid; place-items: center; color: var(--muted); }
.daynight svg { width: 17px; height: 17px; }
:root:not([data-theme="dark"]) .daynight .sun, :root[data-theme="dark"] .daynight .moon { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.signin { min-height: 44px; padding: 0 12px; }
@media (min-width: 860px) { .top nav { display: flex; } }

/* hero */
.hero { display: grid; gap: 36px; padding-top: 40px !important; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--soft); padding: 6px 12px; border-radius: 99px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 60%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(42px, 8.6vw, 76px); font-weight: 800; margin-top: 18px; }
.hero h1 .hi { display: block; }
.lede { font-size: clamp(18px, 2.2vw, 20px); color: var(--muted); margin-top: 18px; max-width: 34em; }
.waitlist { margin-top: 28px; display: grid; gap: 10px; max-width: 520px; }
.waitlist input[type="email"] { min-height: 52px; }
.note { font-size: 14px; color: var(--muted); }
.note.ok { color: var(--ok); font-weight: 600; }
.note.err { color: var(--danger); font-weight: 600; }
@media (min-width: 560px) { .waitlist { grid-template-columns: 1fr auto; } .waitlist .note { grid-column: 1 / -1; } }
.hero-media { margin: 0; display: grid; gap: 10px; }
.frame { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: #0b0d19; box-shadow: 0 30px 60px -30px rgba(40, 20, 120, .55), 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent); }
.frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.08fr; align-items: center; padding-top: 72px !important; } .hero h1 { font-size: clamp(44px, 5.4vw, 72px); } }

/* forms */
input, textarea { width: 100%; font: 400 16px var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 48px; }
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 0; border-color: var(--accent); }
input[aria-invalid="true"] { border-color: var(--danger); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }

/* how it works */
.how h2 { max-width: 16em; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 8px; align-content: start; }
.step .ico { width: 48px; height: 48px; color: var(--ink); margin-bottom: 6px; }
.step .n { font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.step p { color: var(--muted); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* try it */
.try-head { display: grid; gap: 10px; max-width: 46em; }
.try-head p { color: var(--muted); font-size: 18px; }
.demo { position: relative; margin-top: 24px; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: #0b0d19; border: 1px solid var(--line); }
.demo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.7); }
.demo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-cta { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; }
.demo-cta .note { color: #eeedf8; }
.demo-links { margin-top: 10px; font-weight: 600; }
@media (max-width: 600px) { .demo { aspect-ratio: 4 / 5; } }

/* faq */
.faq { max-width: 860px !important; }
.faq h2 { margin-bottom: 18px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-top: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font: 600 17px var(--body); position: relative; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* book a demo */
.book { display: grid; gap: 24px; }
.book-copy { display: grid; gap: 12px; align-content: start; }
.book-copy > p:not(.small) { color: var(--muted); font-size: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.form { padding: 22px; display: grid; gap: 14px; }
.form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-weight: 600; font-size: 15px; }
.form label > input, .form label > textarea { flex-basis: 100%; }
.form .opt { font-weight: 400; color: var(--muted); }
.form .two { display: grid; gap: 14px; }
.form .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (min-width: 600px) { .form .two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .book { grid-template-columns: .8fr 1.2fr; } }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 24px; }
.foot-in { padding-block: 32px max(32px, env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
.credit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.credit a { text-decoration: none; font-weight: 600; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding-block: 6px; }
.foot nav a:hover { color: var(--accent); }

/* privacy page */
.doc { max-width: 760px !important; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); font-weight: 800; }
.doc h2 { font-size: 24px; margin-top: 34px; }
.doc p, .doc li { color: var(--muted); margin-top: 10px; }
.doc ul { padding-left: 20px; }
.doc strong { color: var(--ink); }
.doc .mt { margin-top: 18px; }
.doc .big { font-size: 18px; margin-top: 16px; }
/* tap targets: 44px minimum */
.brand { min-height: 44px; }
.daynight span { width: 38px; height: 38px; }
.foot nav a, .credit a { display: inline-flex; align-items: center; min-height: 44px; }

/* pricing */
.price-head { display: grid; gap: 12px; justify-items: start; max-width: 46em; }
.price-head > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.billing { display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--surface2); margin-top: 6px; }
.billing button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 600 15px var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.billing button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .16); }
.billing .save { font-size: 12px; font-weight: 600; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); padding: 2px 8px; border-radius: 99px; }
.plans { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; }
.plan.featured { border: 2px solid var(--accent); box-shadow: 0 24px 48px -32px rgba(60, 30, 180, .5); }
.plan .who { color: var(--muted); font-size: 15px; }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; }
.plan .amt { font: 800 44px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan .per { color: var(--muted); font-weight: 500; }
.plan .alt { color: var(--muted); font-size: 14px; min-height: 1.6em; }
.plan .cta { margin-top: 6px; width: 100%; }
.plan .lead { font-weight: 600; font-size: 14px; margin-top: 6px; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.plan li svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }
.price-note { margin-top: 18px; color: var(--muted); font-size: 14px; }
/* Founding 50 (23 Oct 2026) */
.plan .founding { font-weight: 600; font-size: 14px; color: var(--accent); background: var(--soft); border-radius: 8px; padding: 6px 10px; justify-self: start; }
.waitlist .consent { font-size: 13px; grid-column: 1 / -1; }
/* soft open (23 Oct 2026): footer App Store link hides until APP_STORE_URL is set; legal tables */
.foot a.appstore[href=""] { display: none; }
.legal ol { padding-left: 22px; }
.legal .table { overflow-x: auto; margin-top: 14px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.legal th { color: var(--ink); font-weight: 600; background: var(--surface2); }
.legal code { font-size: 14px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.access-note { margin-top: 12px; }

/* See it in action (23 Oct 2026): 2 x 2 muted loops, 1 column on phones */
.action-sub { color: var(--muted); margin-top: 8px; }
.clips { display: grid; gap: 18px; margin-top: 24px; }
@media (min-width: 760px) { .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.clip { margin: 0; display: grid; gap: 10px; }
.clip figcaption { color: var(--muted); font-size: 15px; }
.clip figcaption strong { display: block; color: var(--ink); font-size: 17px; }
