/* Hosted AccessPoint and the interactive demo's placements: the hosted plans (_HostedPlans), the edition chooser
   (_EditionChooser), the "try it yourself" band (_DemoTryBand) and the hosted page. Tokens from site.css. */

/* ---------- Hosted plans ---------- */
.hp { max-width: 1180px; margin: 0 auto; }
.hp-switches { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: center; margin-bottom: var(--space-lg); }
.hp-switches[hidden] { display: none; }
.hp-switch { display: inline-flex; background: var(--gray-100); border-radius: 999px; padding: 4px; gap: 2px; }
.hp-switch-btn {
    border: 0; background: transparent; border-radius: 999px; padding: 0.45rem 1rem; font: inherit; font-size: 0.92rem;
    font-weight: 600; color: var(--gray-700); cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 36px;
}
.hp-switch-btn[aria-pressed="true"] { background: #fff; color: var(--primary-blue-dark); box-shadow: var(--shadow-sm); }
.hp-switch-btn:focus-visible { outline: 3px solid var(--primary-blue); outline-offset: 2px; }
.hp-save { font-size: 0.75rem; font-weight: 600; color: var(--success-green); }

.hp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); align-items: stretch; }
.hp-card {
    position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); padding: 1.6rem 1.4rem 1.4rem; box-shadow: var(--shadow-sm);
}
.hp-card-featured { border: 2px solid var(--primary-blue); box-shadow: var(--shadow-md); }
.hp-card-enterprise { background: var(--gray-50); }
.hp-badge {
    position: absolute; top: -0.8rem; left: 1.4rem; margin: 0; padding: 0.2rem 0.7rem; border-radius: 999px;
    background: var(--primary-blue); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em;
}
.hp-card h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.hp-tagline { margin: 0 0 1rem; color: var(--gray-600); font-size: 0.93rem; min-height: 2.6em; }
.hp-price { margin: 0; display: flex; align-items: baseline; gap: 0.3rem; flex-wrap: wrap; }
.hp-amount { font-size: 2.1rem; font-weight: 700; color: var(--gray-900); line-height: 1.1; }
.hp-per { color: var(--gray-600); font-size: 0.95rem; }
.hp-from { color: var(--gray-600); font-size: 0.9rem; }
.hp-alt { margin: 0.2rem 0 1rem; color: var(--gray-600); font-size: 0.86rem; min-height: 1.3em; }
.hp-includes { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.hp-includes li { position: relative; padding-left: 1.4rem; font-size: 0.93rem; color: var(--gray-800); line-height: 1.45; }
.hp-includes li::before {
    content: ""; position: absolute; left: 0; top: 0.4em; width: 0.8rem; height: 0.45rem;
    border-left: 2px solid var(--primary-blue); border-bottom: 2px solid var(--primary-blue); transform: rotate(-45deg);
}
.hp-card-cta { margin-top: auto; }
.hp-card-cta .btn { width: 100%; justify-content: center; }
.hp-notes { list-style: none; margin: var(--space-lg) auto 0; padding: 0; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 2rem; }
.hp-notes li { font-size: 0.93rem; color: var(--gray-700); line-height: 1.55; }
.hp-notes strong { color: var(--gray-900); }
.hp-extras { display: grid; grid-template-columns: 3fr 2fr; gap: var(--space-lg); margin-top: var(--space-xl); }
.hp-extra h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.hp-extra-lead { margin: 0 0 0.9rem; color: var(--gray-600); font-size: 0.93rem; }
.hp-table-wrap { overflow-x: auto; }
.hp-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--gray-200); font-size: 0.92rem; }
.hp-table th, .hp-table td { text-align: left; vertical-align: top; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--gray-200); }
.hp-table thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--gray-600); background: var(--gray-50); }
.hp-table tbody th { font-weight: 600; color: var(--gray-900); white-space: nowrap; }
.hp-nowrap { white-space: nowrap; }
.hosted-terms-line { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--gray-600); }
.cta-section .hosted-terms-line, .hosted-hero .hosted-terms-line { color: inherit; opacity: 0.9; }
.cta-section .hosted-terms-line a, .hosted-hero .hosted-terms-line a { color: inherit; text-decoration: underline; }

@media (max-width: 1100px) { .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hp-card-featured { order: -1; } }
@media (max-width: 760px) {
    .hp-extras, .hp-notes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .hp-grid { grid-template-columns: 1fr; } }

/* ---------- Edition chooser: two ways to run AccessPoint ---------- */
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); max-width: 1080px; margin: 0 auto; }
.edition-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.edition-card.edition-hosted { border-top: 4px solid var(--primary-blue); }
.edition-card.edition-m365 { border-top: 4px solid var(--gray-800); }
.edition-kicker { margin: 0 0 0.35rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-blue-dark); }
.edition-m365 .edition-kicker { color: var(--gray-700); }
.edition-card h3 { margin: 0 0 0.5rem; font-size: 1.35rem; }
.edition-card > p { margin: 0 0 1rem; color: var(--gray-700); }
.edition-facts { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.5rem; }
.edition-facts li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.75rem; font-size: 0.93rem; border-top: 1px solid var(--gray-100); padding-top: 0.5rem; }
.edition-facts span:first-child { color: var(--gray-600); font-weight: 600; }
.edition-price { margin: 0 0 1rem; font-size: 0.95rem; color: var(--gray-800); }
.edition-price strong { font-size: 1.15rem; color: var(--gray-900); }
.edition-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.edition-actions .text-link { font-weight: 600; font-size: 0.93rem; }
.edition-card > p.edition-note { margin: -0.4rem 0 1rem; font-size: 0.88rem; color: var(--gray-600); }
.editions-move { margin: 1rem 0 0; text-align: center; font-size: 0.95rem; color: var(--gray-700); }
@media (max-width: 820px) {
    .editions { grid-template-columns: 1fr; }
    .edition-facts li { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* ---------- "Try it yourself" band: the interactive demo, by role or by feature ---------- */
.try-band { background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 100%); }
.try-band .section-header { margin-bottom: var(--space-lg); }
.try-kicker { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-blue-dark); }
.try-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success-green); box-shadow: 0 0 0 3px rgba(14, 122, 58, 0.18); }
.try-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); max-width: 1120px; margin: 0 auto; }
.try-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: 1.4rem 1.4rem 1.25rem; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.try-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.try-role { margin: 0 0 0.35rem; font-size: 0.8rem; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.05em; }
.try-card h3 { margin: 0 0 0.45rem; font-size: 1.12rem; }
.try-card p { margin: 0 0 1rem; color: var(--gray-700); font-size: 0.93rem; line-height: 1.5; }
.try-meta { margin: 0 0 1rem !important; font-size: 0.82rem !important; color: var(--gray-600) !important; }
.try-card .btn { margin-top: auto; align-self: flex-start; }
.try-foot { margin: var(--space-lg) auto 0; max-width: 820px; text-align: center; color: var(--gray-700); font-size: 0.95rem; }
.try-foot a { font-weight: 600; }
/* The second line (the home page's video and tour links); a video link in text is inline, not the poster's block. */
.try-foot-more { margin-top: 0.5rem; }
.try-foot .video-embed-trigger { display: inline; width: auto; line-height: inherit; position: static; }
@media (prefers-reduced-motion: reduce) { .try-card, .try-card:hover { transition: none; transform: none; } }

/* A single inline "try it" strip (jurisdiction, capability and compare pages) */
.try-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap;
    max-width: 1080px; margin: 0 auto; padding: 1.25rem 1.5rem; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--gray-200); border-left: 4px solid var(--primary-blue); box-shadow: var(--shadow-sm);
}
.try-strip-text { flex: 1 1 420px; }
.try-strip-text strong { display: block; color: var(--gray-900); font-size: 1.05rem; margin-bottom: 0.2rem; }
.try-strip-text span { color: var(--gray-700); font-size: 0.94rem; }
.try-strip-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ---------- Hosted page ---------- */
.hosted-hero .hosted-badges { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: center; margin: 1.25rem 0 0; padding: 0; list-style: none; font-size: 0.93rem; font-weight: 600; }
.hosted-hero .hosted-badges li::before { content: "\2713"; margin-right: 0.4rem; }
.hosted-hero .hosted-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }
/* /hosted and /fr/hosted: the home page's light two-column hero (components/hero.css) with the app's screenshot. The
   hero's ".hero-text p" rule would size every paragraph at 1.25rem, so the kicker and the terms line set their own. */
.hosted-hero-split .hero-text h1 { font-size: 3rem; text-wrap: balance; }
.hosted-hero-split .hero-text .try-kicker { font-size: 0.78rem; line-height: 1.4; margin: 0 0 0.75rem; color: var(--primary-blue-dark); }
.hosted-hero-split .hosted-badges { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 1.25rem 0 0; padding: 0; list-style: none; font-size: 0.92rem; font-weight: 600; color: var(--gray-700); }
.hosted-hero-split .hosted-badges li::before { content: "\2713"; margin-right: 0.4rem; color: var(--success-green); }
.hosted-hero-split .hero-text .hosted-terms-line { font-size: 0.85rem; line-height: 1.6; margin: 0.75rem 0 0; color: var(--gray-600); }
.hosted-hero-split .hero-text .hosted-terms-line a { color: var(--primary-blue-dark); }
@media (max-width: 768px) { .hosted-hero-split .hero-text h1 { font-size: 2.25rem; } }
.hosted-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); max-width: 1080px; margin: 0 auto; counter-reset: hs; }
.hosted-step { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; position: relative; }
.hosted-step::before {
    counter-increment: hs; content: counter(hs); display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary-blue); color: #fff; font-weight: 700; margin-bottom: 0.75rem;
}
.hosted-step h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.hosted-step p { margin: 0; color: var(--gray-700); font-size: 0.95rem; }
.edition-table-wrap { overflow-x: auto; max-width: 1000px; margin: 0 auto; }
.edition-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--gray-200); }
.edition-table th, .edition-table td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-bottom: 1px solid var(--gray-200); font-size: 0.95rem; }
.edition-table thead th { background: var(--gray-50); font-size: 0.95rem; color: var(--gray-900); }
.edition-table tbody th { color: var(--gray-600); font-weight: 600; width: 22%; }
.hosted-includes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md); max-width: 1120px; margin: 0 auto; }
.hosted-include { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 1.1rem 1.25rem; }
.hosted-include h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.hosted-include p { margin: 0; font-size: 0.92rem; color: var(--gray-700); }
.hosted-promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); max-width: 1120px; margin: 0 auto; }
.hosted-promise div { border-left: 3px solid var(--primary-blue); padding: 0.25rem 0 0.25rem 1rem; }
.hosted-promise h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.hosted-promise p { margin: 0; color: var(--gray-700); font-size: 0.94rem; }
@media (max-width: 820px) { .hosted-steps { grid-template-columns: 1fr; } }

/* Product page: the interactive demo beside each feature cluster */
.feature-group-try { margin: 0.6rem 0 0; }
.btn.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
a.feature-try-link[data-demo-direct] { display: inline-block; margin-top: 0.5rem; }
/* A card with a demo link and its own link (a doc, a page, the video): the second sits on its own line */
.feature-detail-text .feature-try-link ~ .feature-try-link { display: block; margin-top: 0.35rem; }
/* Plan cards are link targets from the app (/pricing#free, #essentials, #professional, #enterprise): clear the sticky nav */
.hp-card { scroll-margin-top: 90px; }

/* The language switch (Pages/Shared/_Layout.cshtml — pages with a twin in the other language, ViewData["AltLangUrl"]):
   a slim bar above the header, so the nav row keeps its full width. */
.lang-bar { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); font-size: 0.85rem; line-height: 1.2; }
.lang-bar .container { display: flex; justify-content: flex-end; align-items: center; gap: 1.25rem; min-height: 30px; }
.lang-bar-signin { display: inline-flex; align-items: center; gap: 0.35rem; }
.lang-bar-signin svg { flex: none; }
/* Sign in, then the language menu: a hairline between them */
.lang-bar .container > * + * { position: relative; }
.lang-bar .container > * + *::before { content: ""; position: absolute; left: -0.65rem; top: 50%; height: 0.9em; margin-top: -0.45em; border-left: 1px solid var(--gray-300); }

/* The language menu: a compact pill that opens a small list of languages, each in its own name, the current one ticked */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; font-weight: 600; color: var(--primary-blue); padding: 0.2rem 0.5rem; margin: 0 -0.5rem; border-radius: 999px; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: var(--gray-100); }
.lang-menu summary:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: 2px; }
.lang-menu-chevron { transition: transform 0.15s ease; }
.lang-menu[open] .lang-menu-chevron { transform: rotate(180deg); }
.lang-menu[open] summary { background: var(--gray-100); }
.lang-menu-list { position: absolute; right: -0.5rem; top: calc(100% + 6px); z-index: 1100; min-width: 190px; max-height: min(70vh, 460px); overflow-y: auto; margin: 0; padding: 0.35rem; list-style: none; background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; box-shadow: var(--shadow-lg); }
.lang-menu-list li { margin: 0; }
.lang-menu-list a { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0.65rem; border-radius: 6px; color: var(--gray-800); font-weight: 500; font-size: 0.9rem; text-decoration: none; }
.lang-menu-list a:hover, .lang-menu-list a:focus-visible { background: var(--brand-tint); color: var(--primary-blue); text-decoration: none; }
.lang-menu-list a:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: -2px; }
.lang-menu-list a[aria-current="true"] { color: var(--primary-blue); font-weight: 600; }
.lang-menu-check { flex: none; }
@media (prefers-reduced-motion: reduce) { .lang-menu-chevron { transition: none; } }
.lang-bar a { font-weight: 600; text-decoration: none; padding: 0.3rem 0; }
.lang-bar a:hover, .lang-bar a:focus-visible { text-decoration: underline; }

/* French chrome (ViewData["Lang"] = "fr"): the French nav labels run a little longer than the English ones, so the desktop
   row closes its gaps slightly to keep the logo and the two buttons on one line at 1280px. */
@media (min-width: 993px) {
    html[lang="fr"] .site-nav { gap: 1.75rem; }
}
/* An add-on the service does not sell yet: its planned price, marked */
.hp-soon { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--gray-100); color: var(--gray-700); font-size: 0.72rem; font-weight: 600; white-space: nowrap; vertical-align: 0.1em; }
