/* waycrest.dev product pages, design 2.1.0 "Product pages" (waycrest-brand-ux sites/waycrest/product-pages.md).
   Loaded after home.css, which has the base, the header, the footer, the buttons and the pop-ups.
   Calm pages of words and pictures: white in light, true black in dark, like the text pages. A product's own colour is
   a small hint only (its buttons, links and labels), and comes in through --p, --p-fill and --p-on, set on <body>.
   Sizes are the spec's px at 1440 wide. Colours come only from /design/site.css. Movement is 0.24s ("Crisp"). */

.product { --p: var(--ink); --p-fill: var(--ink); --p-on: var(--page); --crisp: var(--move-crisp) var(--ease-land); overflow-x: clip; }
.product.on-mail { --p: var(--mail-ember); --p-fill: var(--mail-ember); --p-on: var(--mail-on-ember); }
.product.on-pick { --p: var(--pick-ink); --p-fill: var(--pick-fill); --p-on: #fff; }
.product [hidden] { display: none !important; }

/* Movement (product-pages.md section 9). Only opacity and transform move, so nothing shifts the page.
   - Arriving: each part of a section rises 16 and fades in once, as it comes up the window, the parts that come
     together 70ms apart (product.js). It never plays again on the way back up. The opening waits for its fonts and
     pictures, then settles the same way, so nothing appears after it.
   - Between the Tackle pages the header stays where it is and the rest cross-fades, where the browser can.
   - Reduced motion: nothing travels; a short fade at most. Without JavaScript everything is simply there. */
.js [data-arr] > *, .js [data-arr-one] { opacity: 0; transform: translateY(16px); transition: opacity var(--move-arrive) ease-out, transform var(--move-arrive) var(--ease-land); }
.js [data-arr] > .in, .js [data-arr-one].in { opacity: 1; transform: none; }
.js [data-arr] > .now, .js [data-arr-one].now { transition: none; }
@view-transition { navigation: auto; }
.product .top { view-transition-name: site-top; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--move-crisp); animation-timing-function: ease-out; }
::view-transition-group(site-top) { animation: none; }

/* the header: the text pages' header, with the three apps and the page's one action */
.product .top::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; background: linear-gradient(var(--page), transparent); pointer-events: none; }
.apps { margin-left: auto; display: flex; gap: 28px; font: 600 15px/1 var(--font-text); }
.apps a { color: var(--mut); text-decoration: none; padding: 12px 0; transition: color var(--crisp); }
.apps a:hover, .apps [aria-current="page"] { color: var(--ink); }
.top .btn { margin-left: 12px; }

/* buttons: the product's colour for the one that matters, an outline for the other */
.product .btn { transition: background-color var(--crisp), box-shadow var(--crisp), transform var(--crisp), opacity var(--crisp); }
.product .btn:active { transform: scale(.98); }
.btn.fill { background: var(--p-fill); color: var(--p-on); }
.btn.fill:hover { background: color-mix(in srgb, var(--p-fill) 88%, var(--ink)); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; margin-left: -2px; }
button.btn { border: 0; cursor: pointer; }
.product .btn.big { border-radius: var(--radius-button); padding: 0 26px; }

/* the opening: the app's mark and name, one headline, one line, the buttons, then the app itself */
.p-hero { padding-top: 72px; text-align: center; display: grid; justify-items: center; }
.p-app { display: inline-flex; align-items: center; gap: 12px; font: 600 17px/1.2 var(--font-text); }
.p-app img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line); }
.p-app img.mark { width: 44px; height: 39px; border-radius: 0; box-shadow: none; }
.chip { font-style: normal; font: 600 13px/1 var(--font-text); border-radius: 999px; padding: 6px 11px; color: var(--mut); box-shadow: inset 0 0 0 1.5px var(--line); white-space: nowrap; }
.product h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: .96; letter-spacing: -.04em; font-weight: 600; max-width: 14ch; margin-top: 28px; text-wrap: balance; }
.p-lead { color: var(--mut); font-size: 20px; line-height: 1.45; max-width: 46ch; margin-top: 24px; text-wrap: pretty; }
.p-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.p-small { color: var(--mut); font-size: 14.5px; line-height: 1.5; margin-top: 18px; text-wrap: balance; }
.p-small a, .f-copy p a, .ans a, .p-note a { color: var(--p); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.p-small a:hover, .f-copy p a:hover, .ans a:hover, .p-note a:hover { text-decoration-thickness: 2px; }

/* a stage: the quiet ground a picture sits on. Pictures keep their own shape (width and height are in the markup),
   so nothing moves as they load. A Mac picture is a window; a phone picture is a screen. */
.p-stage { background: var(--stage); border-radius: var(--radius-panel); overflow: clip; }
.shot { display: block; position: relative; }
.shot img, .shot video { display: block; width: 100%; height: auto; background: var(--page); }
/* a Mac window: its own corner, a hairline, and the two shadows a window has (a tight one and a wide soft one) */
.shot.mac img, .shot.mac video { border-radius: 12px; box-shadow: 0 0 0 1px var(--frame-line), 0 2px 6px rgba(16, 17, 20, .06), 0 28px 70px rgba(16, 17, 20, .16); }
/* a phone: the screen inside a thin dark body, as a phone looks from the front */
.shot.phone { container-type: inline-size; isolation: isolate; padding: 2.6%; }
.shot.phone::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 30px; border-radius: 14cqw; background: var(--frame-body); box-shadow: inset 0 0 0 1px var(--frame-edge), 0 2px 6px rgba(16, 17, 20, .08), 0 26px 60px rgba(16, 17, 20, .18); }
.shot.phone img, .shot.phone video { border-radius: 24px; border-radius: 11.4cqw; }
/* a marketing picture or promo clip that already shows its own phone: a plain rounded card, as on the home page */
.shot.card { container-type: inline-size; }
.shot.card img, .shot.card video { border-radius: 22px; border-radius: 8.5cqw; box-shadow: 0 0 0 1px var(--frame-line), 0 2px 6px rgba(16, 17, 20, .06), 0 26px 60px rgba(16, 17, 20, .16); }
/* the Mac window on its own soft ground: the picture is the stage, edge to edge (never a ground inside a ground) */
.shot.wall img, .shot.wall video { background: var(--stage); }
.hero-stage.full, .wide-stage.full { padding: 0; }
/* a Mac clip plays over its poster, which is its own first frame, so starting shows no cut (product.js) */
[data-clip] video { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
[data-clip].playing video { opacity: 1; }
.hero-stage { position: relative; width: 100%; margin-top: 64px; padding: 56px 56px 0; overflow: hidden; }
.hero-stage .mac { width: 100%; }
.hero-stage .mac img, .hero-stage .mac video { border-radius: 12px 12px 0 0; }
/* the phone stands over the window's lower right corner (its holder is placed; the phone inside keeps its own frame) */
.hero-stage .beside { position: absolute; right: 4.5%; bottom: 7%; width: 17%; }
/* an app with phone pictures only: its clip in the middle, a screen a little lower on each side */
.hero-stage.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; align-items: start; padding: 56px 17% 88px; }
.hero-stage.trio .shot { position: relative; right: auto; bottom: auto; width: auto; }
.hero-stage.trio .shot:not(:nth-child(2)) { margin-top: 32px; }

/* one idea at a time: words on one side, the picture on the other, turning sides down the page */
.p-sec { padding: 72px 0; }
.p-hero + .p-sec, .p-hero + .wrap > .p-sec:first-child, .suite + .p-sec { padding-top: 144px; }
.p-hero > h1:first-child { margin-top: 0; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .f-copy { order: 2; }
.f-copy { max-width: 460px; }
.feature.flip .f-copy { justify-self: end; }
.eyebrow { color: var(--p); font: 600 15px/1.2 var(--font-text); }
.product h2 { font: 600 clamp(30px, 3.5vw, 48px)/1.04 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.eyebrow + h2 { margin-top: 14px; }
.f-copy > p:not(.eyebrow), .p-head > p:not(.eyebrow) { color: var(--mut); font-size: 18px; line-height: 1.55; margin-top: 18px; text-wrap: pretty; }
.f-pts { margin-top: 24px; }
.f-pts li { padding: 11px 0; border-top: 1.5px solid var(--line); font-size: 16.5px; line-height: 1.45; text-wrap: pretty; }
.f-pts li:last-child { border-bottom: 1.5px solid var(--line); }
.f-media { padding: 40px; }
.f-media.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; padding: 48px 15% 88px; align-items: start; }
.f-media.phones .shot:nth-child(2) { top: 40px; }
.f-media.one { grid-template-columns: minmax(0, 1fr); padding: 48px 30%; }

/* a clip's Play and Pause, as on the home page (home.js) */
.shot .pp { right: 10px; bottom: 10px; }
.shot.phone .pp { right: 7%; bottom: 3.6%; }
.shot.card .pp { right: 12px; bottom: 12px; }

/* a section with its words above and something wide under them: the Mac, privacy, where it runs, questions */
.p-head { max-width: 760px; }
.p-head > p:not(.eyebrow) { max-width: 620px; }
.p-head.mid > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
.p-head.mid { margin: 0 auto; text-align: center; }
.wide-stage { margin-top: 48px; padding: 56px 56px 0; overflow: hidden; }
.wide-stage .mac img, .wide-stage .mac video { border-radius: 12px 12px 0 0; }
.keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; margin-top: 40px; }
.keys li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1.5px solid var(--line); font-size: 16.5px; line-height: 1.3; }
.keys li:nth-last-child(-n + 4) { border-bottom: 1.5px solid var(--line); }
kbd { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 9px; border-radius: 9px; background: var(--stage); box-shadow: inset 0 0 0 1px var(--line); font: 600 15px/1 var(--font-text); color: var(--ink); white-space: nowrap; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 48px; }
.facts li { padding: 22px 0 26px; border-top: 1.5px solid var(--line); }
.product h3 { font: 600 18px/1.3 var(--font-text); }
.facts p { color: var(--mut); font-size: 16.5px; line-height: 1.5; margin-top: 8px; text-wrap: pretty; }
.p-note { color: var(--mut); font-size: 16.5px; line-height: 1.5; margin-top: 8px; max-width: 62ch; text-wrap: pretty; }
.keys + .p-note { margin-top: 22px; }
.p-note.after-stage { margin-top: 24px; }
.p-note kbd { margin: 0 1px; }
.facts + .p-note { margin-top: 0; padding-top: 22px; border-top: 1.5px solid var(--line); max-width: none; }

.where { margin-top: 40px; }
.where li { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 0; border-top: 1.5px solid var(--line); }
.where li:last-child { border-bottom: 1.5px solid var(--line); }
.where p { color: var(--mut); font-size: 16.5px; line-height: 1.5; text-wrap: pretty; }
.where .btn { min-width: 192px; justify-content: center; }

/* questions: a ruled list that opens */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.split .qa { margin-top: 0; }
.qa { margin-top: 40px; }
.qa details { border-top: 1.5px solid var(--line); }
.qa details:last-child { border-bottom: 1.5px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; font: 600 18px/1.3 var(--font-text); cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px; border: solid var(--mut); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform var(--crisp); }
.qa details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.qa summary:focus-visible { outline-offset: -3px; border-radius: 10px; }
.ans { color: var(--mut); font-size: 16.5px; line-height: 1.55; padding: 0 48px 22px 0; max-width: 68ch; text-wrap: pretty; }
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa details::details-content { block-size: 0; overflow: clip; transition: block-size var(--crisp), content-visibility var(--crisp) allow-discrete; }
  .qa details[open]::details-content { block-size: auto; }
}

/* the closing band, and the other apps */
.band { padding: 72px 40px; text-align: center; display: grid; justify-items: center; }
.band p { color: var(--mut); font-size: 18px; line-height: 1.5; margin-top: 14px; max-width: 44ch; text-wrap: pretty; }
.others { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 0 0 40px; font: 600 15px/1.2 var(--font-text); }
.others span { color: var(--mut); font-weight: 400; }
.others a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 8px 0; }
.others a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.others img { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.product .foot { padding-top: 40px; }

/* the suite: three apps side by side, each with its mark, one line and its page */
.suite { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.suite li { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 32px 32px 0; }
.suite .p-app img { width: 48px; height: 48px; border-radius: 13px; }
.suite h2 { font: 600 30px/1.08 var(--font-display); letter-spacing: -.03em; margin-top: 22px; text-align: left; }
.suite h2 a { text-decoration: none; }
.suite h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-panel); } /* the whole tile is the link */
.suite p.line1 { color: var(--mut); font-size: 17px; line-height: 1.5; margin-top: 10px; min-height: 4.5em; text-align: left; text-wrap: pretty; }
.suite .go { color: var(--p); font: 600 15px/1.2 var(--font-text); margin-top: 16px; text-align: left; }
.suite .go { display: flex; align-items: center; gap: 6px; }
.suite .go svg { width: 16px; height: 16px; transition: transform var(--crisp); }
.suite li:hover .go svg { transform: translateX(4px); }
.suite .shot { width: 70%; margin: 32px auto -34%; transition: transform var(--crisp); }
.suite li:hover .shot { transform: translateY(-8px); }
.suite li:has(a:focus-visible) { outline: 3px solid var(--sun); outline-offset: 3px; }
.suite h2 a:focus-visible { outline: none; }
.suite .s-ai { --p: var(--ink); }
.suite .s-mail { --p: var(--mail-ember); }
.suite .s-pick { --p: var(--pick-ink); }

/* the Mac download: a text page with one field, the first-open steps under it, and the app beside it */
.dl { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 72px; align-items: start; padding-top: 72px; padding-bottom: 96px; }
.dl .doc { padding: 0; }
.dl .doc h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1; letter-spacing: -.035em; max-width: none; margin-top: 26px; }
.dl .doc h2 { font: 600 24px/1.15 var(--font-display); letter-spacing: -.02em; }
.dl-side { position: sticky; top: 112px; overflow: hidden; }
.dl-side { padding: 0; aspect-ratio: 10 / 9; }
.dl-side .wall img { width: 190%; max-width: none; margin: -7% 0 0 -7%; }
/* it runs off to the right and the bottom, and fades into the page there rather than ending on a cut */
.dl-side::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, transparent 70%, var(--page) 99%), linear-gradient(to bottom, transparent 74%, var(--page) 99%); }
.dl-meta { color: var(--mut); font-size: 14.5px; line-height: 22px; min-height: 22px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.dl-meta span { opacity: 0; transition: opacity var(--crisp); }
.dl-meta span.set { opacity: 1; }
/* The form and what follows it share one place, so the page under them never moves: asking, checking, an error
   (its line is always kept), then "Your download has started", which fades in where the form was. */
.dl-swap { display: grid; margin-top: 32px; }
.dl-swap > * { grid-area: 1 / 1; }
.dl-form { display: grid; align-content: start; transition: opacity .16s ease-out, visibility 0s .16s; }
.dl-form.gone { opacity: 0; visibility: hidden; }
.dl-form .err { min-height: 21px; margin-top: 8px; line-height: 21px; }
.dl-form .note { margin-top: 8px; }
/* the bot check takes no room unless it has to show itself, so starting it moves nothing */
.dl-form .ts { display: block; }
.dl .doc .dl-form .btn { margin-top: 24px; }
.dl-form .lbl2 { color: var(--ink); font-size: 15px; }
.dl-form .note { color: var(--mut); font-size: 15.5px; line-height: 1.5; }
.dl-form .note a { color: var(--p); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.dl-form .btn { justify-self: start; min-width: 232px; justify-content: center; }
.dl-form .btn:disabled { opacity: .6; cursor: progress; }
.dl-done { align-self: start; padding: 28px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--crisp) .14s, transform var(--crisp) .14s, visibility 0s .14s; }
.dl-done.on { opacity: 1; visibility: visible; transform: none; transition: opacity var(--crisp) .14s, transform var(--crisp) .14s, visibility 0s; }
.dl-done h2 { font: 600 24px/1.15 var(--font-display); letter-spacing: -.02em; margin: 0; }
.dl-done h2:focus { outline: none; }
.dl-done p { color: var(--mut); margin-top: 10px; }
.dl-done p + p { margin-top: 10px; }
.dl-done a { color: var(--p); }
.dl .doc ol li > span { display: block; }
.dl .doc ol li b { font-weight: 600; }

@media (prefers-color-scheme: dark) {
  /* no shadow shows on black: the hairline does the work */
  .shot.mac img, .shot.mac video { box-shadow: 0 0 0 1px var(--frame-line); }
  .shot.phone::before { box-shadow: inset 0 0 0 1px var(--frame-edge); }
  .shot.card img, .shot.card video { box-shadow: 0 0 0 1px var(--frame-line); }
}

@media (max-width: 1100px) {
  .feature, .split { gap: 48px; }
  .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keys li:nth-last-child(-n + 4) { border-bottom: 0; }
  .keys li:nth-last-child(-n + 2) { border-bottom: 1.5px solid var(--line); }
  .dl { grid-template-columns: minmax(0, 560px); }
  .dl-side { display: none; }
  .suite { gap: 16px; }
  .suite li { padding: 24px 24px 0; }
}
@media (max-width: 900px) {
  .apps { display: none; }
  .top .btn { margin-left: auto; }
  .p-hero { padding-top: 40px; }
  .hero-stage { margin-top: 48px; padding: 20px 20px 0; border-radius: 22px; }
  .hero-stage .beside { right: 4%; bottom: 6%; width: 20%; }
  .hero-stage.full, .wide-stage.full { padding: 0; }
  .hero-stage.trio { gap: 20px; padding: 28px 7% 48px; }
  .hero-stage.trio .shot:not(:nth-child(2)) { margin-top: 20px; }
  .p-sec { padding: 44px 0; }
  .p-hero + .p-sec, .p-hero + .wrap > .p-sec:first-child, .suite + .p-sec { padding-top: 88px; }
  .feature, .feature.flip, .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature.flip .f-copy { order: 0; justify-self: start; }
  .f-copy { max-width: 560px; }
  .f-media { padding: 20px; border-radius: 22px; }
  .f-media.phones { padding: 32px 14% 64px; gap: 24px; }
  .f-media.phones .shot:nth-child(2) { top: 32px; }
  .f-media.one { padding: 32px 32%; }
  .wide-stage { margin-top: 32px; padding: 20px 20px 0; border-radius: 22px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .where li { grid-template-columns: 110px minmax(0, 1fr); gap: 6px 20px; }
  .where .btn { grid-column: 2; justify-self: start; margin-top: 8px; }
  .band { padding: 56px 24px; border-radius: 22px; }
  .suite { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .suite p.line1 { min-height: 0; }
  .suite .shot { width: 52%; margin-bottom: -30%; }
  .dl { padding-top: 40px; padding-bottom: 64px; }
}
@media (max-width: 640px) {
  .p-lead { font-size: 18px; }
  .p-cta { width: 100%; }
  .p-cta .btn { flex: 1 1 100%; justify-content: center; }
  .f-copy > p:not(.eyebrow), .p-head > p:not(.eyebrow), .band p { font-size: 17px; }
  .f-media.phones { padding: 24px 8% 48px; gap: 16px; }
  .f-media.phones .shot:nth-child(2) { top: 24px; }
  .f-media.one { padding: 24px 22%; }
  .shot.mac img, .shot.mac video { border-radius: 8px; }
  .hero-stage .mac img, .hero-stage .mac video, .wide-stage .mac img, .wide-stage .mac video { border-radius: 8px 8px 0 0; }
  .hero-stage .beside { right: 4%; bottom: 7%; width: 23%; }
  .hero-stage.trio { gap: 10px; padding: 20px 4% 32px; }
  .hero-stage.trio .shot:not(:nth-child(2)) { margin-top: 12px; }
  .keys { grid-template-columns: minmax(0, 1fr); }
  .keys li:nth-last-child(-n + 2) { border-bottom: 0; }
  .keys li:last-child { border-bottom: 1.5px solid var(--line); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li { padding: 18px 0 20px; }
  .where li { grid-template-columns: minmax(0, 1fr); }
  .where .btn { grid-column: 1; width: 100%; }
  .qa summary { font-size: 17px; padding: 18px 0; }
  .ans { padding-right: 0; }
  .dl-form .btn { width: 100%; }
  .dl-meta { min-height: 44px; }
  .dl-form .err { min-height: 42px; }
  .others { gap: 8px 22px; }
  .others span { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-arr] > *, .js [data-arr-one] { transform: none; transition: opacity var(--move-crisp) ease-out; }
  .product .btn, .apps a, .qa summary::after, .suite .shot, .suite .go svg { transition: none; }
  .product .btn:active, .suite li:hover .shot, .suite li:hover .go svg { transform: none; }
  .qa details::details-content { transition: none; }
  .dl-done { transform: none; }
}
