/**
 * Integrate Dropbox (idb) design — taken from the live product page https://codeconfig.dev/integrate-dropbox
 *
 * The CONTENT structure of the demo pages is the Google Drive demo's (hero -> feature cards -> "didn't find a
 * feature" -> reviews -> FAQ -> CTA). This file only decides how it LOOKS, following the live Dropbox page:
 * Poppins, a white floating header, a pale-blue hero, tinted panels with "View Demo ↗" and the feature's own
 * screenshot, pale-blue FAQ rows, a pale grid CTA panel and a light footer. Brand blue #0061fe, ink #000e25.
 *
 * Enqueued only on idb pages (core/products.php -> css_file). Text colours are chosen for WCAG AA on their
 * backgrounds (muted #5a6578 is 5.6:1 on the pale panel).
 */

/* --------------------------------------------------------------------------
   Poppins (files ship with the theme)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../fonts/poppins-v20-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../../fonts/poppins-v20-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../../fonts/poppins-v20-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../../fonts/poppins-v20-latin-700.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
body.idb-page {
  --idb-primary: #0061fe;
  --idb-primary-dark: #0050d4;
  --idb-ink: #000e25;
  --idb-muted: #757d89;
  --idb-panel: rgba(0, 97, 254, 0.05);
  --idb-panel-border: rgba(0, 97, 254, 0.2);
  --idb-line: #e3ecfb;
  --idb-accent: #85b3ff;
  --idb-radius: 16px;

  /* main.css section/hero tokens */
  --f-section-primary: var(--idb-primary);
  --f-section-title: var(--idb-ink);
  --f-section-sub-title: var(--idb-primary);
  --f-section-description: var(--idb-muted);
  --f-hero-title: var(--idb-ink);
  --f-hero-sub-title: var(--idb-primary);
  --f-hero-description: var(--idb-ink);
  --fbtn-primary: var(--idb-primary);
  --fbtn-bg: #ffffff;
  --fbtn-border: var(--idb-panel-border);
  --dm-feature-section-bg: var(--idb-panel);
  --dm-feature-primary: var(--idb-primary);
  --dm-feature-title: var(--idb-ink);
  --dm-feature-text: var(--idb-muted);
  --dm-feature-border: var(--idb-panel-border);
  --dm-feature-bg: var(--idb-panel);

  /* demo.css components (tags, step badges, focus rings) and the request form read these */
  --cc-primary: var(--idb-primary);
  --cc-primary-dark: var(--idb-primary-dark);
  --cc-primary-light: #e0f5ff;
  --cc-navy: var(--idb-ink);
  --cc-slate: var(--idb-muted);

  background: #ffffff;
  color: var(--idb-ink);
  font-family: "Poppins", "DM Sans", system-ui, sans-serif;
}

body.idb-page :is(h1, h2, h3, h4, h5, h6, button, input, textarea, select) {
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   Header: white floating card, dark links, blue "Buy Now"
   Numbers measured on the live page (1674px viewport): pill 1330px wide, 20px/25px padding, 1px border
   rgba(0,97,254,.2), 16px radius, no shadow, 20px from the top; nav gap 24px, 18px type;
   "Buy Now" 8px/25px padding, 10px radius, 18px/500.
   -------------------------------------------------------------------------- */
body.idb-page {
  --header-top-space: 0px; /* main.css: #cc-header top; the pill's own 20px padding sets the 20px offset */
}

body.idb-page.admin-bar {
  --header-top-space: 32px;
}

@media (max-width: 782px) {
  body.idb-page.admin-bar {
    --header-top-space: 46px;
  }
}

body.idb-page #cc-header,
.idb-header {
  background: transparent !important;
  border-bottom: none !important;
}

.idb-header .header-menu-wrap,
.idb-header.sticky-bar .header-menu-wrap,
.idb-header.sticky-hero .header-menu-wrap {
  box-sizing: border-box;
  padding: 20px 25px !important;
  background: #ffffff !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid rgba(0, 97, 254, 0.2) !important;
  border-radius: 16px;
  box-shadow: none;
}

/* The pill is 1330px (the container's 1280px content + its 25px padding): content lines up with the page. */
@media (min-width: 1381px) {
  body.idb-page .idb-header .header-menu-wrap {
    width: calc(100% + 50px);
    max-width: none;
    margin-inline: -25px;
  }
}

@media (max-width: 1024px) {
  .idb-header .header-menu-wrap,
  .idb-header.sticky-bar .header-menu-wrap,
  .idb-header.sticky-hero .header-menu-wrap {
    padding: 14px 18px !important;
  }
}

@media (min-width: 1025px) {
  body.idb-page .idb-header .header-menu-wrap .main-header-menu .main-menu {
    gap: 24px;
  }

  body.idb-page .idb-header .header-menu-wrap .main-header-menu .main-menu li.menu-item > a {
    padding: 10px 0;
  }
}

.idb-header .main-header-menu .main-menu li.menu-item a {
  color: var(--idb-ink) !important;
  font-size: 18px;
  font-weight: 400;
}

.idb-header .main-header-menu .main-menu li.menu-item a:hover,
.idb-header .main-header-menu .main-menu li.menu-item.current-menu-item > a,
.idb-header .main-header-menu .main-menu li.menu-item.current_page_item > a {
  color: var(--idb-primary) !important;
}

/* The last menu item ("Buy Now") is the button, as on the live page. */
body.idb-page .idb-header .header-menu-wrap .main-header-menu .main-menu > li.menu-item:last-child > a,
.idb-header .main-header-menu .main-menu .menu-item.ccpidb-header-btn a {
  background: var(--idb-primary);
  color: #ffffff !important;
  border-radius: 10px;
  padding: 8px 25px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.idb-header .main-header-menu .main-menu > li.menu-item:last-child > a::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.idb-header .main-header-menu .main-menu > li.menu-item:last-child > a:hover {
  background: var(--idb-primary-dark);
  color: #ffffff !important;
}

/* Logo: dark CodeConfig mark | divider | the Dropbox wordmark image (36x39 + 136x42, as on the live page) */
.idb-logos {
  gap: 20px;
}

.idb-logos .cc-logo img {
  width: 36px;
  height: 39px;
  filter: brightness(0);
}

.idb-logos .logo-divider {
  width: 1px;
  height: 24px;
  background: #cdd9ef;
}

.idb-logos .ccp-dropbox-logo img {
  width: 136px;
  height: 42px;
}

/* --------------------------------------------------------------------------
   Hero (features list) — pale-blue gradient, big Poppins heading
   -------------------------------------------------------------------------- */
body.idb-page section.feature-hero.section-top {
  padding-top: clamp(130px, 12vw, 170px) !important;
}

body.idb-page .feature-hero {
  position: relative;
  padding-bottom: clamp(40px, 6vw, 80px);
  background:
    radial-gradient(circle at 10% 34%, rgba(0, 97, 254, 0.1) 0, transparent 20%),
    radial-gradient(circle at 90% 24%, rgba(120, 190, 255, 0.28) 0, transparent 22%),
    linear-gradient(180deg, #dcecff 0%, #eaf4ff 42%, #ffffff 100%);
}

body.idb-page .feature-hero {
  margin-block: 0;
}

/* The first card section follows the hero directly: no second big gap. */
body.idb-page .feature-hero + .demo-feature,
body.idb-page .feature-hero + .cc-home-perks + .cc-home-anchor + .demo-feature {
  padding-top: clamp(16px, 3vw, 40px);
}

body.idb-page .feature-hero .feature-hero__glow {
  display: none;
}

body.idb-page .feature-hero .section-title {
  position: relative;
  z-index: 1;
  max-width: 62rem;
}

body.idb-page .title-tag,
body.idb-page .feature-hero .section-title .title-tag,
body.idb-page .section-title .title-tag,
body.idb-page .ccpigd-hero-sub-title,
body.idb-page .file-manager-hero__sub-title {
  background: #ffffff !important;
  border: 1px solid var(--idb-panel-border) !important;
  color: var(--idb-primary) !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.idb-page .title-tag span,
body.idb-page .feature-hero .section-title .title-tag span,
body.idb-page .section-title .title-tag span,
body.idb-page .ccpigd-hero-sub-title span,
body.idb-page .file-manager-hero__sub-title span {
  color: var(--idb-primary) !important;
  font-weight: 500 !important;
  font-size: 15px;
}

body.idb-page .title-tag i,
body.idb-page .feature-hero .section-title .title-tag i,
body.idb-page .section-title .title-tag i,
body.idb-page .ccpigd-hero-sub-title i {
  background: var(--idb-primary) !important;
  box-shadow: none !important;
}

body.idb-page .feature-hero .section-title h1 {
  color: var(--idb-ink);
  font-weight: 600;
  font-size: clamp(2.25rem, 4.7vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

body.idb-page .feature-hero .section-title p {
  color: var(--idb-ink);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

/* Buttons (hero, CTA, cards) */
body.idb-page .feature-btn,
body.idb-page .ccpigd-btn {
  min-height: 56px;
  padding-inline: 30px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 8px;
}

body.idb-page .feature-btn.primary,
body.idb-page .ccpigd-btn.primary {
  background-color: var(--idb-primary);
  color: #ffffff !important;
  border-color: var(--idb-primary);
  box-shadow: 0 6px 18px rgba(0, 97, 254, 0.25);
}

body.idb-page .feature-btn.primary:hover,
body.idb-page .ccpigd-btn.primary:hover {
  background-color: var(--idb-primary-dark);
  color: #ffffff !important;
  border-color: var(--idb-primary-dark);
  transform: translateY(-1px);
}

body.idb-page .feature-btn.secondary,
body.idb-page .ccpigd-btn.secondary {
  background-color: #ffffff;
  color: var(--idb-primary) !important;
  border: 1px solid var(--idb-panel-border);
  box-shadow: none;
}

body.idb-page .feature-btn.secondary:hover,
body.idb-page .ccpigd-btn.secondary:hover {
  background-color: var(--idb-panel);
  border-color: var(--idb-accent);
  color: var(--idb-primary-dark) !important;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Section headings: big Poppins, plain blue sub-title, grey description
   -------------------------------------------------------------------------- */
body.idb-page .demo-feature {
  padding: clamp(56px, 8vw, 96px) 0;
  margin-block: 0;
}

body.idb-page .demo-feature.background {
  background: var(--idb-panel);
}

body.idb-page .demo-feature .section-title {
  max-width: 62rem;
}

body.idb-page .demo-feature .section-title h2,
body.idb-page .cc-faqs .section-title h2,
body.idb-page .feature-review .section-title h2,
body.idb-page .cc-section-header .cc-section-title {
  color: var(--idb-ink);
  font-weight: 600;
  font-size: clamp(2rem, 3.9vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

body.idb-page .demo-feature .section-title .subtitle,
body.idb-page .feature-review .section-title .subtitle,
body.idb-page .cc-section-header .cc-section-tag {
  display: block;
  margin-bottom: 10px;
  color: var(--idb-primary);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  text-transform: none;
  letter-spacing: 0;
}

body.idb-page .demo-feature .section-title p,
body.idb-page .cc-faqs .section-title p,
body.idb-page .cc-section-header .cc-section-desc {
  color: var(--idb-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Feature cards — tinted panels, "View Demo ↗", the feature's own screenshot
   Layout follows the live page: wide cards (text beside screenshot), then pairs, then trios.
   -------------------------------------------------------------------------- */
body.idb-page .demo-feature__wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

body.idb-page .demo-feature__wrapper__item {
  grid-column: span 2;
  width: auto;
  max-width: none;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(24px, 3vw, 34px);
  text-align: left;
  background: var(--idb-panel);
  border: 1px solid var(--idb-panel-border);
  border-radius: var(--idb-radius);
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.idb-page .demo-feature.background .demo-feature__wrapper__item {
  background: #ffffff;
}

body.idb-page .demo-feature__wrapper__item:hover {
  transform: translateY(-3px);
  border-color: var(--idb-accent);
  box-shadow: 0 14px 34px rgba(0, 97, 254, 0.1);
}

/* The live cards carry no icon tile; their screenshot does that job. */
body.idb-page .demo-feature__wrapper__item__icon {
  display: none;
}

body.idb-page .demo-feature__wrapper__item__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

body.idb-page .demo-feature__wrapper__item__name h3 {
  color: var(--idb-ink);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.25;
  margin: 0;
}

body.idb-page .demo-feature__wrapper__item p {
  color: var(--idb-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

body.idb-page .demo-feature__wrapper__item__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--idb-primary);
  font-weight: 500;
  font-size: 1.125rem;
}

body.idb-page .demo-feature__wrapper__item__link::after {
  content: "↗";
  font-size: 1.1em;
  line-height: 1;
}

body.idb-page .demo-feature__wrapper__item__link:hover {
  color: var(--idb-primary-dark);
}

body.idb-page .demo-feature__wrapper__item__media {
  display: block;
  margin-top: auto;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--idb-line);
}

body.idb-page .demo-feature__wrapper__item__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Section of 6 (modules): wide, pair, wide, pair */
body.idb-page .demo-feature__wrapper:has(> :nth-child(6):last-child) > :nth-child(1),
body.idb-page .demo-feature__wrapper:has(> :nth-child(6):last-child) > :nth-child(4) {
  grid-column: span 6;
}
body.idb-page .demo-feature__wrapper:has(> :nth-child(6):last-child) > :nth-child(2),
body.idb-page .demo-feature__wrapper:has(> :nth-child(6):last-child) > :nth-child(3),
body.idb-page .demo-feature__wrapper:has(> :nth-child(6):last-child) > :nth-child(5),
body.idb-page .demo-feature__wrapper:has(> :nth-child(6):last-child) > :nth-child(6) {
  grid-column: span 3;
}

/* Section of 5 (advanced features): pair, trio */
body.idb-page .demo-feature__wrapper:has(> :nth-child(5):last-child) > :nth-child(1),
body.idb-page .demo-feature__wrapper:has(> :nth-child(5):last-child) > :nth-child(2) {
  grid-column: span 3;
}

/* Wide cards: text beside the screenshot (screenshot left on the first, right on the second) */
@media (min-width: 900px) {
  body.idb-page .demo-feature__wrapper:has(> :nth-child(6):last-child) > :nth-child(1),
  body.idb-page .demo-feature__wrapper:has(> :nth-child(6):last-child) > :nth-child(4) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
  }

  body.idb-page .demo-feature__wrapper:has(> :nth-child(6):last-child) > :nth-child(1) .demo-feature__wrapper__item__media {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
  }

  body.idb-page .demo-feature__wrapper:has(> :nth-child(6):last-child) > :nth-child(1) .demo-feature__wrapper__item__body {
    grid-column: 2;
    grid-row: 1;
  }

  body.idb-page .demo-feature__wrapper:has(> :nth-child(6):last-child) > :nth-child(4) .demo-feature__wrapper__item__media {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }

  body.idb-page .demo-feature__wrapper:has(> :nth-child(6):last-child) > :nth-child(4) .demo-feature__wrapper__item__body {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (max-width: 899px) {
  body.idb-page .demo-feature__wrapper > .demo-feature__wrapper__item {
    grid-column: span 6 !important;
  }
}

/* --------------------------------------------------------------------------
   Single feature page: hero + demo blocks
   -------------------------------------------------------------------------- */
body.idb-page .ccpigd-single-feature-section {
  background:
    radial-gradient(circle at 8% 30%, rgba(0, 97, 254, 0.08) 0, transparent 22%),
    linear-gradient(180deg, #dcecff 0%, #eef6ff 55%, #ffffff 100%);
  padding-top: clamp(130px, 12vw, 170px) !important;
  padding-bottom: 60px;
}

body.idb-page .ccpigd-single-feature-section.no-thumbnail .text-center-wrap {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

body.idb-page .ccpigd-hero-content-box h1 {
  color: var(--idb-ink);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 18px;
}

body.idb-page .ccpigd-hero-content-box p {
  color: var(--idb-ink);
  font-size: 1.0625rem;
  line-height: 1.7;
}

body.idb-page .ccpigd-single-feature-section .image-box img {
  border-radius: var(--idb-radius);
  border: 1px solid var(--idb-panel-border);
  box-shadow: 0 18px 44px rgba(0, 97, 254, 0.1);
}

body.idb-page .ccpigd-demo-feature .demo-feature-list .demo-feature-item,
body.idb-page .demo-feature-item {
  background: var(--idb-panel);
  border: 1px solid var(--idb-panel-border);
  border-radius: var(--idb-radius);
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: 40px;
  box-shadow: none;
}

body.idb-page .demo-feature-item h3 {
  color: var(--idb-ink);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  margin-bottom: 12px;
}

body.idb-page .demo-feature-item p {
  color: var(--idb-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 28px;
}

body.idb-page .demo-feature-fallback-img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--idb-line);
  box-shadow: 0 10px 30px rgba(0, 97, 254, 0.08);
}

.cc-demo-editor-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--idb-muted);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.cc-demo-shortcode-notice {
  background: #f8fafc;
  border: 1px dashed var(--idb-panel-border);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  color: var(--idb-muted);
  width: 100%;
}

.cc-demo-shortcode-notice code {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: #e2e8f0;
  border-radius: 4px;
  color: var(--idb-ink);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Reviews: pale section, white bordered cards, blue stars
   -------------------------------------------------------------------------- */
body.idb-page .feature-review {
  background: var(--idb-panel);
  padding: clamp(56px, 8vw, 96px) 0;
  margin-block: 0;
}

body.idb-page .feature-review-list__item {
  background: #ffffff;
  border: 1px solid var(--idb-panel-border);
  border-radius: 16px;
  box-shadow: none;
}

body.idb-page .feature-review-list__item h3 {
  color: var(--idb-ink);
  font-weight: 600;
}

body.idb-page .feature-review-list__item p {
  color: var(--idb-muted);
}

body.idb-page .feature-review-list__item .client-bio .name {
  color: var(--idb-ink);
  font-weight: 600;
}

body.idb-page .feature-review-list__item .client-bio .role {
  color: var(--idb-muted);
}

/* --------------------------------------------------------------------------
   FAQ: pale rows, blue "Q."
   -------------------------------------------------------------------------- */
body.idb-page .cc-faqs {
  background: #ffffff;
}

body.idb-page .cc-faqs__wrapper__item {
  background: var(--idb-panel);
  border: 1px solid var(--idb-panel-border);
  border-radius: 14px;
  box-shadow: none;
}

body.idb-page .cc-faqs__wrapper__item__question__title {
  color: var(--idb-ink);
  font-weight: 500;
}

body.idb-page .cc-faqs__wrapper__item__question__title span {
  color: var(--idb-primary);
  font-weight: 600;
}

body.idb-page .cc-faqs__wrapper__item__answer p {
  color: var(--idb-muted);
}

body.idb-page .cc-faqs__wrapper__item.open-body {
  border-color: var(--idb-accent);
}

/* --------------------------------------------------------------------------
   CTA panels ("Didn't find any feature?" + the closing CTA): pale gradient with a grid
   -------------------------------------------------------------------------- */
body.idb-page .footer-cta {
  --fcta-section-bg: transparent;
  --fcta-section-bg-img: none;
  --fcta-section-bg-shadow: transparent;
  --fcta-section-border: transparent;
  background: transparent;
  padding: 40px 1.5625rem 0;
}

body.idb-page .footer-cta__wrapper__inner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #d9e8ff 0%, #eef5ff 38%, #ffffff 100%);
  border: 1px solid var(--idb-panel-border);
  border-radius: var(--idb-radius);
  padding: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 48px);
  box-shadow: none;
}

body.idb-page .footer-cta__wrapper__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0, 97, 254, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 97, 254, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

body.idb-page .footer-cta__wrapper__inner__content h2 {
  color: var(--idb-ink);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.25;
}

body.idb-page .footer-cta__wrapper__inner__content p {
  color: var(--idb-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Footer: light, like the live page
   -------------------------------------------------------------------------- */
body.idb-page .codeconfig-footer {
  background: var(--idb-panel);
  color: var(--idb-ink);
  border-top: 1px solid var(--idb-line);
}

body.idb-page .codeconfig-footer h2,
body.idb-page .codeconfig-footer h3,
body.idb-page .codeconfig-footer h4 {
  color: var(--idb-ink);
  font-weight: 600;
}

body.idb-page .codeconfig-footer p {
  color: var(--idb-ink);
}

body.idb-page .codeconfig-footer a {
  color: var(--idb-ink);
}

body.idb-page .codeconfig-footer a:hover {
  color: var(--idb-primary);
}

body.idb-page .codeconfig-footer .idb-logos {
  margin-bottom: 18px;
}

body.idb-page .codeconfig-footer .copyright .copyright-payment {
  border-top-color: var(--idb-panel-border);
}

body.idb-page .codeconfig-footer .copyright .copyright-payment p a {
  color: var(--idb-primary);
}

/* --------------------------------------------------------------------------
   Home page extras (demo-access sections) in the same language
   -------------------------------------------------------------------------- */
body.idb-page .cc-section-steps {
  background-color: #ffffff;
  border-color: var(--idb-line);
}

body.idb-page .cc-section-steps.cc-scope {
  background-color: var(--idb-panel);
}

body.idb-page .cc-scope-card,
body.idb-page .cc-step-card {
  border: 1px solid var(--idb-panel-border);
  border-radius: var(--idb-radius);
  box-shadow: none;
  background: #ffffff;
}

body.idb-page .cc-scope-card__title,
body.idb-page .cc-step-title {
  color: var(--idb-ink);
  font-weight: 600;
}

body.idb-page .cc-scope-card li,
body.idb-page .cc-step-text {
  color: var(--idb-muted);
}

/* Step badge: blue rounded square, like the live "Step 1…4" icons */
body.idb-page .cc-step-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--idb-primary);
  font-size: 18px;
  font-weight: 600;
}

body.idb-page .cc-section-request {
  background: transparent;
}

/* --------------------------------------------------------------------------
   Phones and tablets
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* The fixed header is ~156px tall on phones; main.css forces the hero padding with !important. */
  body.idb-page section.feature-hero.section-top,
  body.idb-page .ccpigd-single-feature-section {
    padding-top: 184px !important;
  }
}

.idb-header .header-menu-wrap .logo-wrapper .bars span {
  background: var(--idb-ink) !important;
}

@media (max-width: 1024px) {
  .idb-header .header-menu-wrap .logo-wrapper .bars {
    display: block !important;
    width: 30px !important;
    height: 22px !important;
    cursor: pointer !important;
    z-index: 999 !important;
  }
  .idb-header .header-menu-wrap .logo-wrapper .bars span {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background: var(--idb-ink) !important;
    border-radius: 3px !important;
    margin-bottom: 5px !important;
    transition: all 0.3s ease !important;
  }
  .idb-header.ccp-mobile-menu-active .header-menu-wrap .logo-wrapper .bars span:first-child {
    transform: rotate(45deg) translate(5px, 6px) !important;
  }
  .idb-header.ccp-mobile-menu-active .header-menu-wrap .logo-wrapper .bars span:nth-child(2) {
    opacity: 0 !important;
  }
  .idb-header.ccp-mobile-menu-active .header-menu-wrap .logo-wrapper .bars span:last-child {
    transform: rotate(-45deg) translate(6px, -6px) !important;
  }
  .idb-header .header-menu-wrap .main-header-menu {
    background: #ffffff !important;
    border: 1px solid var(--idb-line) !important;
    box-shadow: 0 14px 34px rgba(0, 97, 254, 0.12) !important;
    padding: 24px !important;
    border-radius: 16px !important;
  }
  .idb-header .header-menu-wrap .main-header-menu .main-menu li a {
    color: var(--idb-ink) !important;
  }
  .idb-header .main-header-menu .main-menu > li.menu-item:last-child > a {
    color: #ffffff !important;
  }
}

/* ==========================================================================
   Alignment with the live page (computed styles measured on
   https://codeconfig.dev/integrate-dropbox at a 1674px viewport).
   DM Sans carries the big headings; Poppins everything else.
   ========================================================================== */

/* Headings that are DM Sans on the live page */
body.idb-page .feature-hero .section-title h1,
body.idb-page .ccpigd-hero-content-box h1,
body.idb-page .demo-feature .section-title h2,
body.idb-page .feature-review .section-title h2,
body.idb-page .cc-faqs .section-title h2,
body.idb-page .cc-section-header .cc-section-title,
body.idb-page .footer-cta__wrapper__inner__content h2,
body.idb-page .cc-step-title {
  font-family: "DM Sans", "Poppins", system-ui, sans-serif;
}

/* Hero: tag 40px tall 54px under the pill, then 40 / 20 / 40px rhythm */
body.idb-page section.feature-hero.section-top {
  padding-top: 160px !important;
}

body.idb-page .title-tag,
body.idb-page .feature-hero .section-title .title-tag,
body.idb-page .section-title .title-tag,
body.idb-page .ccpigd-hero-sub-title,
body.idb-page .file-manager-hero__sub-title {
  min-height: 40px;
  padding: 8px 18px !important;
  border-color: rgba(0, 97, 254, 0.2) !important;
  margin-bottom: 0;
}

body.idb-page .title-tag span,
body.idb-page .feature-hero .section-title .title-tag span,
body.idb-page .section-title .title-tag span,
body.idb-page .ccpigd-hero-sub-title span,
body.idb-page .file-manager-hero__sub-title span {
  font-size: 16px;
  line-height: 21px;
}

body.idb-page .feature-hero .section-title {
  max-width: 1280px;
}

body.idb-page .feature-hero .section-title h1 {
  font-size: clamp(2.5rem, 4.4vw, 4.375rem); /* 70px from ~1590px up */
  font-weight: 700;
  line-height: 1.143;
  letter-spacing: 0;
  margin: 40px 0 20px;
}

body.idb-page .feature-hero .section-title p,
body.idb-page .feature-hero .hero-desc {
  max-width: 920px;
  margin-inline: auto;
  font-family: "DM Sans", "Poppins", system-ui, sans-serif;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
}

body.idb-page .feature-hero .btn-group {
  margin-top: 40px !important;
  gap: 16px !important;
}

/* Buttons: Poppins 20px/500, 12px radius, no shadow */
body.idb-page .feature-btn,
body.idb-page .ccpigd-btn {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  min-height: 58px;
  padding: 15px 30px;
  border-radius: 12px;
  border: 1px solid transparent;
}

body.idb-page .feature-btn.primary,
body.idb-page .ccpigd-btn.primary {
  border-color: var(--idb-primary);
  box-shadow: none;
}

body.idb-page .feature-btn.secondary,
body.idb-page .ccpigd-btn.secondary {
  border-color: rgba(0, 97, 254, 0.2);
}

/* Section headings */
body.idb-page .demo-feature .section-title,
body.idb-page .cc-faqs .section-title,
body.idb-page .feature-review .section-title {
  max-width: 930px;
}

body.idb-page .demo-feature .section-title .subtitle,
body.idb-page .feature-review .section-title .subtitle,
body.idb-page .cc-section-header .cc-section-tag {
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  margin-bottom: 20px;
}

body.idb-page .demo-feature .section-title h2,
body.idb-page .cc-faqs .section-title h2,
body.idb-page .feature-review .section-title h2,
body.idb-page .cc-section-header .cc-section-title {
  font-size: clamp(2rem, 3.4vw, 3.375rem); /* 54px from ~1590px up */
  font-weight: 700;
  line-height: 1.222;
  letter-spacing: 0;
}

body.idb-page .demo-feature .section-title p,
body.idb-page .cc-faqs .section-title p,
body.idb-page .cc-section-header .cc-section-desc {
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: 0.08em;
  margin-top: 20px;
}

/* Sections are white; the cards carry the tint (as on the live page) */
body.idb-page .demo-feature {
  padding: 88px 0;
}

body.idb-page .feature-hero + .demo-feature,
body.idb-page .feature-hero + .cc-home-perks + .cc-home-anchor + .demo-feature {
  padding-top: 24px;
}

body.idb-page .demo-feature.background {
  background: transparent;
}

body.idb-page .demo-feature.background .demo-feature__wrapper__item {
  background: var(--idb-panel);
}

/* Cards: 5% blue fill, 20% blue border, 16px radius, 20px gaps */
body.idb-page .demo-feature__wrapper {
  gap: 20px;
}

body.idb-page .demo-feature__wrapper__item {
  padding: 33px;
  border-radius: 16px;
}

body.idb-page .demo-feature__wrapper__item__name h3 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 40px;
}

body.idb-page .demo-feature__wrapper__item p {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: var(--idb-muted);
}

body.idb-page .demo-feature__wrapper__item__link {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

body.idb-page .demo-feature__wrapper__item__media {
  border: 0;
  border-radius: 12px;
  background: transparent;
}

/* FAQ */
body.idb-page .cc-faqs__wrapper__item {
  border-radius: 16px;
}

body.idb-page .cc-faqs__wrapper__item.open-body {
  border-color: var(--idb-panel-border);
}

/* Reviews */
body.idb-page .feature-review-list__item {
  border-color: var(--idb-panel-border);
}

body.idb-page .feature-review-list__item h3 {
  font-size: 24px;
  line-height: 28px;
}

body.idb-page .feature-review-list__item p {
  font-weight: 500;
  line-height: 28px;
  color: var(--idb-muted);
}

body.idb-page .feature-review-list__item .client-bio .role {
  color: var(--idb-muted);
}

/* Closing CTA panel: 75/30 padding, #c3daff border, DM Sans copy, 56px buttons, 120px above the footer */
body.idb-page .footer-cta {
  margin-bottom: 120px;
}

body.idb-page .footer-cta__wrapper__inner {
  border-color: #c3daff;
  padding: 75px 30px 73px;
}

body.idb-page .footer-cta__wrapper__inner__content h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.75rem); /* 44px from ~1690px up */
  font-weight: 600;
  line-height: 1.273;
}

body.idb-page .footer-cta__wrapper__inner__content p {
  max-width: 920px;
  margin-inline: auto;
  font-family: "DM Sans", "Poppins", system-ui, sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.5;
  color: #687180;
}

body.idb-page .footer-cta .feature-btn {
  font-family: "DM Sans", "Poppins", system-ui, sans-serif;
  font-size: 20px;
  line-height: 20px;
  min-height: 56px;
  padding: 0 29px;
  border-radius: 8px;
}

body.idb-page .footer-cta .feature-btn.secondary {
  color: var(--idb-ink) !important;
  border-color: #c3daff;
}

/* Footer: 5% blue fill, 20% blue border, Poppins 22px headings, 18px links, 16px copyright */
body.idb-page .codeconfig-footer {
  border: 0;
  border-top: 1px solid var(--idb-panel-border);
}

body.idb-page .codeconfig-footer .footer-menu-title,
body.idb-page .codeconfig-footer h2,
body.idb-page .codeconfig-footer h3,
body.idb-page .codeconfig-footer h4 {
  font-size: 22px;
  line-height: 1.19;
  letter-spacing: 0;
}

body.idb-page .codeconfig-footer a {
  font-family: "Poppins", system-ui, sans-serif;
}

body.idb-page .codeconfig-footer .copyright .copyright-payment p {
  font-size: 16px;
  line-height: 28px;
  color: var(--idb-ink);
}

/* Second pass after re-measuring: things the first pass could not reach */

/* The hero description wrapper carries an inline max-width (740px); live is 920px. */
body.idb-page .feature-hero .hero-desc {
  max-width: 920px !important;
}

/* CTA panel: 20px radius (cards are 16px) and a 44px title */
body.idb-page .footer-cta__wrapper__inner {
  border-radius: 20px;
}

body.idb-page .footer-cta__wrapper__inner__content h2 {
  font-size: clamp(1.75rem, 2.7vw, 2.75rem);
}

/* Footer headings and links are Poppins (main.css sets DM Sans on the more specific selectors) */
body.idb-page .codeconfig-footer .footer-bottom .footer-menu h2 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0;
}

body.idb-page .codeconfig-footer .footer-bottom .footer-menu ul li a,
body.idb-page .codeconfig-footer .cc-products-menu ul li a span {
  font-family: "Poppins", system-ui, sans-serif;
}

/* Header navigation is Poppins 18px on the live page (ours inherited DM Sans from main.css) */
body.idb-page .idb-header .header-menu-wrap .main-header-menu .main-menu li.menu-item > a {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 18px;
}

/* Footer link rows: Poppins 16px */
body.idb-page .codeconfig-footer .footer-bottom .footer-menu ul li a {
  font-size: 16px;
}

