/* Cueport site — cream brand wash, DM Sans + DM Mono (matches app + talk). */
:root {
  --bg: #f5ede0;
  --bg-elevated: #ece1cf;
  --brand-tile: #e0d4c4;
  --border: #e0d4c4;
  --border-strong: #cfc0ae;
  --text: #18181b;
  --text-secondary: #52525b;
  --text-tertiary: #8a7a6c;
  --accent: #c2410c;
  --accent-hover: #9a3412;

  --font-sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "DM Mono", "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --type-display: clamp(1.9rem, 4vw, 2.4rem);
  --type-heading: 1.45rem;
  --type-body: 1.125rem;
  --type-small: 1rem;
  --type-label: 0.78rem;

  --maxw: 1080px;
  --header-h: 70px;
  --footer-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 112.5%;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--footer-h);
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
code, .mono { font-family: var(--font-mono); }
code { font-size: 0.92em; background: var(--bg-elevated); padding: 1px 4px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--text);
}
h1 { font-size: var(--type-display); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: var(--type-heading); font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 12px; color: var(--text-secondary); font-size: var(--type-body); }
.small { font-size: var(--type-small); }
.muted { color: var(--text-tertiary); }

/* Header — exact app lockup */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
  gap: 24px;
}
.logo-lockup { display: flex; align-items: center; gap: 0.55rem; }
.logo-mark { width: 2rem; height: 2rem; flex-shrink: 0; }
.brand-title {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
  margin: 0;
}
.header-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  color: #f4f4f5;
  background: #18181b;
  border: 1px solid #27272a;
  margin-left: 0.5rem;
  align-self: center;
}
.site-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 8px;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); }
.nav-icon { display: inline-flex; }
.nav-icon svg { width: 18px; height: 18px; }

@media (max-width: 720px) {
  .site-nav a { padding: 8px; }
  .nav-label { display: none; }
  .nav-icon svg { width: 22px; height: 22px; }
  .site-nav ul { gap: 8px; }
}

/* Footer — fixed at bottom, release notes pops upward (does not shift layout) */
.site-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 12px 0;
  height: var(--footer-h);
  display: flex;
  align-items: center;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.footer-grid > * { min-width: 0; }
.build-panel { position: relative; }
.build-panel summary {
  font-family: var(--font-mono);
  font-size: var(--type-small);
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.build-panel summary::-webkit-details-marker { display: none; }
.build-panel summary::after {
  content: "▴"; color: var(--text-tertiary);
  display: inline-block;
}
.build-panel[open] summary::after { content: "▾"; }
.build-panel-body {
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  width: min(720px, calc(100vw - 64px));
  max-height: calc(100vh - var(--footer-h) - 40px);
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 18px 22px;
  box-shadow: 0 -6px 24px rgba(24, 24, 27, 0.06);
}
.build-section-label {
  font-family: var(--font-mono);
  font-size: var(--type-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin: 0 0 6px;
}
.build-list { margin: 0; padding-left: 18px; color: var(--text-secondary); font-size: var(--type-small); }
.build-list li { margin-bottom: 4px; line-height: 1.4; }
.footer-copyright {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--type-small);
  color: var(--text-tertiary);
  text-align: right;
  white-space: nowrap;
  align-self: center;
}
.footer-copyright-short { display: none; }
@media (max-width: 640px) {
  .footer-copyright-full { display: none; }
  .footer-copyright-short { display: inline; }
}

@media (max-width: 640px) {
  :root { --footer-h: 40px; --header-h: 52px; }
  body { font-size: 100%; }
  .container { padding: 0 16px; }
  .site-header { height: 52px; }
  .brand-title { font-size: 1.25rem; }
  .logo-mark { width: 1.5rem; height: 1.5rem; }
  .header-badge { display: none; }
  .nav-icon svg { width: 20px; height: 20px; }
  .site-nav a { padding: 6px; }
  .site-nav ul { gap: 6px; }

  .home-hero { padding: 0; }
  .home-hero-inner { gap: 16px; text-align: left; }
  .home-actions { justify-content: flex-start; }
  .home-sub { margin-left: 0 !important; margin-right: 0 !important; max-width: none; }
  .home-eyebrow { font-size: 0.65rem; margin-bottom: 10px; letter-spacing: 0.08em; }
  .home-title { font-size: 1.5rem !important; line-height: 1.12 !important; margin-bottom: 12px; }
  .home-sub { font-size: 0.95rem; margin-bottom: 16px; line-height: 1.5; }
  .home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
  .home-actions .app-btn { min-width: 0; padding: 9px 10px; gap: 6px; justify-content: center; }
  .app-btn { min-width: 0; }
  .app-btn svg { width: 18px; height: 18px; }
  .app-btn-top { font-size: 0.58rem; }
  .app-btn-bot { font-size: 0.88rem; }
  .download-card .app-btn { align-self: stretch; justify-content: center; }
  .download-card .app-btn svg { width: 22px; height: 22px; }
  .home-meta { font-size: 0.8rem; margin-top: 4px; }
  .home-hero-inner > .home-art { display: none; }

  .viewport-main { padding-top: 20px; padding-bottom: 28px; }
  .home-main { padding-top: 20px; padding-bottom: 28px; align-items: flex-start; }
  .page-head { margin-bottom: 16px; }
  .page-head h1 { font-size: 1.4rem; margin-bottom: 8px; }
  .lede { font-size: 0.95rem; line-height: 1.5; }

  .feature-list { gap: 10px; grid-template-columns: 1fr; }
  .feature { padding: 14px 16px; }
  .feature h3 { font-size: 0.95rem; margin-bottom: 6px; font-weight: 600; }
  .feature p { font-size: 0.9rem; line-height: 1.5; }

  .download-grid { grid-template-columns: 1fr; gap: 10px; }
  .download-card { padding: 14px 16px; gap: 10px; }
  .download-card h2 { font-size: 1rem; }
  .download-card p { font-size: 0.9rem; line-height: 1.5; }

  .faq details { padding: 12px 14px; margin-bottom: 8px; }
  .faq summary { font-size: 0.95rem; }
  .faq p { font-size: 0.9rem; line-height: 1.5; margin-top: 8px; }

  .site-footer { padding: 6px 0; }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    align-items: center;
  }
  .footer-copyright { font-size: 0.75rem; white-space: nowrap; }
  .build-panel summary { font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .build-panel-body {
    width: calc(100vw - 36px);
    left: -18px;
    grid-template-columns: 1fr;
    padding: 14px 18px;
    gap: 12px;
  }
}

/* One-viewport main — content pinned to a consistent top so titles align across pages */
.viewport-main {
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 40px;
}
.viewport-main > * { width: 100%; }

.home-main {
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  display: flex;
  align-items: center;
}

/* App-style download buttons (consistent everywhere) */
.app-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px 11px 16px;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  text-decoration: none;
  font-family: var(--font-sans);
  transition: background 0.12s ease;
}
.app-btn:hover { background: #000; color: var(--bg); text-decoration: none; }
.app-btn svg { width: 24px; height: 24px; flex-shrink: 0; fill: currentColor; }
.app-btn-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.app-btn-top { font-size: 0.72rem; opacity: 0.85; }
.app-btn-bot { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-weight: 500; font-size: 0.95rem;
  border: 1px solid var(--text);
  background: var(--text); color: var(--bg);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #000; color: var(--bg); text-decoration: none; }

/* Home hero */
.home-hero { width: 100%; padding: 0; }
.home-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.home-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.home-title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 4.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.home-sub { font-size: var(--type-body); max-width: 520px; color: var(--text-secondary); margin: 0 0 24px; line-height: 1.55; }
.home-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.home-meta { font-size: var(--type-small); color: var(--text-tertiary); margin: 0; font-family: var(--font-mono); }
.home-art { display: flex; justify-content: center; }
.home-art img { width: 100%; max-width: 280px; height: auto; }

@media (max-width: 860px) {
  .home-hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .home-actions { justify-content: center; }
  .home-sub { margin-left: auto; margin-right: auto; }
  .home-art img { max-width: 180px; }
}

/* Page head — quiet title so it does not fight the "Cueport" header */
.page-head { margin-bottom: 20px; }
.page-head h1 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  color: var(--text);
}
.lede { font-size: var(--type-body); color: var(--text-secondary); max-width: 680px; margin: 0; line-height: 1.55; }

/* Features grid */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.feature {
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--brand-border-strong, var(--border-strong));
}
.feature h3 { margin-bottom: 6px; font-size: var(--type-body); font-weight: 600; font-family: var(--font-sans); }
.feature p { margin: 0; font-size: 1rem; line-height: 1.45; color: var(--text-secondary); }

@media (max-width: 920px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }


/* Download */
.download-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
.download-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 24px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.download-card h2 {
  font-size: 1.25rem; margin: 0; font-family: var(--font-sans);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.download-card p { margin: 0; font-size: var(--type-body); line-height: 1.55; }
.card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  background: var(--bg);
}
.card-tag--start {
  border-color: var(--accent);
  color: var(--accent);
}
.download-card .app-btn { align-self: flex-start; }
.download-card .app-btn svg { width: 24px; height: 24px; }
.download-meta { font-size: var(--type-small); color: var(--text-tertiary); margin: 0; font-family: var(--font-mono); }

@media (max-width: 720px) { .download-grid { grid-template-columns: 1fr; } }

/* FAQ — white pills, body-size copy */
.faq details {
  background: #ffffff;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  padding: 14px 20px;
}
.faq summary {
  font-weight: 600; cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-sans);
  font-size: var(--type-body);
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; font-size: var(--type-body); line-height: 1.55; color: var(--text-secondary); }
