/* cheapgc landing page (beta.cheapgc.io): the layout only. Tokens, the header, the glass box, the template rows and
   cards are the product's own (../app.css), so the landing and the home read as one page. The hero sets the headline
   between two video stacks, over the box; the page then explains the product (How it works), compares the price of a
   second of video with the services people know, offers a taste of the template rows, and ends on one button. */

.lp { --lp-col: 1120px; --box-w: 820px; }
.lp-main { overflow-x: clip; }

/* The format switch in the top bar (the home's .seg); its names show under it, the bar being at the top of the page */
.lp-format { margin-right: 6px; }
.lp-top .top-link { white-space: nowrap; }
@media (max-width: 760px) {
  .lp-format { margin-right: 0; padding: 3px; }
  .lp-format button { width: 36px; height: 30px; }
  .lp-format .seg-thumb { top: 3px; bottom: 3px; }
  .lp-format button svg { width: 18px; height: 18px; }
}
/* on a narrow phone the switch takes the place of the Templates link; Browse templates sits under the box */
@media (max-width: 420px) { .lp-top .top-link.phone-only { display: none; } }
@media (hover: hover) and (pointer: fine) {
  .lp-top .seg [data-tip]::after { bottom: auto; top: calc(100% + 10px); translate: -50% -4px; }
  .lp-top .seg [data-tip]:hover::after { translate: -50% 0; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate; display: grid; justify-items: center; align-content: start;
  padding: clamp(40px, 9vh, 104px) var(--gutter) clamp(84px, 13vh, 132px); text-align: center; outline: none;
}
.hero-words { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; max-width: 880px; }
.hero-title {
  font-size: clamp(38px, 4.5vw, 66px); line-height: 1.02; font-weight: 690; letter-spacing: -0.045em; text-wrap: balance;
  max-width: 13.5em;
}

.hero-box { position: relative; width: min(var(--box-w), 100%); margin-top: clamp(30px, 4.6vh, 46px); }
.lp-box { width: 100%; }
.lp-box .compose-field { min-height: 92px; }
.lp-box .compose-bar { min-height: 64px; }
.lp-photo { height: 38px; padding: 0 14px 0 12px; gap: 8px; }
.lp-photo svg { width: 19px; height: 19px; }
.lp-go {
  margin-left: auto; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ink);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.14), 0 1px 2px oklch(17% 0.05 271 / 0.3), 0 10px 22px -10px oklch(30% 0.14 280 / 0.55);
  transition: background-color 180ms var(--ease), transform 160ms var(--ease), opacity 200ms var(--ease);
}
.lp-go svg { width: 21px; height: 21px; transition: transform 260ms var(--ease); }
.lp-go:hover { background: oklch(25% 0.07 274); }
.lp-go:hover svg { transform: translateX(2px); }
.lp-go:active { transform: scale(0.95); }
.lp-box:not(.has-text) .lp-go { background: oklch(17% 0.046 271 / 0.82); }
/* Waiting for the home to be ready (rare: the user acted before it finished loading in the background); past the
   loaders' delay the arrow becomes a spinner (loader.js busy) */
.is-holding .lp-box .aura { opacity: 1; transform: scale(1.06); }

.lp-under { position: relative; z-index: 2; display: flex; align-items: center; justify-content: flex-end; gap: 16px; width: min(var(--box-w), 100%); margin-top: 22px; }
.lp-browse { height: 44px; padding: 0 14px 0 18px; gap: 4px; }
.lp-browse svg { width: 18px; height: 18px; transition: transform 220ms var(--ease); }
.lp-browse:hover svg { transform: translateX(3px); }

/* The light trail behind the box, spanning the window where the home's sits (183 px above the box), so it carries
   over in place */
.hero-trail { position: absolute; z-index: -2; pointer-events: none; left: 0; right: 0; height: 406px; --lt-floor: 40px; --lt-head: 90px; }
.trail-box { left: calc(50% - 50vw); right: calc(50% - 50vw); top: -183px; }

/* ----- The waitlist's price pill, above the headline. It is a link to the price comparison: on
   hover it slowly fills with a drifting violet wash, and a click flies it down to the comparison (landing.js) ----- */
.hero-pill { position: relative; z-index: 1; margin-bottom: 20px; }
.price-pill {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 9px; height: 37px;
  padding: 0 17px; border-radius: var(--r-pill); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--hair); color: var(--ink);
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap;
  transition: color 800ms var(--ease), box-shadow 800ms var(--ease);
}
a.price-pill { padding-right: 12px; cursor: pointer; }
/* the wash: a soft violet gradient that fades in and drifts across while the pill is pointed at */
.price-pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
  background: linear-gradient(105deg, oklch(97.5% 0.018 292) 0%, oklch(92% 0.06 287) 28%, oklch(93.5% 0.055 312) 52%, oklch(94.5% 0.04 262) 76%, oklch(97.5% 0.018 292) 100%);
  background-size: 280% 100%; background-position: 0% 50%;
  transition: opacity 800ms var(--ease), background-position 900ms var(--ease);
}
.pp-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); transition: box-shadow 800ms var(--ease); }
.pp-go { flex: none; width: 17px; height: 17px; margin-left: -2px; color: var(--muted); transition: color 800ms var(--ease), translate 600ms var(--ease); }
a.price-pill:hover, a.price-pill:focus-visible, .price-pill.is-lit {
  color: var(--violet-ink); box-shadow: inset 0 0 0 1.5px var(--violet-line), 0 12px 26px -16px oklch(45% 0.2 286 / 0.5);
}
a.price-pill:hover::before, a.price-pill:focus-visible::before, .price-pill.is-lit::before { opacity: 1; background-position: 100% 50%; }
a.price-pill:hover .pp-dot, a.price-pill:focus-visible .pp-dot, .price-pill.is-lit .pp-dot { box-shadow: 0 0 0 4px oklch(54% 0.24 286 / 0.16); }
a.price-pill:hover .pp-go, a.price-pill:focus-visible .pp-go { color: var(--violet-ink); translate: 0 2px; }
a.price-pill:focus-visible { outline-offset: 4px; border-radius: var(--r-pill); }
a.price-pill:active { scale: 0.97; }
/* the pill on its way down to the comparison: fixed in the viewport while the page scrolls under it */
.pill-flight { position: fixed; z-index: 24; margin: 0; pointer-events: none; }

/* a headline of several sentences: a line each, the last in violet, at the waitlist's size so the first sentence holds
   one line beside the stacks */
.hero-title .ln { display: block; }
.hero-title .ln-last { color: var(--violet); }
.hero-title:has(.ln) { font-size: clamp(34px, 3.9vw, 56px); max-width: none; }

/* ----- The two stacks of vertical videos, high and to the outside of the headline ----- */
.hero-stack { position: absolute; z-index: 0; top: clamp(-14px, -1vh, 0px); width: clamp(190px, 18.5vw, 290px); height: clamp(330px, 32vw, 500px); }
.hero-stack[data-side="left"] { left: max(4px, calc(50% - 470px - clamp(190px, 18.5vw, 290px))); }
.hero-stack[data-side="right"] { right: max(4px, calc(50% - 470px - clamp(190px, 18.5vw, 290px))); }
.hero { padding-top: clamp(56px, 11vh, 120px); }

/* <cg-video-stack> (../../simple/stack/stack.js) is one card, placed where the front card sits; its fan, glow and shuffle reach
   outward of it */
.hero { --cg-card-w: clamp(126px, 12.6vw, 190px); }
.hero-stack > cg-video-stack { position: absolute; top: 50%; translate: 0 -50%; }
.hero-stack[data-side="left"] > cg-video-stack { right: 8%; }
.hero-stack[data-side="right"] > cg-video-stack { left: 8%; }

/* Until a stack's front poster is in, a skeleton card holds the front card's place (the stack's card: 9:16, its
   corners 9.5% of its width, tilted outward) */
.hero-skel { position: absolute; top: 50%; width: var(--cg-card-w); aspect-ratio: 9 / 16; translate: 0 -50%; --r: calc(var(--cg-card-w) * 0.095); }
.hero-stack[data-side="left"] > .hero-skel { right: 8%; rotate: -8.5deg; }
.hero-stack[data-side="right"] > .hero-skel { left: 8%; rotate: 8.5deg; }

/* ---------- Sections ---------- */

.lp-sec { width: min(var(--lp-col), calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.lp-sec + .lp-sec { margin-top: clamp(88px, 12vh, 140px); }
.lp-h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; font-weight: 660; letter-spacing: -0.03em; text-align: center; text-wrap: balance; }
.lp-line { margin-top: 12px; font-size: 17px; color: var(--ink-2); text-align: center; }

/* How it works: one raised panel in three steps, each shown with the product's own piece */
.how-steps {
  list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 30px; background: linear-gradient(180deg, oklch(100% 0 0 / 0.86), oklch(99.4% 0.003 286 / 0.66));
  box-shadow: 0 0 0 1px oklch(30% 0.04 280 / 0.06), 0 1px 2px oklch(30% 0.04 280 / 0.04), 0 30px 70px -44px oklch(32% 0.1 284 / 0.32);
}
.how-step { display: grid; grid-template-rows: auto auto 1fr; align-content: start; padding: 28px 30px 32px; }
.how-step + .how-step { box-shadow: inset 1px 0 0 var(--hair); }
.how-step h3 { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 0; font-size: 19px; line-height: 1.3; font-weight: 640; letter-spacing: -0.018em; }
.how-n { flex: none; font-size: 15px; font-weight: 650; color: var(--violet-ink); font-variant-numeric: tabular-nums; }
.how-step p { margin: 8px 0 0 24px; color: var(--muted); font-size: 15px; }
.how-pic { position: relative; height: 216px; border-radius: 20px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(70% 70% at 50% 60%, color-mix(in oklch, var(--aura-2) 18%, transparent), transparent 72%), var(--well); }
/* 1: a fan of three template covers */
.how-pick .fan { position: relative; width: 210px; height: 180px; }
.how-pick img { position: absolute; left: 50%; top: 50%; width: 92px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 11px; translate: -50% -50%;
  box-shadow: 0 0 0 2px oklch(100% 0 0 / 0.8), 0 14px 26px -12px oklch(20% 0.06 280 / 0.5); transition: transform 520ms var(--spring); }
.how-pick img:nth-child(1) { transform: translateX(-62px) rotate(-10deg) scale(0.92); }
.how-pick img:nth-child(2) { transform: translateX(62px) rotate(10deg) scale(0.92); }
.how-pick img:nth-child(3) { transform: translateY(-6px); z-index: 1; }
.how-step:hover .how-pick img:nth-child(1) { transform: translateX(-74px) rotate(-13deg) scale(0.92); }
.how-step:hover .how-pick img:nth-child(2) { transform: translateX(74px) rotate(13deg) scale(0.92); }
/* 2: the box with a template and a product photo in it */
.how-photo .mini {
  width: 86%; padding: 14px; border-radius: 20px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; min-height: 120px;
  background: linear-gradient(180deg, oklch(100% 0 0 / 0.88), oklch(100% 0 0 / 0.7));
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px oklch(52% 0.12 286 / 0.1), 0 0 24px -6px oklch(70% 0.16 290 / 0.34), 0 22px 44px -24px oklch(42% 0.2 286 / 0.4);
}
.how-photo .tag { height: 40px; }
.how-photo .tag-thumb { width: 32px; height: 32px; }
.how-photo .tag-label { max-width: 160px; padding-right: 10px; }
.how-photo .mini-line { flex-basis: 100%; padding: 6px 6px 0; color: var(--faint); font-size: 14.5px; text-align: left; }
/* 3: several takes of one template, side by side */
.how-versions .takes { display: flex; gap: 10px; }
.how-versions figure { margin: 0; display: grid; gap: 7px; justify-items: center; }
.how-versions .take { position: relative; width: 78px; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: oklch(22% 0.02 280);
  box-shadow: 0 10px 22px -12px oklch(20% 0.06 280 / 0.5); }
.how-versions .take img, .how-versions .take video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.how-versions figcaption { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
/* in horizontal: wide covers, fanned up and down, and three wide takes */
[data-format="h"] .how-pick .fan { width: 260px; }
[data-format="h"] .how-pick img { width: 168px; aspect-ratio: 16 / 9; border-radius: 10px; }
[data-format="h"] .how-pick img:nth-child(1) { transform: translate(-40px, -44px) rotate(-5deg) scale(0.88); }
[data-format="h"] .how-pick img:nth-child(2) { transform: translate(40px, 44px) rotate(5deg) scale(0.88); }
[data-format="h"] .how-pick img:nth-child(3) { transform: none; }
[data-format="h"] .how-step:hover .how-pick img:nth-child(1) { transform: translate(-50px, -50px) rotate(-7deg) scale(0.88); }
[data-format="h"] .how-step:hover .how-pick img:nth-child(2) { transform: translate(50px, 50px) rotate(7deg) scale(0.88); }
[data-format="h"] .how-versions .takes { width: min(300px, 92%); }
[data-format="h"] .how-versions figure { flex: 1 1 0; min-width: 0; }
[data-format="h"] .how-versions .take { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; }

/* The template rows: the home's own panel and cards */
.lp-sec-head { margin-bottom: 30px; }

/* ----- What one second of video costs: cheapgc first, then the others from cheapest to dearest, as bars on one
   scale with the price at each bar's tip and the multiple of cheapgc's price on the right ----- */
.px { width: min(920px, calc(100% - 2 * var(--gutter))); }
.px .lp-sec-head { display: grid; justify-items: center; }
.px-pill { margin-bottom: 18px; }
.px .lp-h2:focus { outline: none; }
.px-panel {
  padding: 18px 30px 22px; border-radius: 30px; background: linear-gradient(180deg, oklch(100% 0 0 / 0.86), oklch(99.4% 0.003 286 / 0.66));
  box-shadow: 0 0 0 1px oklch(30% 0.04 280 / 0.06), 0 1px 2px oklch(30% 0.04 280 / 0.04), 0 30px 70px -44px oklch(32% 0.1 284 / 0.32);
}
.px-table { width: 100%; border-collapse: collapse; }
.px-row > * { height: 48px; padding: 0; vertical-align: middle; transition: background-color 200ms var(--ease); }
.px-row[hidden] { display: none; }
.px-row + .px-row > * { box-shadow: inset 0 1px 0 var(--hair); }
.px-row > :first-child { width: 176px; padding-left: 14px; border-radius: 14px 0 0 14px; text-align: left; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.px-row > :last-child { width: 150px; padding-right: 14px; border-radius: 0 14px 14px 0; text-align: right; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.px-row:hover > * { background: var(--well); }
.px-row:hover + .px-row > * { box-shadow: none; }
.px-row:has(+ .px-row:hover) > * { box-shadow: none; }
.px-cell { display: flex; align-items: center; gap: 12px; }
/* bars on one scale, reaching at most the width the price label leaves; a 4px round end, square at the baseline */
.px-bar {
  flex: none; clip-path: inset(0 0 0 0); height: 16px; width: calc((100% - 76px) * var(--w)); min-width: 6px; border-radius: 0 4px 4px 0; background: oklch(84% 0.013 286);
  transition: background-color 200ms var(--ease), clip-path 950ms var(--ease) calc(var(--i) * 80ms);
}
.px-row:hover .px-bar { background: oklch(76% 0.02 286); }
.px-val { font-size: 15px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: opacity 400ms var(--ease) calc(420ms + var(--i) * 80ms); }
.px-row.is-us .px-bar { background: var(--violet); }
.px-row.is-us .px-val { color: var(--ink); font-weight: 700; }
.px-row.is-us > :first-child { font-size: 18px; font-weight: 700; letter-spacing: -0.035em; }
.px-row.is-us .lp-brand span { color: var(--violet); }
/* the bars grow from the baseline the first time the comparison is reached (landing.js sets these) */
.px.is-waiting:not(.is-shown) .px-bar { clip-path: inset(0 100% 0 0); }
.px.is-waiting:not(.is-shown) .px-val { opacity: 0; }
/* Show all: a quiet row-wide button at the table's foot */
.px-more {
  display: flex; align-items: center; gap: 6px; width: 100%; height: 44px; margin-top: 2px; padding: 0 14px; border-radius: 14px;
  box-shadow: inset 0 1px 0 var(--hair); color: var(--violet-ink); font-size: 15px; font-weight: 600; transition: background-color 200ms var(--ease);
}
.px-more:hover { background: var(--well); }
.px-more svg { width: 18px; height: 18px; transition: rotate 300ms var(--ease); }
.px-more[aria-expanded="true"] svg { rotate: 180deg; }
.px-source { margin: 14px 14px 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.px .lp-line { text-wrap: balance; }

/* Why is this so cheap? A quiet play link under the line; the founder's video opens in a dialog grown out of it */
.px-why {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; margin-top: 18px; padding: 0 18px 0 7px; border-radius: var(--r-pill);
  color: var(--violet-ink); font-size: 15px; font-weight: 620; background: oklch(100% 0 0 / 0.72); box-shadow: inset 0 0 0 1px var(--violet-line);
  transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.px-why:hover { background: var(--violet-soft); box-shadow: inset 0 0 0 1px var(--violet-line), 0 10px 24px -14px oklch(45% 0.2 286 / 0.5); }
.px-why-play { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--violet); transition: scale 260ms var(--spring); }
.px-why:hover .px-why-play { scale: 1.08; }
.px-why-play svg { width: 14px; height: 14px; margin-left: 2px; }
.why { width: min(880px, calc(100vw - 32px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: none; overflow: visible; }
.why::backdrop { background: oklch(17% 0.046 271 / 0.46); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.why-card { padding: 12px 14px 14px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-pop); }
.why-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 12px 8px; }
.why-t { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.why-close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); transition: background-color 160ms, color 160ms; }
.why-close:hover { background: var(--well); color: var(--ink); }
.why-close svg { width: 20px; height: 20px; }
/* the frame, until the video is filmed: the wordmark on the violet glass of the home box's glow */
.why-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--violet-soft); }
.why-still {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(40% 60% at 22% 60%, var(--aura-1), transparent 74%), radial-gradient(44% 70% at 80% 38%, var(--aura-2), transparent 74%),
    radial-gradient(50% 50% at 52% 100%, var(--aura-3), transparent 74%), radial-gradient(46% 46% at 60% 0%, var(--aura-4), transparent 74%), var(--violet-soft);
}
.why-still::before {   /* the glass */
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, oklch(100% 0 0 / 0.5), oklch(100% 0 0 / 0.3));
  backdrop-filter: blur(30px) saturate(1.4); -webkit-backdrop-filter: blur(30px) saturate(1.4);
}
.why-still .wordmark { position: relative; font-size: clamp(30px, 5vw, 52px); gap: 0.32em; }
.why-still .wordmark svg { width: 1.05em; height: 1.05em; }
@media (max-width: 760px) {
  .why-card { padding: 8px 10px 10px; border-radius: 22px; }
  .why-frame { border-radius: 14px; }
}
/* The rows span the page as on the home, open (the default) or on the panel (html.rows-open, set in index.html) */
.lp-templates { width: 100%; }
.lp-templates .rows { margin-top: 0; }
/* The tabs over the strip: the Templates page's category tabs (app.css .cat-tabs), the chosen one raised as there,
   with the strip's arrows at the right; on a phone the tabs scroll sideways to the screen's edges */
.lp-tabbar { gap: 16px; }
.lp-tabs { position: relative; flex: 1 1 auto; min-width: 0; margin-left: -2px; scroll-padding-inline: 2px; }
.lp-tabs a { font-size: 15px; }
.lp-tabs a[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair-2), 0 1px 2px oklch(25% 0.04 280 / 0.05); }
.lp-tabs a:focus-visible { outline-offset: -2px; }
/* the strip and, until it loads, its skeleton share one grid cell, so the skeleton fades out over it */
.lp-panel { display: grid; grid-template-columns: minmax(0, 1fr); }
.lp-panel > .track { grid-area: 1 / 1; }
.lp-panel > .track.is-skel { overflow: hidden; pointer-events: none; }
@media (max-width: 760px) {
  .lp-tabbar { padding: 0; }
  .lp-tabs { margin-left: 0; padding: 2px var(--gutter); scroll-padding-inline: var(--gutter); }
  .lp-tabs a { padding: 10px 14px; }
}

/* The wordmark set in text (the comparison's first row) */
.lp-brand { font-size: 1.3em; line-height: 1; font-weight: 650; letter-spacing: -0.055em; }
.lp-brand span { font-weight: 900; color: var(--violet); }

/* The last word: one button */
.lp-end { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 14px; padding: clamp(40px, 7vh, 72px) 0 8px; text-align: center; }
.lp-end::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(760px, 100%); height: 260px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklch, var(--aura-1) 22%, transparent), color-mix(in oklch, var(--aura-4) 14%, transparent) 60%, transparent); filter: blur(30px); }
.lp-end-t { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.06; font-weight: 680; letter-spacing: -0.04em; }
.lp-end-price { color: var(--ink-2); font-size: 17px; }
.lp-end-go { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 14px; margin-top: 8px; }

.lp-foot { display: flex; justify-content: center; gap: 22px; padding: 72px var(--gutter) 40px; font-size: 13px; color: var(--muted); }
.lp-foot a:hover { color: var(--ink); }

/* ---------- 1100 px and down ---------- */

@media (max-width: 1100px) {
  .hero-stack { width: clamp(150px, 19vw, 210px); height: clamp(270px, 34vw, 380px); top: -8px; }
  .hero-stack[data-side="left"] { left: max(-36px, calc(50% - 400px - 19vw)); }
  .hero-stack[data-side="right"] { right: max(-36px, calc(50% - 400px - 19vw)); }
  .hero-words { max-width: 600px; }
  .how-steps { grid-template-columns: minmax(0, 1fr); }
  .how-step + .how-step { box-shadow: inset 0 1px 0 var(--hair); }
  .how-step { grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 28px; align-items: center; padding: 22px; }
  .how-pic { grid-row: span 2; height: 190px; }
  .how-step h3 { margin-top: 0; align-self: end; }
  .how-step p { align-self: start; }
}

/* ---------- Phone ---------- */

@media (max-width: 760px) {
  .hero { padding-top: 28px; padding-bottom: 64px; }
  .hero-title { font-size: clamp(32px, 9.4vw, 40px); line-height: 1.04; }
  .hero-title:has(.ln) { font-size: clamp(29px, 8.4vw, 36px); letter-spacing: -0.055em; }
  .hero-words { gap: 14px; }
  .hero-box { margin-top: 26px; }
  .lp-box .compose-field { min-height: 72px; }
  .lp-under { margin-top: 16px; }
  .lp-browse { height: 42px; padding: 0 10px 0 14px; font-size: 14.5px; }
  .trail-box { top: -96px; height: 160px; }
  .hero-trail ts-light-trail { --lt-band: 160px; --lt-floor: 10px; --lt-hx: 0.85; --lt-hy: 1.1; --lt-hdx: -10px; }

  /* two smaller stacks side by side above the headline */
  .hero { padding-top: 250px; }
  .hero-stack { top: 6px; width: 46vw; height: 236px; }
  .hero-stack[data-side="left"] { left: 2vw; }
  .hero-stack[data-side="right"] { right: 2vw; }
  .hero { --cg-card-w: clamp(92px, 25vw, 112px); }
  .hero-stack[data-side="left"] > cg-video-stack { right: 18%; }
  .hero-stack[data-side="right"] > cg-video-stack { left: 18%; }
  .hero-stack[data-side="left"] > .hero-skel { right: 18%; }
  .hero-stack[data-side="right"] > .hero-skel { left: 18%; }

  .lp-sec + .lp-sec { margin-top: 72px; }
  .how-steps { margin-top: 24px; border-radius: 24px; }
  .how-step { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 22px; }
  .how-pic { grid-row: auto; height: 180px; }
  .how-step h3 { margin-top: 18px; font-size: 17.5px; }
  .how-step p { margin-left: 23px; }
  .lp-sec-head { margin-bottom: 20px; }
  /* the comparison as a list: name and multiple on a line, the bar and its price under them */
  .px { width: calc(100% - 2 * var(--gutter)); }
  .px-panel { padding: 8px 18px 18px; border-radius: 24px; }
  .px-table, .px-table tbody { display: block; }
  .px-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: 11px 0 10px; }
  .px-row[hidden] { display: none; }
  .px-row + .px-row { box-shadow: inset 0 1px 0 var(--hair); }
  .px-row > *, .px-row + .px-row > * { height: auto; box-shadow: none; padding: 0; border-radius: 0; }
  .px-row > :first-child, .px-row > :last-child { width: auto; padding: 0; }
  .px-row > .px-on { grid-column: 1 / -1; grid-row: 2; margin-top: 7px; }
  .px-more { padding: 0; border-radius: 0; }
  .px-more:hover { background: none; }
  .px-row:hover > * { background: none; }
  .px-source { margin: 12px 0 0; }
  .lp-end-go { width: 100%; }
  .lp-foot { padding-bottom: 28px; }
}

/* ---------- Leaving for the home, and coming back (the cross-document view transition) ----------
   On a navigation to the home the box, its glow and the trail carry over by name; the rest of the hero clears away.
   The animations of the way in are the home's (arrive.css); those of the way back are below. */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
html.is-leaving .lp-box .compose, html.is-returning .lp-box .compose { view-transition-name: cgc-box; }
html.is-leaving .lp-box .aura, html.is-returning .lp-box .aura { view-transition-name: cgc-aura; }
html.is-leaving .lp-box .compose-bar, html.is-returning .lp-box .compose-bar { view-transition-name: cgc-bar; }
html.is-leaving .trail-box, html.is-returning .trail-box { view-transition-name: cgc-trail; }
html.is-leaving .lp-under, html.is-returning .lp-under { view-transition-name: cgc-under; }
html.is-leaving .hero-words, html.is-returning .hero-words { view-transition-name: land-words; }
html.is-leaving .hero-pill, html.is-returning .hero-pill { view-transition-name: land-pill; }
html.is-leaving .hero-stack[data-side="left"], html.is-returning .hero-stack[data-side="left"] { view-transition-name: land-stack-l; }
html.is-leaving .hero-stack[data-side="right"], html.is-returning .hero-stack[data-side="right"] { view-transition-name: land-stack-r; }
/* Leaving from further down the page (a template card) the hero is off screen: none of it is named, so the home's box
   comes in where it sits while the card flies into it (html.is-leaving-far, arrive.css) */

/* The way back from the home (Back): the box glides down into the hero, the home's rows sink, the hero returns */
html:active-view-transition-type(cgc-return) {
  &::view-transition-group(*) { animation-duration: 680ms; animation-timing-function: cubic-bezier(0.5, 0, 0.12, 1); }
  /* opacity-only cross-fades with the blend set outright, as on the way in (arrive.css) */
  &::view-transition-old(*) { animation-name: lp-fade-out; mix-blend-mode: plus-lighter; }
  &::view-transition-new(*) { animation-name: lp-fade-in; mix-blend-mode: plus-lighter; }
  &::view-transition-group(topbar) { z-index: 60; }
  &::view-transition-group(cgc-bar) { z-index: 31; }
  &::view-transition-group(cgc-box) { z-index: 30; }
  &::view-transition-group(cgc-under) { z-index: 29; }
  &::view-transition-old(cgc-bar), &::view-transition-new(cgc-bar), &::view-transition-old(cgc-under), &::view-transition-new(cgc-under) { mix-blend-mode: normal; }
  &::view-transition-old(cgc-bar), &::view-transition-old(cgc-under) { animation: lp-fade-out 150ms linear both; }
  &::view-transition-new(cgc-bar) { animation: lp-fade-in 280ms 150ms var(--ease) both; }
  &::view-transition-new(cgc-under) { animation: lp-fade-in 320ms 240ms var(--ease) both; }
  &::view-transition-old(root) { animation: lp-fade-out 220ms var(--ease) both; }
  &::view-transition-new(root) { animation: lp-fade-in 420ms 160ms var(--ease) both; }
  &::view-transition-old(cgc-rows) { animation: lp-sink 420ms cubic-bezier(0.4, 0, 1, 1) both; }
  &::view-transition-old(cgc-title) { animation: lp-fade-out 200ms var(--ease) both; }
  &::view-transition-new(land-words) { animation: lp-words-in 560ms 160ms cubic-bezier(0.2, 0, 0, 1) both; }
  &::view-transition-new(land-pill) { animation: lp-fade-in 520ms 200ms var(--ease) both; }
  &::view-transition-new(land-stack-l) { animation: lp-stack-in-l 720ms 120ms cubic-bezier(0.2, 0, 0, 1) both; }
  &::view-transition-new(land-stack-r) { animation: lp-stack-in-r 720ms 180ms cubic-bezier(0.2, 0, 0, 1) both; }
}
@keyframes lp-fade-out { to { opacity: 0; } }
@keyframes lp-fade-in { from { opacity: 0; } }
@keyframes lp-sink { to { opacity: 0; transform: translateY(90px); } }
@keyframes lp-words-in { from { opacity: 0; transform: translateY(-18px); } }
@keyframes lp-stack-in-l { from { opacity: 0; transform: translateX(-120px) rotate(-8deg) scale(0.94); } }
@keyframes lp-stack-in-r { from { opacity: 0; transform: translateX(120px) rotate(8deg) scale(0.94); } }

@media (prefers-reduced-motion: reduce) {
  .how-pick img { transition: none; }
}
