/* /register (inc/register.php), on top of cti-program.css and gofurther.css (NMC red): Apple's layouts.
   Hero after apple.com/airpods-pro: one full-screen picture, words at the bottom left, a pill at the bottom right. */

.rg { --rg-ink-on-photo: #fff; }

/* ---- hero ------------------------------------------------------------------------------------------------- */
.rg .rg-hero { --rg-h: max(560px, min(1100px, calc(100vh - var(--ctip-top, 138px))));
  position: relative; display: block; padding: 0; overflow: hidden; background: #2b241e; height: var(--rg-h); }
@supports (height: 100svh) { .rg .rg-hero { --rg-h: max(560px, min(1100px, calc(100svh - var(--ctip-top, 138px)))); } }
.rg-hero-media { position: absolute; inset: 0; }
.rg-hero-pic, .rg-hero-pic img, .rg-hero-video, .rg-hero-media .rg-hero-ph { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.rg-hero-pic img, .rg-hero-video { display: block; object-fit: cover; object-position: 100% 45%; }
.rg-hero-media .rg-hero-ph { aspect-ratio: auto; border-radius: 0; align-items: flex-start; }
.rg-hero-video { opacity: 0; transition: opacity .4s; }
.rg-hero-video.is-playing { opacity: 1; }
/* the muted copy only exists for the bloom (register.js); otherwise it stays hidden */
.rg-hero-pic--muted { visibility: hidden; }
/* shade the lower left so the words read on the ground; the photo's own light stays at the top */
.rg-hero-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(24,14,6,.62) 0%, rgba(24,14,6,.36) 36%, rgba(24,14,6,0) 66%),
              linear-gradient(90deg, rgba(24,14,6,.28) 0%, rgba(24,14,6,0) 50%); }
.rg-hero-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px 40px; width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 0 0 clamp(84px, 13vh, 150px); }
.rg-hero-text { max-width: 760px; color: var(--rg-ink-on-photo); }
.rg .rg-hero-term { font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; color: #fff; }
.rg .rg-hero-title { font-size: clamp(44px, 5vw, 72px); font-weight: 700; letter-spacing: -.035em; line-height: 1.03; margin: 0 0 16px; color: #fff;
  text-shadow: 0 2px 30px rgba(20,10,0,.25); }
.rg .rg-hero-sub { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; font-weight: 500; margin: 0; max-width: 34em; color: rgba(255,255,255,.92); text-wrap: balance; }
/* the pill: Apple's "$249 | Buy" capsule, in the menu's frosted glass */
.rg .rg-pill { flex: none; display: inline-flex; align-items: center; gap: 14px; margin: 0; padding: 6px 6px 6px 20px; border-radius: 980px;
  background: rgba(255,255,255,.22); color: #fff; -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 8px 30px -10px rgba(0,0,0,.35); font-size: 15px; line-height: 1.2; white-space: nowrap; }
.rg-pill-label { opacity: .85; }
.rg-pill strong { font-weight: 700; }
.rg .rg-pill-btn { min-height: 38px; padding: 0 20px; font-size: 15px; }

/* the stage (with a video): the plate covers the hero, anchored bottom right, so its open ground stays under the
   words; the video sits on it where its last frame was taken from, with soft left and bottom edges. When it ends
   its last frame and the plate are the same picture. */
.rg-stage { position: absolute; right: 0; bottom: 0; width: max(100%, calc(var(--rg-h) * var(--ar))); aspect-ratio: var(--ar); }
.rg-stage-plate { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: fill; display: block; }
.rg-stage-end { display: none; }
.rg-stage-video { position: absolute; left: var(--vx); top: 0; width: var(--vw); height: var(--vh); max-width: none; object-fit: fill; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%), linear-gradient(to top, transparent 0, #000 6%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 10%), linear-gradient(to top, transparent 0, #000 6%);
  mask-composite: intersect; }
.rg-stage-video.is-off { visibility: hidden; }
/* the words fade in as the page loads, while the video plays (not after it), one after the other: /register and the
   home page alike. CSS only, so they come in with or without the script. */
.rg .rg-hero .ctip-intro { opacity: 0; transform: translate3d(0, 24px, 0); animation: rg-reveal .9s cubic-bezier(.16,1,.3,1) .15s forwards; }
.rg .rg-hero .rg-hero-title { animation-delay: .3s; }
.rg .rg-hero .rg-hero-sub { animation-delay: .45s; }
.rg .rg-hero .rg-hero-links { animation-delay: .6s; }
.rg .rg-hero .rg-pill { animation-delay: .75s; }
@keyframes rg-reveal { to { opacity: 1; transform: none; } }

/* intro on the still (register.js adds .rg-intro, then .is-go): the shot settles as the step lands, and colour
   blooms out from the flowers across a muted copy of the picture. About 3.5 s, then it stays. */
@property --rg-r { syntax: "<length>"; inherits: false; initial-value: 0px; }
.rg-hero.rg-intro .rg-hero-pic:not(.rg-hero-pic--muted) img { transform: scale(1.07); transform-origin: 76% 50%; }
.rg-hero.rg-intro.is-go .rg-hero-pic:not(.rg-hero-pic--muted) img { transform: none; transition: transform 2.6s cubic-bezier(.16,1,.3,1) .15s; }
.rg-hero.rg-intro .rg-hero-pic--muted { visibility: visible; transform: scale(1.07); transform-origin: 76% 50%; }
.rg-hero.rg-intro .rg-hero-pic--muted img { filter: grayscale(1) brightness(.62) contrast(.92); }
.rg-hero.rg-intro .rg-hero-pic--muted {
  -webkit-mask-image: radial-gradient(circle at var(--rg-bx, 70%) var(--rg-by, 66%), transparent var(--rg-r), #000 calc(var(--rg-r) + 32vmax));
  mask-image: radial-gradient(circle at var(--rg-bx, 70%) var(--rg-by, 66%), transparent var(--rg-r), #000 calc(var(--rg-r) + 32vmax)); }
.rg-hero.rg-intro.is-go .rg-hero-pic--muted { --rg-r: 160vmax; transform: none;
  transition: --rg-r 3s cubic-bezier(.55,.05,.35,1) .55s, transform 2.6s cubic-bezier(.16,1,.3,1) .15s; }
.rg-hero.rg-intro.is-done .rg-hero-pic--muted { visibility: hidden; }
/* the words wait for the bloom */
.rg-hero.rg-intro .ctip-intro { transition-delay: calc(var(--d, 0s) + 1.1s); }

/* ---- key dates: Apple's stat row ---------------------------------------------------------------------------- */
.rg-dates { padding-bottom: 80px; }
.rg-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 48px; margin: 0; padding: 32px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rg-facts > div { position: relative; min-width: 0; }
.rg-facts > div + div::before { content: ""; position: absolute; left: -24px; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.rg-facts dt { font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: var(--red); white-space: nowrap; }
.rg-facts dd { margin: 14px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.rg-facts dd strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 17px; font-weight: 600; }
.rg-dates-links { margin: 18px 0 0; }

/* ---- "Ready to register? But first..." ---------------------------------------------------------------------- */
.rg-fork { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rg-forkcard { display: flex; flex-direction: column; padding: 36px 32px 30px; border-radius: var(--radius); background: #fff; }
.rg-forkcard-badge { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 0 22px; border-radius: 50%; background: var(--tint); }
.rg-badge-icon { width: 28px; height: 28px; fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rg .rg-forkcard-title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); margin: 0 0 12px; }
.rg .rg-forkcard-text { color: var(--muted); flex: 1; margin: 0 0 22px; }
.rg .rg-forkcard-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.rg .rg-note { display: flex; gap: 12px; align-items: flex-start; margin: 28px 0 0; padding: 18px 22px; border-radius: 16px; background: #fff;
  font-size: 15px; color: var(--muted); }
.rg-note strong { color: var(--ink); }
.rg-note-icon { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rg-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.rg-mini { display: flex; gap: 18px; padding: 26px 28px; border-radius: var(--radius); background: #fff; }
.rg-mini-icon { flex: none; width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rg-mini h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); margin: 2px 0 6px; }
.rg-mini p { font-size: 15px; color: var(--muted); margin: 0 0 4px; }
.rg-mini .ctip-link { min-height: 36px; font-size: 15px; }

/* ---- before you register ------------------------------------------------------------------------------------ */
.rg .ctip-build-n { color: var(--red); }
.rg .rg-where { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.rg-where-icon { width: 16px; height: 16px; fill: none; stroke: var(--red); stroke-width: 1.6; }
.rg-before-last .gof-btn-sm { margin-top: 14px; }

/* ---- how to register: the gallery --------------------------------------------------------------------------- */
.rg-how { padding: 110px 0 110px; background: #fff; }
.rg-gallery { scroll-snap-type: x mandatory; cursor: grab; }
.rg [data-gallery].is-dragging, .rg [data-scroller].is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rg [data-scroller] { cursor: grab; }
.rg-slides { display: flex; gap: 24px; width: max-content; margin: 0 !important; }
.rg-slide { flex: none; width: min(880px, calc(100vw - 88px)); scroll-snap-align: start; display: flex; flex-direction: column; }
.rg-slide-media { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #f5f5f7;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.rg-step-img, .rg-step-video, .rg-slide-media .ctip-ph { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.rg-slide-cap { padding: 28px 4px 0; max-width: 640px; }
.rg .rg-slide-eyebrow { font-size: 15px; font-weight: 600; color: var(--red); margin: 0 0 6px; }
.rg .rg-slide-title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; color: var(--ink); margin: 0 0 10px; }
.rg .rg-slide-text { color: var(--muted); margin: 0 0 16px; }
.rg-gallery-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; }
.rg-gallery-foot .rg-paddles { width: auto; margin: 0; }
.rg-dots { display: flex; gap: 10px; padding: 14px 18px; border-radius: 980px; background: #f0f0f3; }
.rg-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 980px; background: #b8b8be; cursor: pointer; transition: width .35s cubic-bezier(.16,1,.3,1), background .3s; }
.rg-dot.is-current { width: 28px; background: var(--ink); }
.rg-paddles { display: flex; justify-content: flex-end; gap: 14px; margin-top: 24px; }
.rg-paddles[hidden] { display: none; }
.rg-paddle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: #e8e8ed; color: var(--ink); cursor: pointer; transition: background .2s, opacity .2s, transform .2s; }
.rg-paddle:hover { background: #dcdce1; }
.rg-paddle:active { transform: scale(.94); }
.rg-paddle:disabled { opacity: .35; cursor: default; }
.rg-paddle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rg .rg-how-note { margin-top: 30px; font-size: 15px; color: var(--muted); }

/* ---- why NMC: Apple's "Why Apple" cards, no photos ---------------------------------------------------------- */
.rg-why { padding: 110px 0; background: var(--gray); }
.rg-whys { display: flex; gap: 20px; width: max-content; margin: 0 !important; }
.rg-whycard { flex: none; width: 320px; min-height: 300px; padding: 34px 30px; border-radius: var(--radius); background: #fff; scroll-snap-align: start;
  display: flex; flex-direction: column; box-shadow: 0 2px 12px rgba(0,0,0,.04); transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s; }
.rg-whycard:hover { transform: scale(1.015); box-shadow: 0 8px 28px rgba(0,0,0,.08); }
.rg-why-icon { width: 40px; height: 40px; margin: 0 0 26px; fill: none; stroke: var(--red); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rg .rg-why-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--red); margin: 0 0 8px; }
.rg .rg-why-title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); margin: 0 0 12px; }
.rg .rg-why-text { font-size: 17px; line-height: 1.4; color: var(--muted); margin: 0; }

/* ---- pathways: a list of rows, like Apple's "Ways to buy" ---------------------------------------------------- */
.rg-ways .gof-row-head .ctip-lede { margin: 14px 0 0; }
.rg-waylist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.rg-waylist li { border-bottom: 1px solid var(--line); }
.rg .rg-way { display: grid; grid-template-columns: 40px 1fr 16px; grid-template-rows: auto auto; column-gap: 18px; align-items: center;
  padding: 22px 4px; color: var(--ink) !important; text-decoration: none !important; border-radius: 12px; transition: background .2s; }
.rg .rg-way:hover { background: #fafafa; }
.rg-way-icon { grid-row: 1 / 3; width: 32px; height: 32px; fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rg-way-name { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.rg-way-name .gof-pill { margin: 0 0 0 6px !important; vertical-align: 2px; }
.rg-way-line { grid-column: 2; font-size: 15px; color: var(--muted); }
.rg-way-chev { grid-column: 3; grid-row: 1 / 3; width: 13px; height: 13px; color: var(--red); }
.rg-way--soon .rg-way-icon { stroke: #8e8e93; }
.rg-ways-more { margin: 34px 0 0; }

/* ---- help ----------------------------------------------------------------------------------------------------- */
.rg-help-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: start; }
.rg-help-card { padding: 44px 40px; border-radius: var(--radius); background: #fff; }
.rg-help-card .ctip-h2 { color: var(--ink); }
.rg-help-btn { margin: 26px 0 0; }
.rg-faq { padding: 36px 40px 20px; border-radius: var(--radius); background: #fff; }
.rg .rg-faq-h { font-size: 15px; font-weight: 600; color: var(--red); margin: 0 0 6px; }
.rg-q { border-bottom: 1px solid var(--line); }
.rg-q:last-child { border-bottom: 0; }
.rg-q summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.rg-q summary::-webkit-details-marker { display: none; }
.rg-q summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 6px; }
.rg-q-icon { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.rg-q[open] .rg-q-icon { transform: rotate(45deg); }
.rg-a { padding: 0 34px 20px 0; color: var(--muted); }
.rg-a p { margin: 0; }
.rg-a a { color: var(--red); }

/* ---- contact ------------------------------------------------------------------------------------------------ */
.rg-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 48px !important; text-align: left; }
.rg-contact { padding: 24px; border-radius: 18px; background: rgba(255,255,255,.09); }
.rg-contact h3 { font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 2px; }
.rg .rg-contact-what { font-size: 14px; color: rgba(255,255,255,.7); margin: 0 0 12px; }
.rg-contact p { font-size: 14px; line-height: 1.6; margin: 0; }
.rg-contact a { color: #ffd9d3; }
.rg-contact-where { color: rgba(255,255,255,.7); }

/* ---- the home page's version (block nmc/spring-hero): the same hero, shorter, the words a little smaller ---------- */
.rg .rg-hero.rg-hero--home { --rg-h: clamp(460px, 66vh, 680px); }
/* the stage hangs from the top here: the hero is shorter than the stage on wide screens, and anchored at the bottom
   (as on /register) the top of the video, the shoe, was cut off; the ground at the bottom is what gets cropped now */
.rg-hero--home .rg-stage { top: 0; bottom: auto; }
.rg-hero--home .rg-hero-foot { padding-bottom: clamp(48px, 8vh, 88px); }
.rg .rg-hero--home .rg-hero-title { font-size: clamp(38px, 4.2vw, 60px); }
.rg .rg-hero-links { margin: 14px 0 0; }
.rg .rg-hero-links .ctip-link { min-height: 0; color: #fff; font-size: 17px; }
.rg-home { margin: 0; }

/* ---- tablet ------------------------------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .rg-facts { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .rg-facts > div:first-child { grid-column: 1 / -1; }
  .rg-facts > div:nth-child(even)::before { display: none; }
  .rg-fork { grid-template-columns: 1fr; }
  .rg-forkcard { padding: 30px 28px; }
  .rg-help-grid { grid-template-columns: 1fr; }
  .rg-waylist { grid-template-columns: 1fr; }
}

/* ---- phone: like Apple on a phone, the picture first and the words under it on white -------------------------- */
@media (max-width: 767px) {
  .rg .rg-hero-links .ctip-link { color: var(--red); }
  .rg .rg-hero { height: auto; background: #fff; }
  .rg-hero-media { position: relative; height: auto; aspect-ratio: 1 / 1; }
  @media (orientation: landscape) { .rg-hero-media { aspect-ratio: 16 / 9; } }
  .rg-hero-pic img, .rg-hero-video { object-position: 50% 50%; }
  .rg-hero.has-video .rg-hero-media { aspect-ratio: 4 / 3; }
  .rg-stage { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .rg-stage-plate { display: none; }
  .rg-stage-end, .rg-stage-video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%;
    -webkit-mask-image: none; mask-image: none; }
  .rg-hero-scrim { display: none; }
  .rg-hero-foot { position: relative; display: block; width: calc(100% - 32px); padding: 28px 0 56px; }
  .rg .rg-hero-term { color: var(--red); }
  .rg .rg-hero-title { color: var(--ink); text-shadow: none; font-size: clamp(38px, 11vw, 52px); }
  .rg .rg-hero-sub { color: var(--muted); }
  .rg .rg-pill { margin-top: 24px; background: #f0f0f3; color: var(--ink); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .rg-dates { padding-bottom: 56px; }
  .rg-br { display: none; }
  .rg-facts { column-gap: 32px; }
  .rg-facts > div + div::before { left: -16px; }
  .rg-facts dt { font-size: 30px; white-space: normal; }
  .rg-minis { grid-template-columns: 1fr; }
  .rg-mini { padding: 22px; }
  .rg-how, .rg-why { padding: 72px 0; }
  .rg-slide { width: calc(100vw - 56px); }
  .rg-slides { gap: 14px; }
  .rg-whycard { width: 276px; min-height: 0; padding: 28px 24px; }
  .rg-help-card, .rg-faq { padding: 28px 22px; }
  .rg-gallery-foot .rg-paddles { display: none; }
  .rg-gallery-foot { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .rg-stage-video { visibility: hidden; }
  .rg .rg-hero .ctip-intro { opacity: 1; transform: none; animation: none; }
  .rg-hero.rg-intro .rg-hero-pic--muted { visibility: hidden; }
  .rg-hero.rg-intro .rg-hero-pic img { transform: none; transition: none; }
  .rg-whycard, .rg-dot, .rg-q-icon { transition: none; }
}
