/* JingleLayer — layout-c (jinglelayer.online).
 * Темна «стрімерська» тема: майже чорний фон, ціановий акцент,
 * гострі кути, моноширинні підписи, bento-сітка замість карток.
 */

:root {
  --bg: #08080a;
  --panel: #101015;
  --panel-2: #17171e;
  --line: #23232d;
  --line-strong: #33333f;
  --text: #f2f2f5;
  --text-soft: #b9b9c4;
  --muted: #7a7a88;
  --accent: #22d3ee;
  --accent-dark: #0e9fb8;
  --accent-soft: rgba(34, 211, 238, .1);
  --success: #34d399;
  --radius: 3px;
  --max: 1140px;
  --max-narrow: 700px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 750; letter-spacing: -0.025em; line-height: 1.1; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right)); }
.container.narrow { max-width: var(--max-narrow); }
.muted { color: var(--muted); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  white-space: nowrap;
  padding: 12px 22px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--panel-2); color: var(--text);
  font-size: 14px; font-weight: 700; letter-spacing: .01em; text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #04141a; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #04141a; }
.btn.lg { padding: 15px 30px; font-size: 15px; }

/* Видима фокус-рамка для клавіатури — браузерна на темному тлі майже не читається. */
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Header --- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(8, 8, 10, .85); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.logo { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--text); text-decoration: none; text-transform: lowercase; white-space: nowrap; }
.logo .dot { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
.site-nav a { color: var(--text-soft); text-decoration: none; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.site-nav a:hover { color: var(--accent); }
.site-nav a.btn { text-transform: none; letter-spacing: 0; color: #04141a; }

/* --- Hero: заголовок на всю ширину, без картинки --- */
.hero { padding: 84px 0 48px; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--accent);
  border: 1px solid var(--line-strong); border-radius: 99px; padding: 6px 14px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(38px, 6.5vw, 68px); margin: 0 auto 20px; max-width: 16ch; }
.lead { font-size: 18px; color: var(--text-soft); margin: 0 auto 32px; max-width: 58ch; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Bento --- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 64px; }
.cell { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.cell.wide { grid-column: span 2; }
.cell.shot { grid-column: span 3; padding: 0; overflow: hidden; border-color: var(--line-strong); }
.cell.shot img { width: 100%; }
.cell .tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); display: block; margin-bottom: 12px; }
.cell h3 { font-size: 19px; margin: 0 0 8px; }
.cell p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* Сумісність зі спільними класами */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .icon { display: none; }
.feature h3 { font-size: 18px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* --- Sections --- */
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 12px; }
.section-head p { color: var(--text-soft); margin: 0; max-width: 62ch; }

/* --- Steps --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.step-item { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--radius); padding: 24px; }
.step-item::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: 10px; }
.step-item h3 { font-size: 17px; margin: 0 0 6px; }
.step-item p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* --- CTA strip --- */
.cta-strip { border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%); padding: 52px 40px; text-align: center; }
.cta-strip h2 { font-size: 32px; margin: 0 0 12px; }
.cta-strip p { color: var(--text-soft); margin: 0 auto 26px; max-width: 56ch; }

/* --- Pricing --- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 900px; margin: 0 auto; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft), 0 20px 50px rgba(34, 211, 238, .07); }
.plan .badge { position: absolute; top: -11px; left: 26px; background: var(--accent); color: #04141a; font-family: var(--mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; border-radius: var(--radius); }
.plan h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; font-weight: 700; }
.plan .desc { color: var(--text-soft); font-size: 14px; margin: 0 0 20px; }
.plan .price { font-size: 46px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 22px; }
.plan .price small { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; }
.plan li { position: relative; padding-left: 22px; margin-bottom: 9px; font-size: 14.5px; color: var(--text-soft); }
.plan li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.plan .btn { width: 100%; text-align: center; }

.billing-switcher-container { display: flex; justify-content: center; margin-bottom: 36px; }
.billing-switcher { display: inline-flex; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 3px; }
.switch-btn { background: transparent; border: none; border-radius: var(--radius); color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; padding: 10px 20px; display: inline-flex; align-items: center; transition: background .15s, color .15s; }
.switch-btn.active { background: var(--accent); color: #04141a; }
.discount-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: var(--radius); margin-left: 8px; background: rgba(4, 20, 26, .2); }
.switch-btn:not(.active) .discount-badge { background: var(--accent-soft); color: var(--accent); }

/* --- Download --- */
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dl-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.dl-card h3 { font-size: 18px; margin: 0 0 6px; }
.dl-card p { margin: 0 0 6px; font-size: 14px; }
.dl-card .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.dl-os-icon { margin-right: 6px; }
.kbd { font-family: var(--mono); font-size: 13px; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 2px 7px; color: var(--accent); }

/* --- Legal --- */
.legal-content { max-width: var(--max-narrow); margin: 0 auto; padding: 56px 24px 80px; }
.legal-content h1 { font-size: 34px; margin: 0 0 8px; }
.legal-content h2 { font-size: 19px; margin: 34px 0 10px; }
.legal-content p, .legal-content li { color: var(--text-soft); }
.legal-meta { font-family: var(--mono); color: var(--muted); font-size: 13px; margin-bottom: 32px; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; background: var(--panel); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 32px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 12px 0 0; max-width: 32ch; }
.site-footer h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.site-footer a { display: block; color: var(--text-soft); text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-family: var(--mono); font-size: 12px; }

@media (max-width: 900px) {
  .bento, .features-grid, .steps, .pricing-grid, .download-grid, .footer-grid { grid-template-columns: 1fr; }
  .cell.wide, .cell.shot { grid-column: span 1; }
}

/* Вузька шапка: посилання, що дублює CTA, ховається — кнопка веде туди ж.
 * Нижче 360px не лишається місця й для «Pricing»; обидва пункти є в підвалі. */
@media (max-width: 640px) {
  .site-header .container { gap: 12px; }
  .site-nav { gap: 14px; }
  .site-nav a[data-cta-duplicate] { display: none; }
  .site-nav a.btn { padding: 12px 16px; }
}

@media (max-width: 359px) {
  .site-nav a:not(.btn) { display: none; }
}
