/* Emulsion Labs: Ash design system (matching Playlist Pro) */
:root {
  color-scheme: dark;
  --bg: #151413;
  --surface: #1c1b19;
  --card: #242220;
  --hover: #2d2b28;
  --line: #2f2d2a;
  --text: #e7e3dd;
  --sub: #aaa59e;
  --muted: #74706a;
  --accent: #c9c3ba;
  --accent-hover: #e2ddd5;
  --ink: #161513;
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-hover); text-underline-offset: 3px; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
code { font-size: .92em; background: var(--card); padding: 2px 7px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; width: 100%; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--accent); color: var(--ink); padding: 6px 12px; border-radius: 999px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Sticky Blurred Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 20, 19, .84);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -.01em; font-size: 16px; }
.brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { color: var(--sub); text-decoration: none; padding: 6px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; transition: background .2s, color .2s; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--card); color: var(--text); }
.nav a.active { background: var(--card); color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; text-decoration: none;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.btn-ghost { color: var(--text); background: var(--card); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-disabled { background: var(--surface); color: var(--muted); cursor: default; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line); }

/* Badges & Pills */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--card); color: var(--sub); font-size: 13px; font-weight: 500;
}
.badge {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--card); color: var(--sub); box-shadow: inset 0 0 0 1px var(--line);
}
.badge.accent { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* Main Content Wrap */
main { flex: 1; }

/* Short Hero (Home) */
.hero-short {
  padding: 64px 0 44px;
  text-align: center;
}
.hero-short .logo-wrap {
  display: inline-flex; justify-content: center; margin-bottom: 20px;
}
.hero-short .hero-logo {
  width: 96px; height: 96px; border-radius: 50%;
  box-shadow: 0 12px 36px rgba(0,0,0,.45);
}
.hero-short h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1.1; letter-spacing: -.025em; margin: 0 0 10px; font-weight: 700;
}
.hero-short .lead {
  color: var(--sub); font-size: 1.15rem; margin: 0 auto; max-width: 32em;
}

/* Product Hero (Subpages) */
.product-hero {
  padding: 48px 0 36px;
}
.product-hero .badges {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.product-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  line-height: 1.1; letter-spacing: -.025em; margin: 0 0 16px; font-weight: 700;
}
.product-hero .lead {
  color: var(--sub); font-size: 1.15rem; max-width: 44em; margin: 0 0 24px; line-height: 1.6;
}
.product-hero .cta-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 32px;
}

/* Breadcrumbs */
.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--muted); margin-bottom: 24px;
}
.crumbs a { color: var(--sub); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span.sep { color: var(--line); }

/* Even Product Cards Row (Home) */
.product-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 12px 0 64px;
}
.card {
  background: var(--surface); border-radius: var(--radius); padding: 26px;
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .25s, background .25s, box-shadow .25s;
  text-decoration: none; color: inherit;
}
.card:hover {
  transform: translateY(-3px); background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 40px rgba(0,0,0,.3);
}
.card-head { display: flex; flex-direction: column; gap: 10px; }
.card-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.card h2, .card h3 {
  margin: 0; font-size: 1.25rem; font-weight: 650; letter-spacing: -.015em; color: var(--text);
}
.card p {
  margin: 0; color: var(--sub); font-size: 15px; line-height: 1.55; flex: 1;
}
.card-foot {
  margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between;
}
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px; color: var(--accent);
}
.card:hover .card-link { color: #fff; }

/* Feature Sections & Grids */
section { padding: 40px 0; }
.eyebrow { color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
h2.sec-title { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 24px; font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Media Showcase */
.media-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 16px 0 32px;
}
.media-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
  display: flex; flex-direction: column;
}
.media-card img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg);
}
.media-card figcaption {
  padding: 14px 18px; font-size: 13.5px; color: var(--sub); font-weight: 500;
}

/* Tables */
.spec-table {
  width: 100%; border-collapse: collapse; margin: 16px 0 24px;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; font-size: 14.5px;
}
.spec-table th, .spec-table td {
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line);
}
.spec-table th {
  background: var(--card); color: var(--sub); font-weight: 600; font-size: 13.5px;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td.label-cell {
  font-weight: 600; color: var(--text); width: 28%;
}
.spec-table td.value-cell {
  color: var(--sub); line-height: 1.5;
}

/* Text & Legal Pages */
.page { max-width: 780px; margin: 0 auto; padding: 48px 20px 72px; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 0 0 8px; letter-spacing: -.02em; }
.page .meta { color: var(--muted); margin: 0 0 28px; font-size: 14.5px; }
.page h2 { font-size: 1.25rem; margin: 36px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); letter-spacing: -.01em; }
.page p { color: var(--sub); line-height: 1.65; margin: 0 0 16px; }
.page p strong, .page li strong { color: var(--text); }
.page ul { color: var(--sub); line-height: 1.65; margin: 0 0 18px; padding-left: 20px; }
.page li { margin: 6px 0; }
.confirm-tag {
  background: rgba(201,195,186,.14); color: var(--accent); padding: 2px 7px;
  border-radius: 6px; font-size: 12px; font-weight: 600; display: inline-block;
}

/* FAQ Details */
details.faq {
  background: var(--surface); border-radius: 14px; margin: 12px 0;
  box-shadow: inset 0 0 0 1px var(--line); transition: background .2s;
}
details.faq[open] { background: var(--card); }
details.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none;
  display: flex; align-items: center; gap: 12px; font-size: 15.5px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; margin-left: auto; width: 8px; height: 8px;
  border: solid var(--muted); border-width: 0 2px 2px 0;
  transform: rotate(45deg); transition: transform .25s; flex: none;
}
details.faq[open] summary::after { transform: rotate(-135deg); }
details.faq > div { padding: 0 20px 16px; color: var(--sub); font-size: 15px; line-height: 1.6; }
details.faq > div p { margin: 0 0 8px; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 14px;
  margin-top: auto;
}
footer .wrap {
  display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between;
}
footer .copy { color: var(--text); font-weight: 600; }
footer .nav-links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
footer .nav-links a { color: var(--sub); text-decoration: none; }
footer .nav-links a:hover { color: var(--text); }
footer .contact { color: var(--sub); }
footer .contact a { color: var(--text); text-decoration: none; }
footer .contact a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 860px) {
  .product-row { grid-template-columns: 1fr; gap: 16px; }
  .grid-2, .grid-3, .media-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top .wrap { height: 58px; }
  .brand { font-size: 15px; }
  .nav a { padding: 5px 9px; font-size: 13.5px; }
  .hero-short { padding: 48px 0 32px; }
  .product-hero { padding: 36px 0 24px; }
  footer .wrap { flex-direction: column; text-align: center; gap: 14px; }
  footer .nav-links { justify-content: center; }
}
