/* OneView — official, clean, trust-first design system (light) */
:root {
  --bg: #f6f7f9;
  --bg-soft: #eef1f5;
  --card: #ffffff;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --text: #101828;
  --muted: #667085;
  --accent: #1d4ed8;
  --accent-dark: #1e40af;
  --accent-50: #eff4ff;
  --accent-100: #dbe6fe;
  --ok: #079455;
  --ok-50: #ecfdf3;
  --danger: #d92d20;
  --danger-50: #fef3f2;
  --warn-50: #fffaeb;
  --warn-600: #b54708;
  --warn-border: #fedf89;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 8px 24px -4px rgba(16, 24, 40, 0.1), 0 2px 6px rgba(16, 24, 40, 0.05);
  --font: 'Heebo', -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- header ---------- */
header.site { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
header.site .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo .mark { display: flex; align-items: flex-end; gap: 2.5px; height: 20px; }
.logo .mark i { width: 3.5px; background: var(--accent); border-radius: 2px; display: block; }
.logo .mark i:nth-child(1) { height: 8px; }
.logo .mark i:nth-child(2) { height: 18px; }
.logo .mark i:nth-child(3) { height: 12px; }
.logo .mark i:nth-child(4) { height: 20px; opacity: 0.35; }
.logo .mark i:nth-child(5) { height: 6px; opacity: 0.35; }
nav.main { display: flex; gap: 26px; margin-inline-start: auto; align-items: center; }
nav.main a { color: var(--muted); font-size: 15px; font-weight: 500; }
nav.main a:hover { color: var(--text); text-decoration: none; }
.lang-btn {
  background: none; border: 1px solid var(--border-strong); color: var(--muted);
  border-radius: 8px; padding: 5px 14px; font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer;
}
.lang-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: var(--font);
  font-size: 15.5px; font-weight: 600; border-radius: 10px; padding: 12px 28px; transition: all 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-ghost { background: var(--card); border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-danger { background: var(--card); border: 1px solid var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 36px; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent-50); color: var(--accent-dark);
  border: 1px solid var(--accent-100); border-radius: 999px; padding: 6px 16px; font-size: 13.5px; font-weight: 600; margin-bottom: 26px;
}
.hero-badge .ico { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; max-width: 800px; margin: 0 auto 20px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.sub { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* trust strip */
.trust { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; margin-top: 46px; padding-bottom: 8px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.trust .ico { width: 18px; height: 18px; color: var(--ok); }

/* hero waveform */
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 44px; margin: 34px auto 0; max-width: 420px; }
.wave i { width: 3.5px; border-radius: 3px; background: var(--accent); opacity: 0.75; animation: pulse 1.8s ease-in-out infinite; display: block; }
.wave i:nth-child(odd) { background: var(--border-strong); }
@keyframes pulse { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.panel { max-width: 620px; margin: 0 auto; box-shadow: var(--shadow-lg); }

/* ---------- app / composer ---------- */
.app-section { padding: 56px 0 72px; }
.app-title { text-align: center; font-size: 24px; margin-bottom: 8px; }
.app-sub { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.tabs { display: flex; gap: 0; margin-bottom: 22px; background: var(--bg-soft); border-radius: 10px; padding: 4px; }
.tab {
  flex: 1; background: none; border: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border-radius: 8px; cursor: pointer; font-family: var(--font); font-size: 15px; font-weight: 600;
}
.tab .ico { width: 18px; height: 18px; }
.tab.active { background: var(--card); color: var(--accent); box-shadow: var(--shadow-sm); }

.dropzone {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 40px 20px; background: #fcfcfd;
  text-align: center; color: var(--muted); cursor: pointer; transition: all 0.15s; font-size: 15px;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-50); }
.dropzone .dz-ico { width: 40px; height: 40px; color: var(--accent); margin: 0 auto 10px; display: block; stroke-width: 1.5; }
.dropzone .file-name { color: var(--accent-dark); font-weight: 600; margin-top: 10px; }

.recorder { text-align: center; padding: 22px 0 10px; }
.rec-btn {
  width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--danger);
  background: var(--card); cursor: pointer; position: relative; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.rec-btn .dot { position: absolute; inset: 22px; border-radius: 50%; background: var(--danger); transition: all 0.2s; }
.rec-btn.recording .dot { inset: 25px; border-radius: 5px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.4; } }
.rec-timer { font-variant-numeric: tabular-nums; font-size: 22px; color: var(--text); font-weight: 600; }
.recorder audio { width: 100%; margin-top: 14px; }

.settings { margin-top: 26px; display: grid; gap: 20px; }
.setting label.head { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.chips { display: flex; gap: 8px; }
.chip {
  flex: 1; padding: 10px 0; text-align: center; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--card); color: var(--text); cursor: pointer; font-family: var(--font); font-size: 15px; font-weight: 600;
}
.chip:hover { border-color: var(--accent); }
.chip.active { border-color: var(--accent); background: var(--accent-50); color: var(--accent-dark); box-shadow: inset 0 0 0 1px var(--accent); }
input[type="text"], input[type="password"], select {
  width: 100%; background: var(--card); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 10px; padding: 11px 14px; font-family: var(--font); font-size: 15px;
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-100); }
input::placeholder { color: #98a2b3; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

.submit-row { margin-top: 28px; }
.submit-row .btn { width: 100%; padding: 14px; font-size: 16px; }
.error-box { background: var(--danger-50); border: 1px solid #fda29b; color: var(--danger); border-radius: 10px; padding: 12px 16px; margin-top: 16px; font-size: 14px; font-weight: 500; }

/* result */
.result h3 { color: var(--ok); margin-bottom: 20px; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.result h3 .ico { color: var(--ok); }
.link-row { margin-bottom: 18px; }
.link-row .head { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.link-box { display: flex; gap: 8px; }
.link-box input { direction: ltr; text-align: left; font-size: 13px; color: var(--accent-dark); background: var(--bg); }
.copy-btn {
  white-space: nowrap; background: var(--card); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 10px; padding: 0 18px; cursor: pointer; font-family: var(--font); font-size: 14px; font-weight: 600;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.note { font-size: 13.5px; color: var(--muted); }
.note.warn { background: var(--warn-50); border: 1px solid var(--warn-border); color: var(--warn-600); border-radius: 10px; padding: 10px 14px; font-weight: 500; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(26px, 3.2vw, 34px); text-align: center; margin-bottom: 12px; }
.section .section-sub { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 44px; font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .steps, .grid-3 { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 28px 22px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent-50); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 18px; font-weight: 800;
}
.step h3, .feature h3 { font-size: 17px; margin-bottom: 8px; }
.step p, .feature p { color: var(--muted); font-size: 14.5px; }
.feature { padding: 26px; }
.feature .fico {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-50); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}

.honesty { background: var(--warn-50); border: 1px solid var(--warn-border); border-radius: var(--radius); padding: 24px 28px; display: flex; gap: 16px; align-items: flex-start; }
.honesty .ico { color: var(--warn-600); width: 26px; height: 26px; margin-top: 3px; }
.honesty h3 { color: var(--warn-600); margin-bottom: 6px; font-size: 16px; }
.honesty p { color: #7a5510; font-size: 14.5px; }

footer.site { background: var(--card); border-top: 1px solid var(--border); padding: 28px 0; margin-top: 0; }
footer.site .wrap { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; flex-wrap: wrap; gap: 10px; }

/* ---------- listen page ---------- */
.center-page { min-height: 100vh; display: flex; flex-direction: column; }
.center-page main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.listen-card { width: 100%; max-width: 480px; text-align: center; box-shadow: var(--shadow-lg); padding: 40px 34px; }
.listen-card h2 { font-size: 23px; margin-bottom: 6px; }
.listen-card .label { color: var(--muted); margin-bottom: 22px; font-size: 15px; }
.badges { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.badge { font-size: 13px; font-weight: 600; background: var(--bg-soft); color: var(--muted); border-radius: 999px; padding: 5px 15px; }
.badge.accent { background: var(--accent-50); color: var(--accent-dark); }

.play-big {
  width: 92px; height: 92px; border-radius: 50%; background: var(--accent); border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s; box-shadow: var(--shadow-lg);
}
.play-big:hover { background: var(--accent-dark); transform: scale(1.04); }
.play-big svg { width: 32px; height: 32px; fill: #fff; }
.play-big.playing svg.play-ico, .play-big:not(.playing) svg.pause-ico { display: none; }
.play-big:disabled { background: var(--border-strong); transform: none; cursor: not-allowed; }

.player { margin-top: 26px; }
.progress-wrap { background: var(--bg-soft); height: 7px; border-radius: 4px; overflow: hidden; margin: 18px 0 8px; }
.progress { height: 100%; width: 0%; background: var(--accent); transition: width 0.2s linear; border-radius: 4px; }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; direction: ltr; }

.finished { margin-top: 24px; }
.finished .fin-ico { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.finished .fin-ico.ok { background: var(--ok-50); color: var(--ok); }
.finished .fin-ico.burn { background: var(--danger-50); color: var(--danger); }
.finished p { font-size: 15px; font-weight: 500; margin-bottom: 16px; }

.gone-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--danger-50); color: var(--danger); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.pin-row { display: flex; gap: 8px; margin: 18px 0; }
.pin-row input { text-align: center; letter-spacing: 3px; }

.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- stats page ---------- */
.stats-card { width: 100%; max-width: 660px; box-shadow: var(--shadow-lg); }
.status-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 16px; font-size: 14px; font-weight: 600; }
.status-chip.active { background: var(--ok-50); color: var(--ok); }
.status-chip.gone { background: var(--danger-50); color: var(--danger); }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 22px 0; }
.meta-item { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; }
.meta-item .k { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.meta-item .v { font-size: 16.5px; font-weight: 700; margin-top: 2px; }
table.plays { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
table.plays th { text-align: start; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
table.plays td { padding: 10px; border-bottom: 1px solid var(--border); }
table.plays td.ua { color: var(--muted); font-size: 12.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions-row { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }

.hidden { display: none !important; }
