/* report-metric.com. Laid out like note-metric.com; coloured like the Report Metric app (RICS purples
   and greys, Open Sans served from this site, no AI Metric green). No scripts, no cookies. */
@font-face { font-family: "Open Sans"; src: url("/fonts/open-sans.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
:root {
  --deep: #22142D; --purple: #4D3069; --purple-line: #826E96; --purple-soft: #B8ACC3; --lilac: #E9E2EC;
  --slate: #36424A; --on-purple: #E1E5EB; --on-purple-hover: #CBD2DC;
  --ink: #FFFFFF; --muted: rgba(255, 255, 255, .76); --quiet: rgba(255, 255, 255, .6); --line: rgba(255, 255, 255, .14);
  --glass: rgba(255, 255, 255, .08); --glass-2: rgba(255, 255, 255, .12);
  --font: "Open Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--deep); color: var(--ink); font: 16px/1.5 var(--font); }
/* The app's hero light, spread across the top of the page: shades of the RICS purple only. */
.glow { position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
  background:
    radial-gradient(42% 52% at 92% 4%, rgba(233, 226, 236, .26), transparent 62%),
    radial-gradient(55% 70% at 78% 30%, rgba(130, 110, 150, .5), transparent 66%),
    radial-gradient(45% 60% at 0% 0%, rgba(130, 110, 150, .4), transparent 60%),
    linear-gradient(160deg, #22142D 0%, #36204A 45%, #3E2757 70%, #22142D 100%); }
.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 22px; }
a { color: inherit; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand img { display: block; width: auto; height: 38px; }
nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; font-size: 16px; padding: 13px 26px; border-radius: 999px;
  background: linear-gradient(180deg, #FFFFFF, var(--on-purple)); color: var(--slate); border: 1px solid #FFFFFF;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 14px 28px -14px rgba(184, 172, 195, .95); }
.btn:hover { background: linear-gradient(180deg, #FFFFFF, var(--on-purple-hover)); }
nav .btn, .btn-sm { padding: 8px 18px; font-size: 15px; color: var(--slate); }
nav .btn:hover { color: var(--slate); }
.btn.ghost { background: var(--glass-2); color: var(--ink); border-color: rgba(255, 255, 255, .24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.btn.ghost:hover { background: rgba(255, 255, 255, .2); }
.hero { padding: 56px 0 48px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 22px; font-weight: 300; }
.hero h1 em { font-style: normal; font-weight: 700; color: var(--lilac); }
.hero p { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 36ch; margin: 0 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta small { display: block; width: 100%; color: var(--quiet); font-size: 14px; margin-top: 8px; max-width: 52ch; }
/* A sample report page beside the headline, drawn in the app's own report style. */
.paper { background: #FFFFFF; color: #212529; border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px rgba(10, 4, 16, .5), inset 0 1px 0 #FFFFFF; transform: rotate(1.2deg); }
.paper-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; color: #2F5D8A; font-size: 18px; padding-bottom: 12px; border-bottom: 2px solid #2F5D8A; }
.paper .muted { color: #646E7A; font-weight: 400; font-size: 13px; }
.item { padding: 14px 0; border-bottom: 1px solid #E1E5EB; }
.item-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; color: #36424A; }
.item-top b { color: #2F5D8A; }
.chip { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: #F1F3F6; color: #36424A; }
.chip.c3 { background: #FEF1EF; color: #B42318; }
.chip.c2 { background: #FFF5E8; color: #8F5A1F; }
.chip:first-of-type { margin-left: auto; }
.item-text { font-size: 15px; margin: 6px 0 8px; }
.src { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: #4D3069; background: #F4F0F6; border: 1px solid #E9E2EC; border-radius: 999px; padding: 3px 10px; }
.src span { color: #646E7A; }
.paper-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 14px; font-size: 13px; }
.tick { font-weight: 700; color: #307E64; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--purple-soft); }
.screens { padding: 24px 0 8px; }
.screens-head h2, .plain h2 { font-size: 30px; line-height: 1.25; letter-spacing: -.01em; font-weight: 300; margin: 6px 0 20px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.shots figure { margin: 0; }
.shots .wide { grid-column: span 2; }
.frame { background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: 0 24px 60px rgba(10, 4, 16, .45); }
.frame img { display: block; width: 100%; height: auto; border-radius: 12px; }
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; line-height: 1.45; }
.note { color: var(--quiet); font-size: 13px; margin: 14px 0 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 40px 0 8px; }
.step { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.step .n { color: var(--purple-soft); font-weight: 700; font-size: 12px; letter-spacing: .14em; }
.step b { display: block; font-size: 18px; margin: 8px 0 6px; }
.step span { color: var(--muted); font-size: 15px; }
.plain { padding: 44px 0; border-top: 1px solid var(--line); margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.plain p, .plain li { color: var(--muted); }
.plain ul { padding-left: 18px; margin: 0; }
.plain li { margin-bottom: 8px; }
footer { padding: 28px 0 48px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 14px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer img { height: 22px; width: auto; }
footer a { color: var(--muted); }
/* The log-in page. */
.login { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 40px 0 64px; }
.card { width: min(520px, 100%); background: var(--glass); border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: 0 30px 80px rgba(10, 4, 16, .45), inset 0 1px 0 rgba(255, 255, 255, .1); }
.card h1 { font-size: 34px; line-height: 1.2; font-weight: 300; margin: 6px 0 14px; }
.card p { color: var(--muted); margin: 0 0 16px; }
.card .cta { margin-top: 24px; }
/* Inner pages: report types, who it's for, how it works, questions. */
.page { padding: 20px 0 8px; }
.crumbs { justify-content: flex-start; gap: 8px; font-size: 14px; color: var(--quiet); margin-bottom: 28px; }
.crumbs a { font-size: 14px; }
.page h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.08; letter-spacing: -.02em; font-weight: 300; margin: 10px 0 20px; max-width: 22ch; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 64ch; margin: 0 0 28px; }
.doc { max-width: 780px; }
.doc section { padding-top: 36px; margin-top: 40px; border-top: 1px solid var(--line); }
.doc h2, .links h2, .box h2 { font-size: 28px; line-height: 1.25; font-weight: 300; letter-spacing: -.01em; margin: 0 0 16px; }
.doc h3 { font-size: 18px; line-height: 1.4; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--muted); }
.doc ul, .doc ol { padding-left: 20px; margin: 0 0 12px; }
.doc li { margin-bottom: 8px; }
.doc a, .box a:not(.btn) { color: var(--lilac); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--purple-soft); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.doc td { color: var(--muted); }
.doc td:first-child { color: var(--ink); font-weight: 600; }
.box { background: var(--glass); border: 1px solid var(--line); border-radius: 24px; padding: 32px; margin-top: 56px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.box p { color: var(--muted); max-width: 64ch; margin: 0 0 22px; }
.links { padding: 48px 0 40px; }
.cards-main { margin-top: 44px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards a { display: block; text-decoration: none; background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.cards a:hover { background: var(--glass-2); }
.cards b { display: block; font-size: 17px; margin-bottom: 6px; }
.cards span { color: var(--muted); font-size: 15px; }
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.price { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.price .amount { font-size: 32px; font-weight: 300; letter-spacing: -.01em; margin-top: 10px; }
.price .unit { color: var(--quiet); font-size: 14px; margin-bottom: 14px; }
.price b { display: block; font-size: 16px; margin-bottom: 10px; }
.price ul { padding-left: 18px; margin: 0; }
.price li { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
@media (max-width: 900px) { .cards, .prices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .prices { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .box { padding: 24px; } .doc table { font-size: 14px; } .doc th, .doc td { padding: 9px 6px; } }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 24px; } .paper { transform: none; } .shots { grid-template-columns: 1fr 1fr; } .steps, .plain { grid-template-columns: 1fr; } }
@media (max-width: 600px) { header { flex-direction: column; align-items: flex-start; } nav { justify-content: flex-start; } .shots { grid-template-columns: 1fr; } .shots .wide { grid-column: auto; } .card { padding: 26px; } }

/* Effects (js/fx.js, Three.js). The script sets .fx-on, and .fx-story on wide screens; without
   them, for reduced motion or no WebGL, the page is exactly as above. */
a:focus-visible, button:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.fx-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.fx-on { overflow-x: clip; }
.story { display: none; }
.fx-story .hero-stage { height: 230vh; }
.fx-story .hero { position: sticky; top: 0; min-height: 100vh; padding: 40px 0; }
.fx-story .hero .paper { visibility: hidden; }
.fx-story .story { display: grid; gap: 10px; list-style: none; position: relative; max-width: 42ch; margin: 30px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.fx-story .story::before { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: calc(var(--p, 0) * 100%); background: var(--lilac); }
.story li { color: var(--quiet); font-size: 15px; transition: color .3s ease; }
.story li.on { color: var(--ink); }
.fx-on .shots { perspective: 1600px; }
.fx-on .shots figure { transform-origin: 50% 100%; transform: rotateX(calc((1 - var(--lay, 1)) * 32deg)) translateY(calc((1 - var(--lay, 1)) * 70px)); opacity: calc(.3 + var(--lay, 1) * .7); }
.ring-view { position: relative; height: 300px; margin-top: 8px; cursor: grab; touch-action: pan-y; }
.ring-view:active { cursor: grabbing; }
.ring-stage { overflow: visible !important; }
.ring-card { width: 320px; min-height: 150px; text-decoration: none; padding: 24px; border-radius: 22px; backface-visibility: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)), #2B1A3A; border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 30px 60px -20px rgba(10, 4, 16, .7), inset 0 1px 0 rgba(255, 255, 255, .14); transition: border-color .3s ease; }
.ring-card.is-front { border-color: var(--purple-soft); }
.cards b, .ring-card b { display: block; font-size: 17px; margin-bottom: 6px; }
.cards span, .ring-card span { color: var(--muted); font-size: 15px; }
.ring-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.ring-nav span { color: var(--quiet); font-size: 14px; margin-left: 6px; }
@media (hover: hover) and (pointer: fine) {
  .fx-on .cards a, .fx-on .price, .fx-on .step { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease; }
  .fx-on .tilting { transition: transform .08s linear; background-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 55%); }
}
@media (max-width: 899px) {
  #reports .cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  #reports .cards a { scroll-snap-align: start; }
}
