/* Products round (docs/PRODUCTS.md): styles owned by WEB-SITE. Header menus and footer (layout.js), home, the
 * product-line pages, pricing, plan, services, the price router and the operator commerce page. */

/* ------------------------------------------------------------------------------------ header */
.topbar-start { display: flex; align-items: center; gap: 28px; min-width: 0; }
.topbar .nav-links { gap: 22px; }
.topbar .nav-links { position: relative; }
.topbar .nav-links > .nav-menu { position: static; } /* every product menu opens under the start of the nav: always on screen */
.nav-trigger { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-trigger .icon { transition: transform 0.15s; color: #6a778a; }
.nav-trigger[aria-expanded="true"] { color: #17283e; }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-links .nav-trigger.active::after { content: ""; position: absolute; left: 0; right: 18px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--lime); }
.mega-menu { left: -14px; right: auto; top: calc(100% + 12px); width: 580px; max-width: calc(100vw - 32px); padding: 10px; transform-origin: top left; }
.mega-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 6px 8px 10px; border-bottom: 1px solid #eef1f5; margin-bottom: 6px; }
.mega-head p { color: var(--muted); font-size: 12px; line-height: 1.5; max-width: 330px; }
.dropdown a.mega-overview { width: auto; flex: none; padding: 6px 9px; font-size: 12px; font-weight: 800; color: #3f6330; background: var(--brand-bg); white-space: nowrap; }
.dropdown a.mega-overview:hover, .dropdown a.mega-overview:focus-visible { background: #e2f0d8; }
.mega-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.dropdown a.mega-item { align-items: flex-start; gap: 11px; padding: 9px 10px; }
.mega-icon { flex: none; width: 32px; height: 32px; border-radius: 8px; background: #eff6e9; color: #4f7d33; display: grid; place-items: center; }
.mega-text { display: flex; flex-direction: column; min-width: 0; }
.mega-text strong { font-size: 13px; color: var(--ink); }
.mega-text small { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin-top: 1px; }
.mega-item.compact .mega-icon { width: 28px; height: 28px; }
.account-menu { max-height: calc(100vh - 90px); overflow-y: auto; min-width: 260px; }
.account-menu .dropdown-label { padding: 8px 10px 2px; }
.account-menu a, .account-menu button { padding: 8px 10px; }
.menu-button { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9px; border: 1px solid #e4eaf0; background: #fff; color: var(--ink); flex: none; }
.menu-button[aria-expanded="true"] { background: #f2f5f7; }
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; border-radius: 0 0 14px 14px; border-top: 0; padding: 12px 16px 18px; max-height: calc(100vh - 72px); overflow-y: auto; box-shadow: 0 18px 40px #14243c30; }
.mobile-menu:not([hidden]) { animation: menu-in 0.14s ease; transform-origin: top center; }
.mobile-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.dropdown .mobile-auth a.btn { display: inline-flex !important; justify-content: center; font-weight: 800; font-size: 12.5px; padding: 9px 12px; border-radius: 9px; }
.dropdown .mobile-auth a.btn-dark { background: var(--navy); color: #fff; }
.dropdown .mobile-auth a.btn-outline { background: #fff; border: 1px solid var(--border-2); }
.mobile-links { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.dropdown a.mobile-link { width: auto; padding: 8px 12px; border: 1px solid var(--border); border-radius: 20px; font-weight: 700; font-size: 12.5px; }
.dropdown a.mobile-link.active { background: var(--brand-bg); border-color: #cfe3c0; color: #3f6330; }
.mobile-line { padding-top: 10px; margin-top: 8px; border-top: 1px solid #eef1f5; }
.mobile-line-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 4px 4px; }
.mobile-line-head h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; font-family: inherit; color: var(--brand); }
.dropdown .mobile-line-head a.text-link { width: auto; padding: 0; color: var(--blue); }
.mobile-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }

/* --------------------------------------------------------------------------------------- footer */
.site-footer-grid { grid-template-columns: 1.4fr repeat(6, minmax(0, 1fr)); gap: 22px; }
.footer-col h4 a { color: var(--ink); font-weight: 800; }
.footer-col h4 a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------------------------------- home */
.line-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.line-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.line-card-head { display: flex; align-items: center; gap: 12px; }
.line-card-head .eyebrow { color: var(--muted); font-size: 9.5px; }
.line-card-head h3 { font-size: 24px; }
.line-card-head h3 a:hover { text-decoration: underline; }
.line-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #eff6e9; color: #4f7d33; flex: none; }
.line-agents .line-icon { background: #e8effd; color: #2a5597; }
.line-research .line-icon { background: #f1ecfb; color: #5b3f97; }
.line-tagline { color: #45536a; font-size: 13px; line-height: 1.6; }
.line-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; flex: 1; align-content: start; }
.line-items a { display: flex; align-items: flex-start; gap: 9px; padding: 8px; border-radius: 8px; }
.line-items a:hover { background: #f5f8f2; }
.line-items .icon { margin-top: 2px; color: #557a3e; }
.line-items span { display: flex; flex-direction: column; min-width: 0; }
.line-items strong { font-size: 13px; }
.line-items small { color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.line-more { align-self: flex-start; }
.how-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.how-col { border: 1px solid #e8edf1; border-radius: 13px; background: #fbfcfd; padding: 20px 22px; }
.how-h { display: flex; align-items: center; gap: 9px; font-size: 19px; margin-bottom: 12px; }
.how-h .icon { color: #4f7d33; }
.how-steps { padding-left: 20px; display: grid; gap: 12px; color: #45536a; font-size: 13px; line-height: 1.65; }
.how-steps li::marker { font-weight: 800; color: var(--brand); }
.how-steps strong { color: var(--ink); }
.teaser-plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.teaser-plan { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; min-width: 0; transition: border-color 0.15s, box-shadow 0.15s; }
.teaser-plan:hover { border-color: #c8dac0; box-shadow: 0 12px 30px rgba(33, 51, 72, 0.07); }
.teaser-plan strong { font-size: 14px; }
.teaser-price { font: 700 22px "Space Grotesk", sans-serif; letter-spacing: -0.04em; }
.teaser-plan small { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.home-cta .cta-stack { display: flex; flex-direction: column; align-items: stretch; gap: 10px; flex: none; }
.home-cta .btn-secondary { border: 1px solid #526173; background: #ffffff0d; color: #fff; }
.home-cta .cta-link { color: #cfe3c0; text-align: center; }

/* Console (signed-in home) */
.console-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; padding-bottom: 50px; }
.console-main, .console-side { min-width: 0; }
.console-page .metric-note .text-link { font-size: 11px; }
.plan-line { display: grid; gap: 4px; margin-bottom: 14px; }
.plan-line .plan-name { font: 700 20px "Space Grotesk", sans-serif; letter-spacing: -0.03em; margin-right: 4px; }
.usage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin-bottom: 12px; }
.usage-row { display: grid; gap: 6px; min-width: 0; padding: 10px 12px; border: 1px solid #edf0f4; border-radius: 10px; }
.usage-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.usage-label { color: #45536a; min-width: 0; }
.usage-label a { color: inherit; text-decoration: underline; text-decoration-color: #c9d3de; text-underline-offset: 2px; }
.usage-top strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.usage-row.over .usage-top strong { color: var(--danger); }
.usage-row .note { margin: 0; }
.usage-unlimited { height: 10px; border-radius: 99px; background: repeating-linear-gradient(90deg, #e5ebf1 0 6px, transparent 6px 10px); }
.console-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.console-line { min-width: 0; }
.console-line-h { display: flex; align-items: center; gap: 7px; font-size: 15px; font-family: inherit; letter-spacing: -0.01em; margin-bottom: 8px; }
.console-line-h .icon { color: #557a3e; }
.console-line-h a:hover { text-decoration: underline; }
.console-line ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.console-line li { display: grid; gap: 1px; min-width: 0; }
.console-line li a { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12.5px; }
.console-line li a:hover { text-decoration: underline; }
.console-line li a .icon { color: #6a8f52; }
.console-line li small { padding-left: 21px; font-size: 11px; }
.console-help { display: grid; gap: 4px; padding: 10px 12px; }
.console-help a { display: flex; align-items: flex-start; gap: 10px; padding: 9px 8px; border-radius: 8px; }
.console-help a:hover { background: #f5f8f2; }
.console-help a > .icon { color: #557a3e; margin-top: 2px; }
.console-help span { display: flex; flex-direction: column; min-width: 0; }
.console-help strong { font-size: 13px; }
.console-help small { color: var(--muted); font-size: 11.5px; line-height: 1.45; }

/* ------------------------------------------------------------------------- product-line pages */
.line-page { padding-bottom: 50px; }
.line-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding: 40px 0 26px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.line-hero .eyebrow { display: flex; align-items: center; gap: 7px; color: var(--brand); margin-bottom: 10px; }
.line-agents .line-hero .eyebrow { color: #2a5597; }
.line-research .line-hero .eyebrow { color: #5b3f97; }
.line-hero h1 { font-size: clamp(30px, 3.6vw, 46px); max-width: 860px; }
.line-sub { color: #45536a; font-size: 14.5px; line-height: 1.65; max-width: 780px; margin: 12px 0 18px; }
.line-jump { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-left: 2px solid var(--border); font-size: 12.5px; font-weight: 700; }
.line-jump a { color: #45536a; padding: 2px 0; }
.line-jump a:hover { color: var(--ink); text-decoration: underline; }
.line-section { padding: 26px 0; }
.line-section + .line-section { border-top: 1px solid #edf0f3; }
.line-h2 { font-size: 22px; letter-spacing: -0.03em; margin-bottom: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.product-card { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 16px 16px 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; min-width: 0; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.product-card:hover { border-color: #c8dac0; box-shadow: 0 14px 32px rgba(33, 51, 72, 0.07); transform: translateY(-2px); }
.product-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #eff6e9; color: #4f7d33; margin-bottom: 6px; }
.product-card strong { font-size: 14px; }
.product-card small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.product-go { position: absolute; top: 16px; right: 14px; color: #8a96a8; }
.line-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; }
.who-list, .limits-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.who-list li, .limits-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.6; color: #3d4b60; }
.who-list .icon { color: #4f7d33; margin-top: 3px; }
.limits-list .icon { color: #7a8597; margin-top: 3px; }
.limits-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.price-list { display: grid; gap: 0; border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; }
.price-list > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; padding: 12px 16px; border-top: 1px solid #eef1f5; font-size: 12.5px; }
.price-list > div:first-child { border-top: 0; }
.price-list dt { font-weight: 800; }
.price-list dt a { color: var(--ink); text-decoration: underline; text-decoration-color: #c9d3de; text-underline-offset: 2px; }
.price-list dd { color: #45536a; line-height: 1.6; min-width: 0; }
.line-cta { margin-top: 24px; }
.line-cta .line-h2 { margin-bottom: 4px; }
.mcp-steps .code-tabs, .mcp-steps .code-block { margin-top: 8px; }

/* Code samples with tabs */
.code-tabs { min-width: 0; }
.code-tablist { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.code-tab { border: 1px solid var(--border-2); background: #fff; color: #45536a; font-weight: 800; font-size: 12px; padding: 6px 11px; border-radius: 7px; }
.code-tab.active, .code-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.code-panel .note { margin: 4px 0 2px; }

/* Plan comparison tables (pricing and product pages) */
.compare-table th[scope="row"] { font-weight: 700; font-size: 12.5px; color: var(--ink); text-transform: none; letter-spacing: 0; background: #fff; white-space: normal; min-width: 190px; }
.compare-table thead th { text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--ink); }
.compare-table thead th a { color: inherit; }
.compare-table td, .compare-table th { vertical-align: middle; }
.compare-table .group-row th { background: #f5f7f9; text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px; color: var(--muted); padding: 8px 15px; }
.compare-table .col-current { background: #f4f9ef; }
.compare-wrap { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.compare-wrap th[scope="row"] { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 #eef1f5; }
.ent-yes { color: #3a6f33; display: inline-flex; }
.ent-no { color: #a7b1bf; }

/* ---------------------------------------------------------------------------------------- pricing */
.pricing-head { padding-bottom: 20px; }
.pricing-head h1 { font-size: clamp(30px, 3.4vw, 42px); max-width: 860px; }
.plan-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; margin-bottom: 10px; }
.plan-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 16px; min-width: 0; scroll-margin-top: 90px; }
.plan-card.featured { border-color: #9cc77d; box-shadow: 0 0 0 3px #b8f48640; }
.plan-card.current { border-color: #6f93d6; }
.plan-card-top { min-height: 22px; }
.plan-pill-space { visibility: hidden; }
.plan-card .plan-name { font-size: 20px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price strong { font: 700 30px "Space Grotesk", sans-serif; letter-spacing: -0.05em; }
.plan-price small { color: var(--muted); font-size: 12px; }
.plan-tagline { color: #45536a; font-size: 12.5px; line-height: 1.55; min-height: 58px; }
.plan-highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; flex: 1; }
.plan-highlights li { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; line-height: 1.5; color: #3d4b60; }
.plan-highlights .icon { color: #4f7d33; margin-top: 2px; }
.plan-highlights.compact { flex: none; margin: 4px 0 10px; }
.plan-cta { margin-top: 8px; }
.plan-current-btn { cursor: default; }
.plan-current-btn:hover { transform: none; box-shadow: none; }
.usage-price-table th[scope="row"] { font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--ink); background: transparent; white-space: normal; }
.usage-price-table th[scope="row"] a { text-decoration: underline; text-decoration-color: #c9d3de; text-underline-offset: 2px; }
.enterprise-band { margin-top: 10px; }
.enterprise-band .panel-content > div:first-child { flex: 1 1 420px; }
.faq { display: grid; gap: 8px; max-width: 900px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 0 16px; }
.faq-item summary { cursor: pointer; padding: 13px 0; font-weight: 800; font-size: 13.5px; }
.faq-item[open] { padding-bottom: 14px; }
.faq-body { color: #45536a; font-size: 13px; line-height: 1.7; }

/* ------------------------------------------------------------------------------------------- plan */
.plan-page { padding-bottom: 50px; }
.plan-current { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.plan-current-main { flex: 1 1 380px; min-width: 0; }
.plan-current-name { font-size: 26px; letter-spacing: -0.04em; }
.plan-current-price { font-weight: 800; margin: 4px 0; }
.plan-current-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-facts { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef1f5; }
.plan-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.plan-choice { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: #fbfcfd; min-width: 0; }
.plan-choice.current { border-color: #6f93d6; background: #f6f9ff; }
.plan-choice h3 { font-size: 17px; }
.plan-choice-price { font-weight: 800; }
.plan-choice .btn { margin-top: auto; }
.plan-quote { margin: 0; }

/* --------------------------------------------------------------------------------------- services */
.svc-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.svc-kind { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; min-width: 0; }
.svc-kind h3 { font-size: 16px; }
.svc-kind p { color: #45536a; font-size: 12.5px; line-height: 1.6; flex: 1; }
.svc-kind .btn { align-self: flex-start; }
.svc-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #eff6e9; color: #4f7d33; flex: none; }
.svc-icon.small { width: 32px; height: 32px; }
.svc-steps { padding-left: 20px; display: grid; gap: 8px; font-size: 13px; line-height: 1.6; color: #3d4b60; max-width: 860px; margin-bottom: 10px; }
.svc-steps li::marker { font-weight: 800; color: var(--brand); }
.svc-filter { min-width: 170px; }
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.svc-row-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid #edf0f4; border-radius: 10px; }
.svc-row-link:hover { border-color: #c8dac0; background: #fbfdf9; }
.svc-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.svc-row-side { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.svc-new, .svc-detail-wrap { max-width: 900px; }
.svc-new .back-link, .services-page .back-link { margin-bottom: 12px; }
#svc-detail { max-width: 900px; }
.svc-timeline { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.svc-timeline li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 8px; align-items: center; padding: 10px 12px; border: 1px solid #edf0f4; border-radius: 10px; font-size: 12.5px; }
.svc-timeline li small { grid-column: 2; font-size: 11px; }
.svc-dot { width: 10px; height: 10px; border-radius: 50%; background: #d5dce5; grid-row: span 2; }
.svc-timeline li.done .svc-dot { background: #5bbd7a; box-shadow: 0 0 0 3px #dff8eb; }
.svc-quote { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: #fbfcfd; margin-bottom: 10px; }
.svc-quote-amounts { display: flex; gap: 24px; flex-wrap: wrap; }
.svc-quote-amounts div { display: flex; flex-direction: column; }
.svc-quote-amounts span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; color: var(--muted); }
.svc-quote-amounts strong { font: 700 22px "Space Grotesk", sans-serif; letter-spacing: -0.03em; }
.svc-quote-amounts strong small { font: 500 12px "DM Sans", sans-serif; color: var(--muted); }
.svc-quote .quote { margin-top: 10px; }
.services-page .quote, .admin-commerce .quote, .modal .quote { background: #f7f9fb; border-left: 3px solid #d5dde6; padding: 9px 12px; border-radius: 4px; margin: 8px 0; white-space: pre-line; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------------------------------ router */
.router-page { padding-bottom: 50px; }
.router-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.router-side { position: sticky; top: 88px; max-height: calc(100vh - 100px); overflow-y: auto; margin-bottom: 0; }
.router-form-title { font-size: 17px; letter-spacing: -0.03em; }
.router-more[open] { padding-bottom: 12px; }
.router-how { margin-top: 14px; }
.router-how .note { margin-bottom: 8px; }
.router-results { min-width: 0; }
.route-summary { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; font-size: 13px; }
.route-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.route-option { display: grid; grid-template-columns: 34px minmax(0, 1fr) 170px; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; min-width: 0; }
.route-option.best { border-color: #9cc77d; box-shadow: 0 0 0 3px #b8f48633; }
.route-rank { width: 30px; height: 30px; border-radius: 50%; background: #f0f3f6; color: #45536a; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.route-option.best .route-rank { background: var(--lime); color: #182522; }
.route-main { min-width: 0; }
.route-head { align-items: flex-start; }
.route-title { font-size: 15px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.route-title a:hover { text-decoration: underline; }
.route-specs { font-size: 12.5px; color: #45536a; margin: 8px 0 6px; }
.route-reasons { padding-left: 16px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.route-price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.route-price strong { font: 700 22px "Space Grotesk", sans-serif; letter-spacing: -0.04em; }
.route-price small { font-size: 11.5px; }
.route-price .btn { margin-top: 6px; }
.score { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; flex: none; }
.score-num { font-variant-numeric: tabular-nums; }
.score-bar { width: 70px; height: 7px; border-radius: 99px; background: #e5ebf1; overflow: hidden; display: block; }
.score-bar span { display: block; height: 100%; background: #6a9a4a; border-radius: 99px; }
.place-box, .upgrade-box, .place-done { margin-bottom: 12px; }
.place-box .panel-content > div, .upgrade-box .panel-content > div:first-child { flex: 1 1 320px; }
.place-box .line-h2, .upgrade-box .line-h2 { font-size: 17px; margin-bottom: 4px; display: flex; align-items: center; gap: 7px; }
.place-done .dash-note { margin-bottom: 10px; }
.router-signed-out { padding-top: 0; }

/* -------------------------------------------------------------------------------- operator commerce */
.admin-commerce { padding-bottom: 50px; }
.admin-commerce .admin-panel { border-top-left-radius: 0; border-top-right-radius: 0; }
.cert-checks { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.cert-checks li { display: flex; align-items: flex-start; gap: 9px; padding: 8px 10px; border-radius: 8px; background: #f7f9fb; font-size: 12.5px; }
.cert-checks li > span { display: flex; flex-direction: column; min-width: 0; }
.cert-checks li.ok > .icon { color: #3a6f33; margin-top: 2px; }
.cert-checks li.fail { background: var(--danger-bg); }
.cert-checks li.fail > .icon { color: var(--danger); margin-top: 2px; }

/* Certified badge (marketplace, listing, router, host dashboard) */
.badge-certified { background: #fdf3d8; color: #7a5a0e; }

/* -------------------------------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
  .topbar .nav-links { gap: 16px; }
  .topbar-start { gap: 20px; }
  .account-name { display: none; }
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .teaser-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .topbar .nav-links { display: none; }
  .menu-button { display: inline-flex; }
  .line-cards { grid-template-columns: minmax(0, 1fr); }
  .line-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-grid { grid-template-columns: minmax(0, 1fr); }
  .console-help { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .router-layout { grid-template-columns: minmax(0, 1fr); }
  .router-side { position: static; max-height: none; overflow: visible; }
  .site-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer-grid .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .line-hero { grid-template-columns: minmax(0, 1fr); }
  .line-jump { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; border-left: 0; padding: 0; }
  .line-split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .limits-list { grid-template-columns: minmax(0, 1fr); }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .console-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-grid, .plan-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-option { grid-template-columns: 30px minmax(0, 1fr); }
  .route-price { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; text-align: left; gap: 4px 12px; }
  .route-price .btn { margin-top: 0; }
  .mega-grid, .mobile-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 630px) {
  .topbar-start { gap: 0; }
  .mobile-menu { max-height: calc(100vh - 61px); padding: 10px 12px 16px; }
  .mobile-grid { grid-template-columns: minmax(0, 1fr); }
  .mega-text small { font-size: 11px; }
  .line-items { grid-template-columns: minmax(0, 1fr); }
  .line-card { padding: 16px; }
  .teaser-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-cta .cta-stack { width: 100%; }
  .console-lines { grid-template-columns: minmax(0, 1fr); }
  .console-help { grid-template-columns: minmax(0, 1fr); }
  .line-hero { padding: 24px 0 18px; }
  .line-hero h1 { font-size: clamp(26px, 7.4vw, 34px); }
  .line-hero .hero-actions { flex-wrap: wrap; }
  .line-hero .hero-actions .btn { flex: 1 1 auto; }
  .line-section { padding: 20px 0; }
  .price-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .plan-grid, .plan-choices { grid-template-columns: minmax(0, 1fr); }
  .plan-tagline { min-height: 0; }
  .plan-card-top { min-height: 0; }
  .plan-pill-space { display: none; }
  .compare-table th[scope="row"] { min-width: 150px; }
  .svc-timeline { grid-template-columns: minmax(0, 1fr); }
  .svc-filter { min-width: 0; width: 100%; }
  .route-option { padding: 13px; gap: 10px; }
  .route-head { flex-direction: column; gap: 6px; }
  .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enterprise-band .flex .btn { flex: 1 1 auto; }
}
@media (max-width: 400px) {
  .teaser-plans { grid-template-columns: minmax(0, 1fr); }
  .mobile-auth { grid-template-columns: minmax(0, 1fr); }
  .site-footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Operator tools: links to the product operator pages (admin.js) */
.admin-products { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-products-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-right: 2px; }
.panel.plan-late { border-color: #f2c9c6; }
.line-page .data-table tbody th[scope="row"], .plan-page .data-table tbody th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 700; color: var(--ink); background: transparent; white-space: normal; }
.line-page .data-table tbody th[scope="row"] code { font-size: 10.5px; }
.line-page .compare-table tbody th[scope="row"] { background: #fff; }
.line-page .compare-table tbody tr:hover th[scope="row"] { background: #fbfdf9; }

/* Auto-renewal disclosures (plan page, pricing) */
.renewal-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 11px 13px; border-radius: 10px; background: #f5f7f9; border: 1px solid #e6eaf0; font-size: 12.5px; line-height: 1.6; color: #3d4b60; }
.renewal-note > .icon { margin-top: 3px; color: #557a3e; }
.renewal-box { display: grid; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #f7faf4; border: 1px solid #e1eed6; font-size: 12.5px; line-height: 1.6; color: #3d4b60; }
.renewal-box .check-row { font-size: 12.5px; color: var(--ink); font-weight: 700; }
.renewal-line { display: flex; align-items: flex-start; gap: 7px; margin: 4px 0 18px; max-width: 980px; }
.renewal-line > .icon { margin-top: 2px; color: #557a3e; }
