/* ==========================================================================
   The Study IAS · Manikant Sir — UGC NET (JRF) History Paper 2 (Hindi)
   Mobile-first segregated stylesheet
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  overflow-x: clip;
}

body {
  margin: 0;
  color: #182d29;
  background: #fbf8f1;
  font: 17px/1.7 system-ui, 'Nirmala UI', 'Noto Sans Devanagari', sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

main,
section,
article,
p,
li,
a {
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

h1, h2, h3, p {
  margin: 0 0 .6em;
}

h1 {
  font-size: clamp(34px, 5.1vw, 68px);
  line-height: 1.13;
  letter-spacing: -.04em;
}

h1 span {
  font: normal .68em/1.5 Georgia, serif;
  color: #f4d6a8;
}

h2 {
  font-size: clamp(25px, 3.3vw, 41px);
  line-height: 1.33;
  letter-spacing: -.025em;
}

h3 {
  font-size: 21px;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #dd8342;
  outline-offset: 3px;
}

header,
main > section,
footer {
  padding: 48px max(6vw, calc((100vw - 1120px) / 2));
}

/* ── Header & Accessible Mobile Hamburger ────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #fbf8f1;
  padding-top: 12px;
  padding-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #c9c3b3;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  display: block;
  height: 50px;
  width: auto;
}

nav.desktop-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  align-items: center;
}

nav.desktop-nav a {
  text-decoration: none;
  font-weight: 500;
}

nav.desktop-nav a:hover {
  color: #975031;
}

.nav-phone {
  font-weight: 700;
  white-space: nowrap;
}

.nav-cta {
  background: transparent;
  border: 1.5px solid #975031;
  color: #182d29;
  padding: 6px 13px;
  border-radius: 5px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #efe8da;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #fff;
  color: #153631;
  border: 1.5px solid #c9c3b3;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

.mobile-drawer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 65px;
  background: #fbf8f1;
  border-bottom: 2px solid #153631;
  box-shadow: 0 18px 36px rgba(15, 38, 34, .2);
  padding: 16px;
  z-index: 95;
  max-height: calc(100dvh - 65px);
  overflow: auto;
}

.mobile-drawer.is-open {
  display: block;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.drawer-links a {
  padding: 11px 12px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  border-bottom: 1px solid #e6dfd0;
}

.drawer-links a:hover {
  background: #efe8da;
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-actions .btn {
  width: 100%;
}

/* ── Buttons & CTA Rows ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: #f3cc91;
  color: #18332e;
  padding: 11px 20px;
  text-decoration: none;
  border-radius: 6px;
  font: inherit;
  font-weight: 750;
  min-height: 44px;
  text-align: center;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(.97);
}

.btn-ghost {
  background: transparent;
  color: #f3cc91;
  border: 1.5px solid #f3cc91;
}

.btn-ghost:hover {
  background: rgba(243, 204, 145, .12);
}

.btn-wa {
  background: #153631;
  color: #fff;
}

.btn-wa-light {
  background: #25d366;
  color: #0e2924;
}

.btn-outline-dark {
  background: transparent;
  color: #182d29;
  border: 1.5px solid #182d29;
}

.btn-outline-dark:hover {
  background: #efe8da;
}

.btn-demo {
  background: #8c2d19;
  color: #fff;
  border: 1.5px solid rgba(243, 204, 145, .45);
}

.btn-demo:hover {
  background: #752312;
  filter: none;
}

.btn-brochure {
  background: #efe8da;
  color: #153631;
  border: 1.5px solid #c5b9a2;
}

.btn-brochure:hover {
  background: #e5dbc7;
  filter: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: #153631;
  color: #fff;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 42px;
  padding-bottom: 0;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  align-self: end;
  transform: scaleX(-1);
}

.hero article {
  padding-bottom: 44px;
}

.offer-badge {
  display: inline-block;
  background: rgba(243, 204, 145, .16);
  color: #f3cc91;
  border: 1px solid rgba(243, 204, 145, .45);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ey {
  color: #975031;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
}

.hero .ey {
  color: #efcea0;
}

.hero-subhead {
  font-size: 1.55em;
}

.hero small {
  display: block;
  color: #dddccd;
  margin-top: 14px;
}

/* ── Commercial Trust Strip ──────────────────────────────────────────────── */
.trust-bar {
  background: #efe8da;
  border-bottom: 1px solid #d9d0be;
  padding-top: 28px;
  padding-bottom: 28px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px 18px;
  border-top: 3px solid #975031;
}

.trust-item strong {
  display: block;
  font-size: 17px;
  color: #153631;
  margin-bottom: 3px;
}

.trust-item span {
  display: block;
  font-size: 14px;
  color: #3d504b;
  line-height: 1.5;
}

/* ── Content Sections ────────────────────────────────────────────────────── */
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cols > article {
  border-top: 2px solid #9a643f;
  padding-top: 17px;
}

.sample {
  background: #efe8da;
}

.sample section {
  background: #fff;
  padding: 25px;
  border-left: 4px solid #a05c38;
  max-width: 850px;
}

.sample-note {
  margin-top: 20px;
  max-width: 820px;
}

.syllabus-link-wrap {
  margin-top: 18px;
}

.section-cta {
  margin-top: 26px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid #d8cfbd;
  border-left: 4px solid #153631;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-cta-text {
  font-weight: 700;
  font-size: 16px;
  color: #153631;
  margin: 0;
  flex: 1 1 260px;
}

.section-cta .cta-row {
  margin-top: 0;
}

details {
  border-bottom: 1px solid #c7c6bb;
  padding: 13px 0;
}

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

details p {
  margin: 10px 0;
}

/* ── Why Paper 2 Section (Cut-offs, Infographics & Arguments) ─────────────── */
.why-p2 {
  background: #f5efe3;
  border-top: 1px solid #d9d0c1;
  border-bottom: 1px solid #d9d0c1;
}

.wp2-lead {
  max-width: 76ch;
  color: #304540;
  margin-bottom: 24px;
}

.wp2-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.wp2-card {
  background: #fff;
  border: 1px solid #d9d0c1;
  border-radius: 12px;
  padding: 22px 20px;
}

.wp2-card h3 {
  font-size: 19px;
  color: #153631;
  margin-bottom: 4px;
}

.wp2-sub {
  font-size: 13.5px;
  color: #546661;
  margin-bottom: 16px;
}

.wp2-weight-bar {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #c9bfae;
  margin-bottom: 18px;
}

.wp2-wb-p1,
.wp2-wb-p2 {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wp2-wb-p1 {
  background: #ebe3d3;
  color: #182d29;
}

.wp2-wb-p2 {
  background: #153631;
  color: #fff;
}

.wp2-wb-p1 span,
.wp2-wb-p2 span {
  font-size: 12px;
  font-weight: 700;
  opacity: .9;
}

.wp2-wb-p2 span {
  color: #f3cc91;
}

.wp2-wb-p1 strong,
.wp2-wb-p2 strong {
  font-size: 15px;
  line-height: 1.3;
}

.wp2-mini-title {
  margin: 0 0 10px;
  font-size: 14.5px;
  color: #153631;
}

.wp2-funnel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.wp2-fn-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}

.wp2-fn-label span {
  font-weight: 700;
  color: #182d29;
}

.wp2-fn-label small {
  color: #5c6d68;
  font-size: 12px;
  text-align: right;
}

.wp2-fn-track {
  height: 10px;
  background: #efe8da;
  border-radius: 999px;
  overflow: hidden;
}

.wp2-fn-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.wp2-fn-fill.is-phd {
  background: #b8c2be;
}

.wp2-fn-fill.is-net {
  background: #2f6c61;
}

.wp2-fn-fill.is-jrf {
  background: #8c2d19;
}

.wp2-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #344b46;
  margin-bottom: 12px;
}

.wp2-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle;
}

.dot-ap {
  background: #3a756a;
}

.dot-jrf {
  background: #8c2d19;
}

.wp2-bars {
  display: grid;
  gap: 12px;
}

.wp2-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 14px;
}

.wp2-gap-pill {
  font-size: 11.5px;
  font-weight: 700;
  background: #fdf0ec;
  color: #8c2d19;
  border: 1px solid #ecc6bc;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.wp2-bar-pair {
  display: grid;
  gap: 5px;
}

.wp2-bar-track {
  background: #f2ece0;
  border-radius: 6px;
  overflow: hidden;
}

.wp2-bar {
  display: block;
  min-width: max-content;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.wp2-bar.is-ap {
  background: #3a756a;
}

.wp2-bar.is-jrf {
  background: #8c2d19;
}

.wp2-highlight-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: #efe8da;
  border-left: 3px solid #8c2d19;
  border-radius: 4px;
  font-size: 13.5px;
  color: #182d29;
}

.wp2-footnote {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #546661;
}

.wp2-table-card {
  margin-bottom: 22px;
}

.wp2-table-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.wp2-blog-link {
  font-size: 13.5px;
  font-weight: 700;
  color: #8c2d19;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

.wp2-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e4dccb;
  border-radius: 8px;
}

.wp2-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.wp2-table th,
.wp2-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #ebe3d3;
  white-space: nowrap;
}

.wp2-table thead th {
  background: #153631;
  color: #f3cc91;
  font-weight: 700;
  font-size: 13px;
}

.wp2-table tbody tr:nth-child(even) {
  background: #faf6ed;
}

.wp2-table tbody tr:last-child td {
  border-bottom: 0;
}

.jrf-num {
  color: #8c2d19;
}

.wp2-badge {
  display: inline-block;
  background: #fdf0ec;
  color: #8c2d19;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
}

.wp2-matrix-block {
  margin-bottom: 22px;
}

.wp2-matrix-block h3 {
  font-size: 20px;
  color: #153631;
  margin-bottom: 4px;
}

.wp2-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.wp2-sc {
  background: #fff;
  border: 1px solid #d9d0c1;
  border-radius: 10px;
  padding: 18px;
  border-top: 4px solid #c9c3b3;
}

.wp2-sc.is-miss {
  border-top-color: #b42318;
}

.wp2-sc.is-close {
  border-top-color: #c27803;
}

.wp2-sc.is-win {
  border-top-color: #153631;
  background: #f2f8f5;
}

.wp2-sc-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #546661;
  margin-bottom: 6px;
}

.wp2-sc h4 {
  margin: 0 0 8px;
  font-size: 16.5px;
  color: #153631;
}

.wp2-math {
  font-size: 14px;
  background: #faf6ed;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.wp2-sc.is-win .wp2-math {
  background: #e1efe9;
}

.wp2-total {
  color: #153631;
  font-size: 15.5px;
}

.wp2-sc.is-win .wp2-total {
  color: #0e5a3b;
}

.wp2-res {
  margin: 0;
  font-size: 13.5px;
  color: #344b46;
  line-height: 1.5;
}

.wp2-args {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wp2-arg {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #d9d0c1;
  border-radius: 10px;
  padding: 18px;
}

.wp2-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #153631;
  color: #f3cc91;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wp2-arg h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #153631;
}

.wp2-arg p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #304540;
}

@media (max-width: 900px) {
  .wp2-top-grid,
  .wp2-matrix,
  .wp2-args {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .wp2-card {
    padding: 16px 14px;
  }

  .wp2-weight-bar {
    grid-template-columns: 1fr;
  }

  .wp2-bar-head {
    flex-wrap: wrap;
  }
}

/* ── Testimonials (MAD-X Masonry Gallery + Lightbox) ─────────────────────── */
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 10px;
}

.proof article {
  background: #fff;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid #e4dccb;
}

.og-t {
  margin-top: 34px;
}

.og-t h3 {
  text-align: center;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 800;
  margin: 6px 0 4px;
  color: #153631;
}

.og-t p.s {
  text-align: center;
  color: #4a5c57;
  margin-bottom: 20px;
  font-size: 15px;
}

.og-rs {
  columns: 3 260px;
  column-gap: 14px;
}

.og-r {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid #dfd7c5;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .38);
  transition: transform .22s ease, box-shadow .22s ease;
  text-align: left;
}

.og-r:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -18px rgba(21, 54, 49, .35);
}

.og-r img {
  width: 100%;
  height: auto;
  display: block;
}

.og-r-cap {
  display: block;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #153631;
  background: #fbf8f1;
  border-top: 1px solid #ece5d6;
}

.yt-reviews {
  margin-top: 24px;
  background: #121516;
  border-radius: 14px;
  padding: 20px;
}

.yt-reviews-title {
  color: #f3cc91;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  text-align: center;
}

.yt-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.yt-reviews-grid .og-r {
  margin: 0;
  background: #0f0f0f;
  border-color: rgba(255, 255, 255, .14);
  border-radius: 10px;
  padding: 6px;
}

@media (max-width: 768px) {
  .yt-reviews {
    padding: 14px 12px;
  }

  .yt-reviews-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.og-lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 28, 25, .88);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: zoom-out;
}

.og-lb.on {
  display: flex;
}

.og-lb-close {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.og-lb-close:hover {
  background: rgba(255, 255, 255, .3);
}

.og-lb img {
  max-width: min(680px, 100%);
  max-height: 88dvh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  cursor: default;
}

/* ── Blog Guides & Interlinking ─────────────────────────────────────────── */
.guides {
  background: #f5efe3;
  border-top: 1px solid #d9d0c1;
  border-bottom: 1px solid #d9d0c1;
}

.guides-lead {
  max-width: 72ch;
  color: #495d57;
  margin-bottom: 22px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  background: #fff;
  border: 1px solid #d9d0c1;
  border-radius: 12px;
  padding: 20px 18px;
}

.guide-card h3 {
  font-size: 18px;
  color: #153631;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ebe3d3;
}

.guide-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.guide-card li a {
  display: block;
  color: #1d4e46;
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
  font-weight: 500;
}

.guide-card li a:hover,
.guide-card li a:focus-visible {
  color: #8c2d19;
  text-decoration: underline;
}

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

/* ── FAQ & Pricing ───────────────────────────────────────────────────────── */
.faq {
  background: #fbf8f1;
}

.price {
  background: #18332e;
  color: #fff;
}

.price .ey {
  color: #efcea0;
}

.price-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 36px;
  align-items: center;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.price-list li {
  padding-left: 26px;
  position: relative;
  font-size: 16px;
  color: #efe8da;
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f3cc91;
  font-weight: 800;
}

.price-card {
  background: rgba(255, 255, 255, .07);
  border: 1.5px solid rgba(243, 204, 145, .38);
  border-radius: 12px;
  padding: 26px;
}

.price-save {
  display: inline-block;
  background: #975031;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.price-course-label {
  margin: 0;
  font-size: 15px;
  color: #efcea0;
}

.price-amount-row {
  margin: 4px 0 8px;
}

.price strong {
  font-size: 40px;
}

.price del {
  color: #ddd;
}

.price-card .cta-row {
  margin-top: 16px;
  flex-direction: column;
  align-items: stretch;
}

.price-card .cta-row .btn {
  width: 100%;
}

.price-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-size: 14.5px;
  color: #efcea0;
}

footer {
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 14px;
  border-top: 1px solid #d9d0be;
}

.mobile {
  display: none;
}

.mobile-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Inquiry, Demo & Brochure Modals ─────────────────────────────────────── */
dialog#inquiry-modal,
dialog#demo-modal,
dialog#brochure-modal {
  border: 0;
  border-radius: 10px;
  padding: 0;
  width: min(460px, calc(100vw - 28px));
  max-height: 90dvh;
  overflow: auto;
  background: #fbf8f1;
  color: #182d29;
  box-shadow: 0 24px 60px rgba(21, 54, 49, .38);
  margin: auto;
}

dialog#demo-modal.is-unlocked {
  width: min(760px, calc(100vw - 24px));
}

dialog#inquiry-modal::backdrop,
dialog#demo-modal::backdrop,
dialog#brochure-modal::backdrop {
  background: rgba(15, 38, 34, .68);
  backdrop-filter: blur(3px);
}

.modal-head {
  background: #153631;
  color: #fff;
  padding: 20px 24px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.modal-head .ey {
  color: #efcea0;
  margin-bottom: 4px;
}

.modal-head h2 {
  font-size: 23px;
  line-height: 1.3;
  margin: 0;
}

.modal-close {
  background: rgba(255, 255, 255, .14);
  border: 0;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, .25);
}

.modal-body {
  padding: 20px 24px 24px;
}

.modal-intro {
  font-size: 15px;
  color: #344b46;
  margin-bottom: 16px;
}

.field {
  margin-bottom: 13px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.field label span {
  font-weight: 400;
  color: #5c6b67;
  font-size: 13px;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #c9c3b3;
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  min-height: 44px;
  background: #fff;
  color: #182d29;
}

.form-err {
  color: #b42318;
  font-size: 13.5px;
  font-weight: 600;
  margin: 4px 0 10px;
  min-height: 18px;
}

.modal-submit {
  width: 100%;
  min-height: 44px;
}

.modal-note {
  font-size: 12.5px;
  color: #54625e;
  margin: 10px 0 0;
  text-align: center;
}

.modal-success {
  display: none;
}

.modal-success.is-visible {
  display: block;
}

.success-box {
  background: #efe8da;
  border-left: 4px solid #153631;
  padding: 14px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.success-box h3 {
  margin-bottom: 4px;
}

.success-box p {
  margin: 0;
  font-size: 15px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.success-actions .btn {
  width: 100%;
}

.modal-reset {
  background: none;
  border: 0;
  color: #975031;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
  margin-top: 8px;
  text-decoration: underline;
}

.demo-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c1f1c;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.demo-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.demo-unlock-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.demo-unlock-actions .btn {
  width: 100%;
  font-size: 14.5px;
  padding: 10px 12px;
}

.brochure-preview-card {
  background: #fff;
  border: 1px solid #d9d0c1;
  border-left: 4px solid #8c2d19;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.brochure-preview-card strong {
  display: block;
  font-size: 15px;
  color: #153631;
  margin-bottom: 4px;
}

.brochure-preview-card span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #495d57;
}

/* ── Floating Corner Video Widget ────────────────────────────────────────── */
.video-popup {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 310px;
  background: #153631;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(15, 38, 34, .38);
  overflow: hidden;
  z-index: 90;
  border: 1.5px solid rgba(243, 204, 145, .38);
  transition: width .2s ease;
}

.video-popup.is-expanded {
  width: min(480px, calc(100vw - 32px));
}

.video-popup.is-hidden {
  display: none;
}

.video-popup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  font-size: 12.5px;
  font-weight: 700;
  background: #153631;
}

.video-popup-bar span {
  color: #efcea0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-popup-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.video-popup-btn {
  background: rgba(255, 255, 255, .14);
  border: 0;
  color: #fff;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.4;
  min-width: 28px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.video-popup-btn:hover {
  background: rgba(255, 255, 255, .26);
}

.video-frame-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #0d211e;
}

.video-frame-wrap iframe,
.video-frame-wrap #yt-corner-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 14px;
  background: rgba(15, 38, 34, .78);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  border: 0;
  width: 100%;
  font: inherit;
}

.video-overlay strong {
  color: #f3cc91;
  font-size: 14.5px;
}

.video-overlay small {
  color: #e6e2d6;
  font-size: 12.5px;
  line-height: 1.4;
}

.video-overlay.is-preview-pill {
  inset: auto 8px 8px 8px;
  width: auto;
  background: rgba(21, 54, 49, .9);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  flex-direction: row;
  border: 1px solid rgba(243, 204, 145, .45);
}

.video-overlay.is-hidden {
  display: none;
}

.video-reopen {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 89;
  background: #153631;
  color: #f3cc91;
  border: 1.5px solid #f3cc91;
  border-radius: 999px;
  padding: 9px 15px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 38, 34, .28);
  display: none;
}

.video-reopen.is-visible {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Mobile Priority Responsive Rules ────────────────────────────────────── */
@media (max-width: 768px) {
  header,
  main > section,
  footer {
    padding: 28px 16px;
  }

  header {
    padding: 10px 16px;
    gap: 12px;
  }

  .brand img {
    height: 38px;
  }

  nav.desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 0;
  }

  .hero article {
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: clamp(31px, 8.5vw, 42px);
  }

  .hero-subhead {
    font-size: 1.3em;
  }

  .hero img {
    width: 76%;
    justify-self: center;
    max-height: 220px;
    object-fit: contain;
    object-position: bottom;
  }

  .trust-bar {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .trust-item {
    padding: 13px 14px;
  }

  .cols,
  .two,
  .price-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sample section,
  .proof article {
    padding: 18px 16px;
  }

  .section-cta {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .section-cta-text {
    flex: none;
    width: 100%;
  }

  .section-cta .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .section-cta .btn,
  .cta-row .btn {
    width: 100%;
  }

  .price-card {
    padding: 20px 16px;
  }

  .price-contact {
    flex-direction: column;
    gap: 8px;
  }

  summary {
    padding: 4px 0;
    min-height: 42px;
  }

  .mobile {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 12px #0002;
    font-size: 13px;
    gap: 8px;
    z-index: 85;
  }

  .mobile b {
    font-size: 13px;
    line-height: 1.25;
  }

  .mobile .nav-cta {
    padding: 8px 10px;
    font-size: 12.5px;
    min-height: 38px;
  }

  .mobile .btn {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 38px;
    white-space: nowrap;
  }

  body {
    padding-bottom: 88px;
  }

  dialog#inquiry-modal,
  dialog#demo-modal,
  dialog#brochure-modal,
  dialog#demo-modal.is-unlocked {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .demo-unlock-actions {
    grid-template-columns: 1fr;
  }

  .modal-head,
  .modal-body {
    padding: 16px;
  }

  .video-popup {
    right: 10px;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    width: min(232px, calc(100vw - 20px));
  }

  .video-popup.is-expanded {
    width: calc(100vw - 20px);
  }

  .video-popup-bar {
    padding: 6px 8px;
    font-size: 11.5px;
  }

  .video-overlay {
    padding: 10px;
  }

  .video-overlay strong {
    font-size: 13px;
  }

  .video-overlay small {
    font-size: 11.5px;
  }

  .video-overlay.is-preview-pill {
    font-size: 11px;
    padding: 4px 8px;
  }

  .video-reopen {
    right: 10px;
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    font-size: 11.5px;
    padding: 6px 11px;
  }
}

@media (max-width: 680px) {
  .og-rs {
    columns: 1;
  }

  .wp2-fn-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .wp2-fn-label small {
    text-align: left;
  }

  .wp2-blog-link {
    white-space: normal;
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 0;
  }

  .wp2-table-wrap {
    overflow: visible;
    border: 0;
  }

  .wp2-table,
  .wp2-table tbody,
  .wp2-table tr,
  .wp2-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .wp2-table thead {
    display: none;
  }

  .wp2-table tr {
    border: 1px solid #d9d0c1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #fff;
  }

  .wp2-table tr:last-child {
    margin-bottom: 0;
  }

  .wp2-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-bottom: 1px solid #efe8da;
    font-size: 13.5px;
    white-space: normal;
  }

  .wp2-table td:last-child {
    border-bottom: 0;
  }

  .wp2-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #495d57;
    font-size: 12.5px;
    text-align: left;
  }

  .wp2-table td:first-child {
    background: #153631;
    color: #f3cc91;
    border-bottom: 0;
  }

  .wp2-table td:first-child::before {
    color: #dddccd;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15.5px;
    line-height: 1.65;
  }

  .hero img {
    max-height: 200px;
  }

  .cta-row {
    gap: 9px;
  }

  .cta-row .btn {
    padding: 10px 14px;
    font-size: 15px;
  }

  .wp2-card,
  .wp2-sc,
  .guide-card {
    padding: 16px 14px;
  }

  .wp2-arg {
    flex-direction: column;
    gap: 8px;
    padding: 15px 14px;
  }

  .guide-card li a {
    padding: 6px 0;
  }

  .modal-head h2 {
    font-size: 18px;
  }

  .demo-player-wrap {
    margin-bottom: 12px;
  }
}

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