/* Template pages =============================================================
   Desktop follows "Template / Advent Garde" (1440): T1 Hero 940, T2 Pages,
   T3 Inside 980, T4 Bundle or Pass 560, FAQ, footer. The hero, the purchase
   panel and the tiles share their shapes with ro. (ro.css); this file adds
   what a template has that a system does not.
   ========================================================================== */

/* T1 Hero: the pages, one at a time ------------------------------------------ */
.tv { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tv a, .tv button { pointer-events: auto; }
.tv-win {
  position: absolute; left: 484px; top: 212px; width: 504px; height: 341px;
  border-radius: 14px; background: #0B1220;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .141), 0 40px 80px -12px rgb(0 0 0 / .749);
}
.tv-win::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / .278), rgb(255 255 255 / .039) 40%, rgb(255 255 255 / .078));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.tv-win .sw-dots { position: absolute; left: 12px; top: 10px; display: flex; gap: 5px; }
.tv-win .sw-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .18); }
.tv-addr {
  position: absolute; left: 151px; top: 6px; width: 202px; height: 14px; border-radius: 7px;
  background: rgb(255 255 255 / .071);
  font: 400 11px/14px var(--f-mono); letter-spacing: 1.2px; text-align: center; color: var(--c-haze);
}
.tv-screen { position: absolute; left: 0; top: 26px; width: 504px; height: 315px; overflow: hidden; border-radius: 0 0 14px 14px; background: #0B1626; cursor: zoom-in; }
.tv-screen img, .tv-phone img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: opacity .35s var(--ease-out); }
.tv-screen img.is-swapping, .tv-phone img.is-swapping { opacity: 0; }
.tv-phone {
  position: absolute; left: 894px; top: 384px; width: 116px; height: 242px; padding: 4px;
  border-radius: 22px; background: #0A0E14;
  box-shadow: inset 0 0 0 1px rgb(220 235 247 / .4), 0 30px 50px -8px rgb(0 0 0 / .749);
  transition: transform .8s var(--ease-out);
}
.tv-phone img { width: 108px; height: 234px; border-radius: 18px; }
.tv-phone .island { position: absolute; left: 42px; top: 10px; width: 32px; height: 9px; border-radius: 4.5px; background: #000; }
.tv-phone:hover { transform: translateY(-4px); }
.tv-thumbs { position: absolute; left: 484px; top: 664px; display: flex; align-items: flex-start; }
.tv-thumbs li { margin-left: var(--gap); }
.tv-thumb { position: relative; display: block; width: var(--w); height: var(--h); border-radius: 6px; overflow: hidden; background: #0B1626; }
.tv-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.tv-thumb::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: rgb(4 6 11 / .349); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .122);
  transition: background .4s var(--ease-out);
}
.tv-thumb:hover::after { background: rgb(4 6 11 / .1); }
.tv-thumb.is-on { overflow: visible; }
.tv-thumb.is-on img { border-radius: 6px; }
.tv-thumb.is-on::after { inset: -1.5px; border-radius: 7.5px; background: none; box-shadow: 0 0 0 1.5px var(--c-arc); }
.tv-cap { position: absolute; left: 484px; top: 730px; font: 400 11px/14px var(--f-mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--c-mist); white-space: nowrap; }
.tv-cap--r { left: auto; right: 430px; color: var(--c-haze); }

/* T2 Pages ------------------------------------------------------------------- */
.tpl-pages { height: 900px; }
.tpl-pages .stage { height: 900px; }
.strips { position: absolute; left: 72px; top: 190px; width: 1296px; }
.strips-group {
  position: absolute; left: var(--gx, 0px); top: 0; width: var(--gw); display: flex; align-items: center; gap: 12px;
  font: 400 11px/14px var(--f-mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--c-mist); white-space: nowrap;
}
.strips-group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgb(143 195 234 / .4), rgb(143 195 234 / .078)); }
.strip-row { position: absolute; left: 0; top: 30px; display: flex; gap: 20px; }
.strip { width: var(--w); flex: none; display: grid; grid-template-rows: 552px auto auto; align-items: start; }
.strip-frame { position: relative; display: block; height: 552px; border-radius: 12px; overflow: hidden; background: #0B1220; isolation: isolate; }
.strip-frame img { display: block; width: 100%; height: auto; transition: transform 1.4s var(--ease-out); }
.strip-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(180deg, rgb(4 6 11 / 0), rgb(4 6 11 / .851) 70%, var(--c-black)); pointer-events: none; }
.strip-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / .251), rgb(255 255 255 / .071) 60%, rgb(255 255 255 / 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .strip-frame:hover img { transform: translateY(var(--rise, -18%)); transition-duration: 4s; transition-timing-function: var(--ease-std); }
}
.strip-name { margin-top: 16px; max-width: calc(var(--w) + 12px); font: 500 15px/20px var(--f-text); letter-spacing: -0.1px; color: var(--c-white); }
.strip.is-narrow .strip-size { letter-spacing: .4px; }
.strip-size { margin-top: 6px; font: 400 11px/14px var(--f-mono); letter-spacing: 1.2px; color: var(--c-haze); white-space: nowrap; }

/* T3 Inside ------------------------------------------------------------------ */
.tpl-swatches li { width: var(--sw); color: color-mix(in srgb, var(--paper) 80%, transparent); cursor: default; }
.tpl-swatches li.on-light { color: color-mix(in srgb, var(--ink) 80%, transparent); }
.tpl-swatches li.on-light .hex { color: color-mix(in srgb, var(--ink) 90%, transparent); }
.tpl-swatches li.on-dark .hex { color: color-mix(in srgb, var(--paper) 90%, transparent); }
.tpl-swatches .step { line-height: 11px; }
.tpl-swatches .hex { left: 0; width: 100%; }
@media (hover: hover) {
  .tpl-swatches:hover li.is-on:not(:hover) { height: 150px; }
}
.tpl-swatches li:focus-visible { height: 180px; outline-offset: 2px; }
.tpl-swatches li:focus-visible .hex { opacity: 1; transform: none; }

/* Symbols, laid out like the symbols page */
.tpl-inside .tile--motion .tile-desc { width: 440px; }
.tile--motion .syms { position: absolute; left: 32px; top: 142px; height: 140px; display: flex; align-items: center; gap: 12px; }
.sym-col { display: flex; align-items: center; justify-content: center; }
.sym-a { width: 140px; }
.sym-b { width: 186px; }
.sym-c { width: 124px; flex-direction: column; gap: 38px; }
.syms img { display: block; max-width: none; filter: drop-shadow(0 10px 18px rgb(0 0 0 / .4)); transition: transform .8s var(--ease-out); }
@media (hover: hover) {
  .tile--motion:hover .sym-a img { transform: translateY(-4px) rotate(-2deg); }
  .tile--motion:hover .sym-b img { transform: translateY(-6px) rotate(2deg); }
  .tile--motion:hover .sym-c img { transform: translateY(-3px); }
}
.tile--motion .tile-cap { left: 32px; top: 300px; width: auto; }

/* Type: the families, each in its own face */
.tpl-specimen { position: absolute; left: 26px; top: 92px; margin: 0; font-size: 150px; line-height: 150px; letter-spacing: -5px; white-space: nowrap; }
.fams { position: absolute; left: 262px; top: 104px; }
.fams li { height: 54px; }
.fams .fam { display: block; height: 21px; line-height: 21px; color: var(--c-white); white-space: nowrap; }
.fams .role { display: block; margin-top: 5px; font: 400 11px/14px var(--f-mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--c-haze); }

/* Copy that sells: the hero copy, in the template's own fonts and colors */
.copy-card {
  position: absolute; left: 24px; top: 80px; width: 368px; height: 170px; padding: 20px 20px 0;
  border-radius: 16px; overflow: hidden;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .0784);
  color: var(--fg);
}
.cc-eyebrow { font-size: 9px; line-height: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-head { margin-top: 6px; color: var(--fg); }
.cc-head .cl { display: block; white-space: nowrap; }
.cc-body { margin-top: 10px; width: 320px; font-size: 12px; line-height: 18px; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile--tokens .tile-cap { width: 352px; }

/* Both breakpoints */
.bp { position: absolute; display: block; overflow: hidden; background: #0B1626; transition: transform .7s var(--ease-out); }
.bp img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.bp::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); pointer-events: none; }
.bp--d { left: 32px; top: 132px; width: 216px; height: 135px; border-radius: 8px; }
.bp--m { left: 268px; top: 120px; width: 70px; height: 147px; border-radius: 12px; }
.bp:hover { transform: translateY(-3px); }
.bp-size { position: absolute; top: 278px; font: 400 11px/14px var(--f-mono); letter-spacing: 1.2px; color: var(--c-arc); }
.bp-size--d { left: 32px; }
.bp-size--m { left: 268px; }

/* T4 Bundle: three windows, one per season ------------------------------------ */
.tpl-band { height: 560px; }
.tpl-band .stage { height: 560px; }
.bw {
  position: absolute; width: 300px; height: 210px;
  border-radius: 12px; background: #0B1220;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .141), 0 30px 60px -10px rgb(0 0 0 / .749);
}
.bw::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / .278), rgb(255 255 255 / .039) 40%, rgb(255 255 255 / .078));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.bw-dots { position: absolute; left: 10px; top: 7px; display: flex; gap: 5px; }
.bw-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgb(255 255 255 / .18); }
.bw-addr { position: absolute; left: 90px; top: 5px; width: 120px; height: 12px; border-radius: 6px; background: rgb(255 255 255 / .071); }
.bw-screen { position: absolute; left: 0; right: 0; top: 22px; bottom: 0; overflow: hidden; border-radius: 0 0 12px 12px; background: #0B1626; }
.bw-screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.bw--a { left: 640px; top: 112px; rotate: -7deg; }
.bw--c { left: 936px; top: 112px; rotate: 7deg; }
.bw--b { left: 768px; top: 150px; width: 360px; height: 247px; }
.bw--b .bw-dots { top: 8px; }
.bw--b .bw-addr { left: 108px; width: 144px; }
.bl { position: absolute; display: flex; align-items: center; gap: 8px; font: 400 11px/13px var(--f-mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--c-silver); white-space: nowrap; }
.bl-node { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c-black); box-shadow: inset 0 0 0 2px var(--dot); }
.bl--a { left: 648px; top: 77px; }
.bl--c { left: 1080px; top: 77px; }
.bl--b { left: 878px; top: 415px; }
@media (prefers-reduced-motion: no-preference) {
  .tpl-band .bw { transition: transform 1.2s var(--ease-out); }
  .tpl-band .pass-band:hover .bw--a { transform: translate(-8px, -4px); }
  .tpl-band .pass-band:hover .bw--c { transform: translate(8px, -4px); }
  .tpl-band .pass-band:hover .bw--b { transform: translateY(-6px); }
}
.tpl-band .band-actions .btn--light { min-width: 164px; }
.tpl-band .band-text { width: 470px; }

/* =========================================================================
   Phones (< 1024)
   ========================================================================= */
@media (max-width: 1023.98px) {
  .tv { position: relative; inset: auto; height: auto; margin-top: 28px; pointer-events: auto; }
  .tv-win { position: relative; left: auto; top: auto; width: calc(100% - 36px); height: auto; aspect-ratio: 504 / 341; border-radius: 12px; }
  .tv-win .sw-dots { left: 10px; top: 8px; gap: 4px; }
  .tv-win .sw-dots i { width: 5px; height: 5px; }
  .tv-addr { left: 30%; top: 5px; width: 40%; height: 12px; font-size: 9px; line-height: 12px; letter-spacing: .8px; }
  .tv-screen { width: 100%; height: auto; top: 22px; bottom: 0; }
  .tv-phone { left: auto; right: 0; top: auto; bottom: -26px; width: 84px; height: 175px; padding: 3px; border-radius: 18px; }
  .tv-phone img { width: 78px; height: 169px; border-radius: 15px; }
  .tv-phone .island { left: 29px; top: 7px; width: 26px; height: 7px; }
  .tv-thumbs { position: relative; left: auto; top: auto; margin-top: 42px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
  .tv-thumbs::-webkit-scrollbar { display: none; }
  .tv-thumbs li { flex: none; }
  .tv-cap { display: none; }
  .tpl-hero .ro-title { margin-top: 36px; display: block; }
  .tpl-hero .ro-tag { margin: 0; font: 400 44px/46px var(--f-display); letter-spacing: -1.4px; }
  .tpl-hero .ro-tag .l1 { display: block; color: var(--c-white); }
  .tpl-hero .ro-tag .l2 { display: block; color: var(--c-dim); }
  .tpl-hero .ro-body { margin-top: 16px; }

  .tpl-pages { height: auto; }
  .tpl-pages .stage { width: 100%; max-width: 600px; height: auto; padding: 64px 0 24px; }
  .tpl-pages .inside-title { padding: 0 24px; }
  .strips { position: relative; left: auto; top: auto; width: auto; margin-top: 28px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 24px; }
  .strips::-webkit-scrollbar { display: none; }
  .strips-group { display: none; }
  .strip-row { position: relative; top: auto; padding: 0 24px; gap: 14px; width: max-content; }
  .strip { scroll-snap-align: start; }
  .strip--d { width: 156px; --w: 156px; }
  .strip--m { width: 75px; --w: 75px; }
  .strip { grid-template-rows: 400px auto auto; }
  .strip-frame { height: 400px; }
  .strip-name { margin-top: 12px; }

  .tpl-inside .rows { margin-top: 40px; }
  .row--colors .bars li { min-width: 0; }
  .row--type .aa { font-family: var(--spec, inherit); }
  .row--syms, .row--copy, .row--bp { height: 117.86px; }
  .row--syms { height: 160px; }
  .row--syms .syms { position: absolute; left: 20px; right: 0; top: 84px; height: 56px; display: flex; align-items: center; gap: 12px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
  .row--syms .syms > * { flex: none; }
  .row--syms .sym-col { width: auto; }
  .row--syms .sym-c { flex-direction: row; gap: 12px; }
  .row--syms .syms img { height: auto; max-height: 52px; width: auto; max-width: 96px; }
}

/* The bundle band on a phone: the three windows on top, the words below */
@media (max-width: 1023.98px) {
  .tpl-band { height: auto; }
  .tpl-band .stage { width: 100%; max-width: 600px; height: auto; padding: 0 24px 64px; }
  .tpl-band .pass-band { height: 716px; }
  .tpl-band .band-art { left: 0; right: 0; top: 0; width: auto; height: 300px; transform: none; }
  .tpl-band .bw { width: 168px; height: 118px; border-radius: 9px; }
  .tpl-band .bw-dots { left: 8px; top: 5px; gap: 4px; }
  .tpl-band .bw-dots i { width: 4px; height: 4px; }
  .tpl-band .bw-addr { left: 56px; top: 4px; width: 64px; height: 9px; }
  .tpl-band .bw-screen { top: 16px; border-radius: 0 0 9px 9px; }
  .tpl-band .bw--a { left: 12px; top: 92px; }
  .tpl-band .bw--c { left: 162px; top: 92px; }
  .tpl-band .bw--b { left: 61px; top: 112px; width: 220px; height: 151px; }
  .tpl-band .bw--b .bw-dots { top: 6px; }
  .tpl-band .bw--b .bw-addr { left: 72px; width: 76px; }
  .tpl-band .bl { font-size: 10px; letter-spacing: 1px; gap: 6px; }
  .tpl-band .bl-node { width: 8px; height: 8px; }
  .tpl-band .bl--a { left: 20px; top: 52px; }
  .tpl-band .bl--c { left: auto; right: 20px; top: 52px; }
  .tpl-band .bl--b { left: 50%; top: 278px; transform: translateX(-50%); }
  .tpl-band .band-eyebrow { top: 312px; }
  .tpl-band .band-title { top: 340px; }
  .tpl-band .band-text { top: 448px; width: auto; }
  .tpl-band .band-actions { top: 568px; }
  .tpl-band .band-actions .btn--light { min-width: 0; }
}
