/* DEM Audio — site stylesheet. Colours and sizes measured on the former WordPress site. */

@font-face { font-family: Inter; font-weight: 100; font-display: swap; src: url(/fonts/Inter-Thin.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 300; font-display: swap; src: url(/fonts/Inter-Light.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/Inter-Regular.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/Inter-Medium.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/Inter-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700 900; font-display: swap; src: url(/fonts/Inter-Bold.woff2) format("woff2"); }

:root {
  --bg: #080808;
  --text: #eaeaea;
  --white: #fff;
  --rouge: #b03737;
  --red-light: rgb(214, 47, 47);
  --red-dark: rgb(161, 25, 25);
  --red-grad: linear-gradient(0deg, var(--red-dark) 0%, var(--red-light) 100%);
  --glow: radial-gradient(var(--rouge) -100%, var(--bg) 60%);
  --line: #333;
  --content: 896px;
  --header-h: 102px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* animations and the glow must never widen the page on phones */
}
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all .3s ease; }
a:hover { color: var(--rouge); }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3, h4 { color: var(--white); margin: 0 0 15px; }
h1 { font-size: 56px; font-weight: 700; line-height: 1.2; letter-spacing: -2px; text-align: center; }
h2 { font-size: 45px; font-weight: 800; line-height: 1.2; letter-spacing: -1px; }
h3 { font-size: 28px; font-weight: 600; line-height: 1.3; letter-spacing: -.25px; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
.center { text-align: center; }
.prose > :last-child { margin-bottom: 0; }
.prose a { color: var(--rouge); }
.prose a:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 38px;
  background: rgba(10, 10, 10, .95);
}
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-bg linear both; animation-timeline: scroll(); animation-range: 0 120px; }
  @keyframes header-bg { from { background: rgba(10, 10, 10, 0); } to { background: rgba(10, 10, 10, .95); } }
}
.logo { margin-right: auto; }
.logo img { width: 180px; }
.nav { display: flex; gap: 32px; font-size: 18px; letter-spacing: .25px; color: var(--white); }
.nav a { padding: 6px 0; }
.mnav { display: none; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--white); border-radius: 30px;
  padding: 14px 26px;
  font: 500 18px/1 Inter, sans-serif; color: var(--white);
  background: transparent; cursor: pointer;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--white); color: var(--rouge); border-color: var(--white); }
.btn--header { font-size: 18px; padding: 14px 26px; }
.btn--red { background: var(--rouge); border-color: var(--rouge); }
.btn--buy {
  background: var(--rouge); border: 0; border-radius: 500px;
  padding: 18px 33px; font-size: 23.4px; font-weight: 800; gap: 15px;
}
.btn--buy svg { width: 26px; height: 24px; }

/* ---------- Hero + animated glow ---------- */
.blob {
  --speed: 7s;
  position: absolute; top: -48px; left: 0; right: 0; margin-inline: auto;
  width: min(926px, 72vw); height: 400px;
  z-index: -1; pointer-events: none;
  filter: blur(100px);
  background-image: radial-gradient(rgba(214, 47, 47, .8), var(--bg));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: blob var(--speed) cubic-bezier(.8, .2, .2, .8) alternate infinite;
}
@keyframes blob {
  0% { transform: scaleX(1.3); opacity: .3; }
  50% { transform: scaleX(1.5); opacity: .5; }
  100% { transform: scaleX(.9); opacity: .4; }
}
.hero { padding: 160px 20px 40px; text-align: center; animation: zoom-out .6s ease both; }
.hero--home { padding-top: 80px; min-height: 400px; }
.hero--home h1 { font-size: 65px; line-height: 1.2; }
.hero .rule { margin: 0 auto 15px; }
.hero p { font-size: 24px; color: var(--white); margin: 0; }
.rule { width: 142px; border: 0; border-top: 2px solid var(--rouge); margin: 0 auto; }
.hero--home + .sec { margin-top: -150px; }

/* ---------- Generic section ---------- */
main { display: block; }
.sec { max-width: var(--content); margin: 100px auto; padding: 10px; }
.subtitle { font-size: 30px; line-height: 1; color: var(--white); text-align: center; margin: 0 0 15px; }

/* Split: text + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 80px; align-items: center; }
.split--reverse .split__text { order: 2; }
.split__text h2 { margin-bottom: 20px; }
.split--sticky { align-items: start; }
.split--sticky .split__text { position: sticky; top: calc(var(--header-h) + 40px); }
.split__media img { border-radius: 4px; }
.split--stacked { display: block; max-width: 1164px; }
.split--stacked .split__text { max-width: var(--content); margin: 0 auto; }
.split--stacked .split__media { max-width: 776px; margin: 60px auto 0; }
.split--stacked .split__media img { width: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(176, 55, 55, .18); }
.split__media--photo .photo {
  min-height: 500px; border-radius: 10px;
  background: center / cover no-repeat;
  filter: grayscale(100%);
}

/* Icon features */
.features { display: flex; justify-content: center; gap: 20px; max-width: 90%; margin: 40px auto 0; }
.feature { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px; }
.feature h3 { margin: 20px 0 0; font-size: 28px; }
.feature p { font-weight: 500; color: var(--white); margin: 16px 0; }
.features--list { flex-direction: column; max-width: none; margin: 0; }
.features--list .feature h3 { font-size: 30px; font-weight: 500; }
.icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 30px; border-radius: 60px;
  background: linear-gradient(0deg, var(--red-dark) 1%, var(--red-light) 98%);
  color: var(--white);
}
.icon-circle svg { width: 40px; height: 40px; }
.icon-circle--sm { padding: 10px; }
.icon-circle--sm svg { width: 30px; height: 30px; }

/* Centered prose (About) */
.center-sec { text-align: center; }
.center-sec h2 { margin-top: 60px; }
.center-sec h2:first-child { margin-top: 0; }
.center-sec h3 { font-size: 36px; font-weight: 500; margin-top: 60px; }
.center-sec .btns { justify-content: center; }
.center-sec p { font-size: 18px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* Banner with photo */
.banner {
  position: relative; margin: 0 0 100px;
  background: center / cover no-repeat;
  filter: grayscale(100%);
}
.banner::before { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: .9; }
.banner__inner { position: relative; max-width: var(--content); margin: 0 auto; padding: 90px 20px; text-align: center; }

/* Red call-to-action box */
.cta {
  max-width: 850px; margin: 100px auto; padding: 40px;
  border-radius: 20px; background: var(--red-grad);
  text-align: center; color: var(--white);
}
.cta .prose { font-size: 18px; font-weight: 500; }
.cta .btns { justify-content: center; margin-top: 20px; }
.cta .btn { font-size: 16px; padding: 13px 23px; }

/* Radial red glow behind a section */
.glow { background: var(--glow); }

/* Buy (Lemon Squeezy) */
.buy { display: flex; flex-direction: column; align-items: center; gap: 30px; max-width: var(--content); padding: 80px 20px 60px; }
.buy .prose { max-width: 640px; color: var(--white); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 40px; max-width: 760px; color: var(--white); }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px; border: solid var(--rouge); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.buy .rule { width: 420px; max-width: 100%; border-top-width: 1px; margin-top: 50px; }

/* Downloads */
.downloads { max-width: 760px; margin-top: 0; }
.downloads__row { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
.download { flex: 0 1 360px; padding: 10px; text-align: center; }
.download__btn {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 50px 30px; border: 1px solid var(--white); border-radius: 20px; white-space: nowrap;
  font-size: 26px; font-weight: 300; line-height: 1; color: var(--white);
}
.download__btn svg { width: 41px; height: 41px; }
.download__btn:hover { background: var(--white); color: var(--rouge); }
.download p { font-weight: 300; font-size: 18px; color: var(--white); margin: 20px 0 0; }

/* Cards over a darkened background image */
.cards-sec { position: relative; background: 23% 49% / cover no-repeat; padding: 10px; }
.cards-sec::before { content: ""; position: absolute; inset: 0; background: #000; opacity: .9; }
.cards-sec > .sec { position: relative; margin: 0 auto; padding: 100px 10px; }
.cards { display: grid; gap: 20px; margin-top: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: rgba(176, 55, 55, .15); border-radius: 10px; padding: 40px; color: var(--white); }
.card h3 { margin: 20px 0 16px; }
.card { display: flex; flex-direction: column; }
.card > .icon-circle { align-self: flex-start; }
.card .prose { flex: 1; }
.card__link { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; font-weight: 600; color: var(--white); }
.card__link svg { width: 14px; height: 14px; }
.cards-sec--plain::before { display: none; }
.cards-sub { font-size: 20px; color: var(--white); max-width: 680px; margin: 0 auto; }
.grid-sec--3 .grid { grid-template-columns: repeat(3, 1fr); }
.grid-sec--2 .grid { grid-template-columns: repeat(2, 1fr); }
.grid__item .icon-circle { margin-bottom: 16px; }
.grid__item h3 { font-size: 22px; }

/* Small feature grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.grid__item { background: rgba(176, 55, 55, .09); border-radius: 10px; padding: 30px 30px 20px; text-align: center; color: var(--white); }

/* Accordion (native <details>, no JS) */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion details { border: 1px solid var(--line); border-radius: 10px; transition: border-color .3s; }
.accordion details[open] { border-color: var(--rouge); }
.accordion summary { display: flex; align-items: center; gap: 10px; padding: 30px; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary h3 { flex: 1; margin: 0; font-size: 18px; font-weight: 600; line-height: 1.45; letter-spacing: 0; }
.acc-icon svg { width: 14px; height: 14px; color: var(--white); }
.acc-icon svg + svg, details[open] .acc-icon svg:first-child { display: none; }
details[open] .acc-icon svg + svg { display: block; }
.accordion .prose { padding: 0 30px 30px; color: var(--white); }

/* Export formats */
.formats-sec { max-width: 80%; background: radial-gradient(var(--rouge) -100%, transparent 60%); }
.formats { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }
.format { flex: 0 1 25%; display: flex; flex-direction: column; align-items: center; padding: 10px; text-align: center; }
.format h3 { font-size: 22px; font-weight: 500; margin: 20px 0; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tags li { font-size: 12px; font-weight: 500; line-height: 1; color: var(--white); border: 1px solid #555; border-radius: 5px; padding: 5px 10px; }

/* Gallery + CSS-only lightbox */
.gallery-sec { padding: 0 128px; margin: 100px 0 40px; }
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 40px; }
.gallery__item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__cap {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 15px; text-align: center; font-size: 15px; line-height: 1.4; color: var(--white);
  background: rgba(0, 0, 0, .75); transition: background .3s;
}
.gallery__item:hover .gallery__cap { background: rgba(0, 0, 0, .35); }
.lightbox { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; }
.lightbox:target { display: flex; }
.lightbox__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .92); }
.lightbox figure { position: relative; margin: 0; max-width: 92vw; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { position: relative; padding: 30px; text-align: center; color: var(--white); }
.lightbox__close { position: absolute; top: 20px; right: 24px; color: var(--white); font-size: 28px; }

/* Blog */
.post-meta { font-size: 14px; letter-spacing: .5px; text-transform: uppercase; color: #aaa; margin: 0 0 12px; }
.post-meta a { color: var(--rouge); }
.blog-intro { max-width: 760px; margin-bottom: 60px; }
.posts { max-width: 760px; display: grid; gap: 20px; margin-top: 0; }
.post-card { display: block; padding: 40px; border-radius: 10px; background: rgba(176, 55, 55, .09); border: 1px solid transparent; color: var(--text); }
.post-card:hover { color: var(--text); border-color: var(--rouge); background: rgba(176, 55, 55, .15); }
.post-card h2 { font-size: 32px; margin-bottom: 12px; }
.post-more { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 500; }
.post-more svg { width: 14px; height: 14px; }
.post-card:hover .post-more { color: var(--rouge); }
.blog-note { max-width: 760px; border-top: 1px solid var(--line); padding-top: 40px; }
.blog-note h3 { font-size: 22px; }
.hero--post { max-width: 900px; margin: 0 auto; }
.hero--post h1 { font-size: 48px; letter-spacing: -1.5px; }

/* Long-form article */
.article { max-width: 760px; margin: 40px auto 0; padding: 0 20px; font-size: 17px; line-height: 1.75; }
.article h2 { font-size: 34px; margin: 2.2em 0 .6em; }
.article h3 { font-size: 24px; margin: 1.8em 0 .5em; }
.article p, .article ul, .article ol, .article table, .article blockquote { margin: 0 0 1.2em; }
.article li { margin-bottom: .4em; }
.article strong { color: var(--white); }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.article blockquote { margin-left: 0; padding: 16px 24px; border-left: 3px solid var(--rouge); background: rgba(176, 55, 55, .08); border-radius: 0 10px 10px 0; }
.article blockquote > :last-child { margin-bottom: 0; }
.article img { margin: 2em auto; border-radius: 10px; background: #fff; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.article th, .article td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.article th { color: var(--white); font-weight: 600; border-bottom-color: var(--rouge); }
.article code { font-size: .9em; background: #1a1a1a; padding: 2px 6px; border-radius: 4px; }
.article .katex-display { overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
.article .katex { font-size: 1.08em; }

/* Plain text pages (Terms) */
.page-text h2 { font-size: 32px; margin-top: 40px; }

/* Contact form */
.contact { max-width: 700px; }
.contact h3 { font-size: 32px; font-weight: 500; margin-bottom: 40px; }
.form { background: var(--white); color: #1a1a1a; border-radius: 10px; padding: 40px 40px 30px; display: grid; gap: 20px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form label b { color: var(--rouge); }
.form input, .form textarea, .form select {
  font: 400 16px/1.4 Inter, sans-serif; color: #1a1a1a; /* 16px: iOS zooms into smaller inputs */
  background: #f2f2f2; border: 1px solid transparent; border-radius: 4px; padding: 10px 14px;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--rouge); background: var(--white); }
.form .btn { justify-self: start; font-size: 16px; }
.form .btn:hover { border-color: var(--rouge); }
.form .hp { position: absolute; left: -9999px; }
.notice { max-width: 700px; margin: 0 auto; padding: 20px; border-radius: 10px; text-align: center; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 50px; padding: 60px 20px 20px;
  background: radial-gradient(at 50% 100%, var(--rouge) -50%, var(--bg) 50%, var(--bg));
  display: flex; flex-direction: column; align-items: center; gap: 30px;
  color: var(--white);
}
.footer-logo img { width: 190px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.social svg { width: 24px; height: 24px; }
.footer-nav { display: flex; gap: 30px; font-size: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13px; padding: 10px; }
.footer-tos { font-weight: 600; margin-left: 30px; }
.footer-tos--2 { margin-left: 0; }

/* ---------- Scroll reveal (CSS only, progressive) ---------- */
@keyframes zoom-out { from { opacity: 0; transform: scale(1.15); } to { opacity: 1; transform: none; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .reveal { animation: fade-down linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero, .blob { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --header-h: 80px; }
  .site-header { padding: 0 20px; }
  .nav, .btn--header { display: none; }
  .mnav { display: block; }
  .mnav summary { list-style: none; cursor: pointer; color: var(--white); position: relative; z-index: 2; }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav summary svg { width: 32px; height: 32px; }
  .mnav nav {
    position: fixed; inset: 0; z-index: 1; background: var(--bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
    font-size: 2em; color: var(--white);
  }
  .gallery-sec { padding: 0 40px; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .formats-sec { max-width: 95%; }
  .formats { flex-wrap: wrap; }
  .format { flex-basis: 45%; }
}
@media (max-width: 767px) {
  .blob { width: 60vw; }
  .article .katex-display > .katex { font-size: .92em; }
  h1, .hero--home h1 { font-size: 40px; letter-spacing: -1px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
  .hero--post h1 { font-size: 32px; }
  .article { font-size: 16px; }
  .article h2 { font-size: 26px; }
  .post-card { padding: 28px; }
  .hero { padding-top: 130px; }
  .hero--home { padding-top: 120px; min-height: 0; }
  .hero--home + .sec { margin-top: 0; }
  .sec { margin: 60px auto; padding: 10px 20px; }
  .split, .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .split--reverse .split__text { order: 0; }
  .split--sticky .split__text { position: static; }
  .split__media--photo .photo { min-height: 250px; }
  .features { flex-direction: column; max-width: 100%; }
  .subtitle { font-size: 24px; }
  .cta { margin: 60px 20px; padding: 30px 20px; }
  .downloads__row { flex-direction: column; align-items: center; }
  .download { width: 100%; }
  .download__btn { padding: 36px; }
  .buy .btn--buy { font-size: 19px; padding: 16px 26px; }
  .checklist { grid-template-columns: 1fr; }
  .card { padding: 30px; }
  .gallery-sec { padding: 0 20px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .grid, .grid-sec--3 .grid, .grid-sec--2 .grid { grid-template-columns: 1fr; }
  .format { flex-basis: 100%; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
  .footer-tos { margin-left: 0; }
  .form { padding: 24px; }
}
