@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap");

/* DemandCast marketing sub-page skin (company / resources / use-cases /
   onboarding guide / legal). Loaded AFTER product.css on pages whose body
   carries .landing-sub; landing.html does not load this file. Overrides the
   legacy product.css marketing classes into the v6 front-door language:
   fixed navy header, navy banner hero, wash sections, branded tiles, navy
   footer. Colors follow tokens.css; literals are the same values with the
   token unavailable at parse time in @import position. */

.landing-sub {
  margin: 0;
  background: #fff;
  color: #111756;
  font-family: "Comfortaa", "DM Sans", system-ui, sans-serif;
}
.landing-sub a { color: inherit; transition: transform .34s cubic-bezier(.22, .61, .36, 1), filter .34s; }
.landing-sub a:hover { transform: translateY(-1px); filter: brightness(1.08); }
html:has(body.landing-sub) { scroll-behavior: smooth; }

/* product.css assigns Manrope/serif families to the legacy marketing
   selectors; marketing surfaces are Comfortaa throughout (Chris ruling),
   so enforce the family on every text element under .landing-sub. */
.landing-sub h1, .landing-sub h2, .landing-sub h3, .landing-sub h4,
.landing-sub p, .landing-sub li, .landing-sub a, .landing-sub span,
.landing-sub summary, .landing-sub small, .landing-sub strong,
.landing-sub button, .landing-sub input, .landing-sub textarea,
.landing-sub label, .landing-sub td, .landing-sub th, .landing-sub select,
.landing-sub .page-hero h1, .landing-sub .page-hero p,
.landing-sub .landing-section h2, .landing-sub .prose p {
  font-family: "Comfortaa", "DM Sans", system-ui, sans-serif;
}

/* ---------- fixed navy header (always solid on sub pages) ---------- */
.landing-sub .landing-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  max-width: none;
  color: #fff;
  background: var(--dc-indigo-900, #0D0B61);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 1px 18px rgba(5, 4, 40, .35);
  padding: 16px max(24px, calc((100vw - 1400px) / 2));
}
.landing-sub .landing-header .landing-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 19px; font-weight: 700; letter-spacing: -.01em;
  color: #fff; text-decoration: none;
}
.landing-sub .landing-header .landing-brand svg { width: 26px; height: 23px; }
.landing-sub .landing-brand img,
.landing-sub .landing-footer-brand img { width: 28px; height: 28px; display: block; }
.landing-sub .landing-nav { display: flex; gap: 24px; margin-left: 34px; }
.landing-sub .landing-nav a { color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 700; text-decoration: none; }
.landing-sub .landing-nav a:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: transparent; }
.landing-sub .landing-login:hover { color: #fff; }
.landing-sub .landing-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.landing-sub .landing-lang select {
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 8px;
  font-family: inherit; font-size: 12px; font-weight: 700; padding: 5px 8px;
}
.landing-sub .landing-lang select option { color: #111756; }
.landing-sub .landing-login { color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.landing-sub .landing-user { color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 700; }
.landing-sub .landing-header .landing-button-primary {
  background: linear-gradient(180deg, #ffffff 0%, #eef1ff 100%);
  color: #171271;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 11px;
  padding: 9px 18px;
  font-size: 13px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 18px rgba(5, 4, 40, .4);
}
@media (max-width: 960px) { .landing-sub .landing-nav { display: none; } }

/* ---------- the banner: always seen first, slides under the header ---------- */
.landing-sub .page-hero {
  background:
    radial-gradient(1100px 560px at 50% 0%, rgba(46, 74, 168, .5), transparent 60%),
    linear-gradient(160deg, #12106e 0%, #0D0B61 55%, #08063e 100%);
  color: #fff;
  margin: 0; max-width: none; text-align: left;
  padding: 150px max(20px, calc((100vw - 1160px) / 2)) 84px;
}
.landing-sub .page-hero .landing-section-kicker {
  display: block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #ffb3c1;
}
.landing-sub .page-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(36px, 5.2vw, 58px); font-weight: 700;
  line-height: 1.2; letter-spacing: -.01em; max-width: 900px; color: #fff;
}
.landing-sub .page-hero p {
  margin: 20px 0 0;
  font-size: 16.5px; font-weight: 500;
  color: rgba(255, 255, 255, .85);
  max-width: 640px; line-height: 1.65;
}

/* ---------- sections ---------- */
.landing-sub .landing-section {
  margin: 0; max-width: none;
  padding: 120px max(20px, calc((100vw - 1160px) / 2));
  background: none;
}
.landing-sub .landing-section-grey {
  background: linear-gradient(180deg, rgba(242, 244, 251, 0) 0%, #f2f4fb 22%, #f2f4fb 78%, rgba(242, 244, 251, 0) 100%);
}
.landing-sub .landing-section-paper { background: #fff; }
.landing-sub .landing-section-intro { max-width: none; margin: 0; text-align: left; }
.landing-sub .landing-section-intro .landing-section-kicker,
.landing-sub .landing-section .landing-section-kicker {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #8a90b8;
}
.landing-sub .landing-section h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4.2vw, 46px); font-weight: 700;
  line-height: 1.2; text-wrap: balance; color: #111756;
}

/* soft scroll reveal; resolves instantly where scroll timelines are unsupported */
.landing-sub .landing-section-intro,
.landing-sub .prose,
.landing-sub .contact-grid,
.landing-sub .contact-form-block,
.landing-sub .faq-list,
.landing-sub .status-banner,
.landing-sub .case-card,
.landing-sub .gstep,
.landing-sub .button-row,
.landing-sub .counsel,
.landing-sub .pol {
  animation: dc-mk-rise linear both;
  animation-timeline: view();
  animation-range: entry 0px entry 380px;
}
@keyframes dc-mk-rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-sub .landing-section-intro,
  .landing-sub .prose,
  .landing-sub .contact-grid,
  .landing-sub .contact-form-block,
  .landing-sub .faq-list,
  .landing-sub .status-banner,
  .landing-sub .case-card,
  .landing-sub .gstep,
  .landing-sub .button-row,
  .landing-sub .counsel,
  .landing-sub .pol { animation: none; }
  html:has(body.landing-sub) { scroll-behavior: auto; }
}

/* ---------- prose ---------- */
.landing-sub .prose { max-width: 760px; margin-top: 28px; }
.landing-sub .prose p { font-size: 15px; font-weight: 500; color: #5f6791; line-height: 1.75; margin: 0 0 18px; }
.landing-sub .prose p strong { color: #111756; }
.landing-sub .prose h3 { font-size: 20px; font-weight: 700; color: #111756; margin: 34px 0 12px; }

/* beliefs list as branded tiles (company #about) */
.landing-sub #about .prose ul {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 26px;
}
.landing-sub #about .prose ul li {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #eef0fb 0%, #fff 72%);
  border: 1px solid #d5d9f3; border-radius: 14px;
  padding: 18px 20px;
  font-size: 13px; font-weight: 500; color: #5f6791; line-height: 1.6;
}
.landing-sub #about .prose ul li::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #171271;
}
.landing-sub #about .prose ul li strong {
  display: block; margin-bottom: 6px;
  font-size: 14.5px; font-weight: 700; color: #111756;
}
@media (max-width: 700px) { .landing-sub #about .prose ul { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.landing-sub main .landing-button {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-family: inherit; font-size: 14px; font-weight: 700;
  border-radius: 12px; padding: 13px 26px;
}
.landing-sub main .landing-button-primary {
  background: linear-gradient(180deg, #241db2 0%, #171271 55%, #100c66 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 14px 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 22px rgba(13, 11, 97, .25);
}
.landing-sub main .landing-button-outline {
  background: rgba(23, 18, 113, .06);
  color: #171271;
  border: 1.5px solid #171271;
}
.landing-sub .button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- contact (company) ---------- */
.landing-sub .contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px; margin-top: 36px;
}
.landing-sub .contact-card {
  background: linear-gradient(150deg, #eef0fb 0%, #f7f8fc 100%);
  border: 1px solid #d5d9f3; border-radius: 14px; padding: 20px 22px;
  box-shadow: none;
}
.landing-sub .contact-card h3 { margin: 0; font-size: 16px; font-weight: 700; color: #111756; }
.landing-sub .contact-card p { margin: 8px 0 12px; font-size: 13px; font-weight: 500; color: #5f6791; line-height: 1.6; }
.landing-sub .contact-card a { font-size: 13.5px; font-weight: 700; color: #171271; text-decoration: none; }

.landing-sub .contact-form-block { margin-top: 56px; max-width: 720px; }
.landing-sub .contact-form-block h3 { font-size: 20px; font-weight: 700; margin: 0; color: #111756; }
.landing-sub .contact-form-block > p { font-size: 14px; font-weight: 500; color: #5f6791; margin: 8px 0 22px; }
.landing-sub .form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .landing-sub .form-pair { grid-template-columns: 1fr; } }
.landing-sub .form-field { display: block; margin-bottom: 14px; }
.landing-sub .form-field span { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: #111756; }
.landing-sub .form-field input,
.landing-sub .form-field textarea {
  width: 100%; font: inherit; font-size: 14px;
  padding: 12px 14px;
  border: 1px solid #d5d9f3; border-radius: 11px;
  background: #f7f8fc; color: #111756;
}
.landing-sub .form-field textarea { min-height: 120px; resize: vertical; }
.landing-sub .form-field input:focus,
.landing-sub .form-field textarea:focus { outline: 2px solid var(--dc-blue-500, #5865d6); outline-offset: 1px; background: #fff; }
.landing-sub .terms-field {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12.5px; font-weight: 500; color: #5f6791; margin-bottom: 10px;
}
.landing-sub .terms-field a { color: #171271; font-weight: 700; }
.landing-sub .contact-feedback { max-width: 720px; border-radius: 12px; padding: 14px 18px; font-size: 13.5px; font-weight: 700; margin: 0 0 18px; }
.landing-sub .contact-feedback-success { background: linear-gradient(150deg, #FBE3DF 0%, #fff 80%); border: 1px solid #c8e9da; color: #1d6b45; }
.landing-sub .contact-feedback-error { background: linear-gradient(150deg, #fdeaea 0%, #fff 80%); border: 1px solid #f0c4c4; color: #9d174d; }

/* ---------- FAQ (resources) ---------- */
.landing-sub .faq-list { max-width: 800px; margin-top: 32px; }
.landing-sub .faq-list details {
  background: linear-gradient(150deg, #eef0fb 0%, #fff 80%);
  border: 1px solid #d5d9f3; border-radius: 14px;
  margin-bottom: 12px; overflow: hidden;
}
.landing-sub .faq-list summary { cursor: pointer; padding: 16px 20px; font-size: 15px; font-weight: 700; color: #111756; list-style: none; }
.landing-sub .faq-list summary::-webkit-details-marker { display: none; }
.landing-sub .faq-list summary::after { content: "+"; float: right; color: #171271; font-weight: 700; }
.landing-sub .faq-list details[open] summary::after { content: "\2013"; }
.landing-sub .faq-list p { margin: 0; padding: 0 20px 18px; font-size: 13.5px; font-weight: 500; color: #5f6791; line-height: 1.7; }

/* ---------- live status band (resources) ---------- */
.landing-sub .status-banner {
  display: flex; align-items: center; gap: 12px;
  margin-top: 28px; max-width: 800px;
  background: linear-gradient(150deg, #FBE3DF 0%, #fff 80%);
  border: 1px solid #c8e9da; border-radius: 14px;
  padding: 18px 22px;
  font-size: 15px; font-weight: 700; color: #111756;
}
.landing-sub .status-banner i {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: #2b9a63; box-shadow: 0 0 10px rgb(69, 208, 150);
}
.landing-sub .status-banner small { font-weight: 500; color: #5f6791; margin-left: auto; font-size: 12.5px; text-align: right; }
.landing-sub .status-banner .status-state { display: none; }
.landing-sub .status-banner[data-status="checking"] .status-checking,
.landing-sub .status-banner[data-status="ok"] .status-ok,
.landing-sub .status-banner[data-status="down"] .status-down { display: inline; }
.landing-sub .status-banner[data-status="down"] {
  background: linear-gradient(150deg, #fdf3dd 0%, #fff 80%);
  border-color: #eee3c4;
}
.landing-sub .status-banner[data-status="down"] i { background: #fbc02d; box-shadow: 0 0 10px #fbc02d; }

/* ---------- use-case cards ---------- */
.landing-sub .case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; text-align: left; }
@media (max-width: 860px) { .landing-sub .case-grid { grid-template-columns: 1fr; } }
.landing-sub .case-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid #d5d9f3; border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(18, 24, 74, .06);
  transition: transform .34s cubic-bezier(.22, .61, .36, 1), box-shadow .34s;
}
.landing-sub .case-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(18, 24, 74, .12); }
.landing-sub .case-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #171271; }
.landing-sub .case-card h3 { margin: 0; font-size: 19px; font-weight: 700; color: #111756; }
.landing-sub .case-problem { display: block; margin: 8px 0 14px; font-size: 13.5px; font-weight: 700; color: var(--dc-ch-hyperlocal, #8140DC); }
.landing-sub .case-art { height: auto; margin: 2px 0 16px; display: block; }
.landing-sub .case-art svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; border-radius: 12px; }
.landing-sub .case-card p { margin: 0 0 12px; font-size: 13.5px; font-weight: 500; color: #5f6791; line-height: 1.7; }
.landing-sub .case-card p strong { color: #111756; }
.landing-sub .case-card mark { background: linear-gradient(150deg, #eef0fb, #f7f8fc); color: #171271; padding: 1px 5px; border-radius: 5px; }
.landing-sub .case-signals { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.landing-sub .case-signals span { background: #171271; color: #fff; border-radius: 999px; padding: 4px 11px; font-size: 10.5px; font-weight: 700; }

/* ---------- onboarding guide steps ---------- */
.landing-sub .gstep {
  display: grid; grid-template-columns: 56px 1fr 260px; gap: 22px; align-items: center;
  background: #fff; border: 1px solid #d5d9f3; border-radius: 16px;
  padding: 22px 24px; margin-top: 18px;
  box-shadow: 0 10px 30px rgba(18, 24, 74, .06);
  position: relative; overflow: hidden;
}
.landing-sub .gstep::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #171271; }
@media (max-width: 860px) {
  .landing-sub .gstep { grid-template-columns: 44px 1fr; }
  .landing-sub .gstep-art { grid-column: 1 / -1; }
}
.landing-sub .guide-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(150deg, #eef0fb, #fff);
  border: 1.5px solid #171271; color: #171271;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.landing-sub .gstep h3 { margin: 0; font-size: 18px; font-weight: 700; color: #111756; }
.landing-sub .gstep p { margin: 8px 0 0; font-size: 13.5px; font-weight: 500; color: #5f6791; line-height: 1.7; }
.landing-sub .guide-tip {
  display: block; margin-top: 12px;
  background: linear-gradient(150deg, #eef0fb, #f7f8fc);
  border: 1px solid #d5d9f3; border-radius: 10px;
  padding: 9px 13px;
  font-size: 12.5px; font-weight: 500; color: #5f6791;
}
.landing-sub .guide-tip strong { color: #171271; }
.landing-sub .gstep-art svg { display: block; width: 100%; height: auto; border-radius: 12px; }

/* ---------- navy closer (use-cases, guide) ---------- */
.landing-sub .landing-close {
  margin: 0; max-width: none;
  background:
    radial-gradient(1100px 560px at 50% 0%, rgba(46, 74, 168, .5), transparent 60%),
    linear-gradient(160deg, #12106e 0%, #0D0B61 55%, #08063e 100%);
  color: #fff; text-align: center;
  padding: 110px 20px;
}
.landing-sub .landing-close .landing-section-kicker { color: rgba(255, 255, 255, .6); }
.landing-sub .landing-close h2 { color: #fff; margin: 8px 0 0; }
.landing-sub .landing-close p { margin: 14px auto 0; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .8); max-width: 560px; }
.landing-sub .landing-close .landing-button {
  display: inline-block; margin-top: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #eef1ff 100%);
  color: #171271;
  border: 1px solid rgba(255, 255, 255, .65); border-radius: 14px;
  padding: 15px 30px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 14px 34px rgba(3, 2, 30, .5);
}

/* ---------- policy pages ---------- */
.landing-sub .counsel {
  max-width: 800px; margin: 0 0 30px;
  background: linear-gradient(150deg, #fdf3dd, #fff 80%);
  border: 1px solid #eee3c4; border-radius: 12px;
  padding: 14px 18px;
  font-size: 12.5px; font-weight: 500; color: #7a6420; line-height: 1.6;
}
.landing-sub .pol { max-width: 800px; }
.landing-sub .pol h3 { font-size: 20px; font-weight: 700; margin: 38px 0 12px; color: #111756; }
.landing-sub .pol p, .landing-sub .pol li { font-size: 14px; font-weight: 500; color: #5f6791; line-height: 1.75; }
.landing-sub .pol p strong, .landing-sub .pol li strong { color: #111756; }
.landing-sub .pol ul { padding-left: 22px; margin: 0 0 16px; }
.landing-sub .pol a { color: #171271; font-weight: 700; }
.landing-sub .pol table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 13px; }
.landing-sub .pol th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8a90b8; padding: 8px 12px; border-bottom: 2px solid #d5d9f3; }
.landing-sub .pol td { padding: 10px 12px; border-bottom: 1px solid #e5e9f7; color: #5f6791; font-weight: 500; vertical-align: top; }
.landing-sub .pol td:first-child { font-weight: 700; color: #111756; }
.landing-sub .backrow { margin-top: 44px; }

/* ---------- navy footer ---------- */
.landing-sub .landing-footer {
  margin: 0; max-width: none;
  background: var(--dc-indigo-900, #0D0B61);
  color: #fff;
  border-top: none;
  padding: 64px max(20px, calc((100vw - 1160px) / 2)) 40px;
}
.landing-sub .footer-main {
  display: flex; gap: 56px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 30px;
}
.landing-sub .footer-brand-col { flex: 0 0 240px; }
.landing-sub .landing-footer-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 19px; font-weight: 700; color: #fff; text-decoration: none;
}
.landing-sub .landing-footer-brand svg { width: 26px; height: 23px; }
.landing-sub .footer-brand-col p { margin: 8px 0 0; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .65); line-height: 1.6; }
.landing-sub .footer-columns {
  flex: 1; min-width: 280px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 26px;
}
.landing-sub .footer-col h4 { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.landing-sub .footer-col a { display: block; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .72); text-decoration: none; margin-top: 8px; }
.landing-sub .footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 34px;
  font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .5);
}

/* anchors glide to rest below the fixed header */
.landing-sub #about, .landing-sub #contact, .landing-sub #careers,
.landing-sub #help, .landing-sub #faq, .landing-sub #status,
.landing-sub #privacy, .landing-sub #terms, .landing-sub #cookies,
.landing-sub #footfall-forecasting, .landing-sub #staffing-optimiser,
.landing-sub #inventory-planning, .landing-sub #marketing-timing,
.landing-sub #city-demand-view, .landing-sub #opening-hours,
.landing-sub #peak-shifting, .landing-sub #performance-alerts,
.landing-sub #event-roi { scroll-margin-top: 96px; }
