/* ─────────────────────────────────────────────
   VSCHK AI — Landing UI Library
   Shared component CSS for all landing pages.
   Link: <link rel="stylesheet" href="/css/ui.css">
   ───────────────────────────────────────────── */

/* ── tokens ── */
:root {
  --accent:        #7c3aed;
  --accent-hover:  #6d28d9;
  --accent-light:  #8b5cf6;
  --accent-dim:    rgba(124, 58, 237, 0.12);
  --accent-border: rgba(124, 58, 237, 0.25);
  --green:         #4ade80;
  --green-dim:     rgba(74,222,128,0.1);
  --bg:            #0e0f1a;
  --bg-card:       #13141f;
  --bg-card2:      #1a1b2e;
  --border:        rgba(255,255,255,0.06);
  --text:          #e2e8f0;
  --text-muted:    #94a3b8;
  --text-dim:      #64748b;
  --radius:        10px;
  --grid-lines:    rgba(255,255,255,0.035);
}

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── body ── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent calc(16.666% - 1px),
    var(--grid-lines) calc(16.666% - 1px),
    var(--grid-lines) 16.666%
  );
}

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 60px;
  background: rgba(14,15,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__left  { display: flex; align-items: center; gap: 2.5rem; }
.nav__logo  { font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; white-space: nowrap; text-decoration: none; }
.nav__links { display: flex; gap: 1.75rem; }
.nav__links a, .nav__right a {
  font-size: 0.85rem; color: var(--text-muted);
  text-decoration: none; transition: color .15s;
}
.nav__links a:hover, .nav__right a:hover { color: var(--text); }
.nav__breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-dim); }
.nav__breadcrumb a { color: var(--text-dim); text-decoration: none; transition: color .15s; }
.nav__breadcrumb a:hover { color: var(--text-muted); }
.nav__breadcrumb span { color: var(--text-muted); }
.nav__links a.active { color: var(--accent-light); border-bottom: 2px solid var(--accent-light); padding-bottom: 2px; }
.nav__login { color: var(--text-muted); font-size: 0.9rem; text-decoration: none; transition: color .15s; margin-right: 0.5rem; }
.nav__login:hover { color: var(--text); }
.nav__dropdown { position: relative; display: inline-flex; align-items: center; }
.nav__dropdown-trigger { cursor: pointer; color: var(--text-muted); font-size: 0.9rem; transition: color .15s; user-select: none; }
.nav__dropdown-trigger:hover { color: var(--text); }
.nav__dropdown-trigger.active { color: var(--accent-light); border-bottom: 2px solid var(--accent-light); padding-bottom: 2px; }
.nav__dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.5rem 0; padding-top: 1.25rem;
  min-width: 210px; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.nav__dropdown:hover .nav__dropdown-menu { display: block; }
.nav__dropdown-menu a { display: block; padding: 0.6rem 1.2rem; color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color .15s, background .15s; }
.nav__dropdown-menu a:hover { color: var(--text); background: var(--bg-card2); }

/* ── utils ── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
hr.divider, .divider { border: none; border-top: 1px solid var(--border); margin: 0; }
section { width: 100%; }

/* ── section helpers ── */
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-light); margin-bottom: 1rem;
  text-align: left;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 1rem;
  text-align: left;
}
.section-sub { font-size: 1rem; color: var(--text-muted); line-height: 1.7; max-width: 600px; text-align: left; }

/* ── badge ── */
.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-light); border: 1px solid var(--accent-border);
  border-radius: 999px; padding: 0.3rem 0.9rem; margin-bottom: 2rem;
  background: var(--accent-dim);
}

/* ── hero (base) ── */
.hero { padding: 7rem 2rem 5rem; max-width: 1100px; margin: 0 auto; min-height: calc(100vh - 220px); }
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800;
  line-height: 1.12; letter-spacing: -0.04em; margin-bottom: 1.25rem;
}
.hero__title em { font-style: normal; color: var(--accent-light); }
.hero__sub  { font-size: 1.05rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 2.5rem; }
.hero__pills { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* ── hero split (two-column, index) ── */
.hero--split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; position: relative;
}
.hero--split::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 500px; height: 400px;
  background: radial-gradient(ellipse at top left, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero__left { position: relative; z-index: 1; }
.hero__left .hero__title { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.hero__left .hero__sub { max-width: 100%; }
.hero__right { position: relative; z-index: 1; }

/* ── hero pain list (index) ── */
.hero-pain { list-style: none; margin: 0 0 2.5rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.hero-pain__item { display: flex; align-items: flex-start; gap: 0.75rem; }
.hero-pain__icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent-light); margin-top: 2px; }
.hero-pain__text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }
.hero-pain__text strong { color: var(--text); font-weight: 600; }

/* ── hero mode badge (mode pages) ── */
.hero__mode-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-light); background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 0.4rem 1rem; border-radius: 20px; margin-bottom: 2rem;
}
.hero__status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green); background: var(--green-dim);
  border: 1px solid rgba(74,222,128,0.2);
  padding: 0.25rem 0.7rem; border-radius: 4px; margin-left: 0.75rem; vertical-align: middle;
}

/* ── buttons ── */
.btn-primary {
  display: inline-block; padding: 0.85rem 2rem;
  background: var(--accent); color: #fff; text-decoration: none;
  border: none; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover    { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-ghost {
  display: inline-block; padding: 0.75rem 1.5rem;
  color: var(--text-muted); text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 500;
  transition: border-color .15s, color .15s; margin-left: 0.75rem;
}
.btn-ghost:hover { border-color: var(--accent-border); color: var(--text); }
.btn-cta {
  display: inline-block; padding: 0.85rem 2rem;
  background: var(--accent); color: #fff;
  border: none; border-radius: 8px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: background .15s;
}
.btn-cta:hover { background: var(--accent-hover); }

/* ── cta section ── */
.cta { padding: 5rem 2rem; text-align: center; background: var(--bg-card); }
.cta__inner  { max-width: 560px; margin: 0 auto; }
.cta__label  { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 1rem; }
.cta__title  { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; }
.cta__sub    { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; }
.cta__note   { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.9rem; }

/* ── footer ── */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 3rem 2rem 1.5rem; }
.footer__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.footer__brand .footer__logo { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; display: block; text-decoration: none; }
.footer__brand p { font-size: 0.78rem; color: var(--text-dim); line-height: 1.6; max-width: 220px; }
.footer__col h4 { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9rem; }
.footer__col a { display: block; font-size: 0.8rem; color: var(--text-dim); text-decoration: none; margin-bottom: 0.45rem; transition: color .15s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  max-width: 1100px; margin: 0 auto; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer__bottom p { font-size: 0.72rem; color: var(--text-dim); }
.footer__bottom a { font-size: 0.72rem; color: var(--text-dim); text-decoration: none; transition: color .15s; }
.footer__bottom a:hover { color: var(--text-muted); }
.footer__bottom a.footer__ai-link { color: var(--accent-light); }
.footer__ai { color: var(--text-dim); }

/* ── responsive base ── */
@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .hero--split { grid-template-columns: 1fr; gap: 2.5rem; padding: 5rem 1.5rem 4rem; }
}
@media (max-width: 400px) {
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav__breadcrumb { display: none; }
  .nav__links { display: none; }
}

/* ── ph-desktop (browser mockup placeholder) ── */
.ph-desktop {
  flex: 1; background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.ph-desktop__bar {
  height: 34px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 1rem; gap: 0.5rem;
}
.ph-desktop__dot { width: 10px; height: 10px; border-radius: 50%; }
.ph-desktop__dot--r { background: #ff5f57; }
.ph-desktop__dot--y { background: #febc2e; }
.ph-desktop__dot--g { background: #28c840; }
.ph-desktop__url { flex: 1; height: 16px; background: rgba(255,255,255,0.06); border-radius: 4px; margin-left: 0.5rem; }
.ph-desktop__content {
  height: 260px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.75rem;
}
.ph-desktop__icon  { font-size: 2.75rem; opacity: 0.3; }
.ph-desktop__label { font-size: 0.8rem; color: var(--text-dim); }

/* ── ph-mobile (iPhone frame placeholder) ── */
.ph-mobile {
  width: 190px; flex-shrink: 0;
  background: var(--bg-card2); border: 2px solid var(--border);
  border-radius: 24px; overflow: hidden; position: relative;
  padding: 10px 8px;
}
.ph-mobile__notch {
  width: 50px; height: 10px; background: var(--border);
  border-radius: 5px; margin: 0 auto 10px;
}
.ph-mobile__screen {
  background: var(--bg); border-radius: 14px;
  min-height: 380px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.6rem;
}
.ph-mobile__icon  { font-size: 2rem; opacity: 0.35; }
.ph-mobile__label { font-size: 0.68rem; color: var(--text-dim); text-align: center; padding: 0 0.5rem; }
.ph-mobile__home  { width: 40px; height: 5px; background: var(--border); border-radius: 3px; margin: 10px auto 0; }

/* ── panel-phone (2-col: content + phone) ── */
.panel-phone { display: flex; align-items: stretch; }

.panel-phone__content {
  flex: 1; padding: 2.25rem; display: flex; flex-direction: column; gap: 1.25rem;
}
.panel-phone__ph-col {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; border-left: 1px solid var(--border);
  background: rgba(255,255,255,0.012);
}
/* phone on left: ph-col comes first in DOM */
.panel-phone__ph-col:first-child {
  border-left: none; border-right: 1px solid var(--border);
}
/* explicit modifier aliases */
.panel-phone--right .panel-phone__ph-col { border-left: 1px solid var(--border); border-right: none; }
.panel-phone--left  .panel-phone__ph-col { border-left: none; border-right: 1px solid var(--border); }
/* overrides when panel-phone wraps step-card children */
.panel-phone .step-card__head { padding: 0; }
.panel-phone .step-card__note { margin: 0; }
.panel-phone .magic-block     { margin: 0; }

@media (max-width: 640px) {
  .panel-phone { flex-direction: column; }
  .panel-phone__ph-col {
    border-left: none !important; border-right: none !important;
    border-top: 1px solid var(--border); width: 100%;
  }
  .ph-mobile { width: 160px !important; }
  .ph-mobile__screen { min-height: 280px !important; }
}

/* ── flow-chain ── */
.flow-chain { padding: 4rem 2rem; }
.flow-chain__inner { max-width: 1100px; margin: 0 auto; }
.flow-chain__label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 2.5rem; }
.flow-steps { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.5rem; }
.flow-step { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.flow-step__pill {
  background: var(--bg-card2); border: 1px solid var(--accent-border);
  border-radius: 20px; padding: 0.45rem 1.1rem;
  font-size: 0.88rem; font-weight: 600; color: var(--accent-light);
  white-space: nowrap;
}
.flow-step__arrow { font-size: 0.9rem; color: var(--text-dim); margin: 0 0.5rem; flex-shrink: 0; }

/* ── steps ── */
.steps { padding: 2rem 2rem 6rem; }
.steps__inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }

/* ── step-card ── */
.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: border-color .2s;
}
.step-card:hover { border-color: var(--accent-border); }
.step-card__head {
  display: flex; align-items: flex-start; gap: 1.5rem;
  padding: 2.25rem 2.25rem 0;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: #fff;
  font-size: 0.9rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-card__body { flex: 1; }
.step-card__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; line-height: 1.3; }
.step-card__desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; }

.step-card__visuals {
  display: flex; gap: 1.25rem; padding: 2rem 2.25rem;
  align-items: flex-end;
}
.step-card__visuals--desktop-only { padding: 2rem 2.25rem; }

/* ── step-card__note ── */
.step-card__note {
  margin: 0 2.25rem 2.25rem;
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  border-radius: 10px; padding: 1rem 1.25rem;
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.65;
}
.step-card__note strong { color: var(--text); }

/* ── magic-block ── */
.magic-block {
  margin: 0 2.25rem 2.25rem;
  background: var(--bg-card2); border: 1px solid var(--accent-border);
  border-radius: 14px; padding: 1.75rem;
}
.magic-block__label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 0.7rem;
}
.magic-block__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.magic-block__desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.25rem; }
.magic-block__link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 0.7rem 1.5rem; border-radius: 9px;
  font-size: 0.9rem; font-weight: 600; transition: background .15s;
}
.magic-block__link:hover { background: var(--accent-hover); }
.magic-block__hint { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.75rem; }

@media (max-width: 640px) {
  .step-card__visuals { flex-direction: column; }
}

/* ── service-card grid (integrations, monitoring scenario panels) ── */
.services { padding: 4rem 2rem; }
.services__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; max-width: 900px; margin: 2.5rem auto 0;
}
.services__grid--2col { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
.services__grid--3col { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.75rem 1.25rem;
  text-align: center; transition: border-color .2s, background .2s;
}
.service-card:hover { border-color: var(--accent-border); background: var(--bg-card2); }
.service-card--link { cursor: pointer; text-decoration: none; display: block; color: inherit; }
.service-card__icon { width: 52px; height: 52px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.service-card__name { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; }
.service-card__type { font-size: 0.78rem; color: var(--text-dim); }

/* ── int-block (detail sections: integrations, monitoring, etc.) ── */
.int-blocks { padding: 2rem 2rem 5rem; }
.int-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  max-width: 1000px; margin: 0 auto 6rem;
}
.int-block:last-child { margin-bottom: 0; }
.int-block--reverse .int-text { order: 2; }
.int-block--reverse .int-visual { order: 1; }
.int-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-light);
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  padding: 0.25rem 0.75rem; border-radius: 20px; margin-bottom: 1rem;
}
.int-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.int-sub { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.int-list { list-style: none; margin-bottom: 1.5rem; }
.int-list li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.6rem;
}
.int-list li::before { content: '✓'; color: var(--accent-light); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.int-example {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: 0.85rem 1.1rem; font-size: 0.85rem; color: var(--text-muted);
  line-height: 1.6; font-style: italic;
}
.int-visual {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  min-height: 260px;
}
.int-visual__icon { opacity: 0.9; }

/* ── pain block ── */
.pain { padding: 4rem 2rem; }
.pain__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 900px; margin: 2.5rem auto 0;
}

/* ── sources block (channels, task sources) ── */
.sources { padding: 0 2rem 4rem; }
.sources__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; max-width: 1100px; margin: 2.5rem auto 0;
}
.sources__grid--2col { grid-template-columns: repeat(2, 1fr); max-width: 600px; }

/* ── other-modes block ── */
.other-modes { padding: 4rem 2rem; }
.other-modes__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; max-width: 600px; margin: 2.5rem auto 0;
}

/* ── faq ── */
.faq { padding: 6rem 2rem; background: var(--bg-card); }
.faq__inner { max-width: 760px; margin: 0 auto; }
.faq__list { margin-top: 3rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item__q {
  width: 100%; background: none; border: none; color: var(--text);
  font-size: 0.95rem; font-weight: 600; padding: 1.25rem 0;
  text-align: left; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem;
  transition: color .15s;
}
.faq-item__q:hover { color: var(--accent-light); }
.faq-item__icon { font-size: 1.1rem; flex-shrink: 0; transition: transform .2s; color: var(--text-muted); }
.faq-item.open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.75;
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s;
}
.faq-item.open .faq-item__a { max-height: 300px; padding-bottom: 1.25rem; }

@media (max-width: 768px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .services__grid--2col { grid-template-columns: 1fr 1fr; }
  .int-block { grid-template-columns: 1fr; gap: 2rem; }
  .int-block--reverse .int-text { order: 0; }
  .int-block--reverse .int-visual { order: 0; }
  .pain__grid { grid-template-columns: 1fr; }
  .sources__grid { grid-template-columns: 1fr 1fr; }
  .sources__grid--2col { grid-template-columns: 1fr; }
  .other-modes__grid { grid-template-columns: 1fr; }
}

/* ── pricing ── */
.pricing { padding: 6rem 2rem 8rem; }
.btn-outline {
  width: 100%; padding: 0.65rem;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 7px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s; text-align: center; text-decoration: none; display: block;
}
.btn-outline:hover { border-color: var(--accent-border); color: var(--accent-light); }

/* pricing table */
.pt-wrapper { max-width: 980px; margin: 2.5rem auto 0; }
.pt-header {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  border-bottom: 2px solid var(--border);
}
.pt-header__label { padding-bottom: 1.5rem; }
.pt-col-head {
  padding: 1.25rem 1rem 1.5rem; text-align: center;
  border-left: 1px solid var(--border);
}
.pt-col-head--featured {
  background: var(--bg-card2); border-color: var(--accent-border);
  border-radius: var(--radius) var(--radius) 0 0; position: relative;
}
.pt-col-head--featured::before {
  content: 'Популярный'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-light); background: var(--accent-dim); border-radius: 4px;
  padding: 0.2rem 0.5rem; white-space: nowrap;
}
.pt-col-head__name { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.pt-col-head__price { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 0.2rem; }
.pt-col-head__price span { font-size: 0.78rem; font-weight: 400; color: var(--text-muted); }
.pt-col-head__sub { font-size: 0.7rem; color: var(--text-dim); margin-bottom: 0.85rem; }
.pt-row {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.pt-row:last-child { border-bottom: none; }
.pt-row__label {
  padding: 0.8rem 0.75rem 0.8rem 0; font-size: 0.85rem;
  color: var(--text); font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; background: none; border: none; text-align: left; width: 100%;
  transition: color .15s; gap: 0.5rem;
}
.pt-row__label:hover { color: var(--accent-light); }
.pt-row__label-icon { flex-shrink: 0; font-size: 1rem; color: var(--text-dim); transition: transform .2s; }
.pt-row.open .pt-row__label-icon { transform: rotate(45deg); color: var(--accent-light); }
.pt-row__col {
  padding: 0.8rem 0.5rem; font-size: 0.82rem; color: var(--text-muted);
  border-left: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.pt-row__col--featured { background: var(--bg-card2); border-left-color: var(--accent-border); }
.pt-check { color: var(--accent-light); font-weight: 700; }
.pt-cross { color: var(--text-dim); }
/* sub-rows */
.pt-sub-row {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.pt-sub-row__label {
  padding: 0.55rem 0.75rem 0.55rem 1.5rem;
  font-size: 0.78rem; color: var(--text-dim); font-weight: 400;
  display: flex; align-items: center;
}
.pt-sub-row__col {
  padding: 0.55rem 0.5rem; font-size: 0.78rem;
  border-left: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.pt-sub-row__col--featured { background: var(--bg-card2); border-left-color: var(--accent-border); }
.pt-sub-row--planned { opacity: 0.38; }
.pt-sub-row.hidden { display: none; }

.pt-row__detail {
  grid-column: 1 / -1; max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s;
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.7;
}
.pt-row.open .pt-row__detail { max-height: 300px; padding: 0.75rem 0 1rem; border-top: 1px solid var(--border); }
.pt-detail-inner ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.pt-detail-inner li::before { content: '→ '; color: var(--accent-light); }

.pt-footer { text-align: center; margin-top: 2rem; }
.pt-footer__note { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 0.75rem; }
.pt-footer__link a { font-size: 0.85rem; color: var(--accent-light); text-decoration: none; }
.pt-footer__link a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .pt-header { grid-template-columns: 1fr; }
  .pt-col-head { border-left: none; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.5rem; }
  .pt-col-head--featured { border-color: var(--accent-border); }
  .pt-header__label { display: none; }
  .pt-row { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .pt-row__label { grid-column: 1 / -1; border-bottom: 1px solid var(--border); padding-bottom: 0.4rem; }
  .pt-row__detail { grid-column: 1 / -1; }
  .pt-sub-row { grid-template-columns: 1fr; }
  .pt-sub-row__col { border-left: none; justify-content: flex-start; }
  .pt-sub-row__col--featured { background: none; }
}
