:root {
  --bg: #F5F7F2;
  --bg-soft: #EEF2EB;
  --card: #ffffff;
  --text: #1C231D;
  --text-muted: #454F47;
  --accent: #1E6B48;
  --accent-dark: #17573A;
  --accent-deep: #1E6B48;
  --border: #DCE3DB;
  --radius: 6px;
  --max-width: 1120px;
  --footer-bg: #16211C;
  --footer-text-muted: #A7B3A8;
  --bg-white: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 17px; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  line-height: 1.08;
  margin: 0 0 12px;
  font-weight: 700;
  text-wrap: balance;
}
h2 { font-size: 1.9rem; text-align: center; margin-bottom: 28px; }
p { color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

.num { font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: "IBM Plex Sans", sans-serif;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-icon { flex-shrink: 0; }
.btn-telegram { background: var(--accent); color: #fff; gap: 9px; }
.btn-telegram:hover { background: var(--accent-dark); }
.btn-max { background: var(--text); color: #fff; gap: 9px; }
.btn-max:hover { background: #0C120D; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { max-width: 1320px; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-badge {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { color: var(--text-muted); font-size: 1rem; font-weight: 600; white-space: nowrap; }
.header-nav a:hover { color: var(--text); }
.header-cta { display: flex; gap: 8px; flex-shrink: 0; }
.header-cta .btn {
  padding: 11px 18px;
  font-size: 0.85rem;
  min-width: 172px;
}

@media (max-width: 1080px) {
  .header-nav { display: none; }
}
.btn-text-short { display: none; }
@media (max-width: 620px) {
  .header-inner { gap: 8px; padding: 14px 14px; }
  .logo { font-size: 1.02rem; gap: 7px; }
  .logo-badge { width: 28px; height: 28px; }
  .header-cta { gap: 6px; }
  .header-cta .btn { padding: 9px 12px; font-size: 0.78rem; min-width: 0; gap: 0; }
  .header-cta .btn-icon { display: none; }
  .btn-text-full { display: none; }
  .btn-text-short { display: inline; }
}
@media (max-width: 360px) {
  .logo-badge { display: none; }
}

/* Hero */
.hero { padding: 68px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 16px;
}
.hero h1 { font-size: 3rem; margin: 0 0 20px; }
.hero-sub { font-size: 1.12rem; margin: 0 0 22px; }
.hero-benefits { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 8px; }
.hero-benefits li {
  padding-left: 20px;
  position: relative;
  font-size: 0.98rem;
  color: var(--text);
}
.hero-benefits li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
}
.hero-cta { position: relative; }
.hero-cta .btn-lg { min-width: 300px; }
.hero-cta-choice { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.hero-cta-choice[hidden] { display: none; }
.hero-cta-choice .btn { flex: 1; min-width: 140px; justify-content: center; }
.hero-note { margin-top: 12px; font-size: 0.9rem; }
.hero-proof { justify-self: end; max-width: 230px; width: 100%; align-self: center; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-proof { justify-self: center; margin: 8px auto 0; max-width: 230px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2.3rem; }
  .hero-cta .btn-lg { min-width: 0; width: 100%; }
}

/* Phone mockup (hero + showcase steps) */
.phone-mock {
  position: relative;
  background: var(--text);
  border-radius: 24px;
  padding: 12px 9px;
  box-shadow: 0 18px 36px rgba(28, 35, 29, 0.14);
}
.phone-mock::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
}
.phone-mock-screen {
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
}
.phone-mock-screen img { width: 100%; height: auto; display: block; cursor: zoom-in; }

/* Problem section */
.problem { padding: 56px 0; border-top: 1px solid var(--border); text-align: center; background: var(--bg-white); }
.problem-lead { max-width: 640px; margin: 0 auto 18px; font-size: 1.2rem; font-weight: 600; color: var(--text); }
.problem-detail { max-width: 640px; margin: 0 auto 32px; font-size: 1.08rem; }
.problem-solution { max-width: 640px; margin: 0 auto; font-size: 1.2rem; color: var(--text); }
.problem-solution-lead { display: block; font-size: 1.55rem; color: var(--accent); margin-bottom: 6px; }
.problem-solution strong { color: var(--accent); }

/* Flagship feature: "Запрос цен" */
.flagship {
  padding: 60px 0;
  background: var(--text);
  color: var(--bg);
}
.flagship-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8FD9B6;
  text-align: center;
  margin: 0 0 14px;
}
.flagship h2 { color: #fff; max-width: 720px; margin-left: auto; margin-right: auto; }
.flagship-lead { text-align: center; color: rgba(255, 255, 255, 0.75); margin: 0 0 32px; font-weight: 600; }
.flagship-steps {
  list-style: none;
  counter-reset: flagship-step;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
}
.flagship-steps li { counter-increment: flagship-step; padding-left: 40px; position: relative; }
.flagship-steps li::before {
  content: counter(flagship-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #8FD9B6;
  color: #8FD9B6;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flagship-steps h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.flagship-steps p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; margin: 0; }
.flagship-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.flagship-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: zoom-in;
}
.flagship-media-stack { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 780px) {
  .flagship-steps { grid-template-columns: 1fr; }
  .flagship-media { grid-template-columns: 1fr; }
}

/* Product showcase (screenshots) */
.showcase { padding: 56px 0; }
.showcase-sub { text-align: center; max-width: 560px; margin: -16px auto 42px; }

.showcase-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.showcase-text h3 { font-size: 1.55rem; margin-bottom: 12px; }
.showcase-text p { font-size: 1.02rem; }

/* Steps 1+2: phones pushed to the edges, captions nested between them */
.showcase-duo {
  display: flex;
  align-items: stretch;
  gap: 28px;
  margin-bottom: 48px;
}
.showcase-duo-media {
  width: 230px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-duo-media .phone-mock { width: 100%; }
.showcase-duo-media .phone-mock-screen {
  aspect-ratio: 400 / 793;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.showcase-duo-media .phone-mock-screen img { width: 100%; height: auto; }
.showcase-duo-captions {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 0;
}
.showcase-duo-caption { max-width: 340px; }
.showcase-duo-caption.caption-top { align-self: flex-start; text-align: left; }
.showcase-duo-caption.caption-bottom { align-self: flex-end; text-align: right; }
.showcase-duo-caption h3 { font-size: 1.35rem; margin-bottom: 8px; }
.showcase-duo-caption p:not(.eyebrow) { font-size: 0.98rem; }

/* Step 3: image aligned to same left edge as step 1's phone */
.showcase-step3 {
  display: flex;
  align-items: center;
  gap: 28px;
}
.showcase-step3 .showcase-media { width: 360px; flex-shrink: 0; }
.showcase-step3 .showcase-text { flex: 1; text-align: left; }

@media (max-width: 860px) {
  .showcase-duo { flex-direction: column; gap: 24px; }
  .showcase-duo-captions { display: contents; }
  .showcase-duo-media { width: 100%; max-width: 260px; margin: 0 auto; }
  .showcase-duo-media-1 { order: 2; }
  .showcase-duo-caption.caption-top { order: 1; text-align: center; align-self: center; max-width: 420px; margin: 0 auto; }
  .showcase-duo-caption.caption-bottom { order: 3; text-align: center; align-self: center; max-width: 420px; margin: 0 auto; }
  .showcase-duo-media-2 { order: 4; }

  .showcase-step3 { flex-direction: column; gap: 20px; text-align: center; }
  .showcase-step3 .showcase-text { order: 1; text-align: center; }
  .showcase-step3 .showcase-media { order: 2; width: 100%; max-width: 340px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .showcase-duo-media { max-width: 200px; }
}

/* Video placeholder (filled in later step) */
.video-section { padding: 56px 0; }
.video-wrap { max-width: 720px; margin: 0 auto; aspect-ratio: 16/9; background: var(--bg-soft); border-radius: var(--radius); border: 1px solid var(--border); }

/* Safety */
.safety {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: var(--bg-white);
}
.safety-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.safety p { max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

/* Pricing */
.pricing { padding: 28px 0; }
.pricing-sub { text-align: center; max-width: 560px; margin: -10px auto 16px; }
.pricing-toggle-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.period-switch {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.period-switch-btn {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transition: background .15s ease, color .15s ease;
}
.period-switch-btn.is-active { background: var(--accent); color: #fff; }
.period-switch-save {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.72;
}
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card--highlight {
  border-color: var(--accent);
  border-width: 1.5px;
  transform: scale(1.045);
  transform-origin: center;
  box-shadow: 0 12px 32px rgba(30, 107, 72, 0.16);
  z-index: 1;
  animation: price-card-glow 3.2s ease-in-out infinite;
}
@keyframes price-card-glow {
  0%, 100% { box-shadow: 0 12px 32px rgba(30, 107, 72, 0.16); }
  50% { box-shadow: 0 12px 40px rgba(30, 107, 72, 0.4); }
}
.plan-price .plan-price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 1.1rem;
  font-weight: 400;
  margin-right: 8px;
}
.plan-price-note { font-size: 0.82rem; margin: 0 0 4px; }
.plan-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.plan-subtitle { font-size: 0.88rem; margin-bottom: 6px; margin-top: -4px; }
.plan-price {
  font-family: "IBM Plex Mono", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.plan-price span { font-family: "IBM Plex Sans", sans-serif; font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.plan-features { list-style: none; padding: 0; margin: 6px 0 12px; flex: 1; }
.plan-features li {
  padding: 4px 0 4px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.35;
  position: relative;
}
.plan-features li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--accent);
  font-size: 0.85em;
}
.plan-features li strong { color: var(--text); font-weight: 700; }
.plan-actions { display: flex; flex-direction: column; gap: 6px; }
.plan-actions .btn { padding: 9px 16px; font-size: 0.88rem; }
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; align-items: center; justify-items: center; }
  .price-card { width: 100%; max-width: 400px; transform: none; }
  .price-card--highlight { transform: none; }
  @keyframes price-card-glow {
    0%, 100% { box-shadow: 0 8px 24px rgba(30, 107, 72, 0.18); }
    50% { box-shadow: 0 8px 32px rgba(30, 107, 72, 0.42); }
  }
}

.pricing-assurance {
  max-width: 640px;
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pricing-assurance-item {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: left;
}
.pricing-assurance-item svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 20, 15, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 100;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
@media (max-width: 700px) {
  .lightbox { padding: 14px; align-items: flex-start; overflow-y: auto; cursor: default; }
  .lightbox img { max-height: none; width: 100%; max-width: 640px; margin: 0 auto; display: block; }
}
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(16, 20, 15, 0.75);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 101;
}

/* Payment page (pay.html) */
.pay-page { padding: 56px 0 80px; min-height: 60vh; }
.pay-page-inner { max-width: 420px; margin: 0 auto; }
.pay-back { display: inline-block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 24px; }
.pay-back:hover { color: var(--accent); }
.pay-summary { text-align: center; margin-bottom: 24px; }
.pay-summary-plan { font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; color: var(--text-muted); margin: 0 0 4px; }
.pay-summary-price { font-family: "Big Shoulders Display", sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--text); margin: 0; }
.pay-method-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.pay-method-btn {
  flex: 1;
  padding: 12px 10px;
  border: none;
  background: var(--card);
  color: var(--text-muted);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
}
.pay-method-btn.is-active { background: var(--accent); color: #fff; }
.pay-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.pay-panel[hidden] { display: none; }
.pay-panel .btn { width: 100%; justify-content: center; }
.pay-steps { margin: 0 0 20px; padding-left: 20px; color: var(--text); font-size: 0.9rem; }
.pay-steps li { margin-bottom: 6px; }
.pay-steps code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-family: "IBM Plex Mono", monospace; }
.payment-form label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.payment-form input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 14px;
}
.payment-form input:focus { outline: none; border-color: var(--accent); }
.payment-form .btn { width: 100%; justify-content: center; }
.payment-form-error {
  color: #B3261E;
  font-size: 0.85rem;
  margin: -6px 0 14px;
}
.payment-form-error[hidden] { display: none; }
.payment-form-note { font-size: 0.78rem; color: var(--text-muted); margin: 14px 0 0; line-height: 1.4; }

/* About */
.about { padding: 56px 0 72px; background: var(--bg-white); }
.about-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.about h2 { font-size: 2.6rem; text-align: center; }
.about-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.about-card p { font-size: 1.45rem; line-height: 1.5; color: var(--text-muted); margin: 0; }
.about-card strong { color: var(--accent); }

/* Footer */
.site-footer { padding: 45px 0 32px; background: var(--footer-bg); color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; }
.footer-col .footer-brand-text { font-weight: 700; font-size: 1.05rem; color: #fff; margin: 0; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--footer-text-muted); margin: 0 0 12px; }
.footer-col p { font-size: 0.92rem; color: var(--footer-text-muted); margin: 0; }
.footer-col a:hover { color: var(--accent); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Simple pages (instruction / legal) */
.page-hero { padding: 44px 0 8px; }
.page-hero h1 { font-size: 2.2rem; text-align: left; }
.page-hero .updated { font-size: 0.85rem; color: var(--text-muted); }
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 72px;
}
.doc h2 { text-align: left; font-size: 1.4rem; margin-top: 36px; }
.doc h3 { font-size: 1.1rem; margin-top: 24px; }
.doc p, .doc li { color: var(--text-muted); font-size: 0.98rem; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; color: var(--text-muted); }
.doc th { background: var(--bg-soft); color: var(--text); font-weight: 600; }
.doc a { color: var(--accent); text-decoration: underline; }
.doc-section { margin-bottom: 8px; }
.doc-intro { color: var(--text-muted); margin-bottom: 22px; }

.instruction-steps { display: flex; flex-direction: column; gap: 18px; margin: 22px 0 32px; }
.instruction-step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.instruction-step h3 {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--accent);
  display: inline-block;
}
.instruction-page h1,
.instruction-page h2,
.instruction-page h3 { color: var(--accent); }
.command-list { list-style: none; padding: 0; margin: 14px 0 32px; }
.command-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.command-list code {
  background: var(--bg-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  margin-right: 8px;
}

/* FAQ accordion (used on instruction page) */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-list details {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.faq-list summary { cursor: pointer; font-weight: 600; color: var(--text); }
.faq-list p { margin: 10px 0 0; }

code {
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(28, 35, 29, 0.28);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .15s ease;
  z-index: 40;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--accent-dark); }
@media (max-width: 620px) {
  .back-to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* Cookie notice */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 460px;
  margin: 0 auto;
  background: rgba(28, 35, 29, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { color: rgba(255, 255, 255, 0.82); font-size: 0.85rem; margin: 0; flex: 1; line-height: 1.4; }
.cookie-accept {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "IBM Plex Sans", sans-serif;
  transition: background .15s ease;
}
.cookie-accept:hover { background: rgba(255, 255, 255, 0.26); }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-accept { align-self: flex-end; }
}
