:root {
  --bg: #0b1220;
  --card: #121d31;
  --card-strong: #16243c;
  --muted: #a6b4cb;
  --txt: #eef4ff;
  --brand: #4f8df8;
  --border: #2a3b58;
  --header-bg: rgba(11, 18, 32, 0.9);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--txt);
  background: radial-gradient(1100px 650px at 80% -120px, #164e63 0, #0e1a2e 33%, #0b1220 100%);
  overflow-x: hidden;
  text-wrap: pretty;
}

.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 2.4vw, 24px);
}

.page-legal .wrap {
  max-width: 960px;
}

.visually-hidden {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(12px) saturate(125%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(2, 8, 23, 0.28);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo-img {
  height: 45px;
  width: auto;
  display: block;
  object-fit: contain;
  padding: 3px 4px 4px 4px;
  border-radius: 1px;
}

.page-legal .logo-img {
  height: 40px;
}

nav a {
  color: #bcc8dc;
  text-decoration: none;
  margin-left: 16px;
}

nav a:hover {
  color: var(--txt);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  border: 1px solid #3a4f72;
  background: #0d172a;
  color: var(--txt);
  border-radius: 10px;
  min-width: 42px;
  min-height: 42px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.page-legal .btn {
  padding: 10px 14px;
}

.btn-primary {
  background: var(--brand);
  color: #071123;
}

.btn-secondary {
  border: 1px solid #3a4f72;
  color: #d8e6ff;
  background: rgba(12, 20, 36, 0.55);
}

.card {
  background: rgba(18, 29, 49, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(14px, 2vw, 22px);
  box-shadow: 0 8px 28px rgba(2, 8, 23, 0.24);
}

.page-legal .card {
  margin-top: 24px;
}

h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.1;
  margin: 12px 0 8px;
}

.page-legal h1 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

h2 {
  font-size: clamp(20px, 2.5vw, 28px);
}

.page-legal h2 {
  margin: 20px 0 8px;
}

p.lead {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
}

.muted {
  color: var(--muted);
}

.page-legal p,
.page-legal li {
  color: var(--muted);
  line-height: 1.65;
}

.page-legal ul {
  padding-left: 18px;
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.kicker {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0 0 12px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.back svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(14px, 2.3vw, 28px);
  align-items: center;
  margin: clamp(20px, 4vw, 48px) 0;
}

/* Vertical rhythm between homepage sections after content reorder */
.page-home main > section + section {
  margin-top: clamp(16px, 3vw, 28px);
}

/* Hero already has its own bottom spacing */
.page-home main > .hero + section {
  margin-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.8vw, 16px);
  margin: clamp(16px, 3vw, 28px) 0;
}

.feat h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: stretch;
  position: relative;
  overflow: visible;
}

.price .big {
  font-size: 32px;
  font-weight: 800;
}

.price {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0 8px;
}

.price h3,
.price > p {
  text-align: center;
}

.price-back {
  opacity: 0.92;
  z-index: 1;
}

.price-back-left {
  transform: translateX(26px) scale(0.97);
}

.price-back-right {
  transform: translateX(-26px) scale(0.97);
}

.price-featured {
  z-index: 3;
  transform: translateY(-10px) scale(1.01);
  border-color: #4f8df8;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.42);
  background: rgba(22, 36, 60, 0.9);
}

.plan-badge {
  margin: 8px auto 0;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #4f8df8;
  background: rgba(79, 141, 248, 0.18);
  color: #deebff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.plan-promo {
  margin: 8px 0 0;
  text-align: center;
  color: #d8e6ff;
  font-size: 14px;
  font-weight: 600;
}

.price-features {
  margin: 12px 0 16px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
  width: fit-content;
  max-width: 100%;
  align-self: center;
}

.price .btn {
  margin-top: auto;
  align-self: center;
  width: auto;
}

#screens {
  margin: clamp(16px, 3vw, 28px) 0 clamp(24px, 4vw, 40px);
}

.problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 18px;
}

.problem {
  background: rgba(14, 24, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.problem strong {
  color: #cbd5e1;
}

.shots3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.shot {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0d172a;
  overflow: hidden;
}

.shot .frame {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0f1b31 0%, #16243c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 14px;
  text-align: center;
  padding: 10px;
  cursor: zoom-in;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
}

.shot .cap {
  padding: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.shot .inner {
  max-width: 960px;
  margin: 0 auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.lightbox .hint {
  position: absolute;
  bottom: 16px;
  color: #cbd5e1;
  font-size: 12px;
}

footer {
  margin: 32px 0 16px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
}

.page-legal footer {
  margin: 36px 0;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13px;
  text-align: center;
}

.page-legal footer span {
  white-space: nowrap;
}

footer span {
  display: inline-block;
}

.footer-icon {
  width: 75px;
  height: auto;
  vertical-align: middle;
  margin: 0 4px;
}

.hero .cta {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.hero-note {
  margin-top: 10px;
}

.key-points {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

.section-title-reset {
  margin: 0;
}

.section-title-compact {
  margin: 0 0 6px;
}

.section-intro {
  margin: 6px 0 12px;
}

.shot-no-margin {
  margin: 0;
}

.problem-text {
  margin: 6px 0 0;
}

.price-recommended {
  color: var(--brand);
}

.faq-section {
  margin-top: 0;
}

.blog-section {
  margin-top: 0;
}

.blog-carousel {
  position: relative;
}

.blog-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 1fr);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px;
  scrollbar-width: thin;
}

.blog-carousel-track::-webkit-scrollbar {
  height: 8px;
}

.blog-carousel-track::-webkit-scrollbar-thumb {
  background: #2b3b58;
  border-radius: 99px;
}

.blog-card {
  scroll-snap-align: start;
  border: 1px solid var(--border);
  background: rgba(14, 24, 42, 0.78);
  border-radius: 14px;
  padding: 14px;
}

.blog-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.blog-card h3 a {
  color: var(--txt);
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: #93c5fd;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.blog-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #3a4f72;
  background: #0d172a;
  color: var(--txt);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 2;
}

.blog-carousel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.blog-carousel-btn-prev {
  left: -14px;
}

.blog-carousel-btn-next {
  right: -14px;
}

.blog-carousel-foot {
  margin: 12px 0 0;
}

.blog-carousel-foot a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 700;
}

.blog-carousel-foot a:hover {
  text-decoration: underline;
}

main.blog-main {
  display: grid;
  gap: 16px;
}

.blog-grid-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.article-shell {
  max-width: 840px;
  margin: 0 auto;
}

.article-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 10px;
}

.article-content h2 {
  margin: 20px 0 8px;
  font-size: clamp(20px, 2.4vw, 28px);
}

.article-content p,
.article-content li {
  color: var(--muted);
  line-height: 1.7;
}

.article-content ul {
  padding-left: 18px;
}

details {
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

.business-intent p {
  margin: 10px 0 0;
}

.business-intent strong {
  color: #dbeafe;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid,
  .pricing,
  .problems {
    grid-template-columns: 1fr;
  }

  .pricing {
    gap: 12px;
  }

  .price,
  .price-back-left,
  .price-back-right,
  .price-featured {
    transform: none;
    margin: 0;
    opacity: 1;
    z-index: auto;
  }

  .price-featured {
    box-shadow: none;
    border-color: var(--border);
  }

  .page-legal nav a:not(.btn-primary) {
    display: none;
  }

  .blog-grid-page {
    grid-template-columns: 1fr;
  }

  .page-legal footer {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-legal footer span {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 8px 10px;
    padding: 10px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .has-js .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #0d172a;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    gap: 8px;
  }

  .has-js .site-header.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    margin-left: 0;
    width: 100%;
  }

  .main-nav a:not(.btn) {
    font-size: 14px;
    padding: 8px 6px;
  }

  .btn {
    padding: 10px 14px;
    border-radius: 10px;
  }

  .main-nav .btn-primary {
    text-align: center;
  }

  .main-nav .btn-secondary {
    text-align: center;
  }

  .blog-carousel-btn {
    display: none;
  }

}

@media (max-width: 600px) {
  .hero .cta {
    flex-direction: column;
  }

  .hero .cta .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .main-nav .btn-secondary {
    text-align: center;
  }
}
