/* Nunya, one page site.
   Deep blue-black ground, system blue and restrained purple accents, light
   type, and the privacy artwork always in its calibrated look. */

:root {
  --ink: #07080d;
  --ink-2: #0c0e16;
  --ink-3: #12141f;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f6fa;
  --text-dim: #a8adbd;
  --blue: #3b7bff;
  --blue-bright: #5b95ff;
  --purple: #7b46f0;
  --radius: 20px;
  --shell: min(1120px, 100% - 2.5rem);
  --header: 64px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", var(--font);
}

* {
  box-sizing: border-box;
}

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

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70rem 40rem at 15% -10%, rgba(123, 70, 240, 0.28), transparent 60%),
    radial-gradient(60rem 40rem at 90% 5%, rgba(59, 123, 255, 0.22), transparent 55%),
    radial-gradient(80rem 50rem at 50% 110%, rgba(59, 123, 255, 0.12), transparent 60%);
}

img {
  max-width: 100%;
}

a {
  color: var(--blue-bright);
  text-decoration-color: rgba(91, 149, 255, 0.4);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-rounded);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.05rem;
  font-weight: 650;
}

p {
  margin: 0 0 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.6rem 1rem;
  background: var(--ink-3);
  border-radius: 0 0 12px 0;
  z-index: 50;
}
.skip-link:focus {
  left: 0;
}

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

/* ------------------------------- header ------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  height: var(--header);
  padding: 0 max(1.25rem, calc((100% - 1120px) / 2));
  background: rgba(7, 8, 13, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  border-radius: 9px;
}

.site-header nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.94rem;
}
.site-header nav a {
  color: var(--text-dim);
  text-decoration: none;
}
.site-header nav a:hover {
  color: var(--text);
}

/* ------------------------------- buttons ------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(59, 123, 255, 0.9);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.button-small {
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
}
.button-large {
  padding: 1rem 1.8rem;
  font-size: 1.05rem;
}
.button-ghost {
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--text);
}

/* ============================ hero and demo ============================ */

/* The hero is a scroll runway. Its sticky child holds the screen while the
   phone walks away from the reader, so the effect can be scrubbed back and
   forth rather than watched once. */
.hero {
  position: relative;
  height: 230vh;
}

.hero-sticky {
  /* Sits below the sticky header rather than under it, so the demo and its
     control fit the visible screen even before the page is scrolled. */
  position: sticky;
  top: var(--header);
  height: calc(100vh - var(--header));
  height: calc(100svh - var(--header));
  width: var(--shell);
  margin: 0 auto;
  padding-top: 0.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.grad {
  background: linear-gradient(100deg, #b79bff, #5b95ff 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede,
.section-lede {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 56ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}

.fineprint {
  font-size: 0.86rem;
  color: rgba(168, 173, 189, 0.85);
}

.hero-demo {
  /* A column that shares out the height it is given: the phone takes what is
     left after the readout and the control, so the control is always on screen
     and the phone is as large as the rest allows. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  height: 100%;
  min-height: 0;
  padding: 0.5rem 0;
}

/* The phone is positioned inside this box by site.js. It is taller than the
   box when close, so the near view is a crop that fades out at the bottom. */
.phone-field {
  /* No height of its own: it takes whatever the column has left over. */
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent);
  mask-image: linear-gradient(180deg, #000 86%, transparent);
}

.phone-shot {
  display: block;
  width: min(60%, 420px);
  height: auto;
  margin: 0 auto;
}
.phone-field.is-live .phone-shot {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  will-change: auto;
}

.readout {
  text-align: center;
  min-height: 5.2rem;
}
.readout-status {
  margin: 0;
  font-family: var(--font-rounded);
  font-weight: 650;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}
.readout-status[data-state="clear"] {
  color: #7ee0a8;
}
.readout-status[data-state="fading"] {
  color: #ffd479;
}
.readout-status[data-state="gone"] {
  color: #b9a3ff;
}
.readout-message {
  margin: 0.25rem 0 0;
  font-family: var(--font-rounded);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  min-height: 1.4em;
}
.readout-tag {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: var(--text-dim);
}

.demo-controls {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  z-index: 999;
}
.demo-controls button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 550;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.demo-controls button.is-selected {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.scroll-hint {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(168, 173, 189, 0.75);
  transition: opacity 0.2s linear;
}

/* ------------------------------ sections ------------------------------ */

.section {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  scroll-margin-top: 5rem;
}

.section-alt {
  width: 100%;
  padding-inline: max(1.25rem, calc((100% - 1120px) / 2));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 60%);
  border-block: 1px solid var(--line);
}

/* ---------------------------- split layouts --------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: 2.5rem;
}
.section > .split:first-child {
  margin-top: 0;
}
.split-wide {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr);
}
@media (max-width: 860px) {
  .split-wide {
    grid-template-columns: minmax(0, 1fr);
  }
  .shot-first {
    order: -1;
  }
}

/* -------------------------- shots and video --------------------------- */

.shot {
  margin: 0;
  display: grid;
  place-items: center;
}
.shot img {
  /* Every device render is a 1:2 canvas with the phone centred at one size, so
     they all land identically. The aspect-ratio holds that even if a future
     asset arrives with different padding around the device. */
  display: block;
  width: 100%;
  max-width: 330px;
  aspect-ratio: 1 / 2;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.85));
}

.video-frame {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #05060a;
}

/* ------------------------------ app icons ----------------------------- */

.app-icons {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
}
.app-icons li {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  width: 64px;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
}
.app-icons img,
.icon-tile {
  width: 56px;
  height: 56px;
}
/* The supplied icons carry their own rounded shape, so no clipping here. */
.icon-tile {
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
}
.app-icons .app-icons-note {
  margin: 1rem 0 0;
  max-width: 46ch;
}
.app-icons-more {
  /* Its own line under the icons, however many of them wrap. */
  flex-basis: 100%;
  width: auto;
  justify-items: start;
  text-align: left;
  line-height: 1.35;
  margin-top: 0.25rem;
}

/* ------------------------------- ticks -------------------------------- */

.ticks {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--text-dim);
}
.ticks li {
  position: relative;
  padding-left: 1.7rem;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue-bright);
  font-weight: 700;
}

/* -------------------------------- faq --------------------------------- */

.faq {
  margin-top: 2rem;
  display: grid;
  gap: 0.6rem;
}
details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.9rem 1.2rem;
}
summary {
  cursor: pointer;
  font-family: var(--font-rounded);
  font-weight: 600;
  list-style-position: inside;
}
details p {
  margin: 0.75rem 0 0;
  color: var(--text-dim);
}

.plain-truth {
  margin: 2.5rem 0 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 0.95rem;
}
.plain-truth strong {
  color: var(--text);
}

/* ---------------------------- document page --------------------------- */

.doc {
  width: min(46rem, 100% - 2.5rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem;
}
.doc h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.doc h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
}
.doc p {
  color: var(--text-dim);
  max-width: 68ch;
}
.doc-date {
  font-size: 0.86rem;
  color: rgba(168, 173, 189, 0.75);
  margin-top: -0.5rem;
}
.doc-lead {
  font-size: 1.15rem;
  color: var(--text);
  margin-top: 1.75rem;
}
.doc-back {
  margin-top: 3rem;
}

/* ------------------------------- closer ------------------------------- */

.closer {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.25rem;
}
.closer img {
  border-radius: 22px;
  margin-bottom: 1rem;
}
.closer .button {
  margin: 1rem 0 0.5rem;
}

/* ------------------------------- press -------------------------------- */

.press {
  width: min(52rem, 100% - 2.5rem);
}
.press h2 {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.press h3 {
  margin-top: 2rem;
  color: var(--text);
}
.press .ticks {
  margin-top: 1rem;
}

.press-contact {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}
.press-contact p {
  margin: 0;
  color: var(--text);
}
.press-contact-note {
  margin-top: 0.5rem !important;
  font-size: 0.9rem;
  color: var(--text-dim) !important;
}

/* Wording a journalist can lift straight into a piece. */
.press-quote {
  padding-left: 1.1rem;
  border-left: 3px solid rgba(91, 149, 255, 0.5);
  color: var(--text) !important;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.facts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.facts th,
.facts td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.facts tr:last-child th,
.facts tr:last-child td {
  border-bottom: 0;
}
.facts th {
  width: 12rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.facts td {
  color: var(--text-dim);
}
mark {
  padding: 0.1em 0.4em;
  border-radius: 5px;
  background: rgba(255, 212, 121, 0.18);
  color: #ffd479;
  font-weight: 600;
}

.video-embed {
  position: relative;
  overflow: hidden;
}
.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
}
.video-play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
}
.video-play img {
  display: block;
  width: 100%;
  height: auto;
}
.video-play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #fff;
  background: rgba(7, 8, 13, 0.35);
  transition: background 0.2s ease;
}
.video-play:hover .video-play-badge {
  background: rgba(7, 8, 13, 0.15);
}

.asset-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.asset-grid img {
  display: block;
  width: 100%;
  height: auto;
}
/* Device renders share one 1:2 canvas, so the phones match and the captions sit
   on one line. Scoped to that row: the icon and social card rows have their own
   shapes. */
.asset-grid-devices img {
  aspect-ratio: 1 / 2;
  object-fit: contain;
}
.asset-grid p {
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
}
.asset-grid-icons {
  grid-template-columns: repeat(auto-fit, minmax(140px, 160px));
}
.asset-grid-icons img {
  border-radius: 22%;
}

/* ------------------------------- footer ------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem max(1.25rem, calc((100% - 1120px) / 2));
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

/* ----------------------------- narrow view ---------------------------- */

@media (max-width: 900px) {
  .hero {
    height: 200vh;
  }
  .hero-sticky {
    display: flex;
    flex-direction: column;
    /* The base rule centres the two columns; stacked, they want full width. */
    align-items: stretch;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .hero-copy {
    flex: 0 0 auto;
  }
  .hero-demo {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
  }
  .hero-copy .lede {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  /* One screen has to hold the copy and the whole demo, and the header keeps a
     download button in view, so the hero buttons stand down here. */
  .hero-copy .cta-row {
    display: none;
  }
  .readout {
    min-height: 4.6rem;
  }
}

/* One phone screen has to hold the copy, the demo and its control, so
   everything below the headline tightens up. */
@media (max-width: 640px) {
  .site-header nav {
    display: none;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .hero-sticky {
    gap: 0.5rem;
  }
  .hero-demo {
    gap: 0.6rem;
    padding: 0;
  }
  .readout {
    min-height: 0;
  }
  .readout-message {
    font-size: 0.85rem;
  }
  .scroll-hint {
    display: none;
  }
}

/* ----------------------------- preferences ---------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button,
  .scroll-hint,
  .readout-status {
    transition-duration: 1ms;
  }
}
