/* Mugi homepage. Body text is Absans (Valerio Monopoli, Collletttivo), display text is
   Newsreader (Production Type). Both are under the SIL Open Font License, see /fonts/. */

@font-face {
  font-family: "Absans";
  src: url("/fonts/absans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader Display";
  src: url("/fonts/newsreader-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader Display";
  src: url("/fonts/newsreader-display-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050608;
  --surface: #0c0f13;
  --surface-2: #12161c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f0ea;
  --muted: #9aa2ad;
  --faint: #6b7480;
  --leaf: #a3cf6e;
  --sky: #9cc3ea;
  --radius: 14px;
  --sans: "Absans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader Display", "Iowan Old Style", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
.wrap {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 20;
  background: #fff;
  color: #000;
  padding: 8px 14px;
}

/* Buttons: square-cornered, like printed labels. */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}
.button:active {
  transform: scale(0.98);
}
.button svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.button.dark {
  background: #050608;
  color: #fff;
}
.button.dark:hover {
  background: #1b2027;
}
.button.light {
  background: #fff;
  color: #050608;
}
.button.light:hover {
  background: #e9e6df;
}

/* Header floats over the hero image. */
header.site {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 18px 0;
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 1.35rem;
  text-decoration: none;
  color: #fff;
}
.brand img {
  border-radius: 9px;
}
nav.site {
  flex: 1;
}
nav.site ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.site a {
  display: inline-block;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.98rem;
}
nav.site a:hover {
  color: #fff;
}
header.site .button {
  padding: 11px 20px;
}
/* The small-screen menu, a <details> that drops a panel under the header. */
details.menu {
  display: none;
}
details.menu summary {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  list-style: none;
  cursor: pointer;
  color: #fff;
  background: rgba(5, 6, 8, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
details.menu summary::-webkit-details-marker {
  display: none;
}
details.menu summary svg {
  width: 22px;
  height: 22px;
}
details.menu .cross,
details.menu[open] .bars {
  display: none;
}
details.menu[open] .cross {
  display: inline;
}
.menu-panel {
  position: absolute;
  inset: calc(100% - 6px) 12px auto;
  padding: 8px;
  background: rgba(12, 15, 19, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.menu-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-panel a {
  display: block;
  padding: 14px 16px;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
}
.menu-panel a:hover,
.menu-panel a:active {
  background: var(--surface-2);
}
@media (max-width: 820px) {
  nav.site {
    display: none;
  }
  details.menu {
    display: block;
  }
  header.site {
    padding: 14px 0;
  }
  header.site .wrap {
    gap: 10px;
  }
  .brand {
    margin-right: auto;
  }
  header.site .button {
    padding: 12px 16px;
  }
}

/* Hero: the opening image is itself the before and after comparison. */
.hero {
  --handle-y: 80%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(820px, 100svh);
  overflow: hidden;
  color: #fff;
  background: #0b1a2c;
}
.hero .compare {
  position: absolute;
  inset: 0;
  border-radius: 0;
}
.hero .compare img {
  object-position: 62% 100%;
}
.hero::after {
  /* Fades the bottom of the photo into the black page below. */
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0), rgba(5, 6, 8, 0.72) 62%, var(--bg));
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 3;
  padding: 168px 20px 220px;
  text-align: center;
  pointer-events: none;
}
.hero-copy a {
  pointer-events: auto;
}
.hero h1 {
  margin: 0 auto;
  max-width: 13em;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5.8vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 30px rgba(10, 30, 55, 0.25);
}
.hero h1 em {
  display: block;
  font-style: italic;
}
.hero .summary {
  margin: 22px auto 0;
  max-width: 54ch;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 16px rgba(10, 30, 55, 0.35);
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.hero .note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 12px rgba(10, 30, 55, 0.55);
}
.hero-foot {
  position: absolute;
  z-index: 3;
  inset: auto 0 34px;
  pointer-events: none;
}
.hero-foot .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-foot .caption {
  max-width: 44ch;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}
.models-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
}
@media (max-width: 820px) {
  .hero {
    --handle-y: 78%;
    min-height: 860px;
  }
  .hero-copy {
    padding-top: 128px;
  }
  .hero .compare img {
    object-position: 74% 100%;
  }
  .models-strip {
    font-size: 1.2rem;
    gap: 6px 20px;
  }
}
@media (max-width: 560px) {
  /* Taller on phones, so the landscape and the handle sit below the text. */
  .hero {
    --handle-y: 84%;
    min-height: 1060px;
  }
  .hero::before {
    /* The narrow crop puts the bright horizon behind the summary, so darken the sky a little. */
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 0 auto;
    height: 72%;
    background: linear-gradient(
      to bottom,
      rgba(6, 22, 40, 0.42),
      rgba(6, 22, 40, 0.3) 60%,
      transparent
    );
    pointer-events: none;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.2rem);
  }
  .hero .actions .button {
    flex: 1 1 100%;
    justify-content: center;
  }
  .hero .hero-compare .divider {
    -webkit-mask-image: linear-gradient(to bottom, transparent 72%, #000 79%);
    mask-image: linear-gradient(to bottom, transparent 72%, #000 79%);
  }
  .hero-foot {
    bottom: 26px;
  }
}

/* Before and after comparison, shared by the hero and the example cards. */
.compare {
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
  --pos: 50%;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}
.compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}
.compare .before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare .before img {
  position: absolute;
  inset: 0;
}
.compare .divider {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}
.compare .handle {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: var(--pos);
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  display: grid;
  place-items: center;
  color: #050608;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  cursor: ew-resize;
}
.compare .handle svg {
  width: 22px;
  height: 22px;
}
.hero .compare .handle {
  top: var(--handle-y);
}
.hero .compare .divider {
  /* The sky looks the same in both images, so the line fades in where the detail starts. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 68%, #000 77%);
  mask-image: linear-gradient(to bottom, transparent 68%, #000 77%);
}
.tag {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 11px;
  font-size: 0.78rem;
  color: #fff;
  background: rgba(5, 6, 8, 0.55);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.tag.left {
  left: 12px;
}
.tag.right {
  right: 12px;
}
.hero .tag {
  top: var(--handle-y);
  margin-top: -14px;
}
.hero .tag.left {
  left: calc(var(--pos) - 34px);
  transform: translateX(-100%);
}
.hero .tag.right {
  right: auto;
  left: calc(var(--pos) + 34px);
}

/* Sections below the hero. */
section.block {
  padding: 110px 0 0;
}
.section-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.8vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.section-head h2 em {
  font-style: italic;
  color: var(--sky);
}
.section-head p {
  margin: 18px auto 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.kicker {
  display: block;
  margin-bottom: 14px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-text {
  padding: 22px 24px 26px;
}
.card h3 {
  font-size: 1.22rem;
  letter-spacing: -0.005em;
}
.card p {
  margin-top: 8px;
  color: var(--muted);
}

/* Examples: three comparisons, then the app window. */
.examples {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.examples figure {
  margin: 0;
}
.examples .card .compare {
  margin: 12px 12px 0;
  border-radius: 9px;
  aspect-ratio: 4 / 3;
}
.examples .shot-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: center;
}
.shot-card .card-text {
  padding: 40px;
}
.shot-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.shot-card p {
  font-size: 1.05rem;
  margin-top: 14px;
}
.shot-card img {
  margin: 24px 24px 24px 0;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
@media (max-width: 960px) {
  .examples {
    grid-template-columns: 1fr;
  }
  .examples .shot-card {
    grid-template-columns: 1fr;
  }
  .shot-card .card-text {
    padding: 26px 24px 4px;
  }
  .shot-card img {
    margin: 16px;
  }
}

/* Models */
.models {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.model {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
}
.model h3 {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: -0.02em;
}
.model .best {
  margin-top: 6px;
  color: var(--text);
}
.model p.how {
  margin-top: 14px;
  flex: 1;
  font-size: 0.95rem;
}
.model .setup {
  align-self: flex-start;
  margin-top: 22px;
  padding: 4px 10px;
  font-size: 0.84rem;
  color: var(--leaf);
  border: 1px solid rgba(163, 207, 110, 0.35);
  border-radius: 6px;
}
.model.featured {
  border-color: rgba(156, 195, 234, 0.35);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(156, 195, 234, 0.16), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
@media (max-width: 960px) {
  .models {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .models {
    grid-template-columns: 1fr;
  }
}

/* Features: a quiet ruled grid. */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature {
  padding: 28px 26px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature .num {
  display: block;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--faint);
}
.feature h3 {
  font-size: 1.12rem;
}
.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Install */
.install {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.install li {
  counter-increment: step;
  padding: 26px 24px 28px;
}
.install li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--sky);
}
.after-steps {
  margin-top: 26px;
  text-align: center;
  color: var(--muted);
}
.after-steps a {
  color: var(--text);
}
@media (max-width: 960px) {
  .install {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .install {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq {
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 24px 44px 24px 0;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq h3 {
  display: inline;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: -0.01em;
}
.faq details p {
  padding: 0 44px 26px 0;
  color: var(--muted);
}

/* Closing call to action over the bottom of the launch photo. */
.cta {
  position: relative;
  margin-top: 130px;
  padding: 150px 20px 160px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 92%;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 48%, rgba(5, 6, 8, 0.45), transparent 75%),
    linear-gradient(to bottom, var(--bg), rgba(5, 6, 8, 0.3) 28%, rgba(5, 6, 8, 0.3) 72%, var(--bg));
}
.cta h2,
.cta p {
  text-shadow: 0 2px 24px rgba(5, 6, 8, 0.5);
}
.cta h2 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.cta h2 em {
  font-style: italic;
}
.cta p {
  margin: 18px auto 0;
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.86);
}
.cta .actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

/* Footer */
footer.site {
  padding: 56px 0 64px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
footer.site .cols {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
footer.site h2 {
  margin-bottom: 12px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
footer.site ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
footer.site a:hover {
  color: var(--text);
}
footer.site p + p {
  margin-top: 10px;
}
footer.site a {
  text-decoration: none;
  color: var(--text);
}
footer.site h2.footer-brand {
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1.6rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--text);
}
.footer-brand img {
  border-radius: 8px;
}
@media (max-width: 760px) {
  footer.site .cols {
    grid-template-columns: 1fr;
  }
  footer.site ul {
    gap: 0;
  }
  footer.site li {
    padding: 6px 0;
  }
  /* Padding on an inline link widens what a finger can hit without moving the text. */
  footer.site li a {
    padding: 10px 0;
  }
}

/* Phones: tighter rhythm, so the long lists do not turn into endless scrolling. */
@media (max-width: 560px) {
  section.block {
    padding-top: 80px;
  }
  .section-head {
    margin-bottom: 34px;
  }
  .feature {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 8px;
    padding: 20px 18px 22px;
  }
  .feature .num {
    grid-row: span 2;
    margin: 0;
    line-height: 1.6;
  }
  .feature p {
    margin-top: 4px;
  }
  .install li {
    padding: 20px 20px 22px;
  }
  .install li::before {
    margin-bottom: 12px;
    font-size: 2rem;
  }
  .model {
    padding: 22px 20px 20px;
  }
  .model p.how {
    flex: none;
  }
  .cta {
    margin-top: 90px;
    padding: 110px 20px 120px;
  }
  .cta .actions .button {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* Not found page */
.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 20px;
}
.not-found h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.03em;
}
.not-found p {
  margin: 16px 0 30px;
  color: var(--muted);
}
