/* waycrest.dev design 3.0.0 "Studio" (waycrest-brand-ux sites/waycrest/studio.md). Shared by the home page (e-studio.html) and the product pages
   (e-product-*.html). Fonts: Funnel Display / Funnel Sans (site.css). Colours: the site's tokens, with the page true
   black. One visual material: dots (studio.js). The home page shows the apps' icons as dots; a product page shows the
   app's real screens, and only its own accent. */

:root {
  color-scheme: dark;
  --page: #000;
  --ink: #f3f3f5;
  --mut: #8d9099;
  --line: #202127;
  --card: #0b0b0e;
  --card-line: #1b1c22;
  --on-ink: #000;               /* words on an --ink button */
  --mail-ember: #f0957a; --mail-on-ember: #2a0f07;
  --pick-ink: #ff4d5e;
  /* the wave's three stops: left, middle, right. Dark: white → sun → ember. */
  --w0: 255 255 255; --w1: 255 180 80; --w2: 255 120 95;
  --veil: rgba(0, 0, 0, .55);   /* under the hero's words */
  --wrap: 1320px; --gutter: 40px;
}
/* a light scheme, to compare. Not the default; the page opts in with html.light. */
html.light {
  color-scheme: light;
  --page: #fff; --ink: #101114; --mut: #5b5e66; --line: #e6e7ea; --card: #f4f5f7; --card-line: #e6e7ea; --on-ink: #fff;
  --mail-ember: #a8482b; --mail-on-ember: #fff; --pick-ink: #c8172b;
  --w0: 16 17 20; --w1: 255 159 10; --w2: 168 72 43;
  --veil: rgba(255, 255, 255, .6);
}

*, *::before, *::after { box-sizing: border-box; } * { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--page); color: var(--ink); font: 400 16px/1.5 var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, .logo, .num, .giant { font-family: var(--font-display); letter-spacing: -.035em; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
img, picture { display: block; max-width: 100%; }
img[width][height] { height: auto; }  /* the attributes keep layout from jumping; the width scales, the height follows */
canvas { display: block; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 600 12.5px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); margin-bottom: 14px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip-link:focus-visible { top: 12px; }
@media (max-width: 640px) { :root { --gutter: 20px; } }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 20; background: linear-gradient(var(--page) 40%, transparent); }
.top-in { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 19px; }
.logo img { width: 26px; height: 26px; border-radius: 7px; }
.nav { display: flex; gap: 26px; margin: 0 auto; font: 500 14.5px/1 var(--font-text); color: var(--mut); }
.nav a { padding: 10px 0; transition: color .24s; } .nav a:hover, .nav a[aria-current] { color: var(--ink); }
.top .btn { margin-left: auto; }
.nav + .btn { margin-left: 0; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 640px) { .top-in { height: 64px; } .logo span { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font: 600 14.5px/1 var(--font-text); white-space: nowrap; transition: transform .24s cubic-bezier(.2,.8,.2,1); }
.btn:hover { transform: translateY(-1px); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.big { height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 14px; }
.btn svg { width: 16px; height: 16px; }
.mail .btn.fill, .btn.mail { background: var(--mail-ember); color: var(--mail-on-ember); }
.pick .btn.fill, .btn.pick { background: var(--pick-fill); color: #fff; }
.ai .btn.fill, .btn.ai { background: var(--ink); color: var(--on-ink); }
@media (max-width: 640px) { .cta .btn, .act .btn { flex: 1 1 auto; justify-content: center; } }

/* hero: the wave, as dots */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 140px 0 72px; overflow: clip; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 22% 62%, var(--veil), transparent 70%); pointer-events: none; }
.hero-in { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(38px, 5.6vw, 82px); line-height: .98; font-weight: 600; max-width: 15ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--mut); }
.hero p { margin-top: 22px; max-width: 46ch; font-size: 18px; line-height: 1.5; color: var(--mut); text-wrap: pretty; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .side { display: grid; gap: 10px; justify-items: end; font: 500 13px/1.4 var(--font-text); color: var(--mut); text-align: right; }
.hero .side b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .hero-in { grid-template-columns: minmax(0, 1fr); } .hero .side { display: none; } }
@media (max-width: 640px) { .hero { min-height: 92svh; padding: 110px 0 48px; } .hero p { font-size: 16.5px; } }

/* sections */
.sec { padding: 96px 0 0; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 28px; }
.head h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.02; font-weight: 600; max-width: 18ch; text-wrap: balance; }
.head p { color: var(--mut); max-width: 44ch; font-size: 16px; text-wrap: pretty; }
@media (max-width: 900px) { .head { grid-template-columns: minmax(0, 1fr); gap: 12px; } .sec { padding-top: 72px; } }

/* the cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; min-height: 520px; display: flex; flex-direction: column; padding: 28px 28px 24px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); overflow: hidden; isolation: isolate; }
.card canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.card > *:not(canvas) { position: relative; z-index: 1; }
.card .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card h3 { font-size: 30px; line-height: 1.05; font-weight: 600; }
.card h3 small { display: block; margin-top: 6px; font: 400 15.5px/1.4 var(--font-text); color: var(--mut); letter-spacing: 0; max-width: 34ch; }
.card .num { font-size: 14px; color: var(--mut); letter-spacing: .04em; font-weight: 500; }
.card .mark { margin-top: 16px; display: flex; align-items: center; gap: 9px; font: 500 13px/1.3 var(--font-text); color: var(--mut); }
.card .mark img { width: 18px; height: 18px; border-radius: 5px; flex: none; }
.card .foot { margin-top: auto; padding-top: 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.card .runs { display: flex; flex-wrap: wrap; gap: 6px; }
.card .runs li { font: 500 12.5px/1 var(--font-text); color: var(--mut); padding: 7px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.card .runs li.on { color: var(--ink); }
.card .runs li em { font-style: normal; opacity: .75; }
.card .status { font: 500 12.5px/1 var(--font-text); color: var(--mut); margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.card .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--ink)); }
.card .act { display: flex; gap: 8px; flex-wrap: wrap; }
.card .btn { height: 40px; padding: 0 16px; }
.card.fbo { box-shadow: none; background: transparent; border: 1.5px dashed var(--line); }
.card.fbo h3 small { max-width: 40ch; }
.card.fbo .list { margin-top: 20px; display: grid; max-width: 36ch; }
.card.fbo .list li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--mut); }
.card.fbo .list li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } .card { min-height: 460px; } }
@media (max-width: 640px) { .card { min-height: 420px; padding: 22px 20px 20px; border-radius: 18px; } .card h3 { font-size: 26px; } .card h3 small { max-width: 26ch; } .card .act { width: 100%; } .card.fbo { min-height: 0; } }

/* Waycrest AI: the ground */
.ground { position: relative; margin-top: 16px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 44px; min-height: 420px; }
.ground canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ground > * { position: relative; }
.ground h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.04; font-weight: 600; max-width: 16ch; }
.ground p { margin-top: 16px; color: var(--mut); max-width: 46ch; text-wrap: pretty; }
.ground ul { align-self: end; display: grid; }
.ground li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; }
.ground li:last-child { border-bottom: 1px solid var(--line); }
.ground li img { width: 24px; height: 24px; border-radius: 7px; }
.ground li span { color: var(--mut); } .ground li b { color: var(--ink); font-weight: 600; }
.ground li em { font: 500 12px/1 var(--font-text); color: var(--mut); padding: 6px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-style: normal; }
@media (max-width: 900px) { .ground { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; min-height: 0; } }
@media (max-width: 640px) { .ground { padding: 26px 20px; border-radius: 18px; } .ground li span { font-size: 14px; } }

/* the close: a giant wordmark that leaves the page */
.close { position: relative; margin-top: 120px; padding-top: 48px; border-top: 1px solid var(--line); overflow: clip; }
.close .links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--mut); font-size: 14px; }
.close .links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.close .links a:hover { color: var(--ink); }
.giant { margin-top: 48px; font-size: clamp(96px, 23vw, 360px); line-height: .78; font-weight: 600; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--line); margin-bottom: -.14em; user-select: none; white-space: nowrap; }
/* one line always: studio.js sets --fit so the word spans the wrap; the stroke is 1px at any size */
.giant[style*="--fit"] { font-size: var(--fit); }
@media (max-width: 640px) { .close { margin-top: 80px; } .close .links { flex-direction: column; } }

/* ---- product pages (e-product-*.html): the app's real screens on the same black ---- */
.p-hero { padding: 150px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.p-hero .app { display: flex; align-items: center; gap: 12px; font: 600 15px/1 var(--font-text); }
.p-hero .app img { width: 40px; height: 40px; border-radius: 11px; }
.p-hero .app em { font: 500 12.5px/1 var(--font-text); color: var(--mut); padding: 7px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-style: normal; }
.p-hero h1 { margin-top: 26px; font-size: clamp(40px, 5.4vw, 76px); line-height: .98; font-weight: 600; text-wrap: balance; }
.p-hero p.lead { margin-top: 20px; color: var(--mut); font-size: 18px; max-width: 44ch; text-wrap: pretty; }
.p-hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.p-hero .runs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.p-hero .runs li { font: 500 12.5px/1 var(--font-text); color: var(--mut); padding: 7px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.p-hero .runs li.on { color: var(--ink); }
.p-hero .fine { margin-top: 14px; color: var(--mut); font-size: 13.5px; }
.p-hero .side { display: grid; gap: 8px; justify-items: end; text-align: right; font: 500 13px/1.4 var(--font-text); color: var(--mut); }
.p-hero .side b { color: var(--ink); }
.p-hero .side, .hero .side { min-width: 0; max-width: 100%; }
.p-hero .side span, .hero .side span { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
.p-hero > div:first-child { min-width: 0; }
/* the stage: the Mac window on a dot field, phones beside */
.stage { position: relative; margin-top: 56px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); overflow: hidden; padding: 0; isolation: isolate; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.stage .mac { position: relative; }
.stage .mac img { width: 100%; }
.stage .phone { position: absolute; right: 5%; bottom: 6%; width: 16%; border-radius: 6% / 3%; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 30px 70px rgba(0,0,0,.6); }
.stage .phone img { width: 100%; }
@media (max-width: 900px) { .p-hero { grid-template-columns: minmax(0, 1fr); padding-top: 120px; } .p-hero .side { display: none; } .stage .phone { display: none; } }
/* features: alternating rows, a phone or a Mac picture in a quiet card, the words beside */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 72px 0 0; }
.feat.flip .pic { order: 2; }
.feat h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.04; font-weight: 600; text-wrap: balance; }
.feat p { margin-top: 16px; color: var(--mut); font-size: 16.5px; max-width: 44ch; text-wrap: pretty; }
.feat ul { margin-top: 20px; max-width: 44ch; }
.feat li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--mut); }
.feat li:last-child { border-bottom: 1px solid var(--line); }
.feat li.next { color: var(--mut); } .feat li.next::before { content: "Next: "; color: var(--ink); font-weight: 600; }
.feat .pic { position: relative; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); padding: 40px 40px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: end; overflow: hidden; isolation: isolate; min-height: 580px; }
.feat .pic canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.feat .pic.one { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.feat .pic .ph { width: 100%; max-width: 224px; border-radius: 26px 26px 0 0; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 30px 60px rgba(0,0,0,.6); margin-bottom: -40px; }
.feat .pic .ph img { width: 100%; }
.feat .pic .ph + .ph { margin-bottom: -40px; }
.feat .pic .macw { width: 100%; grid-column: 1 / -1; }
.feat .pic:has(.macw) { padding: 0; min-height: 0; }
.feat .pic .macw img { width: 100%; }
@media (max-width: 900px) { .feat { grid-template-columns: minmax(0, 1fr); padding-top: 56px; gap: 24px; } .feat.flip .pic { order: 0; } .feat .pic { min-height: 0; padding: 28px 24px 0; } .feat .pic .ph { max-width: 180px; } }
/* framed marketing stills (public/shots, 540×960, their own ground): no card ground, no padding, two side by side */
.feat .pic.stills { background: none; box-shadow: none; padding: 0; min-height: 0; align-items: start; }
.feat .pic.stills .still { border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--card-line); }
.feat .pic.stills .still img { width: 100%; height: auto; }
.feat .pic.stills.one .still { max-width: 360px; }
.feat .pic.stills canvas { display: none; }
/* the band: get it */
.band { margin-top: 96px; position: relative; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); overflow: hidden; padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; isolation: isolate; }
.band canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.band h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.04; font-weight: 600; }
.band p { margin-top: 10px; color: var(--mut); max-width: 50ch; }
.band .cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .band { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; } }
/* the other apps, small, at the foot of a product page */
.others { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.others a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); transition: background .24s; }
.others a:hover { background: var(--card); }
.others img { width: 36px; height: 36px; border-radius: 10px; }
.others b { display: block; font-weight: 600; } .others small { color: var(--mut); font-size: 13.5px; }
.others span.go { color: var(--mut); }
@media (max-width: 900px) { .others { grid-template-columns: minmax(0, 1fr); } }

.foot-links { display: flex; gap: 18px; }
.linkish { border: 0; background: none; padding: 0; font-size: inherit; cursor: pointer; color: var(--mut); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.linkish:hover { color: var(--ink); }
.s-tag { position: fixed; left: 16px; bottom: 16px; z-index: 30; font: 600 12px/1 var(--font-text); letter-spacing: .04em; text-transform: uppercase; color: var(--on-ink); background: var(--ink); padding: 8px 10px; border-radius: 8px; opacity: .85; pointer-events: none; }
