/* ==========================================================================
   Über Ninja — site styles (layered on top of Pico CSS)
   ========================================================================== */

@font-face {
  font-family: 'revel_i';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/revel_i.ttf) format('truetype');
}

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/exo2-latin.woff2) format('woff2');
}

@font-face {
  font-family: 'Exo 2';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/exo2-latin-italic.woff2) format('woff2');
}

:root {
  --un-bg-a: #1a1a1a;          /* alternating band A */
  --un-bg-b: #0f0f0f;          /* alternating band B */
  --un-gold: #ffd21e;
  --un-gold-dim: rgba(255, 210, 30, 0.55);
  --un-green: #4ce34c;
  --un-text: #ededed;
  --un-muted: #a8a8a8;

  --pico-font-family: 'Exo 2', system-ui, -apple-system, "Segoe UI", sans-serif;
  --pico-border-radius: 10px;
  --pico-spacing: 1rem;
}

/* Pico colour overrides — keep the site dark regardless of OS theme -------- */
:root,
:root:not([data-theme="light"]) {
  --pico-background-color: var(--un-bg-b);
  --pico-color: var(--un-text);
  --pico-h1-color: var(--un-text);
  --pico-h2-color: var(--un-gold);
  --pico-h3-color: var(--un-text);
  --pico-primary: #0a0a0a;
  --pico-primary-background: var(--un-gold);
  --pico-primary-border: var(--un-gold);
  --pico-primary-inverse: #0a0a0a;
  --pico-primary-hover: #ffe269;
  --pico-primary-hover-background: #ffe269;
  --pico-primary-hover-border: #ffe269;
  --pico-primary-focus: rgba(255, 210, 30, 0.35);
  --pico-muted-color: var(--un-muted);
  --pico-form-element-background-color: #202020;
  --pico-form-element-border-color: #3a3a3a;
  --pico-form-element-color: var(--un-text);
}

html { scroll-behavior: smooth; }

body {
  background: var(--un-bg-b);
  color: var(--un-text);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #101010;
  border-bottom: 1px solid #262626;
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin-inline: auto;
  padding: 0.6rem 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: #f2f2f2;
  line-height: 0;
}
.logo svg { width: 62px; height: auto; display: block; }
.logo:hover { color: var(--un-gold); }

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: #dcdcdc;
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--un-gold); }

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

body>main {
	padding: 0 !important;
}

section {
  padding: clamp(2.5rem, 9vw, 8rem) 1rem;
  background: var(--un-bg-a);
}
section:nth-of-type(even) { background: var(--un-bg-b); }

.wrap {
  max-width: 1000px;
  margin-inline: auto;
}
.wrap-narrow { max-width: 820px; }

/* Display headings ---------------------------------------------------------*/

.display {
  font-family: 'revel_i', 'Exo 2', system-ui, sans-serif;
  color: var(--un-gold);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  font-weight: 400;
  font-size: clamp(2.8rem, 5.5vw, 2.5rem);
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.display::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 0.55rem;
  background: var(--un-gold-dim);
}
.display.centered {
  text-align: center;
  font-size: clamp(2rem, 6.5vw, 2.9rem);
}
.display.centered::after {
  max-width: 15ch;
  margin-inline: auto;
}

.lede {
  font-style: italic;
  color: var(--un-text);
  margin: 0 0 1rem;
}
.lede strong { color: #fff; }

.cue {
  font-style: italic;
  font-weight: 700;
  color: #fff;
  margin: 1.4rem 0 0.6rem;
}
.cue-sub {
  font-style: italic;
  font-weight: 700;
  color: #fff;
  margin: 1.2rem 0 0.5rem;
  font-size: 0.95rem;
}

.note {
  font-style: italic;
  font-size: 0.78rem;
  color: var(--un-muted);
  margin-top: 0.75rem;
}

/* Two-up feature layout --------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: start;
}
.feature > * { min-width: 0; }
.feature img.photo {
  width: 100%;
  border-radius: 12px;
  display: block;
}

@media (max-width: 767px) {
  .feature { grid-template-columns: 1fr; gap: 0; }
  /* order: heading, image, then the rest of the copy — whatever the desktop order */
  .feature > .copy { display: contents; }
  .feature > .copy > * { min-width: 0; }
  .feature > .copy > h2 { order: 1; }
  .feature > .media { order: 2; margin-bottom: 1.4rem; }
  .feature > .copy > :not(h2) { order: 3; }
  .cue { margin: 0; }
  h2 { text-align: center; }
  .get-grid { flex-direction: column; align-items: center; gap: 2rem; }
}

/* Shortcuts (single centered column) ------------------------------------- */

.shortcuts-solo { text-align: center; }
.shortcuts-solo .cue { margin: 0 0 1.6rem; }
.shortcuts-solo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Site lists (name + favicon) --------------------------------------------- */

.sites {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.8rem 0.95rem;
  /* background: rgba(255, 255, 255, 0.045); */
  border-radius: 10px;
  columns: 140px auto;
  column-gap: 1.25rem;
}
.sites li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  break-inside: avoid;
  margin: 0 0 0.4rem;
  font-size: 1rem;
  line-height: 1.3;
  color: #cfcfcf;
}
.sites img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 3px;
}

.sublists {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.5rem;
}
.sublists > div {
  flex: 1 1 170px;
  min-width: 0;
}

/* -------------------------------------------------------------------- hero */

.hero {text-align: center;background: var(--un-bg-a);padding-top: 3rem;}
.hero video {
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}
.tagline {
  margin: 1.2rem 0 0;
  color: var(--un-gold);
  font-size: clamp(1.05rem, 3.6vw, 1.7rem);
  /* font-weight: 800; */
  /* text-wrap: balance; */
  /* font-family: tahoma; */
}
.tagline em {/* font-weight: 800; */}

/* ------------------------------------------------------------ get the app */

#get>h1 {
	margin: 0 auto 4rem;
	border-bottom: 1px solid var(--un-green);
	padding-bottom: 2rem;
	width: 80%;
	text-align: center;
	/* transform: translate(1.4rem, 0px); */
	color: #5aef0a;
}
.get-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 3rem;
  text-align: center;
}
.get-grid h2 {
  font-family: var(--pico-font-family);
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  font-weight: 700;
  /* color: var(--un-text); */
  /* text-decoration: underline; */
  text-underline-offset: 5px;
  margin: 0 0 1.2rem;
  white-space: nowrap;
  transition: transform 0.15s ease;
}
/* each "way" card: hover + click anywhere in the box */
.get-grid > div {
  position: relative;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  cursor: pointer;
}
.get-grid > div:hover h2,
.get-grid > div:hover .store-links svg,
.get-grid > div:hover .store-links img {
  transform: scale(1.2);
}
.get-grid > div:has(a:focus-visible) {
  outline: 2px solid #5aef0a;
  outline-offset: 2px;
}

.store-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.store-links a {
  display: inline-flex;
  color: #f0f0f0;
}
/* stretch the link over its whole card so the full box is clickable */
.store-links a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.store-links svg,
.store-links img {
  width: 55px;
  height: 55px;
  display: block;
  transition: transform 0.15s ease;
}

/* ------------------------------------------------------- web search: v.s. */

.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1rem, 4vw, 2.5rem);
  align-items: start;
  margin-top: 2.5rem;
}
.versus img { border-radius: 10px; width: 100%; display: block; }
.versus ol { margin: 1rem 0 0; padding-left: 1.3rem; }
.versus li { margin-bottom: 0.35rem; font-size: 0.92rem; }

.side-label {
  text-align: center;
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 5vw, 2rem);
}
.side-label.before {
  font-family: "Courier New", monospace;
  color: #e6e6e6;
}
.side-label.after {
  font-family: 'revel_i', sans-serif;
  color: var(--un-green);
  text-transform: uppercase;
}
.after-list li { color: var(--un-green); font-style: italic; }
.after-list li small { display: block; color: var(--un-green); opacity: 0.85; }

.vs-rule {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: 'revel_i', sans-serif;
  color: var(--un-gold);
  font-size: 1.5rem;
}
.vs-rule::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #4a4a4a;
}
.vs-rule>span {
    position: relative;
    font-size: 2.5rem;
}

@media (min-width: 767px) {
	#get>h1 {
		 /* transform: translate(1.4rem, 0px); */
	}
}
@media (max-width: 767px) {
  .versus { grid-template-columns: 1fr; }
  .vs-rule { padding: 0.5rem 0; }
  .vs-rule::before {
    top: 50%;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .vs-rule span {
    position: relative;
    background: var(--un-bg-a);
    padding: 0 0.8rem;
  }
}

/* ------------------------------------------------------ screenshot strip  */

.shots-carousel {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0.5rem 0 1.25rem;
  touch-action: pan-y;
}
.shots {
  display: flex;
  align-items: flex-start;
  width: 100%;
  transition: transform 0.45s ease;
  will-change: transform;
}
.shots.is-dragging {
  transition: none;
}
.shot-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
}
.shots img {
  border-radius: 10px;
  width: 90%;
  display: block;
  pointer-events: none;
  user-select: none;
}
.shots-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--un-gold-dim);
  background: rgba(15, 15, 15, 0.7);
  color: var(--un-text);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  transform: translateY(-50%);
  padding: 0;
}
.shots-nav svg {
  width: 1.5rem;
  height: 1.5rem;
}
.shots-nav:hover,
.shots-nav:focus-visible {
  background: var(--un-gold);
  border-color: var(--un-gold);
  color: #1a1a1a;
  transform: translateY(-50%) scale(1.08);
}
.shots-prev {
  left: 0.5rem;
}
.shots-next {
  right: 0.5rem;
}
.scroll-hint {
  text-align: center;
  color: var(--un-muted);
  font-size: 0.8rem;
  font-style: italic;
  margin: 0;
}
@media (hover: hover) and (pointer: fine) {
  .scroll-hint {
    display: none;
  }
}

/* --------------------------------------------------------------------- cta */

.cta { text-align: center; }
.cta-button {
  display: inline-block;
  font-family: 'revel_i', sans-serif;
  font-size: clamp(1.6rem, 7vw, 3rem);
  text-transform: uppercase;
  color: var(--un-gold);
  background: #0a0a0a;
  border: 3px solid var(--un-gold);
  border-radius: 14px;
  padding: 0.5em 0.9em;
  text-decoration: none;
  line-height: 1.1;
  box-shadow: 0 0 22px rgba(255, 210, 30, 0.18);
}
.cta-button:hover {
  background: var(--un-gold);
  color: #0a0a0a;
}

/* ------------------------------------------------------------------ forms */

#contact { scroll-margin-top: 4rem; }
#contact form { max-width: 520px; }

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

.site-footer {
  background: var(--un-bg-b);
  border-top: 1px solid #262626;
  padding: 1.5rem 1rem;
}
.site-footer .bar {
  max-width: 1000px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--un-muted);
  font-size: 0.85rem;
}
.site-footer a { color: var(--un-muted); }

/* Link colour inside prose */
.copy a, .prose a { color: #7fb3ff; }

/* Privacy: only the opening line stays italic */
.prose .lede:not(:first-of-type) { font-style: normal; }

/* ------------------------------------------------------ mobile-only modal */

.mobile-only-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 10, 10, 0.96);
  text-align: center;
}
.mobile-only-modal:not([hidden]) { display: flex; }

.mobile-only-modal-content {
  position: relative;
  max-width: 320px;
}
.mobile-only-modal-logo-wrap {
  position: relative;
  width: 174px;
  margin: 0 auto 2.6rem;
}
.mobile-only-modal-logo {
  width: 174px;
  height: auto;
  color: var(--un-gold);
  display: block;
}
.mobile-only-modal-teardrop {
  position: absolute;
  right: 8%;
  bottom: -18%;
  width: 28px;
  height: 28px;
}
.mobile-only-modal-content p {
  margin: 0;
  color: var(--un-text);
  font-size: 1.25rem;
  line-height: 1.5;
}
.mobile-only-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  margin-top: 3rem;
}
.modal-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 1em 1em;
  border: 1px solid var(--un-gold);
  border-radius: 10px;
  background: transparent;
  color: var(--un-gold);
  font-family: var(--pico-font-family);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}
.modal-action-btn svg {
  position: absolute;
  left: 1em;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.modal-action-btn:hover {
  background: var(--un-gold);
  color: #0a0a0a;
}
.mobile-only-modal-close {
  position: fixed;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--un-text);
  font-size: 2.75rem;
  font-weight: 300;
  line-height: 1;
  padding: 0.5rem;
  cursor: pointer;
}
