/* The public demo page (/demo, demo.php) and the "You are exploring the demo" page (includes/demo_refused.php).
   Everything is under .dm- / .dm. The look is the Master Suite demo page's (demo parity stage 1, 11 Nov 2026): its sizes,
   greys and greens are written out here on purpose so the page matches the family; a demo card's two brand colours arrive
   as --dm-primary / --dm-accent on the card itself. Desktop first: 1000px, 780px (single column) and 420px.
   The refused page uses only the .dm-refused rules at the bottom. */
.dm { background: #fff; color: var(--ms-ink); }
.dm-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.dm h1, .dm h2, .dm h3 { color: var(--ms-navy-900); }
.dm-muted { color: var(--ms-muted); }
.dm a:focus-visible, .dm button:focus-visible, .dm summary:focus-visible, .dm .btn:focus-visible { outline: 3px solid #2b78b7; outline-offset: 4px; }

/* ---- buttons and panels on this page */
.dm .btn { min-height: 50px; border-radius: 12px; font-weight: 700; }
.dm .btn-sm { min-height: 44px; }
.dm .btn-green { background-color: #23842e; background-image: linear-gradient(180deg, #2e9e3a, #23842e); }
.dm .btn-green:hover { background-color: #1f7529; background-image: linear-gradient(180deg, #2a9135, #1f7529); }
.dm-panel, .dm .pub-form-card { background: #fff; border: 1px solid #dde4ec; border-radius: 14px; box-shadow: 0 2px 14px rgba(12,35,64,.08); }
.dm-panel { padding: 24px; }

/* ---- the top: breadcrumb, intro, the two companies (one tinted section) */
.dm-top {
    padding: 32px 0 48px;
    background: radial-gradient(ellipse at 3% 12%, #e4f4ed 0, transparent 40%), radial-gradient(ellipse at 98% 36%, #eaf0fb 0, transparent 42%), #f8fafb;
}
.dm-crumbs { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; color: #65748a; margin-bottom: 38px; }
.dm-crumbs a { color: #42566e; display: inline-flex; align-items: center; min-height: 44px; }
.dm-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 70px; align-items: center; margin-bottom: 58px; }
.dm-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #e6f3e7; color: #206d32; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 6px 12px; margin: 0; }
.dm-eyebrow .ic-sm { width: 16px; height: 16px; }
.dm-hero h1 { font-size: clamp(32px, 4.1vw, 54px); line-height: 1.12; letter-spacing: -.045em; color: #102b45; margin: 20px 0; max-width: 650px; }
.dm-lead { font-size: 16px; line-height: 1.8; color: #53667c; margin: 0 0 20px; max-width: 650px; }
.dm-promises { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 22px; }
.dm-promises li { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11px; color: #426451; }
.dm-promises .ic-sm { width: 15px; height: 15px; color: #238238; }
/* the help block */
.dm-side { display: flex; gap: 14px; align-items: flex-start; padding: 22px 0; border-top: 1px solid #d7e5df; border-bottom: 1px solid #d7e5df; color: #17374a; }
.dm-side-ic { width: 44px; height: 44px; border-radius: 14px; background: #e0eee6; color: #28784a; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.dm-side-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dm-side-txt strong { font-size: 14px; font-weight: 700; }
.dm-side-txt small { font-size: 12px; color: #65768a; }
.dm-side-txt a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 12px; font-weight: 700; color: #217437; }
.dm-side-txt a .ic-sm { width: 14px; height: 14px; transition: transform .2s ease; }
.dm-side-txt a:hover .ic-sm { transform: translateX(4px); }

/* ---- section headings */
.dm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.dm-kicker { font-size: 11px; font-weight: 700; color: #638171; margin: 0 0 6px; }
.dm-sec h2, .dm-head h2 { font-size: clamp(21px, 2.5vw, 29px); letter-spacing: -.035em; margin: 0; }
.dm-sub { color: #65768a; font-size: 12px; margin: 0; }
.dm-notice { margin: 0 auto 24px; }
.dm-prep { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #e0e7ed; border-radius: 16px; padding: 16px 18px; }

/* ---- the two company cards */
.dm-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.dm-card {
    --dm-primary: var(--ms-navy-900); --dm-accent: var(--ms-green-600);
    display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid #e0e7ed; border-radius: 28px;
    box-shadow: 0 14px 44px -24px #1c38552b; transition: border-color .2s ease, box-shadow .2s ease;
}
.dm-card:hover { border-color: #bdcec3; box-shadow: 0 20px 50px -26px #1c38554d; }
.dm-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dm-plan { font-size: 13px; font-weight: 700; color: var(--dm-primary); }
.dm-plan-note { font-size: 10px; color: #607289; }
.dm-brand { display: flex; align-items: center; gap: 14px; margin: 16px 0 14px; }
.dm-brand h3 { font-size: 22px; line-height: 1.35; letter-spacing: -.03em; margin: 0; }
.dm-brand-note { margin: 0; font-size: 13px; line-height: 1.85; color: #607087; }
.dm-brand-icon { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid #dfe6ec; flex: 0 0 auto; }
.dm-brand-mono { width: 56px; height: 56px; border-radius: 14px; background: var(--dm-primary); color: #fff; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.dm-preview { background: #fbfcfd; border: 1px solid #dfe6ec; border-radius: 16px; overflow: hidden; padding: 12px 14px; margin-bottom: 14px; transition: transform .2s ease; }
.dm-card:hover .dm-preview { transform: translateY(-3px); }
.dm-preview-h { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #607289; margin-bottom: 6px; }
.dm-preview ul { list-style: none; margin: 0; padding: 0; }
.dm-preview li { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; border-top: 1px solid #dfe6ec; font-size: 13px; }
.dm-preview li:first-child { border-top: 0; }
.dm-when { font-weight: 700; color: var(--dm-primary); font-variant-numeric: tabular-nums; }
.dm-route { color: var(--ms-ink); overflow-wrap: anywhere; }
.dm-bullets { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.dm-bullets li { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 10px; color: #45614f; }
.dm-bullets .ic-sm { width: 14px; height: 14px; color: var(--dm-accent); flex: 0 0 auto; }
.dm-go { margin-top: auto; }
.dm-card .dm-go .btn {
    width: 100%; min-height: 54px; padding: 15px 20px; border-radius: 12px; font-size: 14px; justify-content: space-between; text-align: left;
    background-color: var(--dm-primary); background-image: none; border: 1px solid var(--dm-primary); color: #fff;
}
.dm-card .dm-go .btn:hover { background-color: var(--dm-primary); background-image: none; filter: brightness(1.12); }
.dm-card .dm-go .btn .ic { width: 18px; height: 18px; transition: transform .2s ease; }
.dm-card .dm-go .btn:hover .ic { transform: translateX(4px); }
.dm-hint { text-align: center; color: #64778a; font-size: 10px; margin: 10px 0 0; }
/* the bottom row */
.dm-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 24px 0 0; }
.dm-foot-note { display: flex; align-items: center; gap: 10px; font-size: 11px; line-height: 1.8; color: #617389; margin: 0; }
.dm-foot-note .ic { width: 22px; height: 22px; color: #44836a; }
.dm-foot a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 11px; font-weight: 700; color: #25643d; flex: 0 0 auto; }
.dm-foot a .ic-sm { width: 14px; height: 14px; transition: transform .2s ease; }
.dm-foot a:hover .ic-sm { transform: translateX(4px); }

/* ---- the team (a closed disclosure) */
.dm-team-sec { padding: 24px 0 0; background: #fff; }
.dm-team { border: 1px solid #e0e7ed; border-radius: 18px; background: #fff; }
.dm-team > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 14px; padding: 20px 24px; min-height: 88px; color: #203d54; border-radius: 18px; }
.dm-team > summary::-webkit-details-marker { display: none; }
.dm-team-ic { width: 42px; height: 42px; border-radius: 13px; background: #f0f5f5; color: #4c7572; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.dm-team-txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.dm-team-txt strong { font-size: 14px; font-weight: 700; }
.dm-team-txt small { font-size: 11px; color: #748397; }
.dm-team-toggle { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #dce5e9; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: transform .2s ease; }
.dm-team-toggle .ic-sm { width: 14px; height: 14px; }
.dm-team[open] .dm-team-toggle { transform: rotate(45deg); }
.dm-team-body { border-top: 1px solid #e0e7ed; padding: 28px; }
.dm-team-body h2 { font-size: 26px; letter-spacing: -.035em; margin: 0 0 6px; }
.dm-team-body .dm-sub { font-size: 13px; line-height: 1.8; }
.dm-team-co { font-size: 16px; margin: 20px 0 10px; }
.dm-team-plan { font-size: 11px; font-weight: 700; color: var(--ms-green-700); background: var(--ms-green-50); border-radius: 999px; padding: 3px 10px; margin-left: 6px; vertical-align: middle; }
.dm-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dm-person { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e0e7ed; border-radius: 14px; padding: 12px 14px; }
.dm-person-av { width: 42px; height: 42px; border-radius: 50%; background: var(--ms-navy-900); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.dm-person-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dm-person-sees { font-size: 13px; color: var(--ms-muted); }
.dm-person .btn { flex: 0 0 auto; }

/* ---- guided demo: two panels */
.dm-sec { padding: 48px 0; }
.dm-sec-alt { background: #f8fafb; border-top: 1px solid #e0e7ed; }
.dm-panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.dm-panel h2 { margin-bottom: 16px; }
.dm-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dm-tile .ic { color: #28784a; width: 24px; height: 24px; }
.dm-tile h3 { font-size: 15px; margin: 10px 0 4px; }
.dm-tile p { margin: 0; color: #607087; font-size: 13px; line-height: 1.8; }
.dm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dm-steps li { display: flex; gap: 14px; align-items: flex-start; }
.dm-steps li > span { width: 34px; height: 34px; border-radius: 50%; background: #23842e; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.dm-steps h3 { font-size: 15px; margin: 0 0 2px; }
.dm-steps p { margin: 0; color: #607087; font-size: 13px; line-height: 1.8; }

/* ---- booking */
.dm-book { max-width: 780px; }
.dm-book .pub-form-card { margin-top: 18px; }
.dm-done { text-align: center; padding: 34px 24px; }
.dm-done h2 { margin-bottom: 8px; }
.dm-done p { color: #607087; font-size: 14px; line-height: 1.8; margin: 0 auto 20px; max-width: 520px; }
.dm-done-mark { display: inline-flex; width: 60px; height: 60px; border-radius: 50%; background: var(--mt-ok-100); color: var(--mt-ok-800); align-items: center; justify-content: center; margin-bottom: 12px; }
.dm-done-mark .ic { width: 30px; height: 30px; }

@media (max-width: 1000px) {
    .dm-hero-in { grid-template-columns: minmax(0, 1fr) 230px; gap: 30px; }
    .dm-cards { gap: 20px; }
    .dm-card { padding: 20px; }
    .dm-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
    .dm-wrap { padding: 0 16px; }
    .dm-top { padding-top: 18px; }
    .dm-crumbs { margin-bottom: 18px; }
    .dm-hero-in { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 40px; }
    .dm-hero h1 { font-size: clamp(34px, 7.5vw, 48px); }
    .dm-lead { font-size: 14px; }
    .dm-side { padding: 16px; background: #ffffff9c; border: 1px solid #dce8e1; border-radius: 16px; align-items: center; }
    .dm-side-txt small { display: none; }
    .dm-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .dm-cards { grid-template-columns: minmax(0, 1fr); }
    .dm-card { max-width: 580px; width: 100%; margin: 0 auto; padding: 22px; }
    .dm-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
    .dm-people, .dm-grid4, .dm-steps { grid-template-columns: minmax(0, 1fr); }
    .dm-team-body { padding: 20px; }
    .dm-sec { padding: 36px 0; }
    .dm-panel { padding: 20px; }
}
@media (max-width: 480px) {
    .dm-person { flex-wrap: wrap; }
    .dm-person .btn { width: 100%; }
}
@media (max-width: 420px) {
    .dm-hero h1 { font-size: 34px; }
    .dm-card { padding: 16px; border-radius: 22px; }
    .dm-card .dm-go .btn { font-size: 13px; }
    .dm-team > summary { padding: 16px; }
    .dm-team-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .dm-card, .dm-preview, .dm-team-toggle, .dm-side-txt a .ic-sm, .dm-foot a .ic-sm, .dm-card .dm-go .btn .ic { transition: none; }
    .dm-card:hover .dm-preview, .dm-side-txt a:hover .ic-sm, .dm-foot a:hover .ic-sm, .dm-card .dm-go .btn:hover .ic { transform: none; }
}

/* ---- the refused page */
.dm-refused-card { text-align: center; padding: 34px 24px 28px; }
.dm-refused-mark { display: inline-flex; width: 60px; height: 60px; border-radius: 50%; background: var(--ms-navy-50); color: var(--ms-navy-800); align-items: center; justify-content: center; margin-bottom: 10px; }
.dm-refused-mark .ic { width: 30px; height: 30px; }
.dm-refused-card h1 { font-size: 26px; }
.dm-refused-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* 12 Nov 2026: the plan cards register for a demo account (docs/demo_account_plan.md): the price after the demo sits above the button. */
.dm-price { margin: 0 0 14px; font-size: 13px; color: #5d6b7c; }
.dm-price strong { font-size: 24px; font-weight: 800; color: #0c2340; margin-right: 4px; }
.dm-card .dm-go a.btn { text-decoration: none; }
