/* Palette from branding/README.md — keep in sync. */
:root {
  --bg: #110E1E;
  --tile: #161226;
  --surface: #201C30;
  --border: rgba(255, 255, 255, 0.08);
  --text: #EFE9DD;
  --muted: #9B93AB;
  --orange: #FF8A3D;
  --orange-hi: #FFA76B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  --gutter: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a {
  color: var(--orange-hi);
  text-decoration: none;
}

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    system-ui, sans-serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(17, 14, 30, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  /* Padding rather than a fixed height: baseline-aligned flex items pack to
     the top of a fixed-height row instead of centering. */
  padding-block: 10px;
}

.wordmark {
  /* Large enough that the buttons resolve as three; below ~44px they fuse into
     a bar and the mark stops being a cardigan. */
  --logo: 44px;
  /* Inline flow, not flex: the anchor must donate the text's baseline to
     .nav-inner, and engines disagree on which item a flex container's
     fallback baseline comes from. */
  white-space: nowrap;
  color: var(--text);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.wordmark svg {
  width: var(--logo);
  height: var(--logo);
  /* Both derive from --logo so it stays the only number to change: the radius
     matches the tile's own 108/480 corner ratio, and the offset seats the
     tile's center on the cap-height midline (0.76em for this face). The middle
     keyword keys off the x-height instead and sits the logo ~2px low. */
  border-radius: calc(var(--logo) * 0.225);
  vertical-align: calc((var(--logo) - 0.76em) / -2);
  margin-right: 10px;
}

.wordmark span {
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: baseline;
  gap: 22px;
}

.nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

@media (max-width: 640px) {
  /* The nav is sticky and the logo is the only thing in it that can drive the
     row's height, so it gives back what it can afford on a phone. */
  .wordmark {
    --logo: 36px;
  }

  /* The nav CTA downloads a macOS dmg; useless on a phone, and it crowds
     the wordmark. */
  .nav-right .button {
    display: none;
  }
}

/* Buttons */

.button {
  display: inline-block;
  background: var(--orange);
  color: #161226;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.button:hover {
  background: var(--orange-hi);
}

.button-small {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Hero */

.hero {
  position: relative;
  padding: 96px 0 0;
  text-align: center;
  overflow: hidden;
}

/* Warm glow rising behind the app window. */
.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 -20%;
  height: 70%;
  background: radial-gradient(
    ellipse 60% 100% at 50% 100%,
    rgba(255, 138, 61, 0.16),
    rgba(255, 138, 61, 0.04) 55%,
    transparent 75%
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.kicker {
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  font-weight: 700;
  line-height: 1.08;
  max-width: 17ch;
  margin: 0 auto 24px;
}

.lede {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 56ch;
  margin: 0 auto 36px;
  text-wrap: balance;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cta-note {
  color: var(--muted);
  opacity: 0.8;
  font-size: 0.85rem;
  margin-bottom: 66px;
}

/* App window placeholder */

.window {
  container-type: inline-size;
  max-width: 860px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--tile);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.04) inset,
    0 -30px 80px rgba(255, 138, 61, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Bar chrome scales with the window; each cqi factor is the desktop px value
   over the 860px max-width. */
.window-bar {
  /* Matches the chrome color in hero.mp4, so the fake title bar and the video
     read as one window. */
  background: #1b1b1b;
  display: flex;
  gap: clamp(4px, 0.95cqi, 8px);
  padding: clamp(5px, 1.3cqi, 12px) clamp(7px, 1.9cqi, 16px);
  border-bottom: 1px solid var(--border);
}

.window-bar span {
  width: clamp(5px, 1.2cqi, 10px);
  height: clamp(5px, 1.2cqi, 10px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.window-body {
  position: relative;
  /* Matches hero.mp4 so the video is neither cropped nor boxed. */
  aspect-ratio: 1778 / 984;
  overflow: hidden;
}

.window-poster,
.window-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .window-video {
    display: none;
  }
}

@media (max-width: 640px) {
  .window {
    /* Narrowed rather than full-bleed: the corners and shadow are what make
       the hero read as a Mac app once the video is too small to follow. */
    margin: 0 calc(8px - var(--gutter));
  }
}

/* Features */

.features {
  border-top: 1px solid var(--border);
  background: var(--tile);
  padding: 96px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}

.feature p {
  color: var(--muted);
  font-size: 0.98rem;
}

.badge {
  display: inline-block;
  vertical-align: 0.15em;
  margin-left: 6px;
  padding: 2px 9px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  color: var(--orange);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* FAQ */

.faq {
  border-top: 1px solid var(--border);
  padding: 96px 0;
}

.faq-inner {
  max-width: 640px;
}

.faq h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  text-align: center;
  margin-bottom: 28px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq-item summary::before {
  content: "";
  flex: none;
  border-left: 6px solid var(--orange);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::before {
  transform: rotate(90deg);
}

.faq-answer {
  color: var(--muted);
  margin-top: 10px;
  /* Triangle width + summary gap, so the answer aligns with the title text. */
  padding-left: 18px;
}

.faq-answer ul {
  margin: 8px 0;
  padding-left: 32px;
}

/* Privacy */

.privacy {
  padding: 110px 0;
}

.privacy-inner {
  max-width: 760px;
  text-align: center;
}

.privacy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--orange-hi);
  margin-bottom: 22px;
}

.privacy p {
  color: var(--muted);
  font-size: 1.12rem;
  text-wrap: balance;
}

.privacy p + p {
  margin-top: 20px;
}

/* Closing CTA */

.closing {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(
      ellipse 50% 90% at 50% 100%,
      rgba(255, 138, 61, 0.12),
      transparent 70%
    ),
    var(--tile);
  padding: 110px 0;
}

.closing-inner {
  max-width: 620px;
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
}

.closing p {
  color: var(--muted);
  margin-bottom: 32px;
}

/* Blog list */

.blog {
  padding: 72px 0 96px;
}

.blog-inner {
  max-width: 720px;
}

.blog-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-bottom: 10px;
}

.blog-lede {
  color: var(--muted);
}

.blog-empty {
  color: var(--muted);
  margin-top: 36px;
}

.post-list {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.post-item a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.post-item a:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.post-item time {
  color: var(--muted);
  font-size: 0.85rem;
}

.post-item h2 {
  font-size: 1.25rem;
  margin: 6px 0 8px;
}

.post-item p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Blog post */

.post {
  padding: 72px 0 96px;
}

.post-inner {
  max-width: 720px;
}

.post-header {
  margin-bottom: 40px;
}

.post-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.post-header time {
  color: var(--muted);
  font-size: 0.9rem;
}

.post-body > * + * {
  margin-top: 1.1em;
}

.post-body h2 {
  font-size: 1.5rem;
  margin-top: 2em;
}

.post-body h3 {
  font-size: 1.2rem;
  margin-top: 1.6em;
}

.post-body ul,
.post-body ol {
  padding-left: 28px;
}

.post-body img,
.post-body video {
  max-width: 100%;
  border-radius: 10px;
}

.post-body blockquote {
  border-left: 3px solid var(--orange);
  padding-left: 18px;
  color: var(--muted);
}

.post-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
}

.post-body :not(pre) > code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

.post-body pre {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  overflow-x: auto;
  line-height: 1.5;
}

/* Cameras */

.cameras {
  padding: 72px 0 96px;
}

.cameras-inner {
  max-width: 720px;
}

.cameras-header {
  margin-bottom: 24px;
}

.cameras-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-bottom: 12px;
}

.cameras-lede {
  color: var(--muted);
  font-size: 1.1rem;
}

.cameras-list-intro {
  color: var(--muted);
  margin-top: 12px;
}

.camera-list {
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.camera a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: var(--text);
  transition: background 0.15s ease;
}

.camera a:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* min-width: 0 lets camera-name's overflow-wrap take effect in the flex row. */
.camera-text {
  min-width: 0;
}

.camera-chevron {
  flex: none;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
}

.camera a:hover .camera-chevron {
  color: var(--text);
}

.camera + .camera {
  border-top: 1px solid var(--border);
}

.camera-name {
  font-weight: 600;
  /* Model numbers are unbreakable runs long enough to overflow a narrow row. */
  overflow-wrap: anywhere;
}

.camera-badge {
  margin-left: 10px;
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Used on camera pages; the hub shows the compact camera-badge instead. */
.camera-warning {
  border-left: 3px solid var(--orange);
  padding-left: 12px;
  font-size: 0.95rem;
  margin-top: 6px;
}

.cameras-ask {
  color: var(--muted);
  margin-top: 28px;
}

/* Camera page */

.camera-page {
  padding: 72px 0 96px;
}

.camera-page-inner {
  max-width: 720px;
}

.camera-page-header {
  margin-bottom: 20px;
}

/* Terse fact pages; the blog's long-form spacing reads as air here. */
.camera-page .post-body > p + p,
.camera-page .post-body > p + ol,
.camera-page .post-body > p + ul {
  margin-top: 0.8em;
}

.camera-page .post-body h2 {
  margin-top: 1.2em;
}

.camera-page .post-body > h2 + * {
  margin-top: 0.6em;
}

/* Margin here would collapse into the header's margin-bottom; padding doesn't. */
.camera-page .post-body > h2:first-child {
  margin-top: 0;
  padding-top: 1rem;
}

.camera-cta {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.camera-cta p {
  flex: 1;
  min-width: 240px;
}

.camera-cta .button {
  flex: none;
}

.camera-page-crumb {
  margin-bottom: 12px;
}

.camera-page-crumb a {
  color: var(--muted);
  font-size: 0.9rem;
}

.camera-page-crumb a:hover {
  color: var(--text);
}

.camera-page-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1.15;
}

.camera-page-header .camera-warning {
  margin-top: 16px;
}

.camera-facts {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}

.camera-facts dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.camera-facts dd {
  margin-top: 2px;
}

.camera-facts dd + dt {
  margin-top: 12px;
}

.camera-facts code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

/* Footer */

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-meta span + span::before {
  content: "·";
  margin-right: 10px;
}

/* Once the two items stack, the separator would open the second line. */
@media (max-width: 400px) {
  .footer-meta span + span::before {
    content: none;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer a {
  color: var(--muted);
}

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