/* Monastery Audio: one stylesheet for the whole site.
   Colours and fonts come from the plug-in faceplates (design/DESIGN_SPEC.md). */

@font-face { font-family: "Cinzel"; src: url("../fonts/Cinzel-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("../fonts/ArchivoNarrow-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo Narrow"; src: url("../fonts/ArchivoNarrow-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --slate-900: #1a232b;
  --slate-800: #222d37;
  --slate-700: #2c3a45;
  --slate-600: #34434f;
  --slate-500: #3b4a56;
  --slate-300: #8a9aa6;
  --oxblood-800: #241517;
  --oxblood-700: #2f1c1f;
  --amber: #eba73a;
  --amber-light: #ffd48a;
  --cream: #f3ead3;
  --paper: #efe4c6;
  --ink: #ece9df;
  --ink-dim: #b9b4a6;
  --red: #d6323b;
  --red-dark: #a8242c;
  --lamp: #4aa3ff;
  --ok: #7fc08a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --label: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;

  --radius: 14px;
  --page: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--slate-800);
  background-image: radial-gradient(ellipse at 50% -10%, #3a4955 0%, var(--slate-800) 55%, var(--slate-900) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font: 18px/1.65 var(--serif);
  overflow-x: hidden;
}
body.effects-theme {
  background: var(--oxblood-800);
  background-image: radial-gradient(ellipse at 50% -10%, #4a2c30 0%, var(--oxblood-700) 50%, #1a0f11 100%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber-light); }
::selection { background: var(--amber); color: var(--slate-900); }
:focus-visible { outline: 2px solid var(--amber-light); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: 0.04em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.06em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-dim); max-width: 46em; }
.legend {   /* amber, spaced capitals, like the faceplate legends */
  font-family: var(--label); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 0.78rem; color: var(--amber);
}
.legend.rule { display: flex; align-items: center; gap: 14px; }
.legend.rule::before, .legend.rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.5; }
.legend.rule.left::before { display: none; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section.tight { padding-top: 0; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(26, 35, 43, 0.86);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid rgba(235, 167, 58, 0.18);
}
.effects-theme .site-header { background: rgba(30, 17, 19, 0.88); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--amber); }
.brand b { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.12em; }
.brand span { font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.3em; color: var(--ink-dim); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem; color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--amber); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(236, 233, 223, 0.3); color: var(--ink); border-radius: 8px; padding: 6px 10px; font: 600 0.8rem var(--label); letter-spacing: 0.14em; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--slate-900); border-bottom: 1px solid rgba(235, 167, 58, 0.25); padding: 8px var(--gutter) 16px; }
  .effects-theme .nav { background: #1a0f11; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav .btn { margin-top: 12px; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.86rem;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: linear-gradient(180deg, #e0444c, var(--red) 55%, var(--red-dark)); color: #fff; box-shadow: 0 6px 18px rgba(214, 50, 59, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-red:hover { color: #fff; box-shadow: 0 8px 26px rgba(214, 50, 59, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(236, 233, 223, 0.35); }
.btn-ghost:hover { color: var(--amber-light); box-shadow: inset 0 0 0 1px var(--amber); }
.btn-small { padding: 9px 18px; font-size: 0.76rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center .btn-row { justify-content: center; }
.fine { font-family: var(--label); font-size: 0.85rem; letter-spacing: 0.04em; color: var(--ink-dim); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.hero h1 { max-width: 17em; margin: 0.35em auto 0.4em; }
.hero .lede { margin: 0 auto 1.6em; }
.rack {   /* a plug-in screenshot presented like a unit in a rack */
  margin: clamp(36px, 6vw, 64px) auto 0; max-width: 1180px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 120px -30px rgba(235, 167, 58, 0.25);
}
.rack + .rack { margin-top: 28px; }
.caption { font-family: var(--label); font-size: 0.85rem; letter-spacing: 0.06em; color: var(--ink-dim); margin-top: 14px; text-align: center; }

/* ---------- products ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.card {
  background: linear-gradient(180deg, rgba(59, 74, 86, 0.55), rgba(34, 45, 55, 0.6));
  border: 1px solid rgba(236, 233, 223, 0.12); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.card.oxblood { background: linear-gradient(180deg, rgba(74, 40, 45, 0.7), rgba(36, 21, 23, 0.75)); }
.card img { border-bottom: 1px solid rgba(236, 233, 223, 0.08); }
.card .body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.5rem; margin-top: 6px; }
.card ul { padding-left: 1.1em; margin: 0 0 1.4em; color: var(--ink-dim); }
.card li { margin-bottom: 0.3em; }
.card .btn-row { margin-top: auto; }
.price { font-family: var(--label); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.04em; color: var(--ink); }
.price s { color: var(--ink-dim); font-size: 1rem; margin-left: 8px; font-weight: 600; }
.price small { display: block; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }

/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid rgba(236, 233, 223, 0.08); }
.feature:first-of-type { border-top: 0; }
.feature.flip > :first-child { order: 2; }
.feature figure { margin: 0; }
.feature figure img { border-radius: 10px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05); margin: 0 auto; }
.feature figure.narrow img { max-width: 360px; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 22px; margin-top: 36px; }
.point { padding: 24px; border-radius: var(--radius); background: rgba(26, 35, 43, 0.5); border: 1px solid rgba(236, 233, 223, 0.08); }
.effects-theme .point { background: rgba(26, 15, 17, 0.5); }
.point h3 { font-size: 1.05rem; color: var(--amber); }
.point p { color: var(--ink-dim); font-size: 1rem; margin: 0; }

/* VU-meter "paper" panel for the story/quote */
.paper {
  background: radial-gradient(ellipse at 30% 20%, #fbf3dc, var(--paper) 60%, #e2d3ac);
  color: #2b2620; border-radius: 12px; padding: clamp(28px, 5vw, 52px);
  box-shadow: inset 0 0 0 6px #c9ccd1, inset 0 0 0 8px #8f949b, 0 30px 60px -24px rgba(0, 0, 0, 0.7);
}
.paper .legend { color: #7a1f1f; }
.paper h2 { color: #2b2620; }
.paper p { color: #3d362c; }

/* ---------- video demos ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; margin-top: 30px; }
.videos figure { margin: 0; }
.video {
  position: relative; aspect-ratio: 16 / 9; margin: 30px auto 0; max-width: 1000px; border-radius: 12px; overflow: hidden;
  background: #0d1216; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.videos .video { margin-top: 0; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; filter: saturate(0.7); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-soon {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center;
  font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.9rem; color: var(--amber);
}
.video.ready img, .video.ready .video-soon { display: none; }

/* ---------- specs, tables, faq ---------- */
.specs { width: 100%; border-collapse: collapse; font-size: 1rem; }
.specs th, .specs td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(236, 233, 223, 0.1); vertical-align: top; }
.specs th { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--amber); width: 34%; }
.table-scroll { overflow-x: auto; }

.faq details { border-bottom: 1px solid rgba(236, 233, 223, 0.12); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative; font-family: var(--label); font-weight: 700; font-size: 1.08rem; letter-spacing: 0.03em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--amber); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-dim); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.form.inline { grid-template-columns: 1fr auto; max-width: 520px; margin: 0 auto; }
@media (max-width: 560px) { .form.inline { grid-template-columns: 1fr; } }
label { font-family: var(--label); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); display: grid; gap: 8px; }
input, textarea, select {
  font: 17px/1.4 var(--serif); color: var(--ink); background: rgba(10, 14, 18, 0.45);
  border: 1px solid rgba(236, 233, 223, 0.22); border-radius: 10px; padding: 13px 15px; width: 100%;
}
input::placeholder, textarea::placeholder { color: #7f8790; }
input:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(235, 167, 58, 0.2); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; }
.hidden { display: none !important; }
.notice { border-radius: 10px; padding: 14px 18px; font-size: 1rem; border: 1px solid; }
.notice.ok { border-color: rgba(127, 192, 138, 0.5); background: rgba(127, 192, 138, 0.1); }
.notice.err { border-color: rgba(214, 50, 59, 0.6); background: rgba(214, 50, 59, 0.12); }
.notice.info { border-color: rgba(235, 167, 58, 0.5); background: rgba(235, 167, 58, 0.08); }

/* ---------- prose pages (legal, support) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5em; }
.prose li { margin-bottom: 0.4em; }
.draft-banner { font-family: var(--label); background: repeating-linear-gradient(135deg, rgba(235, 167, 58, 0.14) 0 14px, rgba(235, 167, 58, 0.06) 14px 28px); border: 1px dashed var(--amber); border-radius: 10px; padding: 14px 18px; margin-bottom: 28px; font-size: 0.95rem; letter-spacing: 0.02em; }

/* ---------- strip of small facts ---------- */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; margin-top: 26px; }
.facts span { font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; color: var(--ink-dim); }
.facts span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 8px var(--lamp); margin-right: 9px; vertical-align: 1px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(235, 167, 58, 0.18); padding: 48px 0 56px; margin-top: 40px; font-size: 0.95rem; color: var(--ink-dim); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { font-family: var(--label); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.76rem; color: var(--amber); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink-dim); text-decoration: none; }
.site-footer a:hover { color: var(--amber-light); }
.site-footer .small { font-size: 0.8rem; margin-top: 28px; opacity: 0.8; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.paper .point { background: none; border-color: rgba(43, 38, 32, 0.18); }
.paper .point h3 { color: #7a1f1f; }
.paper .point p { color: #3d362c; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--amber); color: var(--slate-900); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.chain { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 26px 0 6px; font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; }
.chain span { border: 1px solid rgba(235, 167, 58, 0.5); color: var(--amber); padding: 8px 12px; border-radius: 6px; background: rgba(0, 0, 0, 0.15); }
.chain i { font-style: normal; color: var(--ink-dim); }
.card.featured { border-color: rgba(235, 167, 58, 0.55); box-shadow: 0 0 60px -20px rgba(235, 167, 58, 0.45); background: linear-gradient(180deg, rgba(235, 167, 58, 0.12), rgba(34, 45, 55, 0.65) 40%); }
.paper .points { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
