/* Site-wide redesign theme: the homepage look on every page.
   - Light top bar on the cream page that turns frosted once you scroll (same as the homepage).
   - Cards answer the pointer: a soft orange light follows the cursor, icons turn orange.
   - Links use the brand's burnt orange instead of blue. */

/* ---------- links ---------- */
:root { --link: var(--orange-ink, #a8401a); }
.link, a.link { color: var(--orange-ink, #a8401a); }

/* ---------- top bar ---------- */
html body .site-header, html body .site-header.scrolled { background: transparent !important; border-bottom: 1px solid transparent !important; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
html body .site-header.scrolled { background: rgba(243, 238, 227, 0.8) !important; border-bottom-color: var(--line) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 8px 24px -18px rgba(22, 21, 20, 0.35); }
html body .site-header .site-logo small { color: var(--muted); }
html body .site-header .site-links a { color: var(--ink-2); font-size: 14px; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { html body .site-header .site-links a:hover { color: var(--ink); background: rgba(22, 21, 20, 0.05); } }
html body .site-header .site-actions { gap: 8px; }
html body .site-header .site-actions .btn { height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: none; }
html body .site-header .btn-signin, html body .site-header .site-trial { background: rgba(255, 255, 255, 0.55); color: var(--ink); border: 1px solid #d6ccb9; }
html body .site-header .site-trial span { color: var(--orange); }
html body .site-header .btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
html body .site-header .site-search-btn { padding: 0; width: 40px; background: rgba(255, 255, 255, 0.55); color: var(--ink); border: 1px solid #d6ccb9; }
@media (hover: hover) and (pointer: fine) {
  html body .site-header .btn-signin:hover, html body .site-header .site-trial:hover, html body .site-header .site-search-btn:hover { background: #fff; border-color: var(--faint); color: var(--ink); }
  html body .site-header .btn-dark:hover { background: #2a2622; }
}
html body .site-header .site-actions .btn:active { transform: scale(0.97); }
@media (max-width: 1360px) { html body .site-header .site-links a { padding-left: 9px; padding-right: 9px; font-size: 13.5px; } html body .site-header .site-logo small { display: none; } }
@media (max-width: 1100px) { html body .site-header .site-links { display: none; } }
@media (max-width: 640px) { html body .site-header .site-trial, html body .site-header .btn-signin { display: none; } }

/* ---------- cards answer the pointer ---------- */
.r-card { --r-glow: rgba(217, 84, 30, 0.10); position: relative; }
.r-card.r-dark { --r-glow: rgba(255, 150, 100, 0.14); }
.r-card:not(.q-card)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--r-glow), transparent 62%); transition: opacity 260ms ease; }
.r-card.r-lit:not(.q-card)::after { opacity: 1; }
.r-card { transition: box-shadow 320ms ease, border-color 200ms ease, background-color 200ms ease; }
.r-card .ico { transition: transform 320ms cubic-bezier(.23, 1, .32, 1), background-color 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .r-card:hover .ico { transform: rotate(-6deg) scale(1.08); background: var(--orange); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .r-card .ico { transition: none; transform: none !important; } }

/* ---------- sign-in, register and other account pages: the side panel matches the homepage hero ---------- */
html body .auth-aside { background: var(--bg, #f3eee3); color: var(--ink); border-right: 1px solid var(--line); }
html body .auth-aside .display { font-size: clamp(44px, 4.6vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; color: var(--ink); }
html body .auth-aside .display em { font-style: normal; color: var(--orange-ink, #a8401a); }
html body .auth-aside .brand-sub { color: var(--muted); }
html body .auth-roles span { border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); }
html body .auth-roles span:last-child { color: var(--orange-ink, #a8401a); border-color: rgba(217, 84, 30, 0.35); }
html body .auth-foot, html body .auth-foot a { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { html body .auth-foot a:hover { color: var(--ink); } }
html body .auth-main { background: #fff; }
html body .auth-title { font-weight: 800; letter-spacing: -0.035em; }
@media (min-width: 960px) { html body .auth-aside ~ .auth-main .auth-brand { display: none; } }

/* ---------- inside the app: sidebar and top bar in the homepage's light look ---------- */
html body .sidebar { background: #f7f3ea; color: var(--ink); border-right: 1px solid var(--line); }
html body .sidebar .brand { padding: 26px 24px 20px; border-bottom: 1px solid var(--line); }
html body .sidebar .brand .logo-img { height: 60px; }
html body .sidebar .brand-sub, html body .sidebar .side-label { color: var(--muted); }
html body .sidebar .side-section { padding: 22px 16px 0; }
html body .sidebar .side-label { margin: 0 10px 10px; font-size: 11px; letter-spacing: 0.08em; }
html body .sidebar .side-select { background: #fff; color: var(--ink); border: 1px solid #d6ccb9; border-radius: 999px; padding: 10px 16px; }
html body .sidebar .side-select:focus { border-color: var(--orange); }
html body .sidebar .side-upgrade { border-radius: 999px; padding: 10px 16px; background: var(--ink); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { html body .sidebar .side-upgrade:hover { background: #2a2622; box-shadow: none; } }
html body .sidebar .side-upgrade svg:first-child { color: var(--orange); }
html body .sidebar .nav { gap: 4px; }
html body .sidebar .nav a { color: var(--ink-2); font-size: 14px; font-weight: 500; padding: 10px 14px; border-radius: 999px; }
html body .sidebar .nav a svg { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { html body .sidebar .nav a:hover { background: rgba(22, 21, 20, 0.05); color: var(--ink); } }
/* Current page: a soft, see-through wash of the site's orange (a highlighter, not a solid block) */
html body .sidebar .nav a[aria-current="page"] { background: rgba(217, 84, 30, 0.13); color: var(--orange-ink); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(217, 84, 30, 0.22); }
html body .sidebar .nav a[aria-current="page"]::before { display: none; }
html body .sidebar .nav a[aria-current="page"] svg { color: var(--orange); }
@media (hover: hover) and (pointer: fine) { html body .sidebar .nav a[aria-current="page"]:hover { background: rgba(217, 84, 30, 0.17); color: var(--orange-ink); } }
html body .sidebar .nav-lock { background: rgba(217, 84, 30, 0.12); color: var(--orange-ink, #a8401a); }
html body .sidebar .side-user { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
html body .sidebar .side-user p { color: var(--ink); }
html body .sidebar .side-user small { color: var(--muted); }
html body .sidebar .side-user button { color: var(--ink); border: 1px solid #d6ccb9; border-radius: 999px; background: rgba(255, 255, 255, 0.55); }
@media (hover: hover) and (pointer: fine) { html body .sidebar .side-user button:hover { background: #fff; border-color: var(--faint); } }
html body .sidebar .side-copy, html body .sidebar .side-copy a { color: var(--muted); }

html body .topbar { background: rgba(243, 238, 227, 0.8); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line); color: var(--ink); box-shadow: 0 8px 24px -20px rgba(22, 21, 20, 0.35); }
html body .topbar::after { display: none; }
html body .topbar .crumb { color: var(--ink); }
html body .topbar .crumb .tag { color: var(--orange-ink, #a8401a); }
html body .topbar .menu-btn { background: rgba(255, 255, 255, 0.6); border: 1px solid #d6ccb9; color: var(--ink); }

/* sidebar groups that fold away (Finance, Company) */
html body .sidebar .side-fold > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer;
  margin: 0 0 6px; padding: 8px 10px; border-radius: 999px; user-select: none; transition: background-color 150ms ease, color 150ms ease; }
html body .sidebar .side-fold > summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { html body .sidebar .side-fold > summary:hover { background: rgba(22, 21, 20, 0.05); color: var(--ink); } }
html body .sidebar .side-fold > summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
html body .sidebar .side-chev { transform: rotate(-90deg); transition: transform 200ms cubic-bezier(.23, 1, .32, 1); }
html body .sidebar .side-fold[open] .side-chev { transform: none; }
html body .sidebar .side-fold[open] > .nav { animation: fold-in 200ms cubic-bezier(.23, 1, .32, 1) both; }
@keyframes fold-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html body .sidebar .side-chev, html body .sidebar .side-fold[open] > .nav { transition: none; animation: none; } }

/* ---------- app cards in the homepage's card style ---------- */
html body .content .card { border-radius: 22px; border: 1px solid var(--line); background: #fff; box-shadow: 0 1px 2px rgba(22, 21, 20, 0.04), 0 12px 32px -24px rgba(22, 21, 20, 0.25); }
html body .content .card-head { padding: 22px 26px; }
html body .content .card-pad { padding: 26px; }
html body .content .stat { padding: 24px 26px; }
html body .content .stat-label { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
html body .content .stat-label::before { content: ""; width: 16px; height: 1px; background: currentColor; opacity: .7; }
html body .content .stat-value { margin-top: 16px; font-family: var(--sans); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(22px, 13cqi, 38px); color: var(--ink); }
html body .content .stat-note { margin-top: 8px; font-size: 12px; color: var(--muted); }
html body .content .card-foot { border-radius: 0 0 22px 22px; background: var(--surface-2, #faf7f1); }
html body .content .dark-card { border-radius: 26px; background: #161514; box-shadow: 0 30px 60px -30px rgba(22, 21, 20, 0.6); }
@media (hover: hover) and (pointer: fine) { html body .content .stat:hover { border-color: rgba(217, 84, 30, 0.3); } }
html body .sidebar .side-fold { padding-top: 10px; }
html body .sidebar .side-fold[open] { padding-bottom: 6px; }
