/* CleverHive public website: navigation, hero, sections, pricing, industries, contact and footer. Loaded after shared/css/base.css. */

/* ================================================================== Layout and components */
/* ------------------------------------------------------------------ public site and auth pages */
.public { min-height: 100vh; display: flex; flex-direction: column; }
.site-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 16px clamp(16px, 4vw, 48px); background: linear-gradient(var(--surface) 75%, rgba(238, 241, 246, 0)); }
.site-nav .cta { margin-left: auto; display: flex; gap: 10px; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 36px 0 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; box-shadow: none; font-size: 12.5px; font-weight: 650; color: var(--brass-700); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #1DA556; animation: pulse 2.4s infinite; }
.hero h1 { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.16; letter-spacing: -.025em; margin: 14px 0 12px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--brass-700); }
.hero p.lead { font-size: 15.5px; color: var(--muted); max-width: 520px; }
.hero .row { margin-top: 22px; }
.hero .trust { margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 550; }
.hero .trust span { display: inline-flex; gap: 7px; align-items: center; }
.hero .trust svg { width: 16px; height: 16px; stroke: var(--ok); }
.phone-demo { padding: 24px; border-radius: 30px; box-shadow: var(--raise-lg); }
.phone-demo .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.phone-demo .live { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 650; color: var(--ok); }
.phone-demo .live i { width: 8px; height: 8px; border-radius: 50%; background: #1DA556; animation: pulse 2.4s infinite; }
.demo-lines { display: grid; gap: 12px; }
.demo-lines .msg { max-width: 92%; opacity: 0; animation: rise-in 500ms var(--ease) forwards; }
.demo-lines .msg:nth-child(1) { animation-delay: .2s; }
.demo-lines .msg:nth-child(2) { animation-delay: 1.1s; }
.demo-lines .msg:nth-child(3) { animation-delay: 2s; }
.demo-lines .msg:nth-child(4) { animation-delay: 2.9s; }
.demo-result { margin-top: 18px; padding: 14px 16px; border-radius: 16px; box-shadow: none; display: flex; gap: 12px; align-items: center; opacity: 0; animation: rise-in 500ms var(--ease) 3.8s forwards; }
.section { padding: 52px 0; }
.section h2.big { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.25; letter-spacing: -.02em; font-weight: 700; text-align: center; }
.section p.center { text-align: center; color: var(--muted); max-width: 600px; margin: 10px auto 0; font-size: 14.5px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.feature { padding: 22px; }
.feature .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; box-shadow: none; color: var(--accent); margin-bottom: 12px; }
.feature .ico svg { width: 20px; height: 20px; stroke: currentColor; }
.feature h3 { font-size: 14.5px; margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; counter-reset: how; }
.how .card { padding: 22px; }
.how .num { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--indigo); margin-bottom: 14px; }
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.industry { display: flex; gap: 14px; align-items: center; padding: 18px 20px; color: inherit; transition: transform var(--fast) var(--ease), box-shadow var(--fast); }
.industry:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--raise-lg); }
.industry .ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; box-shadow: none; color: var(--brass-700); flex: none; }
.industry .ico svg { width: 22px; height: 22px; stroke: currentColor; }
.industry .t { font-weight: 700; }
.industry .d { font-size: 12.5px; color: var(--muted); }
.cta-band { padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-foot { margin-top: auto; padding: 32px 0 40px; color: var(--muted); font-size: 13px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-foot a { color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { margin: 28px 0 8px; }
.prose p, .prose li { color: var(--graphite); }
/* mailbox */
.mail { padding: 18px 20px; }
.mail pre { white-space: pre-wrap; font: 13px/1.6 var(--font); margin: 10px 0 0; color: var(--graphite); }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .features, .how, .industries { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
}
@media (max-width: 600px) {
  .features, .how, .industries { grid-template-columns: 1fr; }
  .cta-band { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-lines .msg, .demo-result { opacity: 1; }
}

/* ================================================================== Colours, borders and states */
/* ------------------------------------------------------------------ public site */
.site-nav { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px clamp(16px, 4vw, 48px); }
.public { background: var(--surface); }
.eyebrow { box-shadow: none; border: 1px solid var(--border); background: var(--surface); }
.phone-demo { border-radius: 16px; box-shadow: var(--shadow-lg); }
.feature .ico, .industry .ico { box-shadow: none; background: var(--subtle); border-radius: 10px; color: var(--accent); }
.how .num { background: var(--indigo); box-shadow: none; border-radius: 10px; }
.cta-band { background: var(--surface-hi); }
/* ------------------------------------------------------------------ public website pages */
.page-hero { max-width: 680px; margin: 0 auto 32px; text-align: center; }
.page-hero h1 { font-size: clamp(25px, 3vw, 32px); line-height: 1.2; letter-spacing: -.025em; font-weight: 700; margin: 14px 0 10px; }
.page-hero .lead { font-size: 15px; color: var(--muted); }
.section-tight { padding: 48px 0 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.back-link svg { width: 14px; height: 14px; stroke: currentColor; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { padding: 26px; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-card .k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.price-card .v { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 10px; }
.price-card .v span { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.estimator { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding: 28px; margin-top: 28px; }
.estimator h2 { margin: 0; font-size: 20px; }
.estimator input[type=range] { width: 100%; accent-color: var(--indigo); }
.estimate { padding: 22px; border-radius: var(--r); background: var(--surface-hi); border: 1px solid var(--border); }
.estimate .k { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.estimate .v { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ind-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; color: inherit; }
.ind-card:hover { text-decoration: none; border-color: var(--border-strong); }
.ind-card .ico { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--subtle); color: var(--accent); }
.ind-card .ico svg { width: 22px; height: 22px; stroke: currentColor; }
.ind-card h2 { font-size: 17px; margin: 6px 0 0; }
.ind-card p { margin: 0; }
.ind-card .more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 13.5px; color: var(--accent); }
.ind-card .more svg { width: 14px; height: 14px; stroke: currentColor; }
.ind-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ind-detail h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 12px; }
.ind-detail h2 svg { width: 18px; height: 18px; stroke: var(--accent); }
.ind-detail h3 { font-size: 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--graphite); }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag-row .tag { padding: 4px 10px; font-size: 12.5px; font-weight: 600; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-grid h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 8px; }
.about-grid h2 svg { width: 18px; height: 18px; stroke: var(--accent); }
.about-grid p { margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.contact-way { display: flex; gap: 14px; align-items: center; color: inherit; }
a.contact-way:hover { text-decoration: none; border-color: var(--border-strong); }
.contact-way .ico { width: 42px; height: 42px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--subtle); color: var(--accent); }
.contact-way .ico.wa { background: #E7F8EE; color: #128C4B; }
.contact-way .ico svg { width: 20px; height: 20px; stroke: currentColor; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { text-align: center; padding: 24px 8px; }
.sent .ico { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-tint); color: var(--ok); }
.sent .ico svg { width: 26px; height: 26px; stroke: currentColor; }
.sent .row { justify-content: center; }
.site-foot { border-top: 1px solid var(--line); margin-top: 64px; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col b { color: var(--text); font-size: 13px; }
.foot-col a, .foot-col span { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.foot-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
/* WhatsApp chat button on the public website */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px; border-radius: 999px; background: #128C4B; color: #fff; font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-lg); }
/* #128C4B: 4.6:1 with white text */
.wa-fab:hover { text-decoration: none; background: #0E7440; }
.wa-fab:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(31, 175, 90, .35), var(--shadow-lg); }
.wa-fab svg { width: 24px; height: 24px; }
@media (max-width: 900px) {
  .price-grid, .ind-grid { grid-template-columns: 1fr 1fr; }
  .estimator, .ind-detail, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wa-fab { right: 16px; bottom: 16px; padding: 0 13px; }
  .wa-fab span { display: none; }
  .page-hero { text-align: left; }
}

/* ================================================================== Website structure: menus, footer, product pages */
/* ------------------------------------------------------------------ header menus (data from site-pages.js) */
.site-nav { gap: 18px; }
.site-menus { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.mega { position: relative; }
.mega-toggle {
  display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--graphite); font: 600 14px var(--font); cursor: pointer; white-space: nowrap;
  transition: background-color .16s, color .16s;
}
.mega-toggle svg { width: 14px; height: 14px; stroke: currentColor; transition: transform var(--mid) var(--ease); }
.mega-toggle:hover, .mega.open .mega-toggle { background: var(--subtle); color: var(--text); }
.mega.on .mega-toggle { color: var(--accent); }
.mega.open .mega-toggle svg { transform: rotate(180deg); }
/* the panel opens on hover (pointer devices), and on click or keyboard (site.js sets .open) */
.mega-panel {
  position: absolute; left: -8px; top: calc(100% + 10px); z-index: 60; width: 360px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate3d(0, -6px, 0) scale(.98); transform-origin: top left;
  transition: opacity .16s var(--ease), transform .26s var(--ease), visibility 0s linear .26s;
}
.mega-panel.wide { width: 600px; }
.mega-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.mega.open .mega-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .16s var(--ease), transform .26s var(--ease), visibility 0s; }
@media (hover: hover) and (pointer: fine) {
  .mega:hover .mega-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .16s var(--ease) .06s, transform .26s var(--ease) .06s, visibility 0s .06s; }
  .mega:hover .mega-toggle { background: var(--subtle); color: var(--text); }
}
.mega-grid { display: grid; gap: 2px; }
.mega-panel.wide .mega-grid { grid-template-columns: 1fr 1fr; }
.mega-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; color: inherit; transition: background-color .16s; }
.mega-item:hover, .mega-item:focus-visible { text-decoration: none; background: var(--surface-hi); }
.mega-item[aria-current="page"] { background: var(--indigo-tint); }
.mega-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--subtle); color: var(--accent); transition: background-color .16s, transform .26s var(--ease); }
.mega-ico svg { width: 18px; height: 18px; stroke: currentColor; }
.mega-item:hover .mega-ico { background: var(--indigo-tint); transform: scale(1.05); }
.mega-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mega-text .t { font-weight: 650; font-size: 14px; color: var(--text); }
.mega-text .d { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.mega-more { display: flex; align-items: center; gap: 6px; margin: 6px 4px 2px; padding: 10px 8px 4px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 650; font-size: 13px; }
.mega-more svg { width: 14px; height: 14px; stroke: currentColor; }
.site-nav .cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 1180px) {
  .site-nav { gap: 10px; }
  .site-menus { margin-left: 0; }
  .mega-toggle { padding: 0 9px; font-size: 13.5px; }
}

/* ------------------------------------------------------------------ phone and tablet menu */
.site-menu { position: relative; display: none; }
.site-menu summary { list-style: none; cursor: pointer; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu-list {
  position: fixed; left: 12px; right: 12px; top: 70px; z-index: 70; max-height: calc(100vh - 84px); overflow-y: auto;
  display: grid; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.m-group > summary {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 10px; border-radius: 9px;
  list-style: none; cursor: pointer; font-weight: 650; color: var(--text);
}
.m-group > summary::-webkit-details-marker { display: none; }
.m-group > summary:hover { background: var(--subtle); }
.m-group > summary svg { width: 16px; height: 16px; stroke: var(--faint); transition: transform var(--mid) var(--ease); }
.m-group[open] > summary svg { transform: rotate(180deg); }
.m-links { display: grid; padding: 0 0 6px 6px; }
.m-links a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--graphite); font-weight: 550; }
.m-links a:hover { background: var(--subtle); text-decoration: none; color: var(--text); }
.m-links a[aria-current="page"] { background: var(--indigo-tint); color: var(--accent); }
.m-links svg { width: 16px; height: 16px; stroke: var(--faint); flex: none; }
.m-account { display: grid; gap: 8px; padding: 10px 4px 4px; margin-top: 4px; border-top: 1px solid var(--line); }
@media (max-width: 1060px) {
  .site-menus { display: none; }
  .site-menu { display: block; }
}
@media (max-width: 600px) { .site-nav .cta .btn-ghost { display: none; } }

/* ------------------------------------------------------------------ footer: brand + one column per section */
.foot-grid { display: grid !important; grid-template-columns: 1.5fr repeat(6, minmax(0, 1fr)); gap: 24px; align-items: start !important; }
.foot-talk { margin-top: 18px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-legal a { color: var(--muted); margin-left: 14px; }
@media (max-width: 1180px) { .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ shared bits for the new pages */
.kicker { display: block; text-align: center; margin-bottom: 8px; color: var(--brass-700); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.section-alt { background: var(--surface-hi); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-sub { font-size: 18px; margin: 0 0 14px; }
.eyebrow .ico-dot { display: grid; place-items: center; width: 18px; height: 18px; color: var(--brass-700); }
.eyebrow .ico-dot svg { width: 15px; height: 15px; stroke: currentColor; }
.hero-cta { margin-top: 24px; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 28px; }
.link-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .link-grid.five { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.link-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; color: inherit; }
.link-card:hover { text-decoration: none; }
.link-card .ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--subtle); color: var(--accent); transition: background-color .16s; }
.link-card:hover .ico { background: var(--indigo-tint); }
.link-card .ico svg { width: 19px; height: 19px; stroke: currentColor; }
.link-card > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.link-card .t { font-weight: 700; color: var(--text); }
.link-card .d { font-size: 13px; color: var(--muted); line-height: 1.45; }
.link-card > svg { width: 16px; height: 16px; flex: none; margin-top: 3px; stroke: var(--faint); transition: transform .26s var(--ease), stroke .16s; }
.link-card:hover > svg { transform: translateX(3px); stroke: var(--accent); }
.ind-featured { grid-template-columns: repeat(4, 1fr); }
.ind-featured h3 { font-size: 16px; margin: 6px 0 0; }
.ind-more { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1060px) { .ind-featured { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ind-featured, .ind-more { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ product pages (topic.ejs) */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 48px; }
.fact { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.fact b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--accent); }
.fact span { font-size: 13px; color: var(--muted); }
.topic-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.topic-row:first-of-type { border-top: 0; }
.topic-row.flip .topic-text { order: 2; }
.topic-row.no-preview { grid-template-columns: minmax(0, 720px); justify-content: center; }
.topic-row.wide { grid-template-columns: 1fr; gap: 28px; }
.topic-row.wide .topic-text { max-width: 760px; }
.topic-text h2 { font-size: clamp(19px, 2vw, 23px); letter-spacing: -.02em; margin-bottom: 10px; }
.topic-text > p { font-size: 14.5px; }
.topic-text .ticks { margin-top: 16px; }
.topic-visual { padding: 20px; }
.timeline { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.timeline li { display: flex; gap: 14px; padding: 20px; }
.timeline .num { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--indigo); color: #fff; font-weight: 800; }
.timeline h3 { margin-bottom: 4px; }
.timeline p { margin: 0; font-size: 13.5px; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-list .feature { display: flex; flex-direction: column; color: inherit; }
.feature-list .feature:hover { text-decoration: none; }
.feature-list .feature p { flex: 1; }
.feature-list .more { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 13.5px; color: var(--accent); }
.feature-list .more svg { width: 14px; height: 14px; stroke: currentColor; transition: transform .26s var(--ease); }
.feature-list .feature:hover .more svg { transform: translateX(3px); }
@media (max-width: 960px) {
  .topic-row, .topic-row.flip { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }
  .topic-row.flip .topic-text { order: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .timeline, .feature-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .timeline, .feature-list { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ previews (partials/preview.ejs) */
.pv { display: grid; gap: 12px; font-size: 13.5px; }
.pv-head { display: flex; align-items: center; gap: 10px; }
.pv-head > b, .pv-head .grow { flex: 1; min-width: 0; }
.pv-head .grow { display: flex; flex-direction: column; }
.pv-tag { font-size: 11px; font-weight: 650; color: var(--faint); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
.pv-box { padding: 12px 14px; border-radius: 10px; background: var(--surface-hi); border: 1px solid var(--border); color: var(--graphite); line-height: 1.5; }
.pv-k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.pv-next { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 650; }
.pv-next svg { width: 15px; height: 15px; stroke: currentColor; }
.pv-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.pv-row .grow { min-width: 0; display: flex; flex-direction: column; }
.pv-row .grow b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-price { color: var(--text); white-space: nowrap; }
.pv-chip { font-size: 11.5px; font-weight: 650; color: var(--ok); background: var(--ok-tint); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.pv-chip.wait { color: var(--warm); background: var(--warm-tint); }
.pv-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--subtle); color: var(--accent); }
.pv-ico svg { width: 16px; height: 16px; stroke: currentColor; }
.pv-code { font: 600 13px ui-monospace, Consolas, monospace; background: var(--subtle); padding: 4px 8px; border-radius: 6px; }
.pv-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pv .demo-lines .msg { opacity: 1; animation: none; }
.pv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pv-kpis > div { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; }
.pv-kpis b { font-size: 20px; letter-spacing: -.02em; }
.pv-bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding: 8px 4px 0; border-bottom: 1px solid var(--line); }
.pv-bar { flex: 1; height: var(--h, 40%); border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--accent) 30%, var(--surface)); display: flex; align-items: flex-end; overflow: hidden; transform-origin: bottom; }
.pv-bar i { display: block; width: 100%; height: 38%; background: var(--hot); opacity: .75; }
.pv-field { display: grid; gap: 4px; }
.pv-input { padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); }
.pv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-modes span { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-weight: 600; color: var(--graphite); }
.pv-modes span.on { border-color: var(--accent); background: var(--indigo-tint); color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pv-modes svg { width: 15px; height: 15px; stroke: currentColor; }
.pv-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; }
.pv-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.pv-node .pv-ico { width: 40px; height: 40px; }
.pv-arrow { align-self: center; }
.pv-arrow svg { width: 18px; height: 18px; stroke: var(--faint); }
@media (max-width: 960px) {
  .pv-flow { grid-template-columns: 1fr; }
  .pv-arrow { justify-self: center; transform: rotate(90deg); }
}

/* ------------------------------------------------------------------ Terms and Privacy pages */
.legal { max-width: 820px; }
.legal-draft { margin: 0 auto 20px; }
.legal-body { font-size: 14.5px; line-height: 1.7; color: var(--graphite); }
.legal-intro { font-size: 15px; color: var(--text); }
.legal-toc { display: grid; gap: 2px; margin: 18px 0 8px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-hi); columns: 2; column-gap: 24px; }
.legal-toc a { display: block; padding: 2px 0; font-size: 13px; color: var(--accent); break-inside: avoid; }
.legal-body section { scroll-margin-top: 80px; }
.legal-body h2 { margin: 26px 0 8px; font-size: 17px; color: var(--indigo); }
.legal-body ul { margin: 6px 0 10px; padding-left: 20px; }
.legal-body li { margin: 4px 0; }
@media (max-width: 700px) { .legal-toc { columns: 1; } }

.inline-radio { display: inline-flex; align-items: center; gap: 8px; margin: 6px 18px 0 0; font-size: 14px; cursor: pointer; }
.inline-radio input { accent-color: var(--indigo); }
