/* SafeSite — alternative design: "Night shift"
   Dark, cinematic product page. Glass surfaces, orange glow, rounded display type. */

:root {
  --bg: #0a0c10;
  --bg-2: #0f1218;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #f3f4f6;
  --text-2: #b4bac6;
  --text-3: #7c8494;
  --orange: #f15a24;
  --orange-2: #ff8a4c;
  --amber: #ffb547;
  --green: #34d399;
  --red: #ff6b4a;
  --yellow: #fbbf24;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --max: 1180px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fine grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--orange-2);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
}

.skip:focus {
  top: 16px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.2s;
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.btn-glow {
  color: #fff;
  background: linear-gradient(180deg, #ff7a3d, var(--orange));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 30px -6px rgba(241, 90, 36, 0.65);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 40px -6px rgba(241, 90, 36, 0.8);
}

.btn-glass {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
}

.link-btn {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border-2);
}

.link-btn:hover {
  color: var(--text);
}

/* ---------- Floating nav ---------- */

.topbar {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 16px;
}

.pillnav {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1100px, 100%);
  margin-inline: auto;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: rgba(16, 19, 26, 0.6);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background 0.3s, border-color 0.3s;
}

.topbar.scrolled .pillnav {
  background: rgba(16, 19, 26, 0.85);
  border-color: var(--border-2);
}

.brand img {
  height: 26px;
  width: auto;
}

.links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.links a,
.links button {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}

.links a:hover,
.links button:hover {
  color: var(--text);
  background: var(--surface-2);
}

.links-signin,
.links-demo {
  display: none;
}

.pill-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.signin {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
}

.signin:hover {
  color: var(--text);
}

.burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.burger span:first-child {
  top: 15px;
}

.burger span:last-child {
  top: 23px;
}

.burger[aria-expanded="true"] span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 168px 0 40px;
  overflow: hidden;
  isolation: isolate;
}

.aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

.aurora i {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: drift 18s var(--ease) infinite alternate;
}

.aurora i:nth-child(1) {
  left: 20%;
  top: 8%;
  width: 520px;
  height: 420px;
  background: radial-gradient(circle, rgba(241, 90, 36, 0.9), transparent 65%);
}

.aurora i:nth-child(2) {
  right: 14%;
  top: 0;
  width: 460px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 181, 71, 0.55), transparent 65%);
  animation-delay: -6s;
}

.aurora i:nth-child(3) {
  left: 42%;
  top: 30%;
  width: 600px;
  height: 340px;
  background: radial-gradient(circle, rgba(90, 70, 255, 0.35), transparent 65%);
  animation-delay: -12s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(60px, 40px, 0) scale(1.15);
  }
}

/* Perspective grid floor under the hero */
.hero::after {
  content: "";
  position: absolute;
  left: -50%;
  right: -50%;
  top: 46%;
  height: 700px;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: top;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

.hero-inner {
  text-align: center;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  font-size: 0.85rem;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}

.announce:hover {
  color: var(--text);
  border-color: rgba(241, 90, 36, 0.6);
}

.announce-tag {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(241, 90, 36, 0.16);
  color: var(--orange-2);
  font-weight: 600;
  font-size: 0.78rem;
}

.hero h1 {
  margin: 28px auto 0;
  font-size: clamp(2.9rem, 7.4vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  font-variation-settings: "opsz" 96;
}

.grad {
  background: linear-gradient(92deg, #ffd0b5 0%, var(--orange-2) 35%, var(--orange) 65%, #ffb547 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 40rem;
  margin: 28px auto 0;
  font-size: 1.15rem;
  color: var(--text-2);
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* ---------- Showcase composite ---------- */

.showcase {
  position: relative;
  margin: 72px auto 0;
  max-width: 1000px;
  text-align: left;
  perspective: 1600px;
}

.dash {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #151922, #10131a);
  border: 1px solid var(--border-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 60px 120px -40px rgba(241, 90, 36, 0.35),
    0 40px 80px -30px rgba(0, 0, 0, 0.8);
  transform: rotateX(8deg);
  transform-origin: bottom;
  animation: tilt-in 1.4s 0.2s var(--ease) both;
}

@keyframes tilt-in {
  from {
    opacity: 0;
    transform: rotateX(24deg) translateY(40px);
  }
  to {
    opacity: 1;
    transform: rotateX(8deg);
  }
}

.dash-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.url {
  flex: 1;
  max-width: 340px;
  margin-inline: auto;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-3);
  font-size: 0.74rem;
  text-align: center;
}

@keyframes grow {
  from {
    transform: scaleY(0);
  }
}
.phone {
  position: absolute;
  right: -28px;
  bottom: -40px;
  width: 210px;
  padding: 10px;
  border-radius: 34px;
  background: #050608;
  border: 1px solid var(--border-2);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(255, 255, 255, 0.03);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.notch {
  width: 70px;
  height: 18px;
  margin: 2px auto 8px;
  border-radius: 999px;
  background: #000;
}

@keyframes blink {
  50% {
    opacity: 0.3;
  }
}

.toast {
  position: absolute;
  left: -36px;
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: rgba(22, 26, 35, 0.85);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  animation: pop 0.8s 1.6s var(--ease) both;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
}

.toast-ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.16);
  color: var(--green);
  font-weight: 700;
}

.toast strong {
  display: block;
  font-size: 0.88rem;
}

.toast small {
  color: var(--text-3);
  font-size: 0.74rem;
}

/* ---------- Facts ---------- */

.facts {
  padding: 96px 0 40px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.facts-grid div {
  padding: 28px 24px;
  border-left: 1px solid var(--border);
}

.facts-grid div:first-child {
  border-left: 0;
}

.facts-grid strong {
  display: block;
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff, #8f96a3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.facts-grid span {
  display: block;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.9rem;
}

/* ---------- Blocks ---------- */

main {
  overflow-x: clip;
}

.block {
  padding: 120px 0;
}

.head {
  max-width: 44rem;
  margin-bottom: 56px;
}

.head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.head h2,
.studio-copy h2 {
  margin-top: 14px;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 750;
}

.head > p {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 1.1rem;
}

/* ---------- A day on site ---------- */

.day {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.day-step time {
  display: block;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-3);
  transition: color 0.4s var(--ease);
  font-variant-numeric: tabular-nums;
}

.day-card {
  height: calc(100% - 64px);
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}

.day-card h3 {
  font-size: 1.25rem;
}

.day-card p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.93rem;
}

.where {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 0.74rem;
}

.day-step.is-active time {
  color: var(--text);
}

.day-step.is-active .day-card {
  background: linear-gradient(180deg, rgba(241, 90, 36, 0.12), rgba(241, 90, 36, 0.02));
  border-color: rgba(241, 90, 36, 0.45);
  transform: translateY(-4px);
}

.day-step.is-active .where {
  background: rgba(241, 90, 36, 0.16);
  color: var(--orange-2);
}

.day-track {
  height: 3px;
  margin-top: 28px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}

.day-track span {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  transition: width 0.6s var(--ease);
}

/* ---------- Bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.tile:hover {
  border-color: var(--border-2);
}

/* Glow that follows the pointer (set by script.js) */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(241, 90, 36, 0.12), transparent 60%);
  transition: opacity 0.3s;
}

.tile:hover::before {
  opacity: 1;
}

.t-wide {
  grid-column: span 2;
}

.lab {
  grid-column: 1 / -1;
}

.tile h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.tile p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.94rem;
}

.region {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 18px 28px;
}

.region .tile-copy {
  grid-column: 1;
}

.region .seg {
  grid-column: 1;
  align-self: start;
}

.region-list {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  justify-self: start;
}

.seg button {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--text-2);
  transition: background 0.25s var(--ease), color 0.25s;
}

.seg button:hover {
  color: var(--text);
}

.seg button[aria-selected="true"] {
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.region-list {
  list-style: none;
  margin: 0;
  padding: 14px;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  align-self: start;
}

.region-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  animation: slide 0.4s var(--ease) both;
}

.region-list li:last-child {
  border-bottom: 0;
}

.region-list li span {
  color: var(--text-3);
  font-size: 0.78rem;
  white-space: nowrap;
}

.region-list li.rl-head {
  color: var(--orange-2);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 4px;
}

@keyframes slide {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
}

.signal {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 26px;
  margin-bottom: 20px;
}

.signal i {
  width: 6px;
  border-radius: 2px;
  background: var(--surface-2);
}

.signal i:nth-child(1) {
  height: 25%;
  background: var(--amber);
}

.signal i:nth-child(2) {
  height: 50%;
}

.signal i:nth-child(3) {
  height: 75%;
}

.signal i:nth-child(4) {
  height: 100%;
}

.queue {
  display: grid;
  gap: 6px;
  margin-top: 20px;
}

.queue span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-2);
}

.queue span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.mini-tree {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-3);
}

.mini-tree .mt-sec {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}

.mini-tree .mt-q {
  padding: 6px 10px;
  margin-left: 12px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
}

.mini-tree .mt-add {
  margin-left: 12px;
  padding: 6px 10px;
  color: var(--orange-2);
}

.snap {
  position: relative;
  height: 140px;
  margin-bottom: 20px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 181, 71, 0.25), transparent 50%),
    linear-gradient(160deg, #3b3a3f, #1c1d22);
}

.snap::before {
  content: "";
  position: absolute;
  left: 18%;
  bottom: 0;
  width: 58px;
  height: 104px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, #b5492a, #8a3118);
}

.snap::after {
  content: "";
  position: absolute;
  inset: 22px 30px auto auto;
  width: 54px;
  height: 54px;
  border: 2px solid var(--orange-2);
  border-radius: 10px;
}

.snap-pin {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.68rem;
  color: var(--text-2);
}

.risk-bars {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.risk-bars div {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-3);
}

.risk-bars i {
  display: block;
  height: 10px;
  width: var(--w);
  border-radius: 999px;
}

.r-h {
  background: linear-gradient(90deg, var(--red), #ff9a7a);
}

.r-m {
  background: linear-gradient(90deg, var(--yellow), #ffe08a);
}

.r-l {
  background: linear-gradient(90deg, var(--green), #9cf0cf);
}

.lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.stages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.stages span {
  position: relative;
  padding: 14px 14px 14px 36px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-3);
}

.stages span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  transform: translateY(-50%);
}

.stages .s-done {
  color: var(--text);
}

.stages .s-done::before {
  border-color: var(--green);
  background: var(--green);
}

.stages .s-now {
  color: var(--text);
  border-color: rgba(241, 90, 36, 0.5);
  background: rgba(241, 90, 36, 0.1);
}

.stages .s-now::before {
  border-color: var(--orange-2);
  box-shadow: 0 0 0 4px rgba(241, 90, 36, 0.25);
  animation: blink 1.6s infinite;
}

/* ---------- Report studio ---------- */

.studio-block {
  overflow: hidden;
  background: radial-gradient(800px 500px at 80% 50%, rgba(241, 90, 36, 0.1), transparent 70%), var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}

.studio-copy h2 em {
  font-style: italic;
  color: var(--orange-2);
}

.studio-copy > p {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 1.05rem;
}

.controls {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}

legend {
  margin-bottom: 10px;
  padding: 0;
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  font-size: 0.9rem;
  color: var(--text-2);
  transition: all 0.2s var(--ease);
}

.chips button:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.chips button[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.swatches {
  display: flex;
  gap: 10px;
}

.swatches button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.swatches button:hover {
  transform: scale(1.08);
}

.swatches button[aria-pressed="true"] {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text);
}

.pdf-wrap {
  position: relative;
}

.pdf-wrap::before {
  content: "";
  position: absolute;
  inset: 8% -4% -6% 8%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  transform: rotate(4deg);
}

/* The "paper" report — light on purpose, like the real PDF */
.pdf {
  --accent: #f15a24;
  position: relative;
  padding: 28px;
  border-radius: 10px;
  background: #fff;
  color: #1a2233;
  font-size: 0.82rem;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8);
  transition: padding 0.35s var(--ease);
}

.pdf.layout-compact {
  padding: 18px;
}

.pdf-note {
  position: relative;
  margin-top: 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.85rem;
}

/* ---------- Types list ---------- */

.types {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.types li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.4fr) 110px;
  align-items: center;
  gap: 24px;
  padding: 22px 12px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.types li:hover {
  background: linear-gradient(90deg, rgba(241, 90, 36, 0.1), transparent 70%);
  padding-left: 24px;
}

.types .n {
  color: var(--text-3);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.types strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.types p {
  color: var(--text-2);
  font-size: 0.92rem;
}

.types em {
  justify-self: end;
  font-style: normal;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  color: var(--text-3);
  font-size: 0.76rem;
}

.types li:first-child em {
  color: var(--orange-2);
  border-color: rgba(241, 90, 36, 0.4);
}

.types li.own strong,
.types li.own .n {
  color: var(--orange-2);
}

.types li.own em {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ---------- AI assistant ---------- */

.new-pill {
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.7rem;
  color: #fff;
  background: var(--orange);
  vertical-align: middle;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ai-card {
  display: flex;
  flex-direction: column;
}

.ai-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr);
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.ai-in {
  display: grid;
  gap: 10px;
}

.ai-file,
.ai-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.ai-file b {
  flex-shrink: 0;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(255, 107, 74, 0.18);
  color: var(--red);
  font-size: 0.68rem;
}

.ai-prompt {
  font-style: italic;
}

.ai-or {
  text-align: center;
  color: var(--text-3);
  font-size: 0.75rem;
}

.ai-arrow {
  color: var(--orange-2);
  font-size: 1.4rem;
}

.ai-out {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(241, 90, 36, 0.35);
  font-size: 0.8rem;
  color: var(--text-2);
}

.ai-out .mt-sec {
  color: var(--text);
  font-weight: 600;
}

.ai-out .mt-q {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-left: 12px;
}

.mini-tree .mt-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-out .mt-q i,
.mini-tree .mt-q i {
  flex-shrink: 0;
  margin-left: 8px;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--orange-2);
}

.ai-badge {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(241, 90, 36, 0.18);
  color: var(--orange-2);
  font-size: 0.68rem;
  font-weight: 600;
}

.ai-summary {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.ai-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-2);
}

.ai-toggle i {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--orange);
}

.ai-toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.ai-para {
  padding: 18px;
  border-radius: var(--r-md);
  background: #f7f7f5;
  border-left: 4px solid var(--orange);
}

.ai-para small {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.tile.ai-card .ai-para p {
  margin: 0;
  color: #1f2430;
  font-size: 0.86rem;
  line-height: 1.55;
}

.ai-fine {
  margin-top: 20px;
}

/* ---------- In the field (photos) ---------- */

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.field-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-2);
}

.field-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.field-card:hover img {
  transform: scale(1.04);
}

.field-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 12, 16, 0.92));
  pointer-events: none;
}

.field-card figcaption {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: grid;
  gap: 4px;
}

.field-card figcaption strong {
  font-family: var(--display);
  font-size: 1.2rem;
}

.field-card figcaption span {
  color: var(--text-2);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .ai-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-card {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 520px) {
  .ai-flow {
    grid-template-columns: 1fr;
  }

  .ai-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

/* ---------- Pricing ---------- */

.pricing .head {
  margin-bottom: 36px;
}

.billing {
  display: flex;
  width: max-content;
  margin: 0 auto 32px;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-2);
}

.billing button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-2);
  transition: all 0.25s var(--ease);
}

.billing button span {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(241, 90, 36, 0.18);
  color: var(--orange-2);
  font-size: 0.7rem;
}

.billing button[aria-checked="true"] {
  background: var(--text);
  color: var(--bg);
}

.billing button[aria-checked="true"] span {
  background: var(--orange);
  color: #fff;
}

.plan {
  color: var(--orange-2);
  font-weight: 600;
  font-size: 0.9rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
}

.price strong {
  font-family: var(--display);
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price span {
  color: var(--text-3);
}

.price-note {
  margin: 14px 0 28px;
  color: var(--text-2);
  font-size: 0.92rem;
  min-height: 1.5em;
}

.price-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 48px;
  border-left: 1px solid var(--border);
  display: grid;
  align-content: center;
  gap: 14px;
}

.price-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(241, 90, 36, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a4c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.price-list li[hidden] {
  display: none;
}

.fine {
  margin-top: 24px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.86rem;
}

/* ---------- Plans (Free / Pro / Enterprise) ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.plan-card.is-featured {
  background: linear-gradient(180deg, rgba(241, 90, 36, 0.1), rgba(255, 255, 255, 0.02));
  border-color: rgba(241, 90, 36, 0.45);
  box-shadow: 0 30px 80px -40px rgba(241, 90, 36, 0.55);
  overflow: hidden;
}

.plan-card.is-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange-2), transparent);
}

.plan-card .plan {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 26px;
}

.plan-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
}

.is-featured .plan-tag {
  color: #fff;
  background: var(--orange);
  border-color: transparent;
}

.plan-card .price strong {
  font-size: clamp(2.6rem, 4.4vw, 3.4rem);
}

.plan-card .price .price-word {
  font-size: clamp(2.2rem, 3.6vw, 2.8rem);
}

.plan-card .price-note {
  margin: 12px 0 22px;
  min-height: 3em;
}

.plan-card .price-list {
  margin-top: 26px;
  padding: 24px 0 0;
  border-left: 0;
  border-top: 1px solid var(--border);
  align-content: start;
  gap: 12px;
  font-size: 0.94rem;
}

.plan-card .price-list li:first-child {
  color: var(--text);
}

@media (max-width: 960px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .plan-card .price-note {
    min-height: 0;
  }
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 64px;
  align-items: start;
}

.faq .head {
  position: sticky;
  top: 120px;
  margin-bottom: 0;
}

.faq-grid {
  display: grid;
  gap: 10px;
}

.faq-grid details {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.faq-grid details[open] {
  background: var(--surface-2);
  border-color: var(--border-2);
}

.faq-grid summary {
  position: relative;
  padding: 20px 60px 20px 24px;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.faq-grid details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--orange-2);
}

.faq-grid details p {
  padding: 0 24px 22px;
  color: var(--text-2);
}

/* ---------- CTA ---------- */

.cta {
  padding: 40px 0 120px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 96px 32px;
  border-radius: 36px;
  text-align: center;
  background: #12151c;
  border: 1px solid var(--border-2);
}

.aurora.small {
  inset: -30% -10% auto;
  height: 600px;
}

.aurora.small i:nth-child(1) {
  left: 10%;
  top: 20%;
}

.aurora.small i:nth-child(2) {
  right: 10%;
  top: 30%;
}

.cta-card h2 {
  max-width: 16ch;
  margin-inline: auto;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.cta-card p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.1rem;
}

/* ---------- Footer ---------- */

.foot {
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.foot img {
  height: 26px;
  width: auto;
}

.foot p {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 0.85rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.foot nav a:hover,
.foot nav button:hover {
  color: var(--text);
}

/* ---------- Modal ---------- */

.modal {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  border-radius: 24px;
  border: 1px solid var(--border-2);
  background: #141820;
  color: var(--text);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.modal[open] {
  animation: pop 0.35s var(--ease);
}

.modal-form {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-head h2 {
  font-size: 1.6rem;
}

.modal-x {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
}

.modal-lede {
  color: var(--text-2);
  font-size: 0.92rem;
}

.modal label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
}

.modal label em {
  font-style: normal;
  font-weight: 400;
  color: var(--text-3);
}

.modal input,
.modal textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.modal input:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.25);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.modal-actions .btn {
  min-height: 44px;
}

/* ---------- Reveal ---------- */

.js .rv {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}

.js .rv.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
  .phone {
    right: 0;
  }

  .toast {
    left: 0;
  }

  .studio {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pdf-wrap {
    max-width: 560px;
  }

  .day {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-track {
    display: none;
  }
}

@media (max-width: 900px) {
  .links {
    position: fixed;
    top: 84px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border-radius: 24px;
    background: rgba(16, 19, 26, 0.96);
    border: 1px solid var(--border-2);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .links a,
  .links button {
    padding: 14px 16px;
    font-size: 1rem;
    text-align: left;
    border-radius: 14px;
  }

  .links-signin,
  .links-demo {
    display: block;
  }

  .pill-cta {
    margin-left: auto;
    gap: 8px;
  }

  .signin {
    display: none;
  }

  .burger {
    display: block;
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .region,
  .lab {
    grid-template-columns: 1fr;
  }

  .region .seg,
  .region-list {
    grid-column: 1;
    grid-row: auto;
  }

  .types li {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 6px 16px;
  }

  .types p {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .types em {
    grid-row: 1;
    grid-column: 3;
  }

  .faq {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .faq .head {
    position: static;
  }

  .price-list {
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facts-grid div:nth-child(3) {
    border-left: 0;
  }

  .facts-grid div:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .topbar {
    top: 10px;
    padding: 0 10px;
  }

  .pillnav {
    padding: 6px 6px 6px 16px;
  }

  .brand img {
    height: 22px;
  }

  .hero {
    padding: 124px 0 24px;
  }

  .announce {
    font-size: 0.74rem;
    text-align: left;
  }

  .hero-sub {
    font-size: 1.02rem;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }

  .showcase {
    margin-top: 48px;
  }

  .dash {
    transform: none;
    animation: none;
  }

  .phone {
    position: relative;
    right: auto;
    bottom: auto;
    width: 230px;
    margin: -60px 12px 0 auto;
  }

  .toast {
    display: none;
  }

  .facts {
    padding-top: 72px;
  }

  .facts-grid div {
    padding: 20px 14px;
  }

  .facts-grid strong {
    font-size: 2.3rem;
  }

  .block {
    padding: 88px 0;
  }

  .head {
    margin-bottom: 40px;
  }

  .day {
    grid-template-columns: 1fr;
  }

  .day-step time {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .day-card {
    height: auto;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .t-wide {
    grid-column: auto;
  }

  .tile {
    padding: 22px;
  }

  .stages {
    grid-template-columns: 1fr 1fr;
  }

  .pdf {
    padding: 18px;
  }

  .types li {
    padding: 18px 4px;
  }

  .types li:hover {
    padding-left: 4px;
  }

  .types strong {
    font-size: 1.2rem;
  }

  .billing button {
    padding: 10px 14px;
  }

  .cta-card {
    padding: 64px 22px;
    border-radius: 28px;
  }

  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .rv {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Demo request: hidden spam trap and send status */
.demo-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-status { margin: 0; min-height: 1.25em; font-size: 0.875rem; line-height: 1.4; }
.demo-status.is-error { color: #c0262d; }

/* =====================================================================
 * App-accurate mock-ups
 * The hero dashboard, phone and report sample mirror the real SafeSite
 * app (dark theme) and PDF: same navigation, colours, type and components,
 * so the page shows the product people actually get.
 * ===================================================================== */

.showcase {
  --am-bg: #0a0f18;
  --am-surface: #111927;
  --am-surface-2: #0d1420;
  --am-side: #070b12;
  --am-line: rgba(255, 255, 255, 0.08);
  --am-line-2: rgba(255, 255, 255, 0.14);
  --am-fg: #f3efe7;
  --am-fg-2: #d5d2cb;
  --am-muted: #9ba3b2;
  --am-faint: #6c7586;
  --am-accent: #f26a37;
  --am-pass: #4ade80;
  --am-fail: #f87171;
  --am-warn: #fbbf24;
  --am-info: #93b4e6;
  --am-sans: "Archivo", system-ui, sans-serif;
  --am-mono: "JetBrains Mono", ui-monospace, monospace;
}

.dash {
  background: var(--am-bg);
}

.am-app {
  display: grid;
  grid-template-columns: 172px 1fr;
  min-height: 380px;
  font-family: var(--am-sans);
  color: var(--am-fg);
  text-align: left;
}

/* sidebar */
.am-side {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 16px 10px 12px;
  background: var(--am-side);
  border-right: 1px solid var(--am-line);
}
.am-side-logo { height: 17px; width: auto; align-self: flex-start; margin: 0 0 14px 8px; }
.am-side-label {
  margin: 10px 0 4px 8px;
  font-family: var(--am-mono);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--am-faint);
}
.am-side-label:first-of-type { margin-top: 0; }
.am-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(243, 239, 231, 0.74);
}
.am-link svg {
  width: 13px; height: 13px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.am-link.is-on { background: rgba(255, 255, 255, 0.08); color: var(--am-fg); font-weight: 600; }
.am-link.is-on svg { color: var(--am-accent); }
.am-link.is-on::before {
  content: ""; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 2px;
  border-radius: 0 2px 2px 0; background: var(--am-accent);
}
.am-user {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto; padding: 10px 6px 0; border-top: 1px solid var(--am-line);
  font-size: 0.62rem; font-weight: 600;
}
.am-user b {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none;
  border-radius: 6px; background: var(--am-accent); color: #fff; font-size: 0.62rem;
}
.am-user small { display: block; font-family: var(--am-mono); font-weight: 400; font-size: 0.5rem; color: var(--am-faint); }

/* main */
.am-main { padding: 18px 20px; min-width: 0; }
.am-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--am-line);
}
.am-eyebrow {
  margin: 0;
  font-family: var(--am-mono); font-size: 0.52rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--am-accent);
}
.am-title { display: block; margin-top: 4px; font-size: 1.18rem; font-weight: 700; letter-spacing: -0.03em; }
.am-desc { margin: 3px 0 0; font-size: 0.62rem; color: var(--am-muted); }
.am-actions { display: flex; gap: 6px; flex: none; }
.am-btn {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
  border-radius: 6px; border: 1px solid var(--am-line-2); background: var(--am-surface);
  font-size: 0.6rem; font-weight: 600; color: var(--am-fg); white-space: nowrap;
}
.am-btn-primary { background: var(--am-accent); border-color: transparent; color: #fff; }
.am-btn-sm { height: 20px; font-size: 0.55rem; }

.am-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--am-line); border-radius: 10px; overflow: hidden; background: var(--am-surface);
}
.am-stats div { position: relative; padding: 9px 11px 10px; border-left: 1px solid var(--am-line); }
.am-stats div:first-child { border-left: 0; }
.am-stats div.is-on { background: rgba(241, 90, 36, 0.14); }
.am-stats div.is-on::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--am-accent); }
.am-stats small {
  display: block; font-family: var(--am-mono); font-size: 0.48rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--am-muted);
}
.am-stats strong {
  display: block; margin: 5px 0 3px;
  font-family: var(--am-mono); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1;
}
.am-stats em { font-style: normal; font-size: 0.52rem; color: var(--am-muted); }
.t-fail { color: var(--am-fail); }
.t-accent { color: #ff8a57; }

.am-card { margin-top: 12px; border: 1px solid var(--am-line); border-radius: 10px; background: var(--am-surface); overflow: hidden; }
.am-card-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 11px; border-bottom: 1px solid var(--am-line); font-size: 0.7rem; }
.am-week { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--am-line); }
.am-week span {
  position: relative; padding: 6px 0; text-align: center;
  font-family: var(--am-mono); font-size: 0.68rem; border-left: 1px solid var(--am-line);
}
.am-week span:first-child { border-left: 0; }
.am-week small { display: block; font-size: 0.44rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--am-muted); }
.am-week .is-today { color: var(--am-accent); font-weight: 600; }
.am-week .is-today::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--am-accent); }
.am-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
  padding: 7px 11px; border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.am-row:first-of-type { border-top: 0; }
.am-row-t { min-width: 0; font-size: 0.64rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-row-t small { display: block; font-weight: 400; font-size: 0.54rem; color: var(--am-muted); }
.am-date { font-family: var(--am-mono); font-size: 0.54rem; color: var(--am-muted); }
.am-tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border-radius: 3px; border: 1px solid;
  font-family: var(--am-mono); font-size: 0.46rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.am-tag::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.t-info { color: var(--am-info); border-color: rgba(96, 140, 210, 0.32); background: rgba(96, 140, 210, 0.14); }
.t-warn { color: var(--am-warn); border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.13); }
.t-pass { color: var(--am-pass); border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.12); }

/* phone: the field app's inspection screen */
.phone { width: 232px; }
.am-phone {
  display: flex; flex-direction: column; min-height: 400px;
  border-radius: 25px; overflow: hidden; background: var(--am-bg);
  font-family: var(--am-sans); color: var(--am-fg); text-align: left;
}
.am-ph-bar {
  display: grid; grid-template-columns: 24px 1fr 24px; align-items: center;
  padding: 22px 8px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.68rem; text-align: center;
}
.am-ph-back { color: var(--am-accent); font-size: 1.1rem; line-height: 1; }
.am-ph-body { flex: 1; padding: 10px 12px; }
.am-ph-title { display: block; margin-top: 3px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.am-ph-sub {
  margin: 10px 0 6px; font-family: var(--am-mono); font-size: 0.48rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--am-muted);
}
.am-ph-sub span { color: var(--am-faint); }
.am-ph-list { border: 1px solid var(--am-line); border-radius: 10px; background: var(--am-surface); overflow: hidden; }
.am-ph-row { position: relative; padding: 8px 9px 8px 12px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.am-ph-row:first-child { border-top: 0; }
.am-ph-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.am-ph-row.e-pass::before { background: var(--am-pass); }
.am-ph-row.e-fail::before { background: var(--am-fail); }
.am-ph-row > span { display: block; font-size: 0.66rem; font-weight: 600; }
.am-ph-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.am-ph-res i {
  padding: 3px 0; border-radius: 4px; border: 1px solid var(--am-line); background: var(--am-surface-2);
  font-style: normal; font-family: var(--am-mono); font-size: 0.46rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; text-align: center; color: var(--am-fg-2);
}
.am-ph-res i.on-pass { color: var(--am-pass); border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.12); }
.am-ph-res i.on-fail { color: var(--am-fail); border-color: rgba(239, 68, 68, 0.32); background: rgba(239, 68, 68, 0.13); }
.am-ph-pending { margin: 8px 0 0; font-size: 0.52rem; color: var(--am-warn); }
.am-ph-tabs {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 8px 10px; padding: 6px 8px; border-radius: 14px;
  background: var(--am-side); border: 1px solid var(--am-line);
}
.am-ph-tabs span {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 4px; border-radius: 8px; color: var(--am-faint);
}
.am-ph-tabs span.is-on { background: rgba(255, 255, 255, 0.08); color: var(--am-fg); }
.am-ph-tabs span.is-on svg { color: var(--am-accent); }
.am-ph-tabs svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.am-ph-tabs small { font-family: var(--am-mono); font-size: 0.36rem; letter-spacing: 0.08em; text-transform: uppercase; }
.am-ph-tabs b {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--am-accent); color: #fff; font-size: 1rem; font-weight: 500;
}

/* toast: like the app's notification */
.toast { font-family: "Archivo", system-ui, sans-serif; }

/* ---------- Report sample: mirrors the real PDF ---------- */
.pdf {
  --ink: #111827;
  --muted: #6b7280;
  --rule: #e5e7eb;
  --rule-2: #d1d5db;
  --r-pass: #15803d;
  --r-fail: #c2410c;
  color: var(--ink);
  font-family: Arial, "Liberation Sans", Helvetica, sans-serif;
}
.rp-mast {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0 9px; border-top: 4px solid var(--accent); border-bottom: 1px solid var(--rule-2);
}
.rp-brand { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 700; }
.rp-brand b { width: 24px; height: 24px; border-radius: 5px; background: var(--accent); }
.rp-brand small { display: block; font-weight: 400; font-size: 0.56rem; color: var(--muted); }
.rp-badge {
  padding: 3px 6px; border: 1px solid var(--rule-2); border-radius: 4px;
  font-size: 0.5rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted);
}
.rp-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 14px; }
.rp-kicker { font-size: 0.5rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.rp-title h4 { margin: 4px 0 0; font-size: 1.15rem; line-height: 1.15; letter-spacing: -0.015em; }
.rp-doc { margin: 0; width: 38%; flex: none; border-top: 2px solid var(--ink); font-size: 0.56rem; }
.rp-doc div { display: flex; justify-content: space-between; gap: 6px; padding: 3px 0; border-bottom: 1px solid var(--rule); }
.rp-doc dt { font-size: 0.46rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.rp-doc dd { margin: 0; font-weight: 700; }
.rp-outcomes {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px;
  border: 1px solid var(--rule-2); border-radius: 5px; overflow: hidden;
}
.rp-outcomes div { padding: 6px 8px; border-left: 1px solid var(--rule); }
.rp-outcomes div:first-child { border-left: 0; }
.rp-outcomes strong { display: block; font-size: 1.05rem; line-height: 1; }
.rp-outcomes span { display: block; margin-top: 3px; font-size: 0.44rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.rp-outcomes .is-warn strong { color: var(--r-fail); }
.rp-outcomes .is-ok strong { color: var(--r-pass); }
.rp-break { display: none; align-items: center; gap: 8px; margin: 12px 0 4px; }
.rp-break::before, .rp-break::after { content: ""; flex: 1; border-top: 1px dashed var(--rule-2); }
.rp-break span { font-size: 0.48rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rp-section {
  display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-bottom: 6px;
  border-bottom: 2px solid var(--ink); font-size: 0.82rem; font-weight: 700;
}
.rp-section b {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px;
  background: var(--accent); color: #fff; font-size: 0.7rem;
}
.rp-section small { display: block; font-size: 0.44rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.rp-finding {
  position: relative; margin-top: 8px; padding: 8px 9px 8px 13px;
  border: 1px solid var(--rule-2); border-radius: 5px;
}
.rp-finding::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; border-radius: 5px 0 0 5px; }
.rp-finding.e-fail::before { background: var(--r-fail); }
.rp-finding.e-pass::before { background: var(--r-pass); }
.rp-f-top { display: flex; align-items: flex-start; gap: 8px; }
.rp-ref { padding-top: 1px; font-family: Consolas, "Liberation Mono", monospace; font-size: 0.62rem; font-weight: 700; color: var(--accent); }
.rp-f-title { flex: 1; font-size: 0.72rem; font-weight: 700; }
.rp-f-title small { display: block; font-weight: 400; font-size: 0.58rem; color: var(--muted); }
.rp-rating {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 1px solid; border-radius: 4px;
  font-size: 0.52rem; font-weight: 700; white-space: nowrap;
}
.rp-rating::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.rp-rating.r-fail { color: var(--r-fail); }
.rp-rating.r-pass { color: var(--r-pass); }
.rp-f-body { display: grid; grid-template-columns: 70px 1fr; gap: 9px; margin-top: 7px; }
.rp-photo {
  height: 52px; border-radius: 4px; border: 1px solid var(--rule-2);
  background: linear-gradient(135deg, #9aa1a8, #5d6470);
  display: flex; align-items: flex-end; padding: 3px 4px;
}
.rp-photo span { font-family: Consolas, monospace; font-size: 0.42rem; color: #fff; }
.rp-f-body p { margin: 0; font-size: 0.6rem; line-height: 1.45; color: #374151; border-top: 1px solid var(--rule); padding-top: 4px; }
.rp-f-body em { display: block; font-style: normal; font-size: 0.44rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.rp-f-ref { display: none; margin: 6px 0 0; font-size: 0.52rem; color: var(--muted); }
.rp-f-ref b { font-family: Consolas, monospace; color: var(--accent); }
.rp-appendix {
  display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 8px;
  border-top: 1px dashed var(--rule-2); font-size: 0.58rem; font-weight: 700;
}
.rp-appendix b { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 3px; background: var(--accent); color: #fff; font-size: 0.52rem; }
.rp-sign { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 0.56rem; }
.rp-sign th { text-align: left; padding: 3px 6px 3px 0; border-bottom: 1.5px solid var(--ink); font-size: 0.44rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.rp-sign td { height: 18px; padding: 0 6px 2px 0; border-bottom: 1px solid var(--rule-2); vertical-align: bottom; font-weight: 700; }

/* layouts */
.pdf.layout-executive .rp-break { display: flex; }
.pdf.layout-executive .rp-title h4 { font-size: 1.3rem; }
.pdf.layout-compact { font-size: 0.94em; }
.pdf.layout-compact .rp-title { margin-top: 10px; }
.pdf.layout-compact .rp-outcomes div { padding: 4px 7px; }
.pdf.layout-compact .rp-finding { margin-top: 5px; padding-top: 6px; padding-bottom: 6px; }
.pdf.layout-compact .rp-section { margin-top: 10px; }

/* photo placement */
.pdf.photos-appendix .rp-f-body,
.pdf.photos-none .rp-f-body { grid-template-columns: 1fr; }
.pdf.photos-appendix .rp-photo,
.pdf.photos-none .rp-photo { display: none; }
.pdf.photos-appendix .rp-f-ref { display: block; }
.pdf.photos-none .rp-appendix { display: none; }

@media (max-width: 720px) {
  .am-app { grid-template-columns: 1fr; min-height: 0; }
  .am-side { display: none; }
  .am-main { padding: 14px; }
  .am-actions { display: none; }
  .am-stats { grid-template-columns: repeat(2, 1fr); }
  .am-stats div:nth-child(3) { border-left: 0; }
  .am-stats div:nth-child(n + 3) { border-top: 1px solid var(--am-line); }
  .am-week { display: none; }
  .am-date { display: none; }
}

@media (min-width: 1061px) {
  /* The wider phone sits a little further out so it covers less of the dashboard. */
  .showcase .phone { right: -56px; }
}
