/* Prism website. Light and dark follow the visitor's system setting. */

:root {
  --bg: #0b0a13;
  --bg-2: #110f1d;
  --surface: #17152a;
  --surface-2: #1f1c36;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f3fa;
  --text-2: #b8b4d0;
  --text-3: #8d89a8;
  --accent: #6366f1;
  --accent-text: #a5a8ff;
  --glow-a: rgba(139, 92, 246, 0.35);
  --glow-b: rgba(6, 182, 212, 0.18);
  --glow-c: rgba(245, 158, 11, 0.12);
  --grid-line: rgba(255, 255, 255, 0.04);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(11, 10, 19, 0.72);
  --phone: #0d0c14;
  --radius: 22px;

  --amber: #f59e0b;
  --purple: #8b5cf6;
  --indigo: #6366f1;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --rainbow: linear-gradient(95deg, #f59e0b 0%, #8b5cf6 38%, #3b82f6 68%, #14b8a6 100%);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f6fd;
    --bg-2: #efedfa;
    --surface: #ffffff;
    --surface-2: #f3f1fb;
    --border: rgba(30, 27, 75, 0.09);
    --border-strong: rgba(30, 27, 75, 0.16);
    --text: #15132a;
    --text-2: #4b4868;
    --text-3: #6f6c8a;
    --accent-text: #4f46e5;
    --glow-a: rgba(139, 92, 246, 0.22);
    --glow-b: rgba(6, 182, 212, 0.16);
    --glow-c: rgba(245, 158, 11, 0.14);
    --grid-line: rgba(30, 27, 75, 0.05);
    --shadow: 0 30px 60px rgba(49, 46, 129, 0.18);
    --shadow-sm: 0 10px 30px rgba(49, 46, 129, 0.12);
    --header-bg: rgba(247, 246, 253, 0.75);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }

/* ---------- Shared bits ---------- */
.glows { position: relative; overflow: hidden; isolation: isolate; }
.glows::before, .glows::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  filter: blur(10px);
}
.glows::before { width: 720px; height: 720px; left: -220px; top: -260px; background: radial-gradient(circle, var(--glow-a), transparent 65%); }
.glows::after { width: 760px; height: 760px; right: -260px; bottom: -320px; background: radial-gradient(circle, var(--glow-b), transparent 65%); }
.grid-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.gradient-text { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.pill .tiles { display: inline-grid; grid-template-columns: repeat(3, 6px); gap: 2px; }
.pill .tiles i { width: 6px; height: 6px; border-radius: 2px; display: block; }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; }

.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store-badge img { height: 52px; width: auto; }
.store-badge { display: inline-block; border-radius: 10px; transition: transform 0.15s ease; }
.store-badge:hover { transform: translateY(-1px); }
.soon {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px;
  border-radius: 10px; border: 1px dashed var(--border-strong); color: var(--text-3); font-size: 15px; font-weight: 600;
}
.fine { color: var(--text-3); font-size: 14px; margin: 14px 0 0; }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative; width: 300px; padding: 9px; border-radius: 50px;
  background: var(--phone);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.phone img { border-radius: 41px; width: 100%; height: auto; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.035em; margin: 22px 0 18px; font-weight: 800; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 540px; margin: 0 0 32px; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.hero-visual .phone { z-index: 2; transform: rotate(2deg); }
.deco { position: absolute; border-radius: 22%; opacity: 0.9; box-shadow: var(--shadow-sm); z-index: 1; }
.deco::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0) 60%); }
.deco-1 { width: 74px; height: 74px; background: var(--amber); top: 2%; right: 12%; transform: rotate(12deg); }
.deco-2 { width: 56px; height: 56px; background: var(--purple); top: 40%; left: 4%; transform: rotate(-14deg); }
.deco-3 { width: 64px; height: 64px; background: var(--teal); bottom: 6%; right: 6%; transform: rotate(-8deg); }
.deco-4 { width: 40px; height: 40px; background: var(--blue); bottom: 22%; left: 14%; transform: rotate(18deg); }

.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--shadow-sm); min-width: 210px;
}
.float .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; }
.float .ic svg { width: 20px; height: 20px; }
.float b { display: block; font-size: 14px; color: var(--text); line-height: 1.25; }
.float span { display: block; font-size: 13px; color: var(--text-3); line-height: 1.3; }
.float-1 { top: 16%; left: -4%; }
.float-2 { bottom: 16%; right: -6%; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); margin-top: 6px; overflow: hidden; width: 140px; }
.bar i { display: block; height: 100%; width: 28%; background: var(--teal); border-radius: inherit; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section h2 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 14px; font-weight: 800; }
.section-head p { color: var(--text-2); margin: 0; font-size: 19px; }
.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* List types */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.type {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.type:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.type::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.type .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.type .ic svg { width: 24px; height: 24px; }
.type h3 { font-size: 22px; letter-spacing: -0.01em; margin: 18px 0 8px; }
.type p { color: var(--text-2); margin: 0 0 18px; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chip { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

/* Feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-row + .feature-row { margin-top: 120px; }
.feature-row.flip .copy { order: 2; }
.feature-row .visual { display: flex; justify-content: center; position: relative; }
.feature-row .visual::before {
  content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; top: 50%; left: 50%;
  transform: translate(-50%, -50%); background: radial-gradient(circle, color-mix(in srgb, var(--c) 32%, transparent), transparent 65%);
  z-index: 0;
}
.feature-row .phone { width: 280px; z-index: 1; }
.feature-row h2 { text-align: left; }
.feature-row .copy p { color: var(--text-2); font-size: 18px; margin: 0 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checks li::before {
  content: ''; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 7px;
  background: color-mix(in srgb, var(--c) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' 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 / 14px no-repeat;
  background-color: var(--c);
}
.checks b { color: var(--text); font-weight: 600; }

/* Gallery */
.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 20px 28px; margin: 0 -20px; scrollbar-width: thin;
}
.gallery img { flex: 0 0 auto; width: 250px; height: auto; border-radius: 22px; scroll-snap-align: center; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }

/* Small features */
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.mini .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.mini .ic svg { width: 20px; height: 20px; }
.mini h3 { font-size: 17px; margin: 14px 0 4px; }
.mini p { margin: 0; color: var(--text-2); font-size: 15px; }

/* CTA */
.cta-band { padding: 110px 0 120px; text-align: center; }
.cta-band .icon { width: 108px; height: 108px; border-radius: 25px; margin: 0 auto 28px; box-shadow: 0 24px 60px rgba(99, 102, 241, 0.4); }
.cta-band h2 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; font-weight: 800; }
.cta-band p { color: var(--text-2); font-size: 19px; margin: 0 auto 32px; max-width: 520px; }
.cta-band .fine { margin: 22px auto 0; font-size: 15px; color: var(--text-3); }
.cta-band .store-row { justify-content: center; }

/* ---------- Documents (privacy, support) ---------- */
.doc-hero { padding: 64px 0 8px; }
.doc { padding: 56px 0 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.03em; line-height: 1.08; margin: 18px 0 8px; font-weight: 800; }
.doc .meta { color: var(--text-3); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 23px; letter-spacing: -0.01em; margin: 44px 0 8px; }
.doc h3 { font-size: 18px; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 22px; }
.callout { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin: 24px 0; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.callout::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--rainbow); }
.callout p { margin: 0; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; margin: 12px 0; transition: border-color 0.2s ease; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--text-3); font-weight: 500; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p, .faq details ul { margin: 12px 0 0; }

/* ---------- Footer ---------- */
/* Dark in both themes, like the other Trajectory Labs sites. */
.site-footer { background: #13112a; color: #a9a5c4; padding: 64px 0 40px; font-size: 15px; }
.site-footer a { color: #cfcbe6; text-decoration: none; }
.site-footer a:hover { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: #ffffff; }
.footer-brand p { margin: 14px 0 0; max-width: 360px; line-height: 1.6; }
.footer-brand .made a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(207, 203, 230, 0.4); }
.footer-brand .made a:hover { text-decoration-color: currentColor; }
.footer-col h4 { margin: 4px 0 16px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #ffffff; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; line-height: 1.6; }
.footer-bottom p { margin: 0 0 12px; }
.footer-bottom .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 18px; }
.footer-bottom .row nav { display: flex; gap: 22px; }
.footer-bottom .row a.co { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .store-row { justify-content: center; }
  .types { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .feature-row.flip .copy { order: 0; }
  .feature-row h2 { text-align: center; }
  .checks { text-align: left; max-width: 460px; margin: 0 auto; }
  .minis { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-nav { gap: 16px; }
  .site-nav .hide-sm { display: none; }
  .section { padding: 72px 0; }
  .phone { width: 250px; border-radius: 42px; padding: 8px; }
  .phone img { border-radius: 34px; }
  .feature-row .phone { width: 240px; }
  .float { min-width: 0; padding: 10px 12px; }
  .float-1 { left: 0; top: 8%; }
  .float-2 { right: 0; bottom: 8%; }
  .float .bar { width: 100px; }
  .deco-2, .deco-4 { display: none; }
  .minis { grid-template-columns: 1fr; }
  .gallery img { width: 210px; }
  .store-badge img, .soon { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .type, .store-badge { transition: none; }
}
