/* Template «Лендінг модуля» (page-module-landing.php). Base components come from redesign.css;
   this file holds only the new blocks and the deltas of reused ones, scoped to .module-landing. */
:root { --ok: #1f9d55; --ok-pale: #e6f6ec; }

.module-landing .ml-center { text-align: center; }
.module-landing .section-subtitle a, .module-landing .what-text a, .module-landing .callout a { color: var(--royal-blue); }

/* 1. Hero */
.module-landing .ml-hero { display: block; padding: 130px 0 120px; }
.module-landing .ml-hero .breadcrumbs { margin-bottom: 28px; }
.module-landing .ml-hero .hero-grid { gap: 56px; align-items: center; }
.module-landing .ml-hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.15; margin-bottom: 22px; letter-spacing: -.01em; color: var(--text-dark); }
.module-landing .hero-lead { font-size: 1.15rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 34px; }
.module-landing .hero-lead p { margin: 0; }
.module-landing .hero-lead b, .module-landing .hero-lead strong { color: var(--text-dark); font-weight: 600; }
.module-landing .ml-hero .hero-buttons { opacity: 1; animation: none; }
.module-landing .ledger-frame .shot { position: relative; z-index: 1; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
.module-landing .ledger-frame .shot .feature-image { display: block; box-shadow: none; border-radius: 0; }
.module-landing .spot { position: absolute; z-index: 2; left: 16.6%; width: 82.2%; top: 75.2%; height: 14.8%; border: 3px solid var(--royal-blue); border-radius: 10px; box-shadow: 0 0 0 6px rgba(65, 105, 225, .18); }
.module-landing .chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 18px 12px 12px; max-width: 300px; }
.module-landing .chip-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--gradient-royal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.module-landing .chip b { display: block; font-size: .95rem; line-height: 1.25; }
.module-landing .chip small { display: block; font-size: .8rem; color: var(--gray-600); line-height: 1.35; }
.module-landing .chip-1 { right: -22px; top: -26px; }
.module-landing .chip-2 { right: -22px; bottom: -92px; }

/* 2. Videos (video-card from the homepage YouTube block) */
.module-landing .videos { background: linear-gradient(#eef1fb 0%, #fff 30%); }
.module-landing .video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.module-landing .video-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.module-landing .video-card:hover { transform: none; }
.module-landing .video-thumbnail { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--primary-dark); }
.module-landing .video-thumbnail video, .module-landing .video-thumbnail img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.module-landing .video-thumbnail::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10, 22, 40, 0) 45%, rgba(10, 22, 40, .55) 100%); }
.module-landing .video-play-btn { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border: 0; border-radius: 50%; background: var(--gradient-royal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 10px 30px rgba(30, 58, 138, .45); padding-left: 6px; cursor: pointer; }
.module-landing .video-play-btn:hover { transform: translate(-50%, -50%) scale(1.06); }
.module-landing .video-duration { position: absolute; z-index: 2; right: 16px; bottom: 14px; background: rgba(10, 22, 40, .85); color: #fff; font-size: .85rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.module-landing .is-playing::after, .module-landing .is-playing .video-play-btn, .module-landing .is-playing .video-duration { display: none; }
.module-landing .is-playing video { object-fit: contain; }
.module-landing .video-content { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.module-landing .video-for { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--royal-blue); }
.module-landing .video-title { font-size: 1.4rem; font-weight: 700; line-height: 1.25; margin: 0; }
.module-landing .video-description { font-size: 1rem; color: var(--gray-600); line-height: 1.6; margin: 0; }
.module-landing .chapters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.module-landing .chapters button { font: inherit; font-size: .85rem; color: var(--gray-700); background: #fff; border: 1px solid var(--gray-300); padding: 4px 11px; border-radius: 4px; white-space: nowrap; cursor: pointer; }
.module-landing .chapters button:hover:not(:disabled) { border-color: var(--royal-blue); color: var(--royal-blue); }
.module-landing .chapters button:disabled { cursor: default; }
.module-landing .chapters b { color: var(--royal-blue); font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 6px; }
.module-landing .video-note { font-size: .85rem; color: var(--gray-600); border-top: 1px solid var(--gray-200); padding-top: 14px; margin: auto 0 0; }
.module-landing .asof { display: flex; justify-content: center; gap: 10px; align-items: center; margin-top: 28px; color: var(--gray-600); font-size: .95rem; }
.module-landing .asof i { color: var(--royal-blue); }

/* 3. Works now */
.module-landing .legend-ok { display: inline-flex; align-items: center; gap: 8px; background: var(--ok-pale); color: var(--ok); font-weight: 600; font-size: .85rem; padding: 8px 16px; border-radius: 50px; margin-bottom: 20px; }
.module-landing .now-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.module-landing .now-card { background: #fff; border-radius: var(--border-radius-lg); padding: 28px 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); position: relative; }
.module-landing .now-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-right: 18px; }
.module-landing .now-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--royal-blue-pale); color: var(--royal-blue); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.module-landing .now-title { font-size: 1.1rem; font-weight: 700; line-height: 1.25; margin: 0; }
.module-landing .now-text { font-size: .93rem; color: var(--gray-600); line-height: 1.6; margin: 0; }
.module-landing .now-ok { position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--ok-pale); color: var(--ok); display: flex; align-items: center; justify-content: center; font-size: .7rem; }

/* 5. Roadmap (history-v from the homepage) */
.module-landing .history-v-item.now .history-v-dot { background: #fff; border: 5px solid var(--royal-blue); box-shadow: 0 0 0 6px rgba(65, 105, 225, .18); }
.module-landing .history-v-item.now .history-v-card { border: 2px solid var(--royal-blue); }
.module-landing .history-v-version.ok { background: var(--ok-pale); color: var(--ok); }
.module-landing .history-v-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.module-landing .history-v-description { font-size: .95rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 14px; }
.module-landing .tags-label { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gray-600); margin: 4px 0 10px; }
.module-landing .proto { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--gray-200); }
.module-landing .proto img { border-radius: 10px; box-shadow: var(--shadow-md); width: 100%; height: auto; }
.module-landing .proto p { font-size: .9rem; color: var(--gray-600); margin: 0; }
.module-landing .proto b { color: var(--text-dark); }

/* 6. What it is */
.module-landing .what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.module-landing .what-title { font-size: 1.6rem; font-weight: 700; line-height: 1.25; margin-bottom: 16px; text-align: left; }
.module-landing .what-text p { font-size: 1.05rem; color: var(--gray-600); line-height: 1.7; margin: 0 0 16px; }
.module-landing .modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.module-landing .modes-title { grid-column: 1 / -1; font-size: 1.3rem; font-weight: 700; margin-bottom: -4px; }

/* fund-benefit cards: same look in every grid of this page */
.module-landing .fund-benefit { align-items: flex-start; }
.module-landing .fund-benefit p { margin: 0; }

/* 7. Scope (module-card without links) */
.module-landing .module-card { cursor: default; }
.module-landing .module-icon i { font-size: 32px; color: var(--royal-blue); transition: color .3s ease; }
.module-landing .module-card:hover .module-icon i { color: #fff; }
.module-landing .module-card { display: flex; flex-direction: column; }
.module-landing .module-description { margin-bottom: 14px; }
.module-landing .module-phase { align-self: center; margin-top: auto; font-size: .75rem; font-weight: 600; color: var(--royal-blue); background: var(--royal-blue-pale); border-radius: 50px; padding: 3px 10px; position: relative; z-index: 1; }

/* 8. Difference */
.module-landing .diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.module-landing .stack { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 44px; }
.module-landing .stack-label { font-weight: 600; color: var(--gray-700); margin-right: 6px; }
.module-landing .stack .t { background: #fff; border: 1px solid var(--gray-300); border-radius: 50px; padding: 8px 18px; font-weight: 600; font-size: .95rem; }

/* 9/11/12. Steps */
.module-landing .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.module-landing .steps::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 4px; background: linear-gradient(90deg, var(--royal-blue), #b9c6f0); }
.module-landing .step { text-align: center; position: relative; }
.module-landing .step-num { width: 58px; height: 58px; border-radius: 50%; background: #fff; border: 4px solid var(--royal-blue); color: var(--royal-blue); font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; position: relative; z-index: 1; }
.module-landing .step h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.module-landing .step p { font-size: .93rem; color: var(--gray-600); line-height: 1.6; max-width: 260px; margin: 0 auto; }

/* 11. Alliance + access */
.module-landing .alliance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 96px; }
.module-landing .alliance-grid .fund-benefit { flex-direction: column; gap: 16px; }
.module-landing .sub-h { font-size: 1.6rem; font-weight: 700; text-align: center; margin-bottom: 12px; }
.module-landing .sub-p { text-align: center; color: var(--gray-600); font-size: 1.05rem; max-width: 720px; margin: 0 auto 48px; }
.module-landing .access-steps { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.module-landing .access-steps::before { left: 9%; right: 9%; background: var(--royal-blue-pale); }
.module-landing .access-steps .step p { font-size: .9rem; }
.module-landing .docs { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 44px; }
.module-landing .doc-link { display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--gray-200); border-radius: var(--border-radius); padding: 14px 20px; text-decoration: none; color: var(--primary-blue); font-weight: 600; font-size: .95rem; transition: border-color .2s ease; }
.module-landing .doc-link:hover { border-color: var(--royal-blue); }
.module-landing .doc-link i { color: var(--royal-blue); font-size: 1.2rem; }
.module-landing .callout { display: flex; gap: 14px; align-items: flex-start; background: var(--royal-blue-pale); border-radius: var(--border-radius); padding: 20px 24px; max-width: 820px; margin: 48px auto 0; color: var(--primary-blue); font-size: 1rem; line-height: 1.6; }
.module-landing .callout i { color: var(--royal-blue); font-size: 1.2rem; margin-top: 3px; }
.module-landing .callout p { margin: 0; }

/* 12. Join (dark) */
.module-landing .join { background: radial-gradient(circle at 15% 0%, #2850c8 0%, rgba(40, 80, 200, 0) 45%), radial-gradient(circle at 100% 100%, #1e3a8a 0%, rgba(30, 58, 138, 0) 55%), var(--primary-dark); color: #fff; position: relative; overflow: hidden; }
.module-landing .join .section-title { color: #fff; }
.module-landing .join .section-subtitle { color: #c7d3f5; }
.module-landing .join-head { text-align: center; }
.module-landing .join-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(247, 183, 49, .16); color: var(--accent-yellow); font-weight: 600; font-size: .85rem; padding: 8px 16px; border-radius: 50px; margin-bottom: 22px; }
.module-landing .join .pricing-grid { grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1040px; margin: 0 auto; align-items: stretch; }
.module-landing .join .pricing-card { padding: 44px 40px 40px; display: flex; flex-direction: column; text-align: left; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); color: var(--text-dark); }
.module-landing .join .pricing-card:hover { transform: none; }
.module-landing .join .pricing-badge { position: absolute; top: 18px; right: 18px; left: auto; transform: none; background: var(--royal-blue-pale); color: var(--royal-blue); padding: 6px 14px; font-size: .75rem; font-weight: 700; border-radius: 20px; letter-spacing: .03em; }
.module-landing .pricing-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--gradient-royal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 22px; }
.module-landing .pricing-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-600); margin: 0 0 6px; }
.module-landing .join .pricing-title { font-size: 1.45rem; font-weight: 700; line-height: 1.25; margin-bottom: 12px; text-align: left; }
.module-landing .join .pricing-subtitle { font-size: 1rem; color: var(--gray-600); margin-bottom: 24px; line-height: 1.6; text-align: left; }
.module-landing .join .pricing-features { margin: 4px 0 0; padding: 0; text-align: left; }
.module-landing .join .pricing-features li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; font-size: .97rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-200); }
.module-landing .join .pricing-features li:last-child { border-bottom: none; }
.module-landing .join .pricing-features li i { color: var(--royal-blue); font-size: 14px; margin-top: 5px; }
.module-landing .join-cond { display: flex; gap: 16px; align-items: flex-start; max-width: 1040px; margin: 28px auto 0; background: rgba(247, 183, 49, .1); border: 1px solid rgba(247, 183, 49, .4); border-radius: var(--border-radius); padding: 20px 26px; color: #fff; font-size: 1rem; line-height: 1.6; }
.module-landing .join-cond i { color: var(--accent-yellow); font-size: 1.3rem; margin-top: 2px; }
.module-landing .join-sub { text-align: center; font-size: 1.5rem; font-weight: 700; margin: 72px 0 36px; color: #fff; }
.module-landing .join-steps { max-width: 1040px; margin: 0 auto; }
.module-landing .join-steps::before { background: rgba(255, 255, 255, .18); }
.module-landing .join-steps .step-num { background: var(--primary-dark); border-color: var(--accent-yellow); color: #fff; }
.module-landing .join-steps .step h4 { color: #fff; }
.module-landing .join-steps .step p { color: #c7d3f5; }
.module-landing .join-cta { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; max-width: 1040px; margin: 40px auto 0; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--border-radius-lg); padding: 30px 36px; }
.module-landing .join-cta h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; color: #fff; }
.module-landing .join-cta p { color: #c7d3f5; font-size: 1rem; margin: 0; }
.module-landing .join-contacts { display: flex; gap: 28px; margin-top: 14px; flex-wrap: wrap; }
.module-landing .join-contacts a { color: #fff; text-decoration: none; font-weight: 500; display: inline-flex; gap: 10px; align-items: center; }
.module-landing .join-contacts i { color: var(--accent-yellow); }
.module-landing .btn-yellow { background: var(--gradient-yellow); color: var(--text-dark); box-shadow: 0 4px 20px rgba(247, 183, 49, .35); white-space: nowrap; }
.module-landing .join-foot { text-align: center; color: #9fb0dd; font-size: .9rem; margin-top: 26px; }

/* Backgrounds as in the mockup: «Як це виглядає» plain white, «Ключові можливості» section-gray, no theme glows */
.module-landing .features-section { background: none; }
.module-landing .modules-section { background: radial-gradient(ellipse at center, #fff 30%, #edf1f8 100%); }
.module-landing .modules-section::before, .module-landing .modules-section::after,
.module-landing .history-section::before, .module-landing .history-section::after { display: none; }
@media (min-width: 1025px) { .module-landing .modules-section { padding: 120px 0; } }
.module-landing .history-v-item:not(.now) .history-v-card { border-color: #b9c6f0; }

/* Breakpoints as in redesign.css: 1024 / 768 */
@media (max-width: 1024px) {
  .module-landing .ml-hero .hero-grid, .module-landing .what-grid { grid-template-columns: 1fr; }
  .module-landing .now-grid { grid-template-columns: repeat(2, 1fr); }
  .module-landing .diff-grid, .module-landing .alliance-grid { grid-template-columns: 1fr 1fr; }
  .module-landing .access-steps { grid-template-columns: repeat(3, 1fr); }
  .module-landing .access-steps::before { display: none; }
  /* hero on tablet/phone: crumbs → badge → screenshot → title/text/buttons → chips (as on the homepage: picture first) */
  .module-landing .ml-hero { padding-top: 26px; }
  .module-landing .ml-hero .breadcrumbs { margin-bottom: 18px; }
  .module-landing .ml-hero .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .module-landing .ml-hero-text, .module-landing .ml-hero .ledger-frame { display: contents; }
  .module-landing .ml-hero-text > .feature-badge { order: -2; align-self: flex-start; margin-bottom: 18px; }
  .module-landing .ledger-frame .shot { order: -1; margin-bottom: 28px; }
  .module-landing .ledger-frame .feature-decoration, .module-landing .ledger-frame::after { display: none; }
  .module-landing .chip { order: 1; position: static; max-width: none; margin-top: 12px; }
  .module-landing .chip-1 { margin-top: 32px; }
}
@media (max-width: 768px) {
  .module-landing .ml-hero { padding-bottom: 56px; }
  .module-landing .ml-hero h1 { margin-bottom: 16px; }
  .module-landing .hero-lead { margin-bottom: 24px; }
  .module-landing .video-grid, .module-landing .join .pricing-grid, .module-landing .modes, .module-landing .diff-grid,
  .module-landing .alliance-grid, .module-landing .now-grid, .module-landing .steps, .module-landing .access-steps,
  .module-landing .join-cta { grid-template-columns: 1fr; }
  .module-landing .steps::before { display: none; }
  .module-landing .history-v-tag, .module-landing .chapters button { white-space: normal; }
  .module-landing .proto { grid-template-columns: 1fr; }
  .module-landing .video-content { padding: 22px 20px 24px; }
  .module-landing .join .pricing-card { padding: 36px 24px 28px; }
  .module-landing .join-cta { padding: 24px 20px; }
  .module-landing .btn-yellow { white-space: normal; }
  /* tighter vertical rhythm on phones */
  .module-landing .section-subtitle { margin-bottom: 36px; }
  .module-landing .now-grid, .module-landing .diff-grid { gap: 16px; }
  .module-landing .features-grid { gap: 56px; }
  .module-landing .feature-row { gap: 24px; }
  /* theme decorations are sized for desktop screenshots; on a 130px-high phone image they stuck out over the text */
  .module-landing .feature-visual .feature-decoration { width: 45%; height: 75%; }
  .module-landing .feature-visual::after { width: 90px; height: 90px; }
  .module-landing .feature-title { margin-bottom: 12px; }
  .module-landing .feature-description { margin-bottom: 12px; }
  .module-landing .feature-checklist { margin-bottom: 0; }
  .module-landing .feature-checklist li { padding: 6px 0; }
  .module-landing .what-grid { gap: 28px; }
  .module-landing .what-grid .fund-benefits { margin-top: 0; }
  .module-landing .what-text p:last-child { margin-bottom: 0; }
  .module-landing .modes { margin-top: 40px; gap: 16px; }
  .module-landing .stack { margin-top: 32px; }
  .module-landing .steps { gap: 28px; }
  .module-landing .step-num { margin-bottom: 14px; }
  .module-landing .alliance-grid { margin-bottom: 56px; gap: 16px; }
  .module-landing .sub-p { margin-bottom: 32px; }
  .module-landing .docs { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 28px; }
  .module-landing .callout { margin-top: 24px; padding: 18px 20px; }
  .module-landing .join-sub { margin: 48px 0 28px; }
}
