/* JingleLayer — layout-b (jinglelayer.org).
 * Світла «редакційна» тема для подкастерів і радіо.
 * Антиква у заголовках, вузька колонка тексту, спокійний бірюзовий акцент.
 */

:root {
  --bg: #faf8f4;
  --panel: #ffffff;
  --panel-2: #f2efe8;
  --ink: #171c1a;
  --ink-soft: #414a47;
  --muted: #6f7a76;
  --line: #e2ddd2;
  --line-strong: #cdc6b8;
  --accent: #0f766e;
  --accent-dark: #0b544e;
  --accent-soft: #e4f1ef;
  --success: #15803d;
  --radius: 4px;
  --max: 1080px;
  --max-narrow: 660px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

*, *::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(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
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: 11px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.lg { padding: 14px 26px; font-size: 16px; }

/* Видима фокус-рамка для клавіатури. */
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Header --- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo .dot { color: var(--accent); font-style: italic; }
.site-nav { display: flex; align-items: center; gap: 26px; flex: 0 0 auto; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.site-nav a:hover { color: var(--accent); }
.site-nav a.btn { color: #fff; }

/* --- Hero: дві колонки, текст ліворуч --- */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-family: -apple-system, sans-serif; font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.12; margin: 0 0 20px; }
.lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-shot img { border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(23, 28, 26, .10); }

/* --- Sections --- */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section.tight { padding: 56px 0; }
.section-head { max-width: var(--max-narrow); margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 14px; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* --- Features: нумеровані рядки з лівою лінійкою --- */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 48px; }
.feature { padding: 22px 0 22px 22px; border-left: 2px solid var(--line); }
.feature:hover { border-left-color: var(--accent); }
.feature .icon { display: none; }
.feature h3 { font-size: 19px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* --- Steps --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step-item { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--accent); }
.step-item::before {
  content: "0" counter(step); display: block; font-family: var(--serif);
  font-size: 15px; color: var(--accent); margin-bottom: 10px; letter-spacing: .05em;
}
.step-item h3 { font-size: 19px; margin: 0 0 8px; }
.step-item p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* --- CTA strip --- */
.cta-strip { background: var(--accent-soft); border: 1px solid #cfe3e0; border-radius: var(--radius); padding: 44px 40px; }
.cta-strip h2 { font-size: 28px; margin: 0 0 12px; }
.cta-strip p { color: var(--ink-soft); margin: 0 0 24px; max-width: 60ch; }

/* --- Pricing --- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 880px; margin: 0 auto; }
.plan { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--line-strong); border-radius: var(--radius); padding: 32px 28px; position: relative; }
.plan.featured { border-top-color: var(--accent); }
.plan .badge {
  position: absolute; top: -12px; right: 24px; background: var(--accent); color: #fff;
  font-family: -apple-system, sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; padding: 4px 10px; border-radius: 99px;
}
.plan h3 { font-size: 23px; margin: 0 0 6px; }
.plan .desc { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.plan .price { font-family: var(--serif); font-size: 42px; line-height: 1; margin-bottom: 24px; }
.plan .price small { font-family: -apple-system, sans-serif; font-size: 15px; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; }
.plan li { position: relative; padding-left: 24px; margin-bottom: 10px; font-size: 15.5px; color: var(--ink-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: 40px; }
.billing-switcher { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.switch-btn {
  background: var(--panel); border: none; color: var(--muted); font-size: 14px; font-weight: 600;
  cursor: pointer; padding: 11px 24px; display: inline-flex; align-items: center; transition: background .15s, color .15s;
}
.switch-btn + .switch-btn { border-left: 1px solid var(--line-strong); }
.switch-btn.active { background: var(--accent); color: #fff; }
.discount-badge {
  background: rgba(255,255,255,.22); color: inherit; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 99px; margin-left: 8px; text-transform: uppercase; letter-spacing: .05em;
}
.switch-btn:not(.active) .discount-badge { background: var(--accent-soft); color: var(--accent); }

/* --- Download --- */
.download-grid { display: grid; gap: 20px; max-width: var(--max-narrow); }
.dl-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.dl-card h3 { font-size: 19px; margin: 0 0 4px; }
.dl-card p { margin: 0; font-size: 15px; }
.dl-card .meta { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--muted); }
.dl-os-icon { margin-right: 6px; }

.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 3px; padding: 2px 7px; }

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

/* --- Footer --- */
.site-footer { background: var(--panel-2); border-top: 1px solid var(--line); padding: 52px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand p { color: var(--muted); font-size: 15px; margin: 12px 0 0; max-width: 34ch; }
.site-footer h4 { font-family: -apple-system, sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.site-footer a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 15px; 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-size: 14px; }

@media (max-width: 860px) {
  .hero-split, .features-grid, .steps, .footer-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero-split { gap: 36px; }
  .features-grid { gap: 0 0; }
  .footer-grid { gap: 24px; }
  .dl-card { grid-template-columns: 1fr; }
}

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

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