/* RoomRay, roomray.app
   Brand: owl mascot, gradient mark #39E09B to #2A8BF2, teal #356398, geometric sans.
   Light page, white header, a pale hero with the owl in a navy room, then the proof:
   the engine's own plans. The only colour outside the brand is the data. */

:root {
  --green:  #39e09b;
  --blue:   #2a8bf2;
  --teal:   #356398;
  --navy:   #101c3c;
  --ink:    #24344f;
  --ink-2:  #4b5a6e;
  --ink-3:  #7d8794;
  --paper:  #ffffff;
  --paper-2:#f3f5f9;
  --hero:   #eef1f6;
  --rule:   #e1e6ee;
  --glass:  #7fc3ff;
  --cold:   #0d47a1;
  --cool:   #2a8bf2;
  --warm:   #f2b04c;
  --hot:    #e03c28;
  --grad:   linear-gradient(135deg, #39e09b 0%, #2a8bf2 100%);
  /* what the drawings borrow */
  --wall:   #101c3c;
  --gap:    #ffffff;
  --grid:   #dbe3ee;
  --pill:   rgba(255,255,255,.78);
  --wire:   #2c3e5c;
  --wire-fill:   #e9eff8;
  --wire-fill-2: #dfe7f3;
  --wire-fill-3: #d4deee;
  --blob-edge: transparent;
}
/* Dark: the same page after sunset. The data keeps its colours; the ground and the ink swap. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8edf5; --ink-2: #aab5c7; --ink-3: #7f8ba0;
    --paper: #0e162b; --paper-2: #172038; --hero: #121b33; --rule: #263150; --navy: #0a1226;
    --wall: #e8edf5; --gap: #172038; --grid: #263150; --pill: rgba(14,22,43,.74);
    --wire: #c7d3e6; --wire-fill: #1b2540; --wire-fill-2: #202c4a; --wire-fill-3: #253356;
    --blob-edge: rgba(255,255,255,.08);
  }
}
:root[data-theme="dark"] {
  --ink: #e8edf5; --ink-2: #aab5c7; --ink-3: #7f8ba0;
  --paper: #0e162b; --paper-2: #172038; --hero: #121b33; --rule: #263150; --navy: #0a1226;
  --wall: #e8edf5; --gap: #172038; --grid: #263150; --pill: rgba(14,22,43,.74);
  --wire: #c7d3e6; --wire-fill: #1b2540; --wire-fill-2: #202c4a; --wire-fill-3: #253356;
  --blob-edge: rgba(255,255,255,.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink);
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.6; font-weight: 400; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* header */
.band { background: var(--paper); position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 var(--rule); }
header.site { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
header.site .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 27px; letter-spacing: -.01em; }
header.site .brand .mark { width: 42px; height: 42px; }
header.site nav { display: flex; align-items: center; }
header.site nav a { color: var(--ink-2); text-decoration: none; margin-left: 30px; font-size: 17px; font-weight: 500; }
header.site nav a:hover { color: var(--ink); }
header.site nav a.cta { color: #fff; background: var(--grad); padding: 11px 24px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(42,139,242,.22); }
.theme { margin-left: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper-2);
  color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.theme:hover { color: var(--ink); }
.theme svg { width: 19px; height: 19px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: inline; }
:root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: inline; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}

/* hero */
.hero-band { background: var(--hero); overflow: hidden; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 36px 0 0; }
.hero-copy { padding: 36px 0 60px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.08; margin: 0 0 20px; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); text-wrap: balance; max-width: 13ch; }
.hero p.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 0 0 30px; max-width: 40ch; }
.actions { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; padding: 15px 30px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 15px;
  letter-spacing: .06em; text-transform: uppercase; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(42,139,242,.28); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.quiet { color: var(--teal); padding: 15px 4px; }
.hero-art { align-self: end; }
.hero-art svg { width: 100%; height: auto; display: block; }

/* the three things it does */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 50px 0 10px; }
.feature { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: start; }
.feature .icon { width: 118px; height: 118px; }
.feature .icon svg { width: 100%; height: 100%; display: block; }
.feature .icon svg.plan { border-radius: 10px; }
.feature h3 { font-size: 20px; line-height: 1.2; margin: 6px 0 8px; font-weight: 700; color: var(--ink); text-wrap: balance; }
.feature p { margin: 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }

/* sections */
section { padding: 72px 0 8px; }
section h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; margin: 0 0 12px; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; color: var(--ink); }
section p.sub { font-size: 17.5px; color: var(--ink-2); max-width: 60ch; margin: 0 0 30px; }
section h3.sub-h { font-size: 26px; margin: 56px 0 10px; font-weight: 700; color: var(--ink); }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--teal); margin-bottom: 10px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--paper-2); border-radius: 16px; padding: 22px 22px 20px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: .1em;
  font-weight: 500; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 21px; margin: 8px 0 6px; font-weight: 700; color: var(--ink); }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.devices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.device { border: 1px solid var(--rule); border-radius: 16px; padding: 20px 22px 18px; border-top: 4px solid var(--blue); }
.device:nth-child(2) { border-top-color: var(--green); }
.device:nth-child(3) { border-top-color: var(--teal); }
.device:nth-child(4) { border-top-color: var(--warm); }
.device h3 { font-size: 19px; margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.device p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* proof: the plans */
.views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.view .figure { padding: 12px; }
.view h4 { margin: 14px 0 4px; font-size: 17px; font-weight: 700; color: var(--ink); }
.view p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.figure { position: relative; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 16px; padding: 18px; overflow: hidden; }
.figure.first { margin-top: 34px; max-width: 460px; }
.figure svg.plan { width: 100%; height: auto; display: block; }
.figure svg .lbl { font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 600; fill: var(--ink); }
.figure svg .val { font-family: "JetBrains Mono", monospace; font-size: 11px; fill: var(--ink-2); }
.figure .sweep { position: absolute; top: 0; bottom: 0; left: -12%; width: 12%;
  background: linear-gradient(90deg, transparent, rgba(42,139,242,.22), transparent);
  animation: sweep 2.6s ease-in-out .5s 1 both; pointer-events: none; }
@keyframes sweep { from { left: -12%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .figure .sweep { display: none; } }
.legend { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--ink-3); max-width: 380px; }
.legend .bar { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--cold), var(--cool), #78d2ff, #faeb78, var(--warm), var(--hot)); }
.caption { font-size: 14.5px; color: var(--ink-3); margin: 12px 0 0; line-height: 1.5; }
.caption b { color: var(--ink-2); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.stat { background: var(--paper-2); border-radius: 12px; padding: 16px 18px; }
.stat .n { font-weight: 700; font-size: 30px; letter-spacing: -.02em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; font-variant-numeric: tabular-nums; }
.stat .n small { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-left: 4px; -webkit-text-fill-color: var(--ink-3); }
.stat .l { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* about */
.lenses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lens { background: var(--paper-2); border-radius: 16px; padding: 26px 28px 22px; border-top: 4px solid var(--green); }
.lens.pro { border-top-color: var(--blue); }
.lens h3 { font-size: 22px; margin: 4px 0 14px; font-weight: 700; color: var(--ink); }
.lens dl { margin: 0; }
.lens dt { font-weight: 600; margin-top: 12px; }
.lens dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15.5px; }

.prov { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tag { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 14px 12px; background: var(--paper-2); }
.tag .k { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.tag p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.tag.measured .k { color: var(--blue); } .tag.derived .k { color: #1f9e6e; } .tag.assumed .k { color: #c78a1c; } .tag.entered .k { color: #7c5cd6; } .tag.confirmed .k { color: var(--teal); }
.maker { margin-top: 30px; color: var(--ink-2); font-size: 15.5px; }

.beta { margin-top: 72px; border-radius: 18px; padding: 30px 32px; background: var(--navy); color: #fff; border: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.beta h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.beta p { margin: 0 0 8px; color: rgba(255,255,255,.8); font-size: 15.5px; }
.beta a { color: #fff; }

footer.site { margin-top: 56px; padding: 26px 0 48px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 14px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--ink-3); }

/* prose pages (privacy, support) */
.prose { max-width: 720px; padding: 28px 0 40px; }
.prose h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.04; margin: 22px 0 10px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.prose .meta, .prose .lede { color: var(--ink-3); font-size: 15px; margin-bottom: 28px; }
.prose h2 { font-size: 23px; margin: 40px 0 10px; font-weight: 700; color: var(--ink); }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose code { font-family: "JetBrains Mono", monospace; font-size: .9em; }
.prose .note { border-left: 3px solid var(--blue); padding: 12px 18px; background: var(--paper-2); border-radius: 0 10px 10px 0; margin: 22px 0; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 20px; }
  .hero-copy { padding: 16px 0 28px; }
  .hero h1 { max-width: none; }
  .features { grid-template-columns: 1fr; gap: 26px; }
  .steps, .devices, .stats { grid-template-columns: 1fr 1fr; }
  .lenses, .beta, .views { grid-template-columns: 1fr; }
  .prov { grid-template-columns: 1fr 1fr; }
  header.site nav a { margin-left: 16px; font-size: 15px; }
  header.site .brand { font-size: 23px; }
}
@media (max-width: 520px) {
  .steps, .devices, .prov, .stats { grid-template-columns: 1fr; }
  header.site nav a:not(.cta) { display: none; }
  .feature { grid-template-columns: 88px 1fr; }
  .feature .icon { width: 88px; height: 88px; }
}
