/* Aperture Audio — dark theme matching the original Wix site */
:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --border: #2a2a2e;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #e6d891;        /* gold accent from the Wix cadence-guide page */
  --iris-light: #ede3a6;
  --iris-studio: #d9b65c;
  --cadence: #9ed4ea;
  --radius: 24px;
  --font-head: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.accent { color: var(--accent); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,10,11,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.brand img { width: 120px; }
.site-nav ul { list-style: none; display: flex; gap: 36px; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 68px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .site-nav a { display: block; padding: 12px 0; }
}

/* Sections */
section { padding: 72px 0; }
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: .04em; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .3em; font-size: .8rem; color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.rounded { border-radius: var(--radius); overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } section { padding: 48px 0; } .card { padding: 22px; } }

/* Hero */
.hero { padding: 32px 0 56px; text-align: center; border-bottom: 1px solid var(--border); }
.hero-media { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 2740 / 1536; max-height: 560px; width: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero h1.big { font-size: clamp(2.2rem, 9vw, 6.5rem); letter-spacing: .12em; margin: 40px 0 0; font-weight: 700; }
.hero .sub { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .35em; color: var(--muted); font-size: clamp(.8rem, 2vw, 1.05rem); }
.hero .parens { font-family: var(--font-head); color: var(--muted); letter-spacing: .3em; white-space: pre; font-size: clamp(1rem, 3vw, 1.6rem); margin: 8px 0 0; font-weight: 400; overflow: hidden; }
.hero h2.tagline { font-size: clamp(1.2rem, 4.5vw, 3rem); letter-spacing: .14em; margin-top: 28px; color: var(--text); }

/* Prose blocks */
.prose h3, .prose h5 { font-size: 1.15rem; margin-top: 2.2em; }
.prose h3:first-child, .prose h5:first-child { margin-top: 0; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .5em; }
.lead { font-size: 1.08rem; }

/* Features list (Iris/Coda at a glance) */
.glance-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.glance-head img { width: 40px; height: 40px; border-radius: 10px; }
.glance-head h3 { margin: 0; font-size: 1.5rem; }
.glance-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.glance-items h4 { font-size: .95rem; color: var(--accent); margin-bottom: .4em; }
@media (max-width: 640px) { .glance-items { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding-top: 12px; color: #d4d4d8; }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.3rem; }
.price-card .price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; margin: 4px 0 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.price-card li { padding: 6px 0; font-size: .92rem; }
.price-card li::before { content: '• '; color: var(--muted); }
.btn { display: inline-block; text-align: center; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; font-weight: 600; padding: 14px 22px; border-radius: 10px; background: var(--text); color: var(--bg); border: 0; cursor: pointer; font-family: var(--font-body); }
.btn:hover { background: var(--accent); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.c-iris-light { color: var(--iris-light); }
.c-iris-studio { color: var(--iris-studio); }
.c-cadence { color: var(--cadence); }

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .92rem; }
table.compare th, table.compare td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: center; }
table.compare th:first-child, table.compare td:first-child { text-align: left; }
table.compare thead th { font-family: var(--font-head); font-size: 1rem; }
table.compare tbody tr:last-child td { border-bottom: 0; }

/* Guides */
.guide-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.guide-card .thumb { aspect-ratio: 272 / 192; background: var(--surface-2); }
.guide-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.guide-card h3 { margin: 0; font-size: 1.1rem; }
.guide-card .btn { margin-top: auto; }
.img-placeholder { width: 100%; height: 100%; background: radial-gradient(120% 120% at 20% 10%, #3b2a4d 0%, #16161a 55%, #0a0a0b 100%); }

/* Long-form manual pages */
.manual { padding-top: 48px; }
.manual h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1.2em; }
.manual h2 { font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 2.6em 0 1em; padding-top: 1em; border-top: 1px solid var(--border); }
.manual h3 { font-size: 1rem; margin: 1.8em 0 .6em; }
.manual figure { margin: 18px 0 26px; }
.manual figure img { border-radius: 10px; border: 1px solid var(--border); }
.manual .row { display: flex; flex-wrap: wrap; gap: 16px; }
.manual .row figure { flex: 1 1 280px; }
.manual code, .path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.manual ol, .manual ul { padding-left: 1.3em; }
.manual li { margin-bottom: .6em; }
.toc { font-size: .92rem; }
.toc ol { margin: 0; }
.callouts { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: start; }
.callouts ul { list-style: none; padding: 0; margin: 0; font-size: .85rem; color: var(--muted); }
.callouts li { margin-bottom: 10px; }
.callouts .left { text-align: right; }
@media (max-width: 760px) { .callouts { grid-template-columns: 1fr; } .callouts .left { text-align: left; } .callouts figure { order: -1; } }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); }

/* Contact form */
form.contact { display: grid; gap: 16px; }
form.contact label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
form.contact input, form.contact select, form.contact textarea { font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
form.contact input:focus, form.contact select:focus, form.contact textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
form.contact .hp { position: absolute; left: -9999px; }
form.contact button { justify-self: start; }
form.contact button:disabled { opacity: .6; cursor: wait; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand img { width: 110px; margin-bottom: 14px; }
.site-footer h6 { font-size: .75rem; letter-spacing: .14em; color: var(--accent); margin-bottom: 14px; }
.site-footer p { margin: 0 0 8px; font-size: .9rem; color: var(--muted); }
.site-footer a { text-decoration: none; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
