/* RevCactus — site styles. Brand tokens from the RevCactus design system. */
:root {
  --cactus: #2E7D4F;
  --cactus-dark: #276B43;
  --night: #12301F;
  --night-2: #1A3D2A;
  --bloom: #F26B4F;
  --sprout: #8FD3A8;
  --sand: #F5F3EC;
  --ink: #13241B;
  --muted: #4F6157;
  --border: #E4E2DA;
  --border-strong: #C9C6BB;
  --white: #FFFFFF;
  --mint: #DCEFE2;
  --mint-ink: #1F5E3A;
  --muted-on-dark: #A9C9B4;
  --line-on-dark: #2A5039;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --font-logo: "Fredoka", ui-rounded, sans-serif;
  --font-sans: "Bricolage Grotesque", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--cactus); }
a:hover { color: var(--night); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cactus); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 20; }
.skip-link:focus { left: 8px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

/* Type */
.eyebrow { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3; color: var(--muted); }
.display { margin: 0; font-size: clamp(42px, 6vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.display--md { font-size: clamp(38px, 5vw, 60px); }
.h1 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }
.h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.45; color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius-md); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; border: 0; transition: transform .15s, background-color .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 10px 20px; }
.btn--primary { background: var(--cactus); color: var(--white); }
.btn--primary:hover { background: var(--cactus-dark); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--ink); border: 1px solid var(--border-strong); }
.btn--secondary:hover { color: var(--ink); border-color: var(--ink); }
.btn--light { background: var(--sand); color: var(--night); }
.btn--light:hover { background: var(--white); color: var(--night); }
.btn--ghost-dark { background: transparent; color: var(--sand); border: 1px solid var(--line-on-dark); }
.btn--ghost-dark:hover { color: var(--sand); border-color: var(--sprout); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); background: var(--sand); --mark-color: #2E7D4F; transition: background-color .35s ease, border-color .35s ease, color .35s ease; }
.site-header .container { transition: padding .35s ease; }
.site-header .lockup svg g { stroke: var(--mark-color); transition: stroke .35s ease; }
.site-header .wordmark { transition: font-size .35s ease; }
.site-header.is-scrolled .container { padding-top: 10px; padding-bottom: 10px; }
.site-header.is-scrolled .wordmark { font-size: 24px; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 16px; padding-bottom: 16px; }
.site-header--dark { background: var(--night); border-bottom-color: var(--line-on-dark); --mark-color: #8FD3A8; }
/* Once scrolled, the dark header turns light, so it reads on every section colour. */
.site-header--dark.is-scrolled { background: var(--sand); border-bottom-color: var(--border); --mark-color: #2E7D4F; }
.site-header--dark.is-scrolled .lockup, .site-header--dark.is-scrolled .lockup:hover { color: var(--ink); }
.site-header--dark.is-scrolled .main-nav a:not(.btn) { color: var(--ink); }
.site-header--dark.is-scrolled .main-nav a:not(.btn):hover { color: var(--cactus); }
.site-header--dark.is-scrolled .btn--light { background: var(--cactus); color: var(--white); }
.site-header--dark.is-scrolled .btn--light:hover { background: var(--cactus-dark); }
[id] { scroll-margin-top: 84px; }
/* Mobile: the header stays fixed in one compact row; the links fold away behind a menu button. */
.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: transparent; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.menu-toggle .bars { position: relative; width: 18px; height: 12px; }
.menu-toggle .bars span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.menu-toggle .bars span:nth-child(1) { top: 0; } .menu-toggle .bars span:nth-child(2) { top: 5px; } .menu-toggle .bars span:nth-child(3) { top: 10px; }
.site-header.menu-open .menu-toggle .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.site-header.menu-open .menu-toggle .bars span:nth-child(2) { opacity: 0; }
.site-header.menu-open .menu-toggle .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }
.site-header--dark .menu-toggle { color: var(--sand); border-color: var(--line-on-dark); }
.site-header--dark.is-scrolled .menu-toggle { color: var(--ink); border-color: var(--border-strong); }
@media (max-width: 720px) {
  .site-header .container { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
  .site-header .wordmark, .site-header.is-scrolled .wordmark { font-size: 24px; }
  .site-header .lockup svg { width: 34px; height: 34px; }
  .menu-toggle { display: inline-flex; }
  .site-header .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 24px 20px; background: var(--sand); border-bottom: 1px solid var(--border); }
  .site-header--dark .main-nav { background: var(--night); border-bottom-color: var(--line-on-dark); }
  .site-header--dark.is-scrolled .main-nav { background: var(--sand); border-bottom-color: var(--border); }
  .site-header.menu-open .main-nav { display: flex; animation: menuin .2s ease; }
  .site-header .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 17px; }
  .site-header--dark:not(.is-scrolled) .main-nav a:not(.btn) { border-bottom-color: var(--line-on-dark); }
  .site-header .main-nav .btn { margin-top: 16px; }
  [id] { scroll-margin-top: 72px; }
}
@keyframes menuin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-header.menu-open .main-nav { animation: none; } .menu-toggle .bars span { transition: none; } }
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.lockup:hover { color: var(--ink); }
.site-header--dark .lockup, .site-header--dark .lockup:hover { color: var(--sand); }
.wordmark { font-family: var(--font-logo); font-size: 28px; font-weight: 600; line-height: 1; }
.wordmark span { font-weight: 400; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 0; }
.main-nav a:not(.btn):hover { color: var(--cactus); }
.site-header--dark .main-nav a:not(.btn) { color: var(--sand); }
.site-header--dark .main-nav a:not(.btn):hover { color: var(--sprout); }

/* Hero (dark, with a product window that overlaps the next section) */
.hero-dark { background: var(--night); color: var(--sand); padding: 56px 0 0; }
.hero-dark .eyebrow { color: var(--sprout); }
.hero-dark .lead { color: var(--muted-on-dark); }
.hero-dark .small { color: var(--muted-on-dark); }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hero-stage { position: relative; margin-top: 48px; }
.hero-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: var(--sand); z-index: 0; }
.hero-stage > .container { position: relative; z-index: 1; }
.after-hero { padding-top: 72px; }
.breadcrumb { font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; color: var(--muted-on-dark); }
.breadcrumb a { color: var(--muted-on-dark); }
.app-icon { width: 64px; height: 64px; border-radius: 15px; background: var(--cactus); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-icon--sm { width: 52px; height: 52px; border-radius: 12px; }
.app-icon--on-dark { background: var(--night-2); border: 1px solid var(--line-on-dark); }

/* Sections */
.section { padding: 96px 0; }
.section--white { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--sprout { background: var(--sprout); color: var(--night); }
.section--sprout .eyebrow { color: var(--night); }
.section--sprout .muted { color: #1E4A31; }
.section--dark { background: var(--night); color: var(--sand); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.section-head.center { align-items: center; text-align: center; }
.stack { display: flex; flex-direction: column; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-40 { gap: 40px; } .gap-56 { gap: 56px; }
@media (max-width: 720px) { .section { padding: 64px 0; } .hero-dark { padding-top: 48px; } }

/* Grids and tiles */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tile { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; transition: transform .2s, border-color .2s; }
.tile:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.tile--sand { background: var(--sand); border-color: var(--sand); }
.tile p { color: var(--muted); }
.tile .grow { flex-grow: 1; }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tile--live { border: 2px solid var(--cactus); padding: 27px; }
.status { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: var(--radius-sm); }
.status--live { color: var(--mint-ink); background: var(--mint); padding: 4px 10px; }
.status--soon { color: var(--muted); border: 1px solid var(--border-strong); }
.text-link { font-weight: 500; padding: 10px 0; align-self: flex-start; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--mint); display: flex; align-items: center; justify-content: center; }
.two-col { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.two-col > .col-narrow { flex: 1 1 320px; min-width: 0; }
.two-col > .col-wide { flex: 2 1 520px; min-width: 0; }
.list-reset { list-style: none; margin: 0; padding: 0; }

/* Core diagram */
.core-diagram { width: 100%; height: auto; max-width: 980px; margin: 0 auto; }
.core-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.core-steps li { background: rgba(255,255,255,.55); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.core-steps .step-num { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--night); }
.core-steps p { color: #1E4A31; }

/* Details list */
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 40px; }
.facts div { display: flex; flex-direction: column; gap: 6px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }
.roadmap li { background: var(--white); border-radius: var(--radius-md); padding: 16px 20px; display: flex; gap: 12px; align-items: center; }

/* Pricing */
.price-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.price-grid--two { max-width: 800px; }
.price-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; background: var(--white); }
.price-card--featured { border: 2px solid var(--cactus); padding: 27px; }
.price-card--muted { background: var(--sand); border-color: var(--sand); }
.price-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.price { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.price small { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.price-note { margin-top: -8px; }
.billing-toggle { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; background: var(--sand); border-radius: var(--radius-md); }
.billing-toggle button { font: inherit; font-weight: 500; border: 0; border-radius: var(--radius-sm); padding: 10px 18px; min-height: 44px; cursor: pointer; background: transparent; color: var(--ink); }
.billing-toggle button[aria-pressed="true"] { background: var(--cactus); color: var(--white); }

/* CTA band and footer */
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.cta-band p { font-size: 18px; color: var(--muted-on-dark); margin-top: 12px; }
.site-footer { background: var(--night); color: var(--sand); border-top: 1px solid var(--line-on-dark); padding: 56px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand .wordmark { font-size: 30px; }
.footer-brand .eyebrow { color: var(--muted-on-dark); margin-top: 8px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer-cols nav { display: flex; flex-direction: column; gap: 4px; }
.footer-cols .eyebrow { color: var(--muted-on-dark); padding-bottom: 6px; }
.footer-cols a { color: var(--sand); text-decoration: none; padding: 6px 0; }
.footer-cols a:hover { color: var(--sprout); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-on-dark); font-size: 14px; color: var(--muted-on-dark); }

/* Legal pages */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { margin: 24px 0 0; font-size: 24px; letter-spacing: -0.01em; }
.notice { background: #FFF4D6; border: 1px solid #E8C96A; border-radius: var(--radius-md); padding: 16px 20px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .tile:hover { transform: none; }
}

/* ===================================================================
   Product demos: a HubSpot-style window. These mimic the HubSpot UI the
   app runs in (not RevCactus branding), so they use HubSpot-like greys.
   =================================================================== */
.demo { display: flex; flex-direction: column; gap: 16px; }
.demo-window { position: relative; background: #FFFFFF; border-radius: 14px; border: 1px solid #DFE3EB; overflow: hidden; font-family: "Lexend Deca", system-ui, sans-serif; font-size: 13px; line-height: 1.5; color: #33475B; box-shadow: 0 30px 60px -20px rgba(18,48,31,.45), 0 0 0 1px rgba(18,48,31,.04); user-select: none; }
.demo-chrome { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: #F5F8FA; border-bottom: 1px solid #DFE3EB; }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: #CBD6E2; }
.demo-crumb { font-size: 12px; color: #516F90; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-crumb b { color: #33475B; font-weight: 500; }

.demo-steps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.demo-steps button { flex: 1 1 160px; font: inherit; font-size: 14px; font-weight: 500; text-align: left; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: var(--radius-md); border: 1px solid var(--border); cursor: pointer; background: var(--white); color: var(--ink); transition: background-color .3s, color .3s, border-color .3s; }
.demo-steps button .n { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--sand); color: var(--ink); }
.demo-steps button[aria-pressed="true"] { background: var(--cactus); border-color: var(--cactus); color: var(--white); }
.demo-steps button[aria-pressed="true"] .n { background: var(--white); color: var(--cactus); }
.demo-pause { font: inherit; font-size: 13px; color: var(--muted); background: transparent; border: 0; padding: 8px 4px; min-height: 44px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }

/* Fake cursor */
.hs-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 30; pointer-events: none; transition: transform .7s cubic-bezier(.45,.05,.25,1); }
.hs-cursor svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.hs-cursor::after { content: ""; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,122,89,.45); transform: scale(0); opacity: 0; }
.hs-cursor.is-click::after { animation: hsclick .45s ease-out; }
@keyframes hsclick { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* HubSpot-like UI atoms */
.hs-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 1; padding: 4px 7px; border-radius: 3px; border: 1px solid #CBD6E2; background: #F5F8FA; color: #33475B; white-space: nowrap; }
.hs-tag--success { background: #E5F8F6; border-color: #7FDED2; }
.hs-tag--error { background: #FDE8E9; border-color: #F8A9AD; }
.hs-tag--info { background: #E5F5F8; border-color: #7FD1DE; }
.hs-mark { min-width: 22px; justify-content: center; font-weight: 700; padding: 3px 5px; }
.hs-btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 12px; font-weight: 500; border-radius: 3px; padding: 5px 10px; border: 1px solid #FF7A59; background: #FFFFFF; color: #FF7A59; white-space: nowrap; transition: background-color .15s; }
.hs-btn--primary { background: #FF7A59; color: #FFFFFF; }
.hs-btn--primary.is-disabled { background: #EAF0F6; border-color: #EAF0F6; color: #B0C1D4; }
.hs-btn--transparent { border-color: transparent; background: transparent; color: #0091AE; padding-left: 4px; padding-right: 4px; }
.hs-btn.is-pressed { background: #FFF1EE; }
.hs-btn--primary.is-pressed { background: #E8603C; }
.hs-tile { border: 1px solid #DFE3EB; border-radius: 4px; padding: 12px; background: #FFFFFF; }
.hs-micro { font-size: 12px; color: #516F90; }
.hs-src { font-size: 12px; color: #516F90; font-style: italic; }
.hs-input { display: flex; align-items: center; min-height: 34px; padding: 6px 10px; border: 1px solid #CBD6E2; border-radius: 3px; background: #F5F8FA; color: #33475B; font-size: 13px; transition: border-color .15s, box-shadow .15s; }
.hs-input.is-focus { border-color: #00A4BD; box-shadow: 0 0 4px 1px rgba(0,208,228,.3); background: #FFFFFF; }
.hs-input .ph { color: #7C98B6; }
.hs-input .caret { display: inline-block; width: 1px; height: 15px; background: #33475B; margin-left: 1px; }
.hs-select { justify-content: space-between; gap: 8px; }
.hs-select::after { content: ""; width: 7px; height: 7px; border-right: 2px solid #516F90; border-bottom: 2px solid #516F90; transform: rotate(45deg) translateY(-2px); flex-shrink: 0; }
.hs-label { font-size: 12px; font-weight: 500; color: #33475B; margin-bottom: 4px; display: block; }
.hs-menu { position: absolute; left: 0; right: 0; top: calc(100% + 2px); background: #FFFFFF; border: 1px solid #CBD6E2; border-radius: 3px; box-shadow: 0 4px 12px rgba(45,62,80,.18); z-index: 5; padding: 4px 0; }
.hs-menu div { padding: 6px 10px; }
.hs-menu div.is-hover { background: #E5F5F8; }
.hs-stage-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
.hs-stage-bar span { height: 8px; background: #EAF0F6; }
.hs-stage-bar span:first-child { border-radius: 4px 0 0 4px; }
.hs-stage-bar span:last-child { border-radius: 0 4px 4px 0; }
.hs-stage-bar span.on { background: #00A4BD; }
.hs-bold { font-weight: 600; color: #33475B; }
.hs-row { display: flex; align-items: center; gap: 8px; min-height: 26px; }
.hs-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hs-col { display: flex; flex-direction: column; }

/* Record layout */
.rec-body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; height: 560px; background: #F5F8FA; }
.rec-left { background: #FFFFFF; border-right: 1px solid #DFE3EB; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.rec-avatar { width: 40px; height: 40px; border-radius: 50%; background: #EAF0F6; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #516F90; }
.rec-deal-name { font-size: 16px; font-weight: 600; color: #33475B; line-height: 1.3; }
.rec-prop { display: flex; flex-direction: column; gap: 1px; padding-bottom: 8px; border-bottom: 1px solid #EAF0F6; }
.rec-prop .k { font-size: 11px; color: #516F90; }
.rec-prop .v { font-size: 13px; color: #33475B; transition: color .3s, background-color .6s; border-radius: 3px; }
.rec-prop .v.is-flash { background: #E5F8F6; }
.rec-mid { padding: 0 18px 18px; overflow: hidden; display: flex; flex-direction: column; }
.rec-tabs { display: flex; gap: 22px; border-bottom: 1px solid #DFE3EB; margin: 0 -18px 16px; padding: 0 18px; }
.rec-tabs span { padding: 12px 0 10px; font-size: 13px; color: #516F90; border-bottom: 3px solid transparent; }
.rec-tabs span.on { color: #33475B; font-weight: 600; border-bottom-color: #33475B; }
.rec-card { background: #FFFFFF; border: 1px solid #DFE3EB; border-radius: 4px; }
.rec-card-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #EAF0F6; font-weight: 600; font-size: 14px; color: #33475B; }
.rec-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.rec-right { background: #FFFFFF; border-left: 1px solid #DFE3EB; padding: 18px 14px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.rec-assoc .t { font-size: 12px; font-weight: 600; color: #33475B; margin-bottom: 8px; }
.rec-assoc .box { border: 1px solid #DFE3EB; border-radius: 4px; padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.rec-assoc .box b { font-weight: 600; color: #0091AE; font-size: 12px; }
.ghost-line { height: 8px; border-radius: 4px; background: #EAF0F6; }

/* Side panel */
.hs-panel { position: absolute; top: 40px; right: 0; bottom: 0; width: min(380px, 88%); background: #FFFFFF; border-left: 1px solid #DFE3EB; box-shadow: -12px 0 32px rgba(45,62,80,.18); transform: translateX(105%); transition: transform .45s cubic-bezier(.3,.7,.2,1); z-index: 20; display: flex; flex-direction: column; }
.hs-panel.is-open { transform: none; }
.hs-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #DFE3EB; font-weight: 600; font-size: 15px; color: #33475B; }
.hs-x { width: 26px; height: 26px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; color: #516F90; font-size: 18px; line-height: 1; }
.hs-panel-body { padding: 4px 16px 16px; }
.hs-panel-sec { padding: 14px 0; border-bottom: 1px solid #EAF0F6; display: flex; flex-direction: column; gap: 8px; }
.hs-panel-sec:last-child { border-bottom: 0; }
.hs-bullets { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 2px; }

/* Settings layout */
.set-body { padding: 22px 26px 24px; background: #FFFFFF; min-height: 860px; display: flex; flex-direction: column; gap: 14px; }
.set-h { font-size: 20px; font-weight: 600; color: #33475B; margin: 0; }
.set-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.set-tabs { display: flex; gap: 2px; border-bottom: 1px solid #CBD6E2; }
.set-tabs span { padding: 8px 14px; font-size: 13px; color: #516F90; border: 1px solid transparent; border-bottom: 0; border-radius: 3px 3px 0 0; margin-bottom: -1px; transition: color .2s; }
.set-tabs span.on { color: #33475B; font-weight: 600; background: #FFFFFF; border-color: #CBD6E2; }
.set-pane { display: none; flex-direction: column; gap: 12px; padding-top: 4px; }
.set-pane.on { display: flex; }
.chip-field { min-height: 34px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.hs-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 8px; background: #EAF0F6; border: 1px solid #CBD6E2; border-radius: 3px; transition: opacity .3s, transform .3s; }
.hs-chip.is-hidden { opacity: 0; transform: scale(.85); position: absolute; pointer-events: none; }
.set-check { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.fade-in { animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) { .rec-body { grid-template-columns: 200px minmax(0, 1fr); } .rec-right { display: none; } }
@media (max-width: 760px) {
  .rec-body { grid-template-columns: minmax(0, 1fr); height: 600px; }
  .rec-left { display: none; }
  .set-row, .set-check { grid-template-columns: 1fr; }
  .set-body { padding: 18px; min-height: 0; }
  .set-hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-cursor, .hs-panel, .hs-chip { transition: none; }
  .fade-in { animation: none; }
}

/* Legal pages */
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal h2 { scroll-margin-top: 90px; }
