/* STMobileTech — site styles. Mobile-first, no framework. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Turkish/Central European letters (ğ ş İ …): downloaded only by pages that use them */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0a0918;
  --bg-raised: #110f26;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f1f1fa;
  --muted: #b3b5cf;
  --faint: #8a8cab;
  --teal: #15a397;
  --teal-deep: #035b58;
  --purple: #833ddf;
  --lilac: #c4a6ff;
  --mint: #7fe3d6;
  --gradient: linear-gradient(135deg, #0e7f77 0%, #5b4fd8 55%, #833ddf 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --container: 1160px;
  --gutter: 20px;
  --header-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: #fff; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

.gradient-text {
  background: linear-gradient(120deg, #8ff0e2 0%, #c4a6ff 60%, #e3d4ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mint); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 9, 24, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand:hover { color: #fff; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--bg-raised); border-bottom: 1px solid var(--border);
  padding: 8px var(--gutter) 20px; box-shadow: var(--shadow);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 12px 4px; color: var(--text); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.site-nav a[aria-current="page"] { color: var(--mint); }
.site-nav .nav-cta { margin-top: 14px; border: 0; text-align: center; }

/* Language selector */
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 700; font-size: 0.85rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary svg { width: 18px; height: 18px; color: var(--mint); }
.lang-switch[open] summary { border-color: var(--border-strong); background: var(--surface-strong); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px;
  list-style: none; margin: 0; padding: 6px; border-radius: 14px;
  background: var(--bg-raised); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600;
}
.lang-menu a:hover { background: var(--surface-strong); color: #fff; }
.lang-menu a[aria-current="true"] { color: var(--mint); }
.lang-menu a[aria-current="true"]::after { content: "\2713"; font-weight: 800; }

/* Language suggestion (English root only): fixed card, so it never shifts the layout */
.lang-suggest {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; max-width: 420px;
  padding: 16px 18px; border-radius: 18px; background: var(--bg-raised); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.lang-suggest p { margin: 0 0 12px; font-weight: 600; }
.lang-suggest-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-suggest .btn { min-height: 44px; padding: 8px 18px; font-size: 0.92rem; }
@media (min-width: 640px) { .lang-suggest { left: auto; right: 20px; bottom: 20px; } }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { margin-left: auto; }
  .header-tools { order: 3; margin-left: 10px; }
  .site-nav, .site-nav.is-open { display: block; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
  .site-nav a { border: 0; padding: 8px 12px; border-radius: 10px; font-size: 0.94rem; color: var(--muted); }
  .site-nav a:hover { color: var(--text); background: var(--surface); }
  .site-nav .nav-cta { margin: 0 0 0 8px; }
}

/* ---------- Buttons & store badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 30px -10px rgba(131, 61, 223, 0.7); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-strong); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.site-nav .btn { min-height: 42px; padding: 8px 18px; color: #fff; }

.store-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store-badge {
  display: inline-block; border-radius: 12px; line-height: 0;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.store-badge img { width: 146px; height: 43px; border-radius: 9px; }
@media (min-width: 400px) { .store-badge img { width: 160px; height: 48px; } }
@media (min-width: 640px) { .store-badge img { width: 168px; height: 50px; border-radius: 10px; } }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 10px 24px -10px rgba(0, 0, 0, 0.8); }
.store-badges.compact .store-badge img { width: 134px; height: 40px; }
.platform-note { margin-top: 12px; font-size: 0.875rem; color: var(--faint); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
.section-tight { padding: 48px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)); border-top: 1px solid var(--border); }
@media (min-width: 900px) { .section { padding: 104px 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 15% 20%, rgba(21, 163, 151, 0.28), transparent 70%),
    radial-gradient(45% 55% at 85% 30%, rgba(131, 61, 223, 0.35), transparent 70%),
    radial-gradient(30% 40% at 60% 90%, rgba(91, 79, 216, 0.22), transparent 70%);
}
.stars { position: absolute; inset: 0; z-index: -1; opacity: 0.55; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 32%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 82%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 82%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 51%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero-actions .btn-ghost { margin-top: 2px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 0.92rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--mint); flex: none; }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 0; }
.hero-visual .phone { width: min(62vw, 270px); }
.hero-visual .phone.back { position: absolute; width: min(52vw, 230px); transform: translate(-50%, 8%) rotate(-7deg); opacity: 0.9; display: none; }
.hero-visual .phone.front { position: relative; transform: translateX(0); z-index: 2; }
@media (min-width: 560px) {
  .hero-visual .phone.back { display: block; }
  .hero-visual .phone.front { transform: translateX(22%); }
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.08fr 1fr; gap: 40px; }
  .hero-visual .phone { width: 290px; }
  .hero-visual .phone.back { width: 250px; }
}

/* Phone frame around real screenshots */
.phone {
  border-radius: 40px; padding: 10px; background: linear-gradient(160deg, #2a2840, #121024);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow), 0 40px 80px -30px rgba(131, 61, 223, 0.45);
}
.phone img { border-radius: 31px; width: 100%; aspect-ratio: 1242 / 2688; object-fit: cover; background: #0f0d20; }

/* App hero (detail pages) */
.h1-sub { display: block; font-size: 0.56em; line-height: 1.25; margin-top: 10px; letter-spacing: -0.01em; }
.app-shot { width: min(70vw, 320px); border-radius: 28px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow); }
.app-hero-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.app-hero-head img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); }
.app-hero-head .meta { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.app-hero-head .meta strong { display: block; color: var(--text); font-size: 1rem; }

.breadcrumb { font-size: 0.85rem; color: var(--faint); margin-bottom: 26px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.breadcrumb a { color: var(--muted); text-decoration: none; display: inline-block; padding: 6px 0; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; position: relative;
}
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 979px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.icon-chip {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(21, 163, 151, 0.22), rgba(131, 61, 223, 0.22));
  border: 1px solid var(--border-strong); color: var(--mint);
}
.icon-chip svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.92rem; }

/* App portfolio cards */
.app-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease; }
.app-card:hover { border-color: var(--border-strong); }
.app-card-top { padding: 26px 26px 0; display: flex; gap: 16px; align-items: center; }
.app-card-top img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.app-card-top h3 { margin: 0 0 4px; font-size: 1.15rem; }
.app-card-top h3 a { color: var(--text); text-decoration: none; }
.app-card-top h3 a:hover { text-decoration: underline; }
.platform-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; padding: 3px 9px; border-radius: 999px; background: var(--surface-strong); color: var(--muted); border: 1px solid var(--border); }
.app-card-body { padding: 18px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.app-card-body > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 0.94rem; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: var(--gradient);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.3 14.2L4.6 10l1.4-1.4 2.7 2.7 5.3-5.3 1.4 1.4-6.7 6.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.3 14.2L4.6 10l1.4-1.4 2.7 2.7 5.3-5.3 1.4 1.4-6.7 6.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.app-card-actions { margin-top: auto; display: grid; gap: 14px; }
.app-card .learn-more { font-weight: 700; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.app-card .learn-more:hover { text-decoration: underline; }
.learn-more svg, .card-link svg { width: 18px; height: 18px; flex: none; }
.app-card .shot-strip { position: relative; height: 210px; overflow: hidden; margin: 22px 26px 0; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0)); }
.app-card .shot-strip img { position: absolute; width: 130px; border-radius: 16px; top: 18px; box-shadow: var(--shadow); }
.app-card .shot-strip img:first-child { left: calc(50% - 140px); transform: rotate(-5deg); }
.app-card .shot-strip img:last-child { left: calc(50% + 10px); transform: rotate(4deg); top: 28px; }

/* ---------- Mixer demo ---------- */
.demo { overflow: hidden; }
.demo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 60% at 80% 40%, rgba(21, 163, 151, 0.18), transparent 70%),
              radial-gradient(40% 50% at 10% 80%, rgba(131, 61, 223, 0.2), transparent 70%);
}
.demo-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.demo-copy .store-badges { margin-top: 8px; }
.demo-copy h3 { font-size: 1rem; margin: 28px 0 12px; color: var(--text); }
.demo-note { font-size: 0.875rem; color: var(--faint); margin-top: 16px; }

.mixer {
  --tile: 84px;
  background: #0d1716; border-radius: 24px; overflow: hidden; position: relative;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.mixer-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--teal-deep); color: #fff; }
.mixer-bar .title { font-weight: 700; font-size: 1.05rem; flex: 1; }
.mixer-bar svg { width: 22px; height: 22px; }
.mixer-stop {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); cursor: pointer; font-weight: 700; font-size: 0.88rem;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.mixer-stop:hover:not([aria-disabled="true"]) { background: rgba(255, 255, 255, 0.24); }
.mixer-stop[aria-disabled="true"] { opacity: 0.45; cursor: default; }
.mixer-stop svg { width: 18px; height: 18px; }
.mixer-header-img { position: relative; height: 150px; background: #0b1514 center / cover no-repeat; }
.mixer-header-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 23, 22, 0) 40%, #0d1716 100%); }
.mixer-header-img img { width: 100%; height: 100%; object-fit: cover; }
.mixer-status { position: absolute; left: 16px; bottom: 12px; z-index: 1; font-size: 0.82rem; font-weight: 600; color: #e7fffb; display: flex; align-items: center; gap: 8px; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.mixer-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #8a8cab; }
.mixer[data-active="true"] .mixer-status .dot { background: #5ef0c8; box-shadow: 0 0 0 4px rgba(94, 240, 200, 0.2); }

.mixer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; padding: 18px 16px 22px; }
.sound { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.sound-btn {
  position: relative; width: var(--tile); height: var(--tile); padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 20px; transition: transform 0.12s ease;
}
.sound-btn:active { transform: scale(0.96); }
.sound-btn img { width: 100%; height: 100%; }
.sound-btn .img-active { position: absolute; inset: 0; opacity: 0; transition: opacity 0.15s ease; }
.sound-btn[aria-pressed="true"] .img-active { opacity: 1; }
.sound-btn[aria-pressed="true"] { box-shadow: 0 0 0 4px rgba(94, 240, 200, 0.18), 0 10px 26px -8px rgba(94, 240, 200, 0.45); }
.sound-btn[data-state="loading"]::after {
  content: ""; position: absolute; inset: -5px; border-radius: 24px; border: 2px solid transparent; border-top-color: #5ef0c8;
  animation: spin 0.8s linear infinite;
}
.sound-btn[data-state="error"] { box-shadow: 0 0 0 3px rgba(255, 120, 120, 0.6); }
@keyframes spin { to { transform: rotate(360deg); } }
.sound-name { font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; visibility: hidden; }
.eq i { width: 3px; height: 100%; background: #5ef0c8; border-radius: 2px; transform-origin: bottom; transform: scaleY(0.4); }
.sound.is-playing .eq { visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .sound.is-playing .eq i { animation: eq 1s ease-in-out infinite; }
  .sound.is-playing .eq i:nth-child(2) { animation-delay: -0.35s; }
  .sound.is-playing .eq i:nth-child(3) { animation-delay: -0.65s; }
}
@keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

.volume { width: 100%; max-width: 150px; display: flex; align-items: center; gap: 8px; }
.volume output { font-size: 0.78rem; color: var(--muted); min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.volume input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 28px; background: transparent; cursor: pointer;
  --fill: 70%;
}
.volume input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #fff var(--fill), rgba(255, 255, 255, 0.22) var(--fill));
}
.volume input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); }
.volume input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: #fff; }
.volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.volume input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.sound:not(.is-playing) .volume { opacity: 0.55; }
.mixer-message { min-height: 1.4em; margin: 0; padding: 0 16px 16px; font-size: 0.85rem; color: #ffb4b4; text-align: center; }
.mixer-noscript { padding: 0 16px 18px; font-size: 0.9rem; color: var(--muted); text-align: center; }

/* Mobile: edge-to-edge card, no phone frame */
@media (max-width: 899px) {
  .demo .container.demo-grid { padding: 0; }
  .demo-copy { padding: 0 var(--gutter); }
  .mixer-wrap { padding: 0 12px; }
  .mixer { --tile: 92px; }
}
@media (max-width: 360px) { .mixer { --tile: 76px; } }

/* Desktop: phone-style frame */
@media (min-width: 900px) {
  .mixer-wrap { display: flex; justify-content: center; }
  .mixer-device {
    width: 360px; padding: 12px; border-radius: 52px;
    background: linear-gradient(160deg, #2b2942, #121024);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), var(--shadow), 0 50px 100px -30px rgba(21, 163, 151, 0.35);
  }
  .mixer { border-radius: 40px; border: 0; padding-top: 30px; background: #0d1716; }
  .mixer::before { content: ""; position: absolute; top: 10px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: #05050c; z-index: 3; }
  .mixer-bar { border-radius: 0; }
}

/* ---------- Screenshot gallery ---------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62%, 230px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 22px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { border-radius: 22px; border: 1px solid var(--border-strong); box-shadow: var(--shadow); background: #0f0d20; }
.gallery figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--muted); text-align: center; }
@media (min-width: 1100px) { .gallery { grid-auto-columns: 1fr; overflow: visible; margin: 0; padding: 6px 0 0; } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.steps .card { padding-top: 64px; }
.steps .card::before {
  counter-increment: step; content: counter(step); position: absolute; top: 22px; left: 26px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gradient); font-weight: 800; font-size: 0.95rem;
}

/* ---------- Sound library chips ---------- */
.library { display: grid; gap: 18px; }
@media (min-width: 760px) { .library { grid-template-columns: repeat(2, 1fr); } }
.library h3 { font-size: 1.02rem; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--surface-strong); border: 1px solid var(--border); font-size: 0.88rem; color: var(--muted); }

/* ---------- Quotes ---------- */
.quotes { display: grid; gap: 18px; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote { margin: 0; }
.quote p { color: var(--text); font-size: 1.02rem; }
.quote footer { color: var(--faint); font-size: 0.9rem; font-weight: 600; }
.quote::before { content: "\201C"; display: block; font-size: 3rem; line-height: 0.6; margin-bottom: 8px; color: var(--lilac); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 28px; padding: 36px 16px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(3, 91, 88, 0.9), rgba(76, 46, 160, 0.92));
  border: 1px solid var(--border-strong);
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: #dcdcf2; max-width: 36em; margin: 0 auto 24px; }
.cta-band .store-badges { justify-content: center; }
@media (max-width: 479px) { .cta-band .store-badge img { width: 140px; height: 42px; } }
.cta-apps { display: grid; gap: 22px; justify-content: center; margin-top: 8px; }
.cta-apps .cta-app { display: grid; gap: 10px; justify-items: center; }
.cta-apps .cta-app strong { font-size: 0.95rem; }
@media (min-width: 760px) { .cta-band { padding: 56px 48px; } .cta-apps { grid-template-columns: repeat(3, auto); gap: 36px; } }

/* ---------- Prose (privacy, contact) ---------- */
.prose { max-width: 780px; }
.prose h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-top: 1.6em; }
.prose h1:first-child { margin-top: 0; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.4em; }
.prose p, .prose li { color: #d4d5e6; }
.prose li p { margin: 0 0 0.4em; }
.prose ul { padding-left: 1.3em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: #08071280; margin-top: 24px; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer li a { color: var(--muted); text-decoration: none; font-size: 0.94rem; display: inline-block; padding: 5px 0; }
.site-footer li a:hover { color: var(--text); text-decoration: underline; }
.footer-about p { color: var(--muted); font-size: 0.94rem; max-width: 26em; margin-top: 14px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--faint); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------- Misc ---------- */
.two-col { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }
.notice { border-left: 3px solid var(--lilac); padding: 14px 18px; background: var(--surface); border-radius: 0 12px 12px 0; color: var(--muted); font-size: 0.94rem; }
.contact-card a { font-weight: 700; word-break: break-all; }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Japanese: system Japanese fonts (no web-font download), no negative tracking, natural line breaks */
:lang(ja) body, body:lang(ja) {
  font-family: "Plus Jakarta Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  line-break: strict;
}
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: 0; line-height: 1.35; word-break: auto-phrase; }
:lang(ja) .lead, :lang(ja) p { line-height: 1.8; }
:lang(ja) .eyebrow { letter-spacing: 0.04em; }
