/* Nudgeproof web surface: the game's evidence-board language, translated to web. */

.nudgeproof-site {
  --np-paper: #fcf9f2;
  --np-surface: #fffdf8;
  --np-ink: #131e2b;
  --np-slate: #536372;
  --np-line: #d1cfc9;
  --np-cobalt: #054fda;
  --np-cobalt-dark: #01308a;
  --np-teal: #047986;
  --np-teal-dark: #005763;
  --np-yellow: #ffb41f;
  --np-red: #c9180f;
  --np-condensed: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --np-rounded: "Avenir Next", Avenir, ui-rounded, system-ui, sans-serif;
  overflow-x: clip;
  background: var(--np-paper);
  color: var(--np-ink);
  font-family: var(--np-rounded);
}

.nudgeproof-site .wrap {
  max-width: 86rem;
  padding-inline: clamp(1rem, 4vw, 4.5rem);
}

.nudgeproof-site h1,
.nudgeproof-site h2,
.nudgeproof-site h3 {
  font-family: var(--np-condensed);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--np-ink);
}

.nudgeproof-site .eyebrow {
  color: var(--np-teal-dark);
  font-family: var(--np-condensed);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
}

.nudgeproof-site a:focus-visible {
  outline: 3px solid var(--np-paper);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--np-ink);
}

.nudgeproof-site .np-masthead {
  min-height: 88px;
  border-bottom: 1px solid var(--np-line);
  padding-block: 1rem;
}

.nudgeproof-site .np-wordmark {
  gap: 0.75rem;
  font-family: var(--np-condensed);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nudgeproof-site .np-wordmark img {
  border-radius: 12px;
  box-shadow: 0 4px 0 rgba(19, 30, 43, 0.15);
}

.nudgeproof-site .np-masthead nav {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}

.nudgeproof-site .np-masthead nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--np-ink);
  font-family: var(--np-condensed);
  font-size: 1rem;
  font-weight: 600;
  padding-inline: 0.45rem;
}

.nudgeproof-site .np-masthead nav a:hover,
.nudgeproof-site .np-masthead nav a:focus-visible {
  color: var(--np-cobalt);
}

.nudgeproof-site .np-masthead nav .sh-store-placeholder,
.nudgeproof-site .np-masthead nav .sh-store-link {
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border: 1px dashed var(--np-line);
  border-radius: 999px;
  color: var(--np-slate);
  text-decoration: none;
}

.nudgeproof-site .np-masthead nav .sh-store-link {
  border-style: solid;
  background: var(--np-cobalt);
  color: #fff;
}

.np-hero {
  min-height: min(860px, calc(100svh - 88px));
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(19rem, 0.74fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 8rem);
  padding-block: clamp(3.5rem, 7vw, 7rem);
  border: 0;
}

.np-hero-copy {
  min-width: 0;
}

.np-hero h1 {
  max-width: 11ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.55rem, 7.2vw, 7rem);
  line-height: 0.88;
  text-wrap: initial;
}

.np-hero h1 span {
  color: var(--np-cobalt);
}

.np-hero .lede {
  max-width: 37rem;
  margin-bottom: 2rem;
  color: var(--np-slate);
  font-family: var(--np-condensed);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.42;
}

.np-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.nudgeproof-site .np-primary {
  min-height: 52px;
  border: 2px solid var(--np-cobalt-dark);
  border-radius: 12px;
  background: var(--np-cobalt);
  box-shadow: 0 5px 0 var(--np-cobalt-dark);
  color: #fff;
  font-family: var(--np-condensed);
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.nudgeproof-site a.np-primary:hover,
.nudgeproof-site a.np-primary:focus-visible {
  background: var(--np-cobalt);
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--np-cobalt-dark);
}

.nudgeproof-site .sh-store-placeholder {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--np-line);
  border-style: dashed;
  border-radius: 999px;
  background: transparent;
  color: var(--np-slate);
  font-family: var(--np-condensed);
  font-weight: 600;
}

.np-hero .release-note {
  margin: 1rem 0 0;
  color: var(--np-slate);
  font-size: 0.88rem;
}

.np-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  margin: clamp(2.25rem, 5vw, 4rem) 0 0;
}

.np-facts div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0.55rem;
}

.np-facts dt {
  color: var(--np-cobalt);
  font-family: var(--np-condensed);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.np-facts dd {
  margin: 0;
  color: var(--np-slate);
  font-family: var(--np-condensed);
  font-size: 1rem;
}

.np-hero-case {
  width: min(100%, 29rem);
  justify-self: end;
  margin: 0;
  padding: 0.85rem;
  border: 2px solid var(--np-ink);
  border-radius: 25px;
  background: var(--np-surface);
  box-shadow: 18px 18px 0 rgba(4, 121, 134, 0.17);
  transform: rotate(1.2deg);
}

.np-case-tab {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.25rem 0.85rem;
  font-family: var(--np-condensed);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.np-case-tab span:first-child {
  padding: 0.35rem 0.65rem;
  border-radius: 7px;
  background: var(--np-ink);
  color: #fff;
}

.np-phone {
  overflow: visible;
  background: transparent;
}

.np-phone .device-screen {
  max-height: 38rem;
}

.np-phone img {
  width: 100%;
  height: auto;
  display: block;
}

.np-hero-case figcaption {
  padding: 0.85rem 0.25rem 0.15rem;
  color: var(--np-slate);
  font-family: var(--np-condensed);
  font-size: 1rem;
}

.np-loop,
.np-evidence,
.np-boundary,
.np-legal {
  padding-block: clamp(4rem, 9vw, 8rem);
  border-top: 2px solid var(--np-ink);
}

.np-section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 1.15fr);
  gap: 1rem clamp(2rem, 8vw, 8rem);
  align-items: end;
}

.np-section-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.np-section-intro h2,
.np-boundary h2,
.np-legal h2 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: 0.96;
}

.np-section-intro > p:last-child,
.np-boundary > div > p:last-child,
.np-legal > div > p:last-child {
  margin: 0;
  color: var(--np-slate);
  font-family: var(--np-condensed);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.5;
}

.np-route {
  counter-reset: route;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  margin: clamp(3rem, 7vw, 6rem) 0 0;
  padding: 0;
  list-style: none;
}

.np-route li {
  counter-increment: route;
  min-width: 0;
  padding: 1.35rem 1.25rem 1.5rem;
  border: 1px solid var(--np-line);
  border-top: 6px solid var(--np-cobalt);
  border-radius: 12px;
  background: var(--np-surface);
}

.np-route li:nth-child(2),
.np-route li:nth-child(4) {
  border-top-color: var(--np-teal);
}

.np-route li::before {
  content: "0" counter(route);
  display: block;
  margin-bottom: 1.5rem;
  color: var(--np-slate);
  font-family: var(--np-condensed);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.np-route span {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--np-condensed);
  font-size: 1.45rem;
  font-weight: 700;
}

.np-route p {
  margin: 0;
  color: var(--np-slate);
  font-size: 0.95rem;
  line-height: 1.5;
}

.np-evidence {
  background: var(--np-ink);
  color: #fff;
  margin-inline: calc(clamp(1rem, 4vw, 4.5rem) * -1);
  padding-inline: clamp(1rem, 4vw, 4.5rem);
}

.np-evidence h2,
.np-evidence .eyebrow {
  color: #fff;
}

.np-evidence .np-section-intro > p:last-child {
  color: #cbd5df;
}

.np-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.92fr 0.92fr;
  align-items: end;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 7vw, 6rem);
}

.np-shot {
  min-width: 0;
  margin: 0;
}

.np-shot img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--np-surface);
}

.np-shot .device-frame {
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 13%),
    inset 0 0 0 3px rgb(0 0 0 / 42%),
    0 2rem 4rem rgb(0 0 0 / 34%);
}

.np-shot-main {
  transform: translateY(-2.5rem);
}

.np-shot figcaption {
  margin-top: 0.85rem;
  color: #cbd5df;
  font-family: var(--np-condensed);
  font-size: 1rem;
}

.np-boundary {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(18rem, 1.25fr);
  gap: clamp(2rem, 8vw, 8rem);
}

.np-boundary ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-boundary li {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--np-line);
  border-radius: 12px;
  background: var(--np-surface);
  color: var(--np-slate);
}

.np-boundary li::before {
  content: "NO";
  display: block;
  margin-bottom: 1rem;
  color: var(--np-red);
  font-family: var(--np-condensed);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.np-legal {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1.2fr);
  gap: clamp(2rem, 8vw, 8rem);
}

.np-legal nav {
  border-top: 1px solid var(--np-line);
}

.np-legal nav a {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(7rem, 0.55fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--np-line);
  color: var(--np-ink);
  text-decoration: none;
}

.np-legal nav a:hover span,
.np-legal nav a:focus-visible span {
  color: var(--np-cobalt);
}

.np-legal nav span {
  font-family: var(--np-condensed);
  font-size: 1.4rem;
  font-weight: 700;
}

.np-legal nav small {
  min-width: 0;
  color: var(--np-slate);
  font-size: 0.9rem;
}

.nudgeproof-site footer {
  border-top: 2px solid var(--np-ink);
}

.nudgeproof-site footer nav {
  gap: 0.5rem 1.5rem;
}

.nudgeproof-site footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nudgeproof-site footer .trader a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nudgeproof-site .doc {
  max-width: 54rem;
  padding-block: clamp(3rem, 8vw, 7rem);
}

.nudgeproof-site .doc h1 {
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 0.92;
}

.nudgeproof-site .doc h2 {
  padding-top: 0.5rem;
  border-top: 1px solid var(--np-line);
  font-size: clamp(1.65rem, 4vw, 2.4rem);
}

.nudgeproof-site .doc p,
.nudgeproof-site .doc li {
  color: var(--np-slate);
}

.nudgeproof-site .doc strong,
.nudgeproof-site .doc a {
  color: var(--np-ink);
}

@media (prefers-reduced-motion: no-preference) {
  html.motion-enabled.motion-ready .np-hero-copy {
    animation: np-hero-copy-in 760ms var(--ease-quint-out) both;
  }

  html.motion-enabled.motion-ready .np-hero-case {
    animation: np-case-in 940ms 90ms var(--ease-quint-out) both;
  }
}

@keyframes np-hero-copy-in {
  from { opacity: 0; transform: translateY(1.4rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes np-case-in {
  from { opacity: 0; transform: translate3d(2rem, 1rem, 0) rotate(3deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(1.2deg); }
}

.nudgeproof-site .doc a {
  display: inline-flex;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 980px) {
  .np-hero {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.68fr);
    gap: 2.5rem;
  }

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

  .np-route li:last-child {
    grid-column: 1 / -1;
  }

  .np-boundary,
  .np-legal {
    gap: 3rem;
  }
}

@media (max-width: 720px) {
  .nudgeproof-site .np-masthead {
    align-items: flex-start;
  }

  .nudgeproof-site .np-masthead nav {
    width: 100%;
    justify-content: space-between;
  }

  .np-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .np-hero h1 {
    font-size: clamp(3.45rem, 16vw, 5rem);
  }

  .np-hero-case {
    width: min(88%, 27rem);
    justify-self: center;
    box-shadow: 12px 12px 0 rgba(4, 121, 134, 0.17);
    transform: none;
  }

  .np-section-intro,
  .np-boundary,
  .np-legal {
    grid-template-columns: 1fr;
  }

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

  .np-shot-main {
    grid-column: 1 / -1;
    width: 70%;
    justify-self: center;
    transform: none;
  }
}

@media (max-width: 480px) {
  .nudgeproof-site .wrap {
    padding-inline: 1rem;
  }

  .nudgeproof-site .np-masthead nav {
    gap: 0 0.85rem;
  }

  .nudgeproof-site .np-masthead {
    position: relative;
  }

  .nudgeproof-site .np-masthead nav .sh-store-placeholder,
  .nudgeproof-site .np-masthead nav .sh-store-link {
    position: absolute;
    top: 1.2rem;
    right: 0;
    width: auto;
  }

  .nudgeproof-site .np-masthead nav a {
    font-size: 0.92rem;
    padding-inline: 0.4rem;
  }

  .np-actions,
  .np-actions > * {
    width: 100%;
  }

  .np-actions > * {
    justify-content: center;
  }

  .np-actions .sh-store-placeholder {
    width: auto;
    justify-self: start;
    padding-inline: 0.9rem;
  }

  .np-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .np-facts div {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0.25rem;
  }

  .np-route,
  .np-boundary ul {
    grid-template-columns: 1fr;
  }

  .np-route li:last-child {
    grid-column: auto;
  }

  .np-evidence {
    margin-inline: -1rem;
    padding-inline: 1rem;
  }

  .np-gallery {
    gap: 1rem;
  }

  .np-shot-main {
    width: 82%;
  }

  .np-legal nav a {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nudgeproof-site *,
  .nudgeproof-site *::before,
  .nudgeproof-site *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
