/* Cadencer's own pages (cadencer.studio: home, features, pricing).
   One typeface, four sizes, navy text; orange only on the logo's beat and the
   main button. Studios never see this — their pages wear their own palette. */

@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");   /* SIL OFL, fonts/OFL.txt */
}

body:has(.container.site) {
  --site-font: "Instrument Sans", var(--font-sans);
  --site-line: color-mix(in srgb, var(--brand-navy) 16%, var(--brand-paper));
  background: var(--brand-paper); font-family: var(--site-font);
}
.container.site { max-width: var(--w-page); padding: 3.5rem var(--space-5) 4.5rem; }

/* a light header that sits on the page, logo in color */
body:has(.container.site) .topbar { background: transparent; color: var(--brand-navy); border-bottom: 1px solid var(--site-line); }
body:has(.container.site) .topbar a, body:has(.container.site) .brand { color: var(--brand-navy); font-family: var(--site-font); }
body:has(.container.site) .brand { font-weight: 600; letter-spacing: -.01em; }
body:has(.container.site) .brand-mark { fill: var(--brand-navy); }
body:has(.container.site) .site-foot { font-family: var(--site-font); }
/* three links: keep them inline at every width, no menu button */
body:has(.container.site) .nav-toggle { display: none; }
body:has(.container.site) .topnav { display: flex; flex-direction: row; width: auto; order: 0; margin: 0; padding: 0; border: 0; gap: var(--space-4); }
body:has(.container.site) .topbar-inner { flex-wrap: nowrap; }

.site, .site h1, .site h2, .site h3 { font-family: var(--site-font); color: var(--brand-navy); }
.site h1 { font-size: 3rem; line-height: 1.08; font-weight: 600; letter-spacing: -.03em; margin: 0 0 var(--space-4); text-wrap: balance; }
.site h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 var(--space-3); }
.site h3 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 var(--space-1); }
.site p { font-size: 1.0625rem; line-height: 1.6; color: var(--ink); margin: 0; }
.site .lead { color: var(--ink-muted); max-width: 32rem; }
.site .muted, .site .note { color: var(--ink-muted); }
.site .note { font-size: .9375rem; }
.site a:not(.btn) { color: var(--brand-navy); }

.site .btn { border-radius: 999px; padding: .7rem 1.35rem; font-family: var(--site-font); font-weight: 500; }
.site .btn-brand { background: var(--brand-orange-ink); color: #fff; border: 1px solid var(--brand-orange-ink); }
.site .btn-brand:hover { filter: brightness(.95); }
.site .btn-plain { background: transparent; color: var(--brand-navy); border: 1px solid var(--site-line); }
.site .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-5) 0 var(--space-3); }

/* Cadencer's own sign-in page: the app's sign-in cards, in the site's look */
.site-auth .auth-card { border: 1px solid var(--site-line); border-radius: 16px; box-shadow: none; }
.site-auth .auth-card h1 { font-size: 2rem; }
.site-auth .btn-accent { background: var(--brand-navy); border-color: var(--brand-navy); border-radius: 999px; }
.site-auth .btn { white-space: nowrap; }

/* home */
.home { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.mark { width: 2.5rem; height: 2.5rem; display: block; margin-bottom: var(--space-5); fill: var(--brand-navy); }
.mark .beat { fill: var(--brand-orange); }

.preview { background: var(--surface); border: 1px solid var(--site-line); border-radius: 16px; overflow: hidden;
           box-shadow: 0 24px 48px -32px color-mix(in srgb, var(--brand-navy) 40%, transparent); }
.preview-head { padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--site-line); display: flex; justify-content: space-between; align-items: baseline; }
.preview-head span, .preview-row small { color: var(--ink-muted); font-size: .9375rem; }
.preview-row { padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--site-line); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.preview-row:last-child { border-bottom: 0; }
.preview-row small { display: block; }
.preview-row .state { color: var(--ink-muted); font-size: .9375rem; white-space: nowrap; }

/* features */
.page-intro { margin-bottom: 2.25rem; }
.group { padding: var(--space-6) 0; border-top: 1px solid var(--site-line); }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5) var(--space-7); }
.group li p { color: var(--ink-muted); }
.group .plan-tag { display: block; margin-top: var(--space-2); font-size: .9375rem; font-weight: 500; color: var(--brand-navy); }
.site .closing-actions { border-top: 1px solid var(--site-line); padding-top: var(--space-6); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-bottom: 2.5rem; }
.plan { background: var(--surface); border: 1px solid var(--site-line); border-radius: 16px; padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.plan .price { font-size: 2.5rem; font-weight: 600; color: var(--brand-navy); line-height: 1.2; }
.plan .price span { font-size: 1.0625rem; font-weight: 400; color: var(--ink-muted); }
.plan .btn { margin-top: auto; justify-content: center; text-align: center; }
.plan p { color: var(--ink-muted); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--site-line); border-radius: 16px; overflow: hidden; }
.compare th, .compare td { padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--site-line); text-align: left; font-size: 1.0625rem; font-weight: 400; color: var(--ink); }
.compare thead th { font-weight: 600; color: var(--brand-navy); text-transform: none; letter-spacing: normal; background: transparent; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tr:last-child td { border-bottom: 0; }
.compare .no { color: var(--ink-muted); }
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-7); margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--site-line); }
.faq p { color: var(--ink-muted); }
.sample-label { margin-top: var(--space-2); text-align: right; }
.site .fineprint { margin-top: var(--space-5); }

@media (max-width: 760px) {
  .container.site { padding: 2rem var(--space-4) 3rem; }
  .site h1 { font-size: 2.25rem; }
  .home, .group { grid-template-columns: 1fr; gap: 2rem; }
  .group { gap: var(--space-4); }
  .group ul, .plans, .faq { grid-template-columns: 1fr; }
  .compare { display: table; white-space: normal; }
  .compare th, .compare td { padding: var(--space-2) var(--space-3); font-size: .9375rem; }
}
