/*
  MidRound marketing site: the page's own layer over the kit (assets/system.css).
  The kit keeps the nav, the grid, the pricing cards, the questions and the footer. This file adds what the
  owner asked for on 2026-11-16: the brand's own display face on every headline, a 3D phone, a pinned tour,
  a moving wall of discoveries and sections that rise in.
*/

/* ------------------------------------------------------------ the brand's face: Anton, in capitals, as the app sets its own titles */
h1, h2, .mr-num {
  font-family: "Anton", "Arial Narrow", Impact, sans-serif; font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.006em; line-height: 0.98; font-feature-settings: normal;
}
h2 { font-size: clamp(38px, 4.5vw, 66px); }
h2 .muted { color: color-mix(in oklab, currentColor 52%, transparent); }
.mr-red { color: #d8605a; }
.mr-eyebrow { font: 500 13px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #e06d66; }
.mr-rule { height: 2px; background: #c5514c; transform-origin: left center; }

/* ------------------------------------------------------------ motion: a section rises in once */
.mr-js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--d, 0s); }
.mr-js [data-reveal].is-in, .mr-safe [data-reveal] { opacity: 1; transform: none; }
.mr-js .mr-rule { transform: scaleX(0); transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s; }
.mr-js .is-in .mr-rule, .mr-js .mr-rule.is-in, .mr-safe .mr-rule { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .mr-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .mr-js .mr-rule { transform: none; transition: none; }
}

/* ------------------------------------------------------------ the hero: the brand line, and the phone on a red glow */
.hero--split .hero__text > h1 { font-size: clamp(50px, 6.7vw, 102px); line-height: 0.94; max-width: 12ch; }
.hero--split .hero__text > .hero__lead { max-width: 46ch; }
.hero--split .hero__media.mr-stage { background: none; overflow: visible; border-radius: 0; }
.mr-stage::before {
  content: ""; position: absolute; inset: 4% -4%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(197, 81, 76, 0.42), rgba(197, 81, 76, 0.12) 52%, rgba(197, 81, 76, 0) 74%);
  filter: blur(18px); animation: mr-breathe 7s ease-in-out infinite;
}
.mr-stage > canvas { position: absolute; inset: -6% 0; width: 100%; height: 112%; z-index: 1; }
@keyframes mr-breathe { 0%, 100% { opacity: 0.75; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .mr-stage::before { animation: none; } }
/* stacked (a tablet, a phone): the phone gets a tall stage of its own under the words, and the hero grows to hold it */
@media (max-width: 1023px) {
  main > .hero.hero--split { height: auto; min-height: 100svh; }
  .hero--split .hero__media.mr-stage { flex: none; height: min(132vw, 620px); margin-top: var(--s-6); }
  .mr-stage > canvas { inset: 0; height: 100%; }
}
/* without WebGL the same screenshot stands in a plain frame */
.mr-fallback { display: none; position: absolute; top: 6%; left: 50%; height: 88%; width: auto; translate: -50% 0; z-index: 1; border-radius: 34px; border: 6px solid #060607; box-shadow: 0 30px 80px -30px #000; }
.no-webgl .mr-fallback { display: block; }
.no-webgl .mr-stage > canvas { display: none; }

/* ------------------------------------------------------------ the figures */
.mr-stats { padding: var(--s-9) 0 var(--s-8); }
.mr-stats dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); margin: var(--s-7) 0 0; }
.mr-stats dt { order: 2; margin-top: var(--s-3); font-size: 16px; line-height: 1.45; color: var(--ink); max-width: 22ch; }
.mr-stats dd { margin: 0; }
.mr-stats div { display: flex; flex-direction: column; }
.mr-num { font-size: clamp(56px, 7vw, 104px); line-height: 0.9; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 767px) { .mr-stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ the tour */
.mr-tour { position: relative; padding: var(--s-9) 0; }
.mr-tour__head { margin-bottom: var(--s-8); max-width: 20ch; }
.mr-ch { max-width: 520px; }
.mr-ch + .mr-ch { margin-top: var(--s-10); }
.mr-ch h2 { margin: var(--s-4) 0 var(--s-5); }
.mr-ch > p:not(.mr-eyebrow) { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); max-width: 44ch; }
.mr-proof { margin: var(--s-6) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.mr-proof li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.mr-proof li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 2px; background: #c5514c; }
.mr-proof b { font-weight: 500; }
.mr-shot { display: block; width: min(300px, 74%); height: auto; margin: var(--s-7) 0 0; border-radius: 36px; border: 6px solid #060607; box-shadow: 0 0 0 1px rgba(243, 239, 232, 0.14), 0 36px 80px -36px #000; }
.mr-tour__stage, .mr-rail { display: none; }

/* pinned (a desktop with WebGL): the words change beside one phone that the scroll turns */
@media (min-width: 960px) {
  .mr-tour-live .mr-tour { height: 460vh; padding: 0; }
  .mr-tour-live .mr-tour__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: stretch; }
  .mr-tour-live .mr-tour__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; height: 100%; }
  .mr-tour-live .mr-tour__text { grid-column: 1 / span 6; position: relative; }
  .mr-tour-live .mr-tour__head { display: none; }
  .mr-tour-live .mr-ch { position: absolute; inset: var(--nav) 0 0 0; margin: 0; display: flex; flex-direction: column; justify-content: center; max-width: none; opacity: 0; transform: translateY(34px); pointer-events: none; transition: opacity 0.4s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
  .mr-tour-live .mr-ch.is-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.12s; }
  .mr-tour-live .mr-ch h2 { font-size: clamp(48px, 5.6vw, 86px); max-width: 11ch; }
  .mr-tour-live .mr-shot { display: none; }
  .mr-tour-live .mr-tour__stage { display: block; grid-column: 7 / -1; position: relative; }
  .mr-tour-live .mr-tour__stage::before { content: ""; position: absolute; inset: 12% 4%; background: radial-gradient(closest-side, rgba(197, 81, 76, 0.34), rgba(197, 81, 76, 0.08) 55%, rgba(197, 81, 76, 0) 74%); filter: blur(20px); }
  .mr-tour-live .mr-tour__stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .mr-tour-live .mr-rail { display: flex; gap: 8px; position: absolute; left: 0; bottom: 48px; }
  .mr-rail i { width: 44px; height: 3px; border-radius: 2px; background: rgba(243, 239, 232, 0.18); transition: background 0.4s ease; }
  .mr-rail i.is-on { background: #c5514c; }
}

/* ------------------------------------------------------------ beyond the odds: the question, and a wall of what MidRound files */
.mr-beyond { padding: var(--s-10) 0; }
.mr-beyond__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.mr-beyond__text { grid-column: 1 / span 5; }
.mr-beyond__text h2 { margin: var(--s-4) 0 var(--s-6); }
.mr-beyond__text > p:not(.mr-eyebrow) { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); max-width: 44ch; }
.mr-odds { display: flex; align-items: flex-end; gap: var(--s-5); margin: 0 0 var(--s-6); }
.mr-odds .mr-num { color: #d8605a; font-size: clamp(88px, 10vw, 152px); }
.mr-odds p { font-size: 16px; line-height: 1.5; color: var(--ink); max-width: 30ch; padding-bottom: 6px; }
.mr-beyond__wall { grid-column: 7 / -1; }
.mr-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; height: 660px; overflow: hidden;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); }
/* the wall moves only when the script has doubled its cards (.is-live); without it the cards stand in two plain columns */
.mr-wall:not(.is-live) { height: auto; overflow: visible; -webkit-mask: none; mask: none; }
.mr-wall.is-live .mr-col__track { animation: mr-up 48s linear infinite; will-change: transform; }
.mr-wall.is-live .mr-col:nth-child(2) .mr-col__track { animation-duration: 58s; animation-direction: reverse; }
.mr-wall:hover .mr-col__track, .mr-wall.is-paused .mr-col__track { animation-play-state: paused; }
@keyframes mr-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.mr-card { margin: 0 0 16px; padding: 20px; border-radius: 20px; background: rgba(243, 239, 232, 0.055); border: 1px solid rgba(243, 239, 232, 0.12); }
.mr-card__who { font: 500 12px/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #a39d93; }
.mr-card h3 { margin: 10px 0 14px; font: 500 19px/1.3 var(--font-text); letter-spacing: -0.01em; color: var(--ink); text-transform: none; }
.mr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(243, 239, 232, 0.16); font-size: 13px; line-height: 1.2; color: #ddd8cf; }
.mr-chip--on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f3efe8; }
.mr-wallbtn { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-5); padding: 0; background: none; border: 0; font: 500 14px/1.4 var(--font-text); color: #a39d93; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.mr-wallbtn:hover { color: var(--ink); }
@media (max-width: 959px) {
  .mr-beyond { padding: var(--s-9) 0; }
  .mr-beyond__grid { display: block; }
  .mr-beyond__wall { margin-top: var(--s-7); }
  .mr-wall { height: 560px; }
}
@media (max-width: 639px) { .mr-wall { grid-template-columns: minmax(0, 1fr); height: 520px; } .mr-col:nth-child(2) { display: none; } .mr-card h3 { font-size: 17px; } }

/* ------------------------------------------------------------ the receipt: the bars fill as the band comes on */
.mr-js #history .d-bar i { width: 0; transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.35s; }
.mr-js #history.is-in .d-bar i, .mr-safe #history .d-bar i { width: var(--v); }
@media (prefers-reduced-motion: reduce) { .mr-js #history .d-bar i { width: var(--v); transition: none; } }

/* The header at a small laptop. The kit sets it as three columns with equal sides, which holds the
   menu dead centre. "Download for iPhone and iPad" is 257px, wider than the 196px side column at
   1024, so it ran 29px over "Questions". Equal sides fit only from 1145px (2 x 257 + 407 menu + 64
   gaps + 160 page margin), so under 1200 the sides take their own width and the menu the rest. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav--split .nav__bar, .nav--centre .nav__bar { grid-template-columns: auto minmax(0, 1fr) auto; }
}
