/* Roomwright marketing + legal site
   Dependency-free. No external fonts/CDNs so the CSP can stay strict and no
   third party ever sees a visitor (matches the app's no-tracking promise). */

:root {
  --brand-50: #fff7ed;
  --brand-100: #ffedd5;
  --brand-200: #fed7aa;
  --brand-300: #fdba74;
  --brand-400: #fb923c;
  --brand-500: #f97316;
  --brand-600: #ea580c;
  --brand-700: #c2410c;

  --ink-900: #0b1120;
  --ink-800: #111827;
  --ink-700: #1f2937;
  --ink-600: #374151;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;

  --bg: #ffffff;
  --bg-soft: var(--slate-50);
  --text: var(--ink-800);
  --text-soft: var(--slate-600);
  --border: var(--slate-200);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--ink-900); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 0.75rem;
}

.muted { color: var(--text-soft); }
.center { text-align: center; }
.mt-lg { margin-top: 2rem; }
.eyebrow-light { color: var(--brand-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand-500); color: #fff; box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--border); }
.btn-ghost:hover { background: var(--slate-50); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.15rem; color: var(--ink-900); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--text-soft); font-weight: 600; font-size: 0.98rem; }
.nav-links a:hover { color: var(--ink-900); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink-900); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(249, 115, 22, 0.14), transparent 60%),
    radial-gradient(800px 400px at 0% 10%, rgba(11, 17, 32, 0.05), transparent 60%),
    var(--bg);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1rem; }
.hero .lead { font-size: 1.2rem; color: var(--text-soft); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 1.2rem; }
.hero-note { font-size: 0.92rem; color: var(--slate-500); display: flex; align-items: center; gap: 0.5rem; }
.hero-note svg { flex: none; color: var(--brand-500); }

/* Phone mockup */
.phone {
  position: relative;
  width: min(300px, 78vw);
  margin: 0 auto;
  aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #0e1424, #182234);
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 22px; background: #05070d; border-radius: 0 0 14px 14px; z-index: 3;
}
.scan-view { flex: 1; position: relative; overflow: hidden; }
.scan-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(249, 115, 22, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 115, 22, 0.22) 1px, transparent 1px);
  background-size: 26px 26px;
  transform: perspective(500px) rotateX(52deg) scale(1.5);
  transform-origin: center 65%;
  opacity: 0.7;
}
.scan-poly {
  position: absolute; inset: 18% 16% 30% 16%;
  border: 2px solid var(--brand-400);
  border-radius: 6px;
  box-shadow: 0 0 0 9999px rgba(5, 7, 13, 0.12), 0 0 30px rgba(249, 115, 22, 0.4) inset;
}
.scan-dim {
  position: absolute; font-size: 0.72rem; font-weight: 700; color: #fff;
  background: var(--brand-500); padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.scan-dim.top { top: 14%; left: 50%; transform: translateX(-50%); }
.scan-dim.side { top: 48%; right: 6%; }
.scan-plan {
  background: rgba(4, 7, 13, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px 18px;
  color: #e2e8f0;
}
.scan-plan .row { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 3px 0; color: #cbd5e1; }
.scan-plan .row strong { color: #fff; }
.scan-plan .bars { display: flex; gap: 4px; margin-top: 10px; height: 34px; align-items: flex-end; }
.scan-plan .bars span { flex: 1; background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); border-radius: 3px 3px 0 0; }
.scan-plan .bars span:nth-child(1) { height: 70%; }
.scan-plan .bars span:nth-child(2) { height: 100%; }
.scan-plan .bars span:nth-child(3) { height: 85%; }
.scan-plan .bars span:nth-child(4) { height: 60%; }
.scan-plan .bars span:nth-child(5) { height: 95%; }
.scan-plan .bars span:nth-child(6) { height: 45%; }
.scan-plan .bars span:nth-child(7) { height: 80%; }

/* Logo strip / trust */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.trust .container { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: center; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.trust span { font-size: 0.9rem; font-weight: 600; color: var(--slate-500); display: inline-flex; align-items: center; gap: 0.5rem; }
.trust svg { color: var(--brand-500); flex: none; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--text-soft); margin: 0; }
.bg-soft { background: var(--bg-soft); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 1.75rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step .num {
  counter-increment: step;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: var(--brand-500); margin-bottom: 1rem;
}
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; color: var(--text-soft); font-size: 0.98rem; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature {
  padding: 1.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600); margin-bottom: 1rem;
}
.feature h3 { margin-bottom: 0.35rem; }
.feature p { margin: 0; color: var(--text-soft); font-size: 0.96rem; }
.pill-pro {
  display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--brand-700); background: var(--brand-100);
  padding: 2px 8px; border-radius: 999px; margin-left: 0.5rem; vertical-align: middle;
}

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 860px; margin: 0 auto; }
.plan {
  position: relative; padding: 2rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--brand-400); box-shadow: var(--shadow-md); }
.plan .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand-500); color: #fff; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.plan h3 { font-size: 1.35rem; }
.plan .price { font-size: 2.4rem; font-weight: 800; color: var(--ink-900); margin: 0.25rem 0 0; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--text-soft); }
.plan .price-sub { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 1.25rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.6rem; }
.plan li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.96rem; color: var(--text); }
.plan li svg { flex: none; margin-top: 3px; color: var(--brand-500); }
.plan li.off { color: var(--slate-400); }
.plan li.off svg { color: var(--slate-300); }
.plan .btn { margin-top: auto; }
.pricing-note { text-align: center; color: var(--text-soft); font-size: 0.9rem; margin-top: 1.5rem; }

/* Comparison table */
.compare-wrap { overflow-x: auto; max-width: 860px; margin: 2.5rem auto 0; }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.96rem; min-width: 520px; }
table.compare th, table.compare td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.compare thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); }
table.compare tbody th { font-weight: 600; color: var(--text); }
table.compare td { text-align: center; color: var(--text-soft); }
table.compare td:first-child, table.compare th:first-child { text-align: left; }
table.compare .yes { color: var(--brand-600); font-weight: 700; }
table.compare .col-pro { background: var(--brand-50); }

/* Security highlights */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; max-width: 900px; margin: 0 auto; }
.sec-item { display: flex; gap: 0.9rem; padding: 1.4rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.sec-item .icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.sec-item h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.sec-item p { margin: 0; font-size: 0.94rem; color: var(--text-soft); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
  padding: 0 1.25rem; margin-bottom: 0.75rem; box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 0; font-weight: 700; color: var(--ink-900);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; transition: transform 0.2s ease; color: var(--slate-400); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { margin: 0 0 1.1rem; color: var(--text-soft); }

/* Store badges */
.badges { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--ink-900); color: #fff; padding: 0.7rem 1.2rem; border-radius: 12px;
  min-width: 210px; box-shadow: var(--shadow-sm); position: relative;
}
.badge:hover { text-decoration: none; }
.badge.soon { opacity: 0.85; cursor: default; }
.badge svg { flex: none; }
.badge .b-text { display: flex; flex-direction: column; line-height: 1.1; }
.badge .b-text small { font-size: 0.68rem; opacity: 0.75; }
.badge .b-text strong { font-size: 1.05rem; font-weight: 700; }
.badge .b-soon { position: absolute; top: -9px; right: 10px; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: var(--brand-500); color: #fff; padding: 2px 7px; border-radius: 999px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--ink-900), var(--ink-800));
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% -20%, rgba(249, 115, 22, 0.35), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--slate-300); max-width: 46ch; margin: 0 auto 1.75rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--slate-300); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: var(--slate-300); font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.footer-about { max-width: 34ch; font-size: 0.95rem; color: var(--slate-400); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.88rem; color: var(--slate-500); }

/* ---------- Legal / doc pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) 24px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.doc .updated { color: var(--slate-500); font-size: 0.92rem; margin-top: -0.5rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.5rem; }
.doc code { background: var(--slate-100); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
.doc-back { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; margin-bottom: 1.5rem; }
.callout {
  border: 1px solid var(--brand-200); background: var(--brand-50);
  border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { max-width: none; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-visual { order: -1; }
  .steps, .features { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open + .mobile-menu { display: block; }
  .pricing { grid-template-columns: 1fr; }
}

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 0.5rem 24px 1rem;
}
.mobile-menu a { display: block; padding: 0.7rem 0; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
