/* Google Ads landing pages (content/ads.py): one colorful first screen each,
   approved by Olga 05–06.11.2026. Loaded only by those pages.
   Decor geometry comes from the brand covers (render_tiles.py) on a 1440×760
   stage; ads-landing.js sets --s / --m from the viewport width and --navh from
   the nav height, and sits the download buttons on the MacBook's base line. */

.promo-hero {
  position: relative; overflow: hidden;
  height: calc(100svh - var(--navh, 81px)); min-height: calc(520px * var(--s, 1));
  background: linear-gradient(135deg, rgb(250, 247, 242), rgb(239, 162, 59));
}
/* A landing with the comparison below: the first screen stops under the scaled
   stage instead of filling a tall window (Olga, 11.11.2026), low enough that the
   comparison heading shows on the first screen (Olga, 13.11.2026). */
.promo-hero.has-more { height: min(calc(100svh - var(--navh, 81px)), calc(700px * var(--s, 1))); }
.promo-hero .ad-stage {
  position: absolute; left: 0; top: 0; width: 1440px; height: 760px;
  transform-origin: 0 0; transform: scale(var(--s, 1));
}
.promo-hero .ptext {
  position: absolute; z-index: 70;
  left: calc(96px * var(--s, 1)); top: calc(150px * var(--s, 1)); width: calc(620px * var(--s, 1));
}
.promo-eyebrow {
  display: inline-block; font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  border-bottom: 2.5px solid #141414; padding-bottom: 8px; font-size: calc(14px * var(--s, 1));
}
.promo-hero h1 {
  font-weight: 800; font-size: calc(50px * var(--s, 1)); line-height: 1.06; letter-spacing: -.028em;
  margin: calc(30px * var(--s, 1)) 0 calc(22px * var(--s, 1)); text-align: left;
}
.promo-hero h1.h1-boring { margin-top: calc(54px * var(--s, 1)); margin-bottom: calc(16px * var(--s, 1)); }
/* The grooves page carries the most text (two-line headline, list, kit line):
   slightly smaller type and a text block that starts above the lid line keep
   the buttons on the MacBook's base line (approved by Olga, 07.11.2026). */
.promo-hero .ptext:has(h1.h1-boring) { top: calc(110px * var(--s, 1)); }
.promo-hero h1.h1-boring { font-size: calc(44px * var(--s, 1)); }
.promo-hero h1.h1-boring ~ .hero-points li { font-size: calc(20px * var(--s, 1)); }
.promo-hero h1.h1-boring ~ .ad-sub { font-size: calc(16px * var(--s, 1)); line-height: 1.55; }
.promo-hero .h1-answer {
  display: inline-block; white-space: nowrap; font-size: .8em; letter-spacing: -.02em; margin-top: .12em;
}
.promo-hero .nowrap { white-space: nowrap; }
.promo-hero .ad-sub {
  font-size: calc(18px * var(--s, 1)); line-height: 1.7; max-width: 29em; margin: 0; color: rgba(20, 20, 20, .82);
}
.promo-hero .hero-points {
  list-style: none; padding: 0; display: grid; gap: calc(3px * var(--s, 1));
  margin: calc(-8px * var(--s, 1)) 0 calc(12px * var(--s, 1));
}
.promo-hero .hero-points li {
  display: flex; align-items: center; gap: calc(12px * var(--s, 1));
  font-weight: 800; font-size: calc(22px * var(--s, 1)); letter-spacing: -.015em; line-height: 1.2;
}
/* green only: red and amber dots would echo the colour code of scored notes */
.promo-hero .pdot {
  flex: none; width: calc(14px * var(--s, 1)); height: calc(14px * var(--s, 1)); border-radius: 50%; background: #23A865;
}
.promo-hero .store-row { justify-content: flex-start; gap: 18px; margin-top: calc(40px * var(--s, 1)); }
.promo-hero .store-btn.mac { height: 66px; padding: 0 38px; font-size: 22px; border-radius: 15px; gap: 13px; }
.promo-hero .store-btn.mac svg { width: 22px; height: auto; }
.promo-hero .store-badge img { height: 66px; width: auto; }
/* "DMG · macOS 14+" under the Mac button: what the click downloads, before the click */
.promo-hero .mac-wrap { position: relative; display: inline-flex; }
.promo-hero .mac-note {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); text-align: center; white-space: nowrap;
  font-size: calc(12px * var(--s, 1)); font-weight: 600; color: rgba(20, 20, 20, .62);
}
.promo-hero .more-link-text {
  position: absolute; display: block; margin-top: calc(46px * var(--s, 1));
  font-weight: 700; font-size: calc(17px * var(--s, 1)); color: #141414;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}
.promo-hero .more-link-text:hover { color: #E0402E; }
/* "See why" on the Melodics page: the first screen's one action, a pill in ink
   with an arrow that nudges down, to the comparison (Olga, 12.11.2026). */
.promo-hero .see-why {
  display: inline-flex; align-items: center; gap: calc(14px * var(--s, 1));
  margin-top: calc(34px * var(--s, 1)); padding: calc(16px * var(--s, 1)) calc(30px * var(--s, 1));
  border-radius: 999px; background: #141414; color: #FAF7F2;
  font-weight: 800; font-size: calc(22px * var(--s, 1)); letter-spacing: -0.01em; text-decoration: none;
  box-shadow: 0 2px 12px rgba(20, 20, 20, 0.06);
}
.promo-hero .see-why:hover { background: #000; }
.promo-hero .see-why-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: calc(38px * var(--s, 1)); height: calc(38px * var(--s, 1)); border-radius: 50%;
  /* The green of the hero circles; red read as an error (Olga, 12.11.2026). */
  background: #23A865; color: #FAF7F2;
  animation: see-why-nudge 1.8s ease-in-out infinite;
}
.promo-hero .see-why-arrow svg { width: 60%; height: 60%; }
.promo-hero .see-why + .more-link-text { margin-top: calc(30px * var(--s, 1)); }
@keyframes see-why-nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .promo-hero .see-why-arrow { animation: none; } }
html { scroll-behavior: smooth; }
#vs { scroll-margin-top: var(--navh, 81px); }

/* the homepage's crossed-out "boring" with the handwritten "data-driven" */
.promo-hero .strike { position: relative; display: inline-block; }
.promo-hero .strike svg {
  position: absolute; left: -4%; top: 50%; width: 108%; height: .28em; margin-top: -.14em; pointer-events: none;
}
.promo-hero .strike-note {
  position: absolute; left: 4%; bottom: 96%;
  font-family: 'Caveat', cursive; font-weight: 700; font-size: .85em; line-height: 1; letter-spacing: .01em;
  color: #E0402E; transform: rotate(-4deg); white-space: nowrap;
}

/* drawn MacBook, flat: a 3D tilt resamples the video and blurs the notation */
.promo-hero .mbk { position: absolute; left: 735px; top: 150px; width: 560px; z-index: 64; }
.mbk-shadow {
  position: absolute; left: -4%; right: -4%; bottom: -9px; height: 16px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30, 20, 14, .34), rgba(30, 20, 14, 0)); filter: blur(3px);
}
.mbk-lid {
  position: relative; padding: 2px; border-radius: 20px 20px 6px 6px;
  background: linear-gradient(180deg, #eef0f1 0%, #c5c9cc 55%, #969da2 100%);
  box-shadow: 0 26px 40px -18px rgba(20, 20, 20, .45), 0 2px 3px rgba(20, 20, 20, .18);
}
.mbk-bezel { position: relative; background: #0c0c0e; border-radius: 18px 18px 4px 4px; padding: 13px 13px 20px; }
.mbk-cam {
  position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: #2a2c33; box-shadow: inset 0 0 1px #4a5060;
}
.mbk-screen {
  position: relative; aspect-ratio: 16 / 10; background: #F3EDE4; border-radius: 3px;
  overflow: hidden; display: flex; justify-content: center;
}
.mbk-screen video { height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.mbk-glare {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 38%);
}
.mbk-hinge { height: 5px; margin: 0 7%; background: linear-gradient(#3a3b40, #7d7f85); border-radius: 0 0 3px 3px; }
.mbk-base {
  position: relative; height: 13px; margin: -1px -7% 0;
  border-radius: 2px 2px 14px 14px / 2px 2px 13px 13px;
  background: linear-gradient(#f4f5f7 0%, #d9dade 35%, #b4b6bb 75%, #8f9196 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 3px rgba(30, 20, 14, .18), 0 9px 16px -6px rgba(30, 20, 14, .14);
}
.mbk-notch {
  position: absolute; bottom: 1px; left: 50%; width: 84px; height: 3px; transform: translateX(-50%);
  border-radius: 0 0 50% 50%; background: rgba(20, 24, 28, .16);
}

/* circles and drumsticks, stage coordinates */
.ad-stage .ad-circle { position: absolute; border-radius: 50%; }
.ad-stage .ad-c1 { left: -330px; top: -470px; width: 600px; height: 600px; z-index: 23; background: #EFA23B; }
.ad-stage .ad-c2 { left: -330px; top: 730px; width: 520px; height: 520px; z-index: 23; background: #141414; }
.ad-stage .ad-c3 { left: 640px; top: 720px; width: 300px; height: 300px; z-index: 30; background: #23A865; }
.ad-stage .ad-c4 { left: 1250px; top: 600px; width: 400px; height: 400px; z-index: 30; background: #141414; }
.ad-stage .ad-c5 { left: 710px; top: 45px; width: 600px; height: 600px; z-index: 35; background: #E34D4D; }
.ad-stage .ad-c6 { left: 1120px; top: -420px; width: 640px; height: 640px; z-index: 42; background: #23A865; }
.ad-stage .ad-stick { position: absolute; width: 604px; height: 20.3px; z-index: 63; }
.ad-stage .ad-stick img { display: block; width: 100%; height: 100%; }
.ad-stage .ad-stick1 { left: 575px; top: 250px; transform: perspective(1600px) rotateZ(-28deg); }
.ad-stage .ad-stick2 { left: 745px; top: 262px; transform: perspective(1600px) rotateY(13deg) rotateZ(-55deg); }

@media (max-width: 760px) {
  .promo-hero { height: auto; min-height: 0; padding-top: 28px; }
  .promo-hero .ptext { position: relative; left: auto; top: auto; width: auto; padding: 0 20px; }
  .promo-eyebrow { font-size: 12px; }
  .promo-hero h1 { font-size: 38px; margin: 32px 0 14px; }
  .promo-hero h1.h1-boring { margin-top: 46px; margin-bottom: 14px; font-size: 36px; }
  .promo-hero .ptext:has(h1.h1-boring) { top: auto; }
  .promo-hero h1.h1-boring ~ .hero-points li { font-size: 19px; }
  .promo-hero h1.h1-boring ~ .ad-sub { font-size: 16px; }
  .promo-hero .h1-answer { white-space: normal; }
  .promo-hero .ad-sub { font-size: 17px; }
  .promo-hero .hero-points li { font-size: 20px; }
  .promo-hero .pdot { width: 12px; height: 12px; }
  .promo-hero .store-row { margin-top: 22px; }
  .promo-hero .more-link-text { position: static; font-size: 16px; margin: 14px 0 6px; }
  .promo-hero.has-more { height: auto; }
  .promo-hero .see-why { margin-top: 26px; padding: 14px 26px; font-size: 19px; gap: 12px; }
  .promo-hero .see-why-arrow { width: 32px; height: 32px; }
  .promo-hero .see-why + .more-link-text { margin-top: 18px; }
  .promo-hero .mac-wrap { flex-direction: column; align-items: center; }
  .promo-hero .mac-note { position: static; margin-top: 3px; font-size: 11px; }
  .promo-hero .ad-stage-box { position: relative; height: calc(640px * var(--m, .5)); overflow: hidden; }
  .promo-hero .ad-stage {
    transform: translate(calc(-660px * var(--m, .5)), calc(-120px * var(--m, .5))) scale(var(--m, .5));
  }
}

/* Melodics landing on phones: the MacBook sits between the intro text and
   "See why", so the first screen shows the product before the button
   (Olga, 12.11.2026). Desktop keeps the side-by-side layout. */
@media (max-width: 760px) {
  .promo-hero:has(.see-why) { display: flex; flex-direction: column; }
  .promo-hero:has(.see-why) .ptext { display: contents; }
  .promo-hero:has(.see-why) .ptext > * { margin-left: 20px; margin-right: 20px; }
  .promo-hero:has(.see-why) h1 { order: 1; }
  .promo-hero:has(.see-why) .ad-sub { order: 2; }
  .promo-hero:has(.see-why) .ad-stage-box { order: 3; flex: none; margin-top: 14px; height: calc(500px * var(--m, .5)); }
  .promo-hero:has(.see-why) .see-why { order: 4; align-self: flex-start; margin-top: 8px; }
  .promo-hero:has(.see-why) .more-link-text { order: 5; align-self: flex-start; margin-bottom: 28px; }
}

/* Melodics landing: the same moment in both apps, two screenshots of equal size
   with the app named under each (Olga, 11.11.2026). Stacks on phones, ours first. */
.vs-pair { margin-top: clamp(40px, 6vh, 64px); }
.vs-pair h3 { margin: 0 0 16px; }
.vs-shots { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.vs-shots figure { margin: 0; }
.vs-shots .shot {
  /* Both screenshots sit in the same dark tablet bezel (ink #141414), so our
     light screen gets an edge on the cream page and the two read as devices. */
  margin-top: 0; border: clamp(6px, 0.9vw, 12px) solid #141414; border-radius: 18px;
  background: #141414; box-shadow: 0 2px 12px rgba(20,20,20,0.06);
}
.vs-shots .shot img { border-radius: 8px; }
.vs-shots figcaption {
  margin-top: 14px; font-style: normal; font-size: 16px; line-height: 1.5; color: var(--body);
  text-wrap: pretty;
}
.vs-shots figcaption b { font-weight: 800; color: var(--ink); }
@media (max-width: 640px) {
  .vs-shots { grid-template-columns: 1fr; }
}
.vs-cta { margin-top: clamp(40px, 6vh, 64px); }

/* Alternating bands under the pairs, in the hero's circle colours: each pair
   sits on a full-width tinted band (Olga, 11.11.2026; circles tried and
   dropped the same day). */
#vs { overflow: hidden; }
#vs .vs-pair {
  position: relative; isolation: isolate;
  padding: clamp(36px, 5vh, 56px) 0;
}
#vs .vs-pair::before {
  content: ""; position: absolute; z-index: -2; top: 0; bottom: 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw);
}
/* The first pair stays on the cream of the heading above it, so the heading
   belongs to it; the bands then alternate (Olga, 11.11.2026). */
#vs .vs-pair::before { background: transparent; }
#vs .vs-pair + .vs-pair::before { background: rgba(239, 162, 59, 0.16); }
#vs .vs-pair + .vs-pair + .vs-pair::before { background: transparent; }
#vs .vs-pair + .vs-pair { margin-top: 0; }
#vs .vs-cta { margin-top: clamp(36px, 5vh, 56px); }
/* Less empty cream above the first pair and above the table (Olga, 11.11.2026). */
#vs { padding-top: clamp(40px, 6vh, 64px); }
#vs .vs-label + .vs-pair { margin-top: 0; padding-top: 0; }
/* Positioning block between the intro and the comparison (Olga, 12.11.2026). */
/* Plain heading and paragraph: no accent bar, it read as generated layout
   (Olga, 12.11.2026). */
/* Second screen opens on what the app does, as a medium heading (Olga, 12.11.2026). */
#vs .vs-pitch-h {
  margin: 0 0 14px; font-size: clamp(30px, 3.4vw, 40px); font-weight: 800;
  line-height: 1.12; letter-spacing: -0.03em; color: #141414; text-wrap: balance;
}
#vs .vs-pitch-sub {
  margin: 0 0 clamp(48px, 7vh, 72px);
  font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: rgba(20, 20, 20, 0.72); text-wrap: pretty;
}
#vs .vs-label {
  display: inline-block; margin: 0 0 clamp(28px, 4vh, 40px); padding-bottom: 8px;
  border-bottom: 2.5px solid #141414;
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #141414;
}
#table { padding-top: clamp(48px, 7vh, 72px); }
/* Screenshot viewer (ads-landing.js): the screenshot opens full size. */
.vs-zoom { display: block; cursor: zoom-in; }
.vs-zoom:hover img { opacity: .94; }
.vs-viewer {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh;
  cursor: zoom-out;
}
.vs-viewer::backdrop { background: rgba(20, 20, 20, 0.86); }
.vs-viewer img {
  display: block; max-width: 96vw; max-height: 94vh; width: auto; height: auto;
  border-radius: 12px;
}
.vs-viewer:focus, .vs-viewer:focus-visible { outline: none; }

/* Comparison table on the Melodics page (Olga, 12.11.2026): no tint on our
   column, our name in the brand red instead, and solid verdict marks that read
   at a glance. Scoped to #table so the /compare/ pages keep their style. */
#table table.compare thead th.mine, #table table.compare td.mine { background: transparent; }
/* Both names alike, in ink: red read like an alert, green did not suit either
   (Olga, 12.11.2026). */
#table table.compare thead th.mine { color: var(--ink); }
#table .vs-price { margin: 0; padding: 0; list-style: none; }
#table .vs-price li { margin: 0 0 6px; line-height: 1.45; }
#table .vs-price li:last-child { margin-bottom: 0; }
#table td.mine .vs-price { color: var(--ink); font-weight: 600; }
#table .mark-icon { width: 26px; height: 26px; font-size: 15px; margin-top: -1px; }
#table .mark-yes .mark-icon, #table td.mine .mark-yes .mark-icon { background: #2E7D5B; color: #FFFFFF; }
#table .mark-no .mark-icon, #table td.mine .mark-no .mark-icon { background: #E0402E; color: #FFFFFF; }
#table .mark-part .mark-icon { background: #EFA23B; color: #141414; }
