/* murio.tv landing page: "Lit by the title".
   One dark canvas. The product's own screenshot lights the page, once in the hero and once in the Mac app section. */

:root {
  --bg: #0E1116;
  --text: #F3F5F8;
  --text-2: #C7CED8;
  --muted: #A9B1BE;
  --hair: rgba(255, 255, 255, 0.09);
  --pink: #FF2D6F;
  --pink-hover: #FF4D85;
  --ink: #14060B;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --pad: 20px;
  --section-pad: clamp(2.5rem, 5.5vw, 4.75rem);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page { overflow-x: clip; }

img { max-width: 100%; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2 * var(--pad), 1280px);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img { display: block; width: 32px; height: 32px; }

.header-cta { display: none; }

/* Buttons: same size side by side, stacked full width on phones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 3.25rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  font: 700 1rem/1 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.btn--pink { background: var(--pink); color: var(--ink); }
.btn--pink:hover { background: var(--pink-hover); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #E6E9EE; }

.btn__icon { flex: none; }

.btn--sm {
  width: 11rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  gap: 0.375rem;
}

.cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.microcopy {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Type */

.eyebrow {
  margin-bottom: 0.875rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

h1 {
  color: var(--text);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-wrap: balance;
}

h2 {
  color: var(--text);
  font-size: clamp(1.875rem, 3.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.06;
  text-wrap: balance;
}

h3 {
  color: var(--text);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.subhead {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: var(--text-2);
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.section__title { max-width: 22ch; }

/* Sections: one continuous canvas, hairline between, generous air */

.section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--hair);
}

/* Hero */

.hero {
  padding-block: clamp(2rem, 5vw, 4rem) var(--section-pad);
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__text .cta { margin-top: 2rem; }

/* Product frames */

.shot figcaption {
  margin-top: 0.875rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}

.mac {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #14181F;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.mac__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  background: #1B1F27;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mac__bar i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5C626E;
}

.mac img {
  display: block;
  width: 100%;
  height: auto;
}

.phone {
  width: min(100%, 17.5rem);
  margin-inline: auto;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 46px;
  background: #07090C;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 37px;
}

/* Ambient light: a blurred copy of the same screenshot sits behind the frame */

.lit {
  position: relative;
  isolation: isolate;
}

/* The text column always paints above a neighbour's ambient light */
.hero__text,
.feature__text {
  position: relative;
  z-index: 1;
}

.lit__glow {
  position: absolute;
  z-index: -1;
  left: -8%;
  top: 8%;
  width: 116%;
  height: 120%;
  max-width: none;
  object-fit: cover;
  filter: blur(40px) saturate(1.4) brightness(1.5);
  opacity: 0.5;
  pointer-events: none;
}

/* Feature sections */

.feature {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.feature__shot { width: 100%; }

.points {
  margin-top: 2rem;
  max-width: 36rem;
}

.points li {
  padding: 1rem 0;
  border-top: 1px solid var(--hair);
}

.points li:last-child { border-bottom: 1px solid var(--hair); }

.points strong {
  display: block;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

.points span {
  display: block;
  margin-top: 0.125rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* Share */

.share {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.share .lead { margin-top: 0; }

.soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pill {
  display: inline-block;
  padding: 0.1875rem 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

/* Steps: plain numerals */

.steps li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hair);
}

.steps li:last-child { border-bottom: 1px solid var(--hair); }

.num {
  color: var(--muted);
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

.steps__text {
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.steps--row { margin-top: 2.5rem; }

.steps--row li {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.steps--row .num {
  color: var(--text);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.steps--row .steps__text {
  max-width: 22rem;
  font-size: 1.125rem;
}

/* First launch */

.first-launch {
  display: grid;
  gap: 1.75rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  scroll-margin-top: 5.5rem;
}

.first-launch .lead { margin-top: 0.75rem; }

.once {
  margin-top: 1.25rem;
  color: var(--text);
  font-weight: 600;
}

/* FAQ */

.faq { display: grid; gap: 2rem; }

.faq__list { border-bottom: 1px solid var(--hair); }

details { border-top: 1px solid var(--hair); }

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker { display: none; }

summary svg {
  flex: none;
  color: var(--muted);
  transition: transform 0.15s ease;
}

details[open] summary svg { transform: rotate(180deg); }

summary:focus-visible { outline-offset: 2px; }

details p {
  max-width: 40rem;
  padding-bottom: 1.375rem;
  color: var(--text-2);
}

/* Final call */

.final__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.final h2 { font-size: clamp(2.25rem, 5.4vw, 4.5rem); letter-spacing: -0.03em; }
.final .lead { margin-top: 1rem; }
.final .cta { margin-top: 2rem; width: 100%; }

/* Footer */

.site-footer {
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.site-footer a {
  color: var(--text-2);
  text-underline-offset: 3px;
}

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

.site-footer p { flex-basis: 100%; }

.site-footer span:last-of-type { display: none; }

/* Tablet and up */

@media (min-width: 560px) {
  :root { --pad: 28px; }

  .site-footer p { flex-basis: auto; }
  .site-footer span:last-of-type { display: inline; }

  .cta { grid-template-columns: repeat(2, 14.5rem); }
  .final .cta { width: auto; }
  .steps--row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2rem; }
  .steps--row li { padding-block: 1.25rem 1.5rem; border-bottom: 1px solid var(--hair); }
}

@media (min-width: 900px) {
  :root { --pad: 40px; }

  .header-cta { display: flex; gap: 0.5rem; }

  .lit__glow {
    left: -14%;
    top: -18%;
    width: 128%;
    height: 136%;
    filter: blur(80px) saturate(1.4) brightness(1.5);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(2.5rem, 4vw, 3.5rem);
  }

  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 7rem);
  }

  .feature--flip .feature__shot { order: -1; }

  .share {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 7rem);
  }

  .share__body { padding-top: calc(2.1rem + clamp(1.875rem, 3.6vw, 3.25rem) * 0.53 - 0.9rem); }

  .first-launch {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 7rem);
  }

  .faq {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
  }

  .final__inner { align-items: center; text-align: center; }
  .final .lead { margin-inline: auto; }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .phone { width: min(100%, 15rem); }
}

/* Reduced motion: no transitions, no smooth scrolling */

@media (prefers-reduced-motion: reduce) {
  .btn,
  summary svg { transition: none; }
}
