/* chordal.io landing page — CHORDAL brand (chordal-SVELTE/BRAND-STYLE-GUIDE.md): flat #595959, #ffed68 yellow,
   #e0d15e button yellow, #000 panels, ADLaM Display, radius ladder 50 / 35 / 12. */
@font-face {
  font-family: 'ADLaM Display';
  font-weight: 400;
  font-display: block;
  src: url('../ADLaM-Display-Regular.woff2') format('woff2'), url('../ADLaM-Display-Regular.ttf') format('truetype');
}
:root {
  --bg: #595959;
  --yellow: #ffed68;
  --yellow-fill: #e0d15e;
  --panel: #000;
  --body: #d0d0d0;
  --muted: #999;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-chordal: 'ADLaM Display', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
body { background: var(--bg); color: #fff; font-family: var(--font); font-weight: 300; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
main { max-width: 1000px; margin: 0 auto; padding: 48px 16px 24px; }

.hero { text-align: center; padding: 24px 0 32px; }
.brand { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.brand .logo { width: 84px; height: 84px; }
.brand .word { display: flex; flex-direction: column; align-items: flex-end; }
.wordmark { font-family: var(--font-chordal); color: var(--yellow); font-size: var(--fs-xxl); line-height: 1; }
.by { font-family: var(--font-chordal); color: #ffffbb99; font-size: var(--fs-xs); }
h1 { font-weight: 300; letter-spacing: 0.06em; font-size: var(--fs-title); margin-bottom: 14px; }
.lede { color: var(--body); max-width: 640px; margin: 0 auto 28px; font-size: var(--fs-m); }

.buy { display: inline-flex; flex-direction: column; align-items: center; gap: 16px; background: var(--panel); border-radius: 35px; padding: 24px 28px; max-width: 100%; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; justify-content: center; }
.price .amount { font-family: var(--font-chordal); font-size: var(--fs-xxl); color: var(--yellow); line-height: 1; }
.price .note { color: var(--muted); font-size: var(--fs-s); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  font-family: var(--font-chordal);
  font-size: var(--fs-l);
  background: var(--yellow-fill);
  color: #595959;
  border: 1px solid var(--yellow-fill);
  border-radius: 50px;
  height: 58px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--yellow); border-color: #979797; }

.shot-wrap { padding: 16px 0; }
.shot { border-radius: 12px; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px 0; }
.points > div { background: var(--panel); border-radius: 35px; padding: 22px 24px; }
.points h2 { font-family: var(--font-chordal); font-weight: 400; color: var(--yellow); font-size: var(--fs-l); margin-bottom: 6px; }
.points p { color: var(--body); font-size: var(--fs-s); }

footer { text-align: center; padding: 32px 16px 40px; color: #aaa; font-size: var(--fs-xs); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 16px; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; }
footer nav a, footer nav button { color: #ccc; text-decoration: none; border-bottom: 1px solid #777; padding-bottom: 2px; }
footer nav button { font: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
footer p { margin-bottom: 6px; }
footer p a { text-decoration: underline; }
footer .small { color: #8a8a8a; font-size: var(--fs-xs); line-height: 1.7; }

/* Privacy choices panel (js/site.js) */
.privacy-panel { position: fixed; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 420px; background: #000; color: #fff; border: 1px solid #979797; border-radius: 12px; padding: 18px 20px; z-index: 2000; text-align: left; }
.privacy-panel[hidden] { display: none; }
.privacy-panel h2 { font-size: var(--fs-s); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.privacy-panel p { font-size: var(--fs-xs); color: #ccc; margin-bottom: 12px; }
.privacy-panel a { color: #5eb5e0; }
.privacy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; border: 1px solid #979797; border-radius: 50px; overflow: hidden; }
.seg button { font: inherit; font-size: var(--fs-xs); background: transparent; color: #ddd; border: 0; padding: 6px 16px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--yellow-fill); color: #3a3a3a; }
.privacy-panel .close { font: inherit; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; background: none; color: #ccc; border: 1px solid #777; border-radius: 50px; padding: 6px 16px; cursor: pointer; }
.privacy-panel .status { font-size: var(--fs-xs); color: #999; min-height: 1em; }

@media (max-width: 700px) {
  main { padding-top: 32px; }
  .points { grid-template-columns: 1fr; }
  .buy { padding: 22px 18px; width: 100%; }
  .btn { width: 100%; max-width: 320px; }
  .actions { width: 100%; flex-direction: column; align-items: center; }
}

/* Brand pass (James 11 Nov 2026): ADLaM everywhere, yellow headings, outlined screenshots */
body, button { font-family: var(--font-chordal); font-weight: 400; }
h1, h2, h3 { font-family: var(--font-chordal); font-weight: 400; color: var(--yellow); letter-spacing: 0; }
.shot-wrap { padding: 28px 0; margin: 16px 0; background: #000; box-shadow: 0 0 0 100vmax #000; clip-path: inset(0 -100vmax); }
/* Privacy settings panel: yellow border, yellow centred Done (James 11 Nov 2026) */
.privacy-panel { border-color: #ffed68; }
.privacy-panel .close { display: block; margin: 4px auto 0; background: #ffed68; color: #595959; border: 0; padding: 7px 22px; }
.privacy-panel .close:hover { background: #fff27a; color: #333; }
.privacy-panel h2 { color: #ffed68; }
/* Footer links yellow, no underline, pipes between (James 11 Nov 2026) */
footer nav { gap: 8px 12px; }
footer nav a, footer nav button { color: #ffed68; border-bottom: 0; }
footer nav a:hover, footer nav button:hover { color: #fff27a; }
footer nav > * + *::before { content: "|"; margin-right: 12px; color: #ffed68; }
/* Type scale, same steps as signalrecords.co.uk (James 11 Nov 2026) */
:root { --fs-xs: 0.8rem; --fs-s: 0.9rem; --fs-m: 1rem; --fs-l: 1.15rem; --fs-xxl: 2.4rem; --fs-title: clamp(1.8rem, 6vw, 3rem); }
/* Running text in Helvetica Neue Light, as on signalrecords.co.uk; ADLaM stays for headings, wordmark, prices, buttons (James 12 Nov 2026) */
p, li, td, th, dd, dt, blockquote, figcaption { font-family: var(--font); font-weight: 300; }
/* Logo lockup = the app's splash screen (chordal-SVELTE index.html #splash): no gap, icon 84px,
   wordmark 34px, byline 9px #ffffbb44 tucked under it, set in from the right (James 12 Nov 2026) */
.brand { gap: 8px; }
.brand .logo { width: auto; height: 84px; margin-top: 6px; }
.brand .word { margin-top: 12px; align-items: flex-end; }
.brand .wordmark { font-size: 34px; line-height: 1; }
.brand .by { font-size: 9px; color: #ffffbb44; margin-top: 2px; padding-right: 1.6em; line-height: 1.2; }
/* Logo 30% bigger (James 12 Nov 2026) */
.brand { gap: 10px; }
.brand .logo { height: 109px; margin-top: 8px; }
.brand .word { margin-top: 16px; }
.brand .wordmark { font-size: 44px; }
.brand .by { font-size: 12px; margin-top: 3px; }
/* Price + BUY NOW on one line, spaced like the signalrecords.co.uk home/Software pages; More scrolls down this page */
.buy-line { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; width: 100%; }
.buy .price { display: inline-flex; align-items: center; gap: 4px; }
.buy .price .note { position: relative; top: 2px; } /* optical nudge: ADLaM sits high */
.buy > .btn.ghost { width: 100%; }
html { scroll-behavior: smooth; }
/* Buy box copied exactly from signalrecords.co.uk/store/chordal/ (computed px values) (James 12 Nov 2026) */
.buy-panel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 32px; padding: 22px 28px; border-radius: 35px; background: #000; width: 100%; max-width: 968px; margin: 0 auto; text-align: left; }
.buy-panel .buy-price { display: flex; align-items: center; gap: 4px; justify-self: start; }
.buy-panel .buy-price strong { font-family: var(--font-chordal); font-weight: 400; font-size: 43.2px; line-height: 1; color: #ffed68; }
.buy-panel .price-note { font-family: var(--font-chordal); font-size: 11.52px; color: #999; position: relative; top: 2px; }
.buy-panel .btn-stadium { justify-self: center; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-chordal); font-size: 20.16px; height: 64px; padding: 0 40px; border-radius: 50px; background: #e0d15e; color: #595959; border: 1px solid #e0d15e; text-decoration: none; white-space: nowrap; }
.buy-panel .btn-stadium:hover { filter: brightness(1.1); }
.buy-panel .buy-note { justify-self: end; margin: 0; text-align: right; font-family: var(--font-chordal); font-weight: 400; font-size: 11.52px; line-height: 1.5; color: #999; }
.buy-panel .guarantee-link { color: #ffed68; text-decoration: underline; }
@media (max-width: 768px) {
  .buy-panel { grid-template-columns: 1fr; justify-items: center; }
  .buy-panel .buy-price, .buy-panel .buy-note { justify-self: center; text-align: center; }
}
.buy-panel span.guarantee-link { text-decoration: none; color: inherit; }
/* Hero backdrop: zoomed, blurred, greyscale app shot at 50% over #595959, parallax via inline script (James 12 Nov 2026) */
html, body { overflow-x: hidden; }
.hero { position: relative; isolation: isolate; }
.hero-bg { position: absolute; z-index: -1; top: -72px; bottom: -16px; left: 50%; width: 100vw; margin-left: -50vw; overflow: hidden; pointer-events: none; }
.hero-bg-img { position: absolute; inset: -60px; background: url('../images/main-chord-pads.webp') center center / auto 240% no-repeat; filter: blur(15px) grayscale(100%) brightness(0.4); opacity: 0.5; transform: scale(1.1); will-change: transform; }
/* Backdrop runs behind the whole page (all grey zones); the black screenshot bands cover it (James 12 Nov 2026) */
body { position: relative; isolation: isolate; }
.hero-bg { top: 0; bottom: 0; left: 0; width: 100%; margin-left: 0; }
.hero-bg-img { background-size: auto 1900px; background-position: center center; }
/* Backdrop as 3 separate tiles: hero, feature boxes, footer; each its own centred copy (James 12 Nov 2026) */
.hero, .points, footer { position: relative; }
.hero { isolation: auto; }
.hero-bg { top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; }
.hero > .hero-bg { top: -72px; bottom: -16px; }
.points > .hero-bg { top: -16px; bottom: -16px; }
footer > .hero-bg { top: -40px; bottom: 0; }
.hero-bg-img { inset: -400px -60px; }
.points > .hero-bg { background: none; border-radius: 0; padding: 0; }
/* Pre-blurred, pre-darkened greyscale backdrop file: no live CSS blur (James 12 Nov 2026) */
.hero-bg-img { background-image: url('../images/hero-backdrop.webp'); filter: none; }
/* Main screenshot band sits inside the hero: logo/headline, screenshot, lede, buy bar (12 Nov 2026) */
.hero .shot-wrap { margin: 24px 0 28px; }
.hero h1 { white-space: nowrap; font-size: clamp(1rem, 4.6vw, 2.6rem); }
/* Screenshot, lede and buy bar share one black band (12 Nov 2026) */
.hero .shot-wrap { padding-bottom: 28px; padding-top: 28px; }
.hero .shot-wrap .buy-panel { margin-top: 12px; }
.hero .shot-wrap + .lede { margin: 28px auto 0; }
.buy-panel .buy-note { color: #ffed68; }
/* Headline and store tagline share one size: 30.88px (12 Nov 2026) */
.hero h1 { font-size: clamp(1rem, 4.6vw, 30.88px); }

/* link from the short io page to the full store page (12 Nov 2026) */
.more-link { margin: 14px auto 0; text-align: center; font-family: var(--font-chordal); font-size: var(--fs-s); letter-spacing: 0.04em; }
.more-link a { color: var(--yellow); text-decoration: none; }
.more-link a:hover { color: #fff27a; text-decoration: underline; text-underline-offset: 4px; }
.hero .shot-wrap + .lede { max-width: 960px; font-weight: bold; }
.more-link { margin-top: 20px; }
.more-link a { display: inline-flex; align-items: center; height: 48px; padding: 0 28px; border-radius: 50px; background: #000; color: var(--yellow); }
.more-link a:hover { color: #fff27a; text-decoration: none; filter: brightness(1.15); }
.more-link a { height: 64px; padding: 0 40px; font-size: 20.16px; font-weight: 400; letter-spacing: normal; }
footer { padding-bottom: 62px; }
.hero .shot-wrap { padding-bottom: 20px; }
.hero .shot-wrap .buy-panel { margin-top: 20px; }
.hero .shot-wrap + .lede { margin-top: 45px; }
.more-link a { box-sizing: border-box; padding: 0; justify-content: center; width: 220px; }
.more-link { margin-top: 12px; margin-bottom: 56px; } /* first thing in the footer, on its backdrop (which starts where the video's black band ends) */
.hero .tagline { font-size: clamp(1rem, 4.6vw, 30.88px); margin: 44px auto 0; }
.hero .tagline + .lede { margin-top: 14px; max-width: 960px; font-weight: bold; }
.hero .tagline + .lede-list { display: table; max-width: 960px; margin: 14px auto 0; text-align: left; font-weight: bold; list-style: disc; padding-left: 1.2em; }
.hero .lede-list li { font-weight: bold; }
.hero .lede-list li + li { margin-top: 4px; }
.hero .pcr { margin: 18px auto 0; color: #fff; font-weight: bold; font-size: var(--fs-m); }
.hero .shot-wrap .buy-panel .buy-note { margin-right: -28px; }
.hero .lede-list .adv summary { cursor: pointer; list-style: none; }
.hero .lede-list .adv summary::-webkit-details-marker { display: none; }
.hero .lede-list .adv summary:hover { color: #fff; }
.hero .lede-list .adv ul { list-style: circle; padding-left: 1.2em; margin-top: 4px; }
.hero .lede-list .adv ul li + li { margin-top: 2px; }
.hero .lede-list li.adv { list-style: none; position: relative; }
.hero .lede-list .adv summary::before { content: "\25BE"; color: var(--yellow); transition: transform 0.15s; }
.hero .lede-list .adv details[open] summary::before { transform: rotate(180deg); }
.hero .lede-list .adv ul li::marker { color: var(--yellow); }
.hero .lede-list .adv ul { list-style: disc; color: var(--yellow); }
/* main bullets and the toggle arrow share one centred marker column */
.hero .tagline + .lede-list { list-style: none; padding-left: 1.2em; }
.hero .lede-list > li { position: relative; }
.hero .lede-list .adv summary::before { position: absolute; left: -1.2em; width: 1.2em; text-align: center; }
.hero .lede-list > li:not(.adv)::before { content: ""; position: absolute; left: calc(-0.6em - 2.5px); top: calc(0.8em - 2.5px); width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.hero .lede-list .aside { color: #999; }
.hero .lede-list .adv ul { font-size: 0.9em; padding-left: 2.6em; }
/* features block: width = the heading; bullets start at the heading's left edge, long lines run on to the right */
.hero .feat { display: table; margin: 44px auto 0; }
.hero .feat .tagline { margin-top: 0; text-align: left; }
.hero .feat .tagline + .lede-list { display: block; width: 0; max-width: none; margin-left: 0; padding-left: 0; white-space: nowrap; }
.hero .feat .lede-list > li { margin-left: 1.2em; }
@media (max-width: 900px) {
  .hero .feat { display: block; }
  .hero .feat .tagline { text-align: center; }
  /* sized to its longest line and centred; it fills the width (left-aligned) only once a line must wrap (James 17 Nov 2026) */
  .hero .feat .tagline + .lede-list { display: table; width: auto; margin-left: auto; margin-right: auto; white-space: normal; }
}
.hero .feat .lede-list > li:not(.adv)::before { left: -1.2em; }
.hero .feat .lede-list .adv summary::before { left: -1.2em; width: auto; text-align: left; }
/* hero loop cursor (James 12 Nov 2026) */
.ui-stage { position: relative; container-type: inline-size; }
.ui-cursor { position: absolute; width: 1.9%; min-width: 11px; pointer-events: none; transition: left 0.75s cubic-bezier(.45,0,.25,1), top 0.75s cubic-bezier(.45,0,.25,1), opacity 0.2s; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.45)); transform-origin: 0 0; }
.ui-cursor.press { animation: ui-press 0.3s ease-out; }
@keyframes ui-press { 0% { transform: scale(1); } 35% { transform: scale(0.82); } 100% { transform: scale(1); } }
.ui-cursor.off { opacity: 0; }
/* key box (James 25 Nov): same size + place as the store page's key ticker (bottom-left, flush, square, 2.5em tall = 6.8% of the shot width), one key at a time */
.ui-key { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 2.2em; height: 2.5em; padding: 0; text-align: center; background: #000; color: #fff; border-radius: 0; font-weight: bold; font-size: clamp(14px, 2.4vw, 30px); font-size: max(14.5px, 2.72cqw); line-height: 1; opacity: 0; pointer-events: none; }
.ui-key.on { animation: ui-key 1.2s ease-out forwards; }
@keyframes ui-key { 0% { opacity: 0; transform: scale(1.08); } 8% { opacity: 1; transform: scale(0.94); } 22% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
/* Narrow view only: asides and a few long bullets break onto a new line (James 12 Nov 2026) */
br.nb { display: none; }
@media (max-width: 900px) {
  .hero .lede-list .aside { display: block; }
  br.nb { display: inline; }
  .lede-list .nd { display: none; }
  /* lede-wrap.js: a phrase would wrap → no phrase breaks, balanced lines (James 17 Nov 2026) */
  .lede-list li.flow br.nb { display: none; }
  .hero .lede-list li.flow .aside { display: inline; }
  .lede-list li, .hero .lede-list .aside { text-wrap: balance; } /* no lone last word ("genre") */
  .lede-list li.flow .nd { display: inline; } /* flowed: keep the " –" before "patent pending" */
}
@media (max-width: 400px) {
  .lede-list li { font-size: 15px; } /* phones: 15px fits a few more words per line (James 17 Nov 2026) */
}
/* Stacked (narrow) buy panel: the price itself is centred, "+ local tax" hangs off its right (James 12 Nov 2026) */
@media (max-width: 768px) {
  .buy-panel .buy-price { position: relative; display: block; }
  .buy-panel .price-note { position: absolute; left: 100%; top: 50%; margin-left: 6px; transform: translateY(-50%); white-space: nowrap; }
}
/* Launch pricing + sales closed (A50), as the signalrecords.co.uk product page (James 17 Nov 2026; reverse at C27) */
.buy-panel .buy-price { flex-wrap: wrap; }
.buy-panel .price-note { white-space: nowrap; } /* "USD inc. tax" on one line */
.buy-panel .price-was { font-family: var(--font-chordal); font-size: 24px; color: #f06e6e; margin-right: 6px; }
.buy-panel .launch-counter, .buy-panel .launch-ends { flex-basis: 100%; margin: 4px 0 0; font-family: var(--font-chordal); font-size: 11.52px; color: #999; }
.buy-panel .launch-counter { color: #ffed68; }
.buy-panel .launch-counter.launch-teaser { color: #fff; }
.buy-panel .buy-cta { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.buy-panel .buy-coming { margin: 0; font-family: var(--font-chordal); font-size: 16px; letter-spacing: 0.04em; color: #f06e6e; white-space: nowrap; }
.buy-panel .buy-countdown { margin: -4px 0 0; font-family: var(--font-chordal); font-size: 13px; color: #fff; white-space: nowrap; }
.buy-panel .buy-countdown[hidden] { display: none; }
.buy-panel .cd-sec { display: inline-block; width: 1.3em; text-align: left; }
.buy-panel [data-chordal-tax-note] { color: #ffed68; } /* tax line / currency code in yellow (James 17 Nov 2026) */
/* Overview video: poster button + yellow play icon; the iframe keeps the same 16:9 box (22 Nov 2026) */
.video-poster { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; }
.video-poster .shot { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #313131; }
.video-play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: #ffed68; box-shadow: 0 4px 18px rgba(0,0,0,.45); transition: transform .15s; }
.video-play::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 18px 0 18px 30px; border-color: transparent transparent transparent #595959; }
.video-poster:hover .video-play, .video-poster:focus-visible .video-play { transform: scale(1.08); }
.video-poster:focus-visible { outline: 3px solid #ffed68; outline-offset: 4px; }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }
@media (max-width: 500px) { .video-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .video-play::after { left: 25px; top: 19px; border-width: 13px 0 13px 22px; } }
