:root {
  --od-bg: #f5f4f1;
  --od-surface: #ffffff;
  --od-ink: #161616;
  --od-muted: #5f5f5f;
  --od-line: rgba(22, 22, 22, 0.12);
  --od-radius: 0.85rem;
  --od-max: 68rem;
  --od-font: "Outfit", sans-serif;
  --od-display: "Instrument Serif", Georgia, serif;
  --od-live-h: min(88vh, 58rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--od-font);
  color: var(--od-ink);
  background: var(--od-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.od-case {
  width: min(100% - 2rem, var(--od-max));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.od-hero {
  text-align: center;
  margin: 0 auto 2.25rem;
}

.od-title {
  margin: 0 auto;
  max-width: 48rem;
  font-family: var(--od-display);
  font-size: clamp(2.6rem, 7vw, 4.35rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.od-lede {
  margin: 1.15rem auto 0;
  max-width: 40rem;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  line-height: 1.55;
  color: var(--od-muted);
  text-wrap: balance;
}

.od-hero__bar {
  margin: 1.85rem 0 0;
  padding-top: 1.35rem;
  width: 100%;
  border-top: 1px solid var(--od-line);
}

.od-hero__bar-inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem 2.75rem;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.od-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.15rem 2.5rem;
  text-align: left;
  flex: 0 1 auto;
  min-width: 0;
}

.od-meta > div {
  flex: 0 0 auto;
  min-width: 0;
}

.od-meta dt {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--od-muted);
}

.od-meta dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--od-ink);
  white-space: nowrap;
}

.od-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: var(--od-ink);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(22, 22, 22, 0.12);
}

.od-live-btn:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 22, 22, 0.18);
}

.od-live-btn:focus-visible {
  outline: 2px solid #1e3a5f;
  outline-offset: 3px;
}

.od-live,
.od-forms,
.od-pair,
.od-mobile {
  margin: 0 0 clamp(2.4rem, 5vw, 3.5rem);
}

.od-chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--od-line);
  border-bottom: 0;
  border-radius: var(--od-radius) var(--od-radius) 0 0;
  background: #fafafa;
}

.od-chrome__dots {
  display: flex;
  gap: 0.3rem;
}

.od-chrome__dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}

.od-chrome__dots span:nth-child(1) {
  background: #ff5f57;
}
.od-chrome__dots span:nth-child(2) {
  background: #febc2e;
}
.od-chrome__dots span:nth-child(3) {
  background: #28c840;
}

.od-chrome__url {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--od-muted);
}

.od-live__viewport {
  position: relative;
  height: var(--od-live-h);
  min-height: 42rem;
  overflow: hidden;
  border: 1px solid var(--od-line);
  border-radius: 0 0 var(--od-radius) var(--od-radius);
  background: #fff;
}

.od-live__iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  overflow: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.od-section {
  max-width: 52rem;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.od-section h2,
.od-split h2,
.od-mobile__copy h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.od-section p,
.od-split p,
.od-mobile__copy p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--od-muted);
  text-wrap: pretty;
}

.od-forms {
  display: grid;
  gap: 2.75rem;
}

.od-demo__title {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.od-demo__frame {
  position: relative;
  width: 100%;
  border-radius: var(--od-radius);
  border: 1px solid var(--od-line);
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 22, 22, 0.05);
  overflow: hidden;
  /* Height is driven by the active screenshot so No stays the same scale. */
  height: auto;
  transition: none;
}

.od-demo__img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.od-demo__img--before {
  position: relative;
  z-index: 1;
}

.od-demo__img--after {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.od-demo.is-expanded .od-demo__img--before {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  opacity: 0;
}

.od-demo.is-expanded .od-demo__img--after {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.od-demo__cursor {
  position: absolute;
  z-index: 6;
  left: 72%;
  top: 78%;
  width: 1.5rem;
  height: 1.5rem;
  transform: translate(-20%, -10%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
  transition:
    left 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.16s ease,
    opacity 0.18s ease;
}

.od-demo__cursor svg {
  display: block;
  width: 100%;
  height: 100%;
}

.od-demo.is-aiming .od-demo__cursor,
.od-demo.is-pressing .od-demo__cursor {
  opacity: 1;
  left: var(--click-x);
  top: var(--click-y);
}

.od-demo.is-pressing .od-demo__cursor {
  transform: translate(-20%, -10%) scale(0.78);
}

.od-demo.is-expanded .od-demo__cursor {
  opacity: 0;
}

/* Soft tap flash only — no border / focus ring. */
.od-demo__ripple {
  position: absolute;
  z-index: 4;
  left: var(--click-x);
  top: var(--click-y);
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  outline: none;
  box-shadow: none;
  background: rgba(22, 22, 22, 0.28);
  transform: translate(-50%, -50%) scale(0.35);
  opacity: 0;
  pointer-events: none;
}

.od-demo.is-pressing .od-demo__ripple {
  animation: od-demo-ripple 0.55s ease-out forwards;
}

@keyframes od-demo-ripple {
  0% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.35);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(8);
  }
}

.od-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.od-shot {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.od-shot__label {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--od-muted);
}

.od-shot img {
  width: 100%;
  border-radius: var(--od-radius);
  border: 1px solid var(--od-line);
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 22, 22, 0.05);
}

.od-pair .od-shot {
  height: 100%;
}

.od-pair .od-shot img {
  flex: 1 1 auto;
  height: 18.5rem;
  object-fit: cover;
  object-position: top center;
}

.od-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 clamp(2.4rem, 5vw, 3.5rem);
}

.od-split > div {
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: var(--od-radius);
  background: var(--od-surface);
  border: 1px solid var(--od-line);
}

.od-mobile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.5rem;
  align-items: center;
}

.od-mobile__copy {
  max-width: 34rem;
}

.od-phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  justify-items: center;
}

.od-phone {
  margin: 0;
  width: min(100%, 14.5rem);
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--od-line);
  background: #fff;
  box-shadow: 0 16px 36px rgba(22, 22, 22, 0.08);
}

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

.od-close {
  margin: clamp(2.5rem, 5vw, 3.75rem) auto 0;
  padding-top: 1.5rem;
  max-width: 48rem;
  border-top: 1px solid var(--od-line);
  text-align: center;
}

.od-close p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--od-muted);
  text-wrap: pretty;
}

.od-close a {
  color: var(--od-ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.od-close a:hover {
  color: #000;
}

.od-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.od-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  :root {
    --od-live-h: min(78vh, 40rem);
  }

  .od-live__viewport {
    min-height: 28rem;
  }

  .od-pair,
  .od-split {
    grid-template-columns: 1fr;
  }

  .od-mobile {
    grid-template-columns: 1fr;
  }

  .od-mobile__copy {
    text-align: center;
    margin: 0 auto;
  }

  .od-hero__bar-inner {
    justify-content: center;
  }

  .od-meta {
    width: auto;
    gap: 1rem 2rem;
  }

  .od-pair .od-shot img {
    height: 16rem;
  }

  .od-phone {
    width: min(100%, 12.5rem);
  }
}

@media (max-width: 560px) {
  .od-case {
    width: min(100% - 1.25rem, var(--od-max));
  }

  .od-hero__bar-inner {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .od-meta {
    width: 100%;
    justify-content: center;
    gap: 1rem 1.5rem;
  }

  .od-meta dd {
    white-space: normal;
  }

  .od-live-btn {
    width: min(100%, 18rem);
    justify-content: center;
  }

  .od-phones {
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .od-reveal,
  .od-live-btn {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .od-demo__frame,
  .od-demo__img,
  .od-demo__cursor {
    transition: none !important;
  }

  .od-demo__cursor,
  .od-demo__ripple {
    display: none !important;
  }
}
