/* What the site adds to claude.com's stylesheets (public/claude/). */

/* Noka's logo and mark come in pairs: white in dark mode and in the always-dark sections. */
.nk-dark { display: none !important; }
.theme-dark .nk-light { display: none !important; }
.theme-dark .nk-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  .nk-light { display: none !important; }
  .nk-dark { display: block !important; }
}

/* A product that is coming (Kavi): the item's own type, dimmed, with a «Pronto» pill; not clickable. */
.nk-soon { cursor: default; color: var(--theme-foreground-tertiary) !important; display: inline-flex; align-items: center; gap: 8px; }
.nk-soon__badge {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--theme-background-secondary);
  color: var(--theme-foreground-secondary);
  font-size: 12px;
  line-height: 18px;
}

/* The phone menu is rendered once and hidden; claude.com mounts it on open. */
[data-nav-mobile][hidden] { display: none !important; }

/* Screenshots in a device (Device.astro) on a soft backdrop (public/img/backdrop.svg): the console on a laptop, the app
   on a phone. Every size is a percentage of the device's own width, so the frame scales with the stage. The laptop
   is 1.773:1 (screen 84 %, 16:10 picture), the phone 0.476:1 and a row pair 2.06:1: the stages' `mediaRatio`
   (src/content/stage.ts) must match. */
.nk-backdrop { background: #c9d6e2 url(/img/backdrop.svg) center / cover no-repeat !important; }
.nk-backdrop:not(.nk-hero-device) > * { display: none; }
.nk-device { position: relative; }
.nk-device--laptop { aspect-ratio: 1.773; }
.nk-device--phone { aspect-ratio: 0.476; }
.nk-device--row { aspect-ratio: 2.06; }
.nk-device--stack { width: 100%; height: 100%; }

.nk-laptop { display: flex; flex-direction: column; align-items: center; width: 100%; filter: drop-shadow(0 18px 30px rgb(40 60 90 / 0.22)); }
.nk-laptop__screen {
  width: 84%;
  padding: 1.2%;
  border-radius: 2.4% / 3.8%;
  background: #f6f3ec;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06);
}
.nk-laptop__shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 1% / 1.6%; }
.nk-laptop__base {
  width: 100%;
  aspect-ratio: 100 / 3;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(#f3efe6, #ddd7ca);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8);
  position: relative;
}
.nk-laptop__base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 32%; border-radius: 0 0 40% 40% / 0 0 100% 100%; background: #d3ccbd; }

.nk-phone {
  width: 100%;
  /* A thin bezel at any size: a big phone (the home hero) keeps the same frame as the small ones. */
  padding: min(3.2%, 9px);
  border-radius: 16% / 7.4%;
  background: #f6f3ec;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06), 0 22px 40px rgb(40 60 90 / 0.25);
}
.nk-phone__shot { display: block; width: 100%; height: auto; aspect-ratio: 602 / 1310; border-radius: 13% / 6%; }
/* The Dynamic Island, drawn on every screenshot: some captures carry it and some do not (it sits where the simulator
   draws it, so it covers the baked-in one exactly). */
.nk-phone__screen { position: relative; }
.nk-phone__screen::after { content: ""; position: absolute; left: 34%; width: 32%; top: 1.5%; height: 4.4%; border-radius: 999px; background: #000; }

/* A pair in a row: the laptop on the left, the phone in front of its right edge. */
.nk-device--row .nk-laptop { position: absolute; left: 0; top: 0; width: 86%; }
.nk-device--row .nk-phone { position: absolute; right: 0; bottom: 0; width: 23%; }
/* Stacked (the home hero's portrait slot): the laptop high, the phone low and to the right. */
.nk-device--stack .nk-laptop { position: absolute; left: 4%; top: 13%; width: 92%; }
.nk-device--stack .nk-phone { position: absolute; right: 7%; bottom: 5%; width: 38%; }
.nk-hero-device { position: relative; overflow: hidden; }

/* Product videos (MediaStage `video`): they carry their own background, so they fill the stage edge to edge. */
.nk-stage-video { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: inherit; background: #e6dccd; }
