/* Ottava landing — ebony & brass, matching the app's brand (BRAND.md). */
:root {
  --bg: #12141b;
  --panel: #191c25;
  --raised: #222634;
  --line: #2e3342;
  --ivory: #f0ebdf;
  --muted: #a39c88; /* 7:1 on --bg, for body copy and small text */
  --accent: #e9b44c;
  --accent-deep: #b27d24;
  --ink: #241a07;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ivory);
  font: 16px/1.6 -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
p a, .fineprint a { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 12px; }

/* ---- header ---- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(18, 20, 27, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.22em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--ivory); }
.btn {
  display: inline-block; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); color: var(--ivory); background: var(--raised);
  transition: filter .15s, transform .1s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(#f0c45c, #d99e2f); border-color: var(--accent-deep); color: var(--ink); }
.btn.big { font-size: 16px; padding: 13px 22px; border-radius: 11px; }

/* ---- hero ---- */
.hero { position: relative; text-align: center; padding: 84px 0 64px; overflow: hidden; border-top: 0; }
.hero h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.08; letter-spacing: -0.02em; margin-top: 14px; }
.hero h1 .brass { color: var(--accent); }
.hero p.sub { color: var(--muted); font-size: clamp(16px, 2.3vw, 20px); max-width: 640px; margin: 20px auto 0; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.platforms { margin-top: 18px; font-size: 13px; color: var(--muted); font-family: var(--mono); }
/* falling-notes motif */
.notes { position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; opacity: 0.12; display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.notes span { width: 26px; border-radius: 8px 8px 0 0; background: #4a5266; }
.notes span.a { background: var(--accent); }
/* the desktop screenshot in a window frame */
.window {
  margin: 56px auto 0; max-width: 1040px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(233, 180, 76, 0.08);
}
.window .chrome { display: flex; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.window .chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }

/* ---- sections ---- */
section { padding: 72px 0; border-top: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.2; letter-spacing: -0.01em; margin: 10px 0 10px; }
.lead { color: var(--muted); max-width: 660px; font-size: 17px; }

.pillars { padding: 56px 0; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.trio .h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: 0; }
.trio .h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 14px; }
.trio p { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 36px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 24px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* phone screenshots, scrolling sideways */
.gallery {
  --edge: max(24px, calc((100vw - 1080px) / 2 + 24px)); /* lines up with .wrap */
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 36px var(--edge) 12px; scroll-padding-inline: var(--edge);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.gallery img { flex: 0 0 auto; width: 250px; border-radius: 22px; border: 1px solid var(--line); scroll-snap-align: start; }

/* ---- pricing ---- */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 36px; max-width: 760px; }
.price { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.price.pro { border-color: var(--accent-deep); box-shadow: 0 0 0 1px rgba(233, 180, 76, 0.25); }
.price .tier { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.price .amt { font-size: 40px; font-weight: 700; margin: 14px 0 2px; }
.price .amt small { font-size: 16px; color: var(--muted); font-weight: 400; }
.price .note { color: var(--muted); font-size: 13px; }
.price ul { list-style: none; margin: 18px 0 0; }
.price li { padding: 7px 0; color: var(--ivory); font-size: 15px; border-top: 1px solid var(--line); }
.price li::before { content: "♩ "; color: var(--accent); }
.price .soon { margin-top: 16px; font-size: 13px; color: var(--accent); }

/* ---- downloads ---- */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 32px; }
.dl-card { display: flex; flex-direction: column; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; transition: border-color .15s, transform .1s; }
.dl-card strong { font-size: 18px; }
.dl-card span { color: var(--muted); font-size: 14px; }
.dl-card em { font-style: normal; font-weight: 600; font-size: 14px; color: var(--accent); margin-top: 10px; }
a.dl-card:hover { border-color: var(--accent-deep); }
a.dl-card:active { transform: translateY(1px); }
.dl-card.main { border-color: var(--accent-deep); background: linear-gradient(180deg, rgba(233, 180, 76, 0.1), var(--panel)); }
.dl-card.off em { color: var(--muted); }

/* ---- FAQ ---- */
.faq { margin-top: 28px; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 0 18px; max-width: 680px; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--accent); }
.fineprint { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 680px; }

@media (max-width: 820px) {
  .nav-links a:not(.btn) { display: none; }
  .trio { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 56px; }
  .window { margin-top: 40px; border-radius: 10px; }
  .gallery img { width: 210px; }
}

/* ---- 404 ---- */
.lost { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 24px; gap: 6px; }
.lost img { border-radius: 16px; margin-bottom: 18px; }
.lost .lead { margin: 4px auto 0; }
.lost .cta { margin-top: 26px; }
