/* ==========================================================================
   Stattr — shared minimal theme
   --------------------------------------------------------------------------
   Single source of truth for the marketing site AND the internal app pages.
   Loaded after app(.rtl)(.dark).css from resources/views/layouts/wrapper.blade.php.

   This file is hand-authored plain CSS on purpose: it is not part of the
   Laravel Mix / SASS pipeline, so it can be edited and uploaded on its own
   without a node build. Every colour is a custom property declared once
   below, so a palette change here sweeps the whole product.

   Contents
     1.  Design tokens (light + dark)
     2.  Base + app chrome (header, sidebar, footer)
     3.  Collapsed sidebar
     4.  Global component layer (Bootstrap re-skin, applies app-wide)
     5.  Shared small components
     6.  Auth pages
     7.  Dashboard
     8.  Stats pages
     9.  Account pages
     10. Developer pages
     10b. Invoice (screen + print)
     11. Marketing homepage
     12. Motion + reduced motion
     --  Responsive
   ========================================================================== */


/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	--sh-ground: #ffffff;
	--sh-surface: #ffffff;
	--sh-surface-2: #FBFBFA;
	--sh-text: #16161a;
	--sh-text-2: #3f3f46;
	--sh-muted: #71717a;
	--sh-faint: #a1a1aa;
	--sh-border: #e7e7e4;
	--sh-border-strong: #d6d6d2;
	--sh-hover: rgba(22, 22, 26, 0.04);

	/* Cards are outlined on light and edgeless on dark, where the raised
	   surface colour already separates them from the ground. */
	--sh-card-border: #e7e7e4;

	/* Solid "ink" used for primary actions */
	--sh-ink: #17171a;
	--sh-ink-hover: #000000;
	--sh-on-ink: #ffffff;

	/* Blueprint decoration + hero wash */
	--sh-grid: rgba(22, 22, 26, 0.055);
	--sh-grid-strong: rgba(22, 22, 26, 0.12);
	--sh-wash-a: rgba(255, 206, 156, 0.5);
	--sh-wash-b: rgba(255, 188, 222, 0.42);
	--sh-wash-c: rgba(178, 208, 255, 0.5);
	--sh-card-shadow: 0 22px 45px -14px rgba(16, 16, 20, 0.2), 0 2px 6px rgba(16, 16, 20, 0.05);
	--sh-menu-shadow: 0 14px 28px -10px rgba(16, 16, 20, 0.18);

	/* Status + data series. Chart.js reads the series colours from the
	   computed background of #visitors-legend / #pageviews-legend, so these
	   two tokens drive the chart lines as well as the legend swatches. */
	--sh-series-1: #16161a;
	--sh-series-2: #a1a1aa;
	--sh-positive: #2f6f4b;
	--sh-positive-bg: #edf4ef;
	--sh-negative: #a2423c;
	--sh-negative-bg: #f8eeed;
	--sh-neutral: #5c5c66;
	--sh-neutral-bg: #f1f1ef;

	--sh-radius: 0.65rem;
	--sh-radius-sm: 0.4rem;
	--sh-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html.dark {
	--sh-ground: #0b0b0c;
	--sh-surface: #121214;
	--sh-surface-2: #17171a;
	--sh-text: #f4f4f5;
	--sh-text-2: #d4d4d8;
	--sh-muted: #a1a1aa;
	--sh-faint: #7c7c86;
	--sh-border: #26262a;
	--sh-border-strong: #3a3a41;
	--sh-hover: rgba(244, 244, 245, 0.055);

	--sh-card-border: transparent;

	--sh-ink: #f4f4f5;
	--sh-ink-hover: #ffffff;
	--sh-on-ink: #101012;

	--sh-grid: rgba(244, 244, 245, 0.055);
	--sh-grid-strong: rgba(244, 244, 245, 0.13);
	--sh-wash-a: rgba(196, 118, 52, 0.22);
	--sh-wash-b: rgba(178, 84, 140, 0.2);
	--sh-wash-c: rgba(70, 116, 196, 0.24);
	--sh-card-shadow: 0 22px 45px -14px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.35);
	--sh-menu-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.55);

	--sh-series-1: #f4f4f5;
	--sh-series-2: #71717a;
	--sh-positive: #7cc79a;
	--sh-positive-bg: rgba(124, 199, 154, 0.12);
	--sh-negative: #e08b84;
	--sh-negative-bg: rgba(224, 139, 132, 0.12);
	--sh-neutral: #a1a1aa;
	--sh-neutral-bg: rgba(244, 244, 245, 0.08);
}


/* ==========================================================================
   2. Base + app chrome
   ========================================================================== */

html {
	background: var(--sh-ground);
	font-family: var(--sh-font);
}

body {
	background: var(--sh-ground);
	font-family: var(--sh-font);
	font-size:.8rem;
	color: var(--sh-text);
	-webkit-font-smoothing: antialiased;
	/* App pages have no footer, so the page itself has to reach the bottom
	   of the viewport rather than stopping under the last card. */
	min-height: 100vh;
}
.h2, h2 {
    font-size: 1.8rem;
}

/* body is a flex column and the page wrapper already carries .flex-fill, so
   the min-height above is all that is needed to reach the bottom. These keep
   the page body stretching for any scope whose root lacks .flex-fill. */
.stattr-dashboard,
.stattr-stats-page,
.stattr-account-page,
.stattr-developers-page,
.stattr-invoice {
	flex: 1 1 auto;
}

::selection {
	background: var(--sh-text);
	color: var(--sh-surface);
}

/* The marketing homepage and the auth screens ship their own top bar and
   footer, so the shared app chrome is hidden on those pages. Previously done
   with a `#header, #footer { display: none }` rule inside each page's inline
   <style>; `:has()` lets one global rule replace all of them.

   Only the footer's inner container is hidden, not #footer itself: the cookie
   consent banner is rendered inside that element, and hiding the whole footer
   would suppress the banner along with it. */
body:has(.stattr-home) #header,
body:has(.stattr-auth) #header {
	display: none !important;
}

body:has(.stattr-home) #footer > .container,
body:has(.stattr-auth) #footer > .container {
	display: none !important;
}

/* Sticky app header */
.header {
	background: var(--sh-surface) !important;
	border-bottom: 1px solid var(--sh-border);
	box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Sidebar shell
   -------------------------------------------------------------------------- */

.slide-menu {
	background: var(--sh-surface);
	border-right: 1px solid var(--sh-border);
	box-shadow: none !important;
}

[dir="rtl"] .slide-menu {
	border-right: 0;
	border-left: 1px solid var(--sh-border);
}

/* Brand row: logo left, collapse toggle right */
.sidebar-brand-row {
	padding-left: 0.85rem !important;
	padding-right: 0.85rem !important;
	padding-top: 0.7rem !important;
	padding-bottom: 0.7rem !important;
	gap: 0.5rem;
}

#sidebar-desktop-toggle {
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	border-radius: var(--sh-radius-sm);
	color: var(--sh-faint);
	padding: 0 !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

#sidebar-desktop-toggle:hover {
	background: var(--sh-hover);
	color: var(--sh-text);
}

#sidebar-desktop-toggle .sidebar-toggle-icon {
	transition: transform 0.2s ease;
}

/* --------------------------------------------------------------------------
   Sidebar navigation — rounded rows, filled active state
   -------------------------------------------------------------------------- */

.sidebar .nav-link {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0.1rem 0.5rem;
	padding: 0.5rem 0.65rem !important;
	border-radius: var(--sh-radius-sm);
	color: var(--sh-text-2);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.3;
	/* the old right-edge indicator is replaced by a filled row */
	border: 0;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar .nav-link:hover {
	background: var(--sh-hover);
	color: var(--sh-text);
}

.sidebar .nav-link:hover .sidebar-icon {
	color: var(--sh-text);
}

.sidebar .nav-link.active {
	background: var(--sh-hover);
	color: var(--sh-text);
	border: 0;
	font-weight: 500;
}

.sidebar .nav-link.active > .sidebar-icon {
	color: var(--sh-text);
}

[dir="rtl"] .sidebar .nav-link,
[dir="rtl"] .sidebar .nav-link.active {
	border: 0;
}

.sidebar-icon {
	color: var(--sh-faint);
	flex-shrink: 0;
}

/* Sub-menu rows sit slightly inset */
.sub-menu .nav-link {
	padding-left: 1.9rem !important;
	font-weight: 500;
}

.sidebar-section-title {
	font-size: 0.68rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.13em;
	color: var(--sh-faint);
	padding-left: 1.15rem !important;
	padding-right: 1.15rem !important;
}

/* Theme switcher, inline to the right of the Menu label */
.sidebar-menu-row {
	padding-right: 0.85rem;
}

[dir="rtl"] .sidebar-menu-row {
	padding-right: 0;
	padding-left: 0.85rem;
}

.sidebar-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.85rem;
	height: 1.85rem;
	border-radius: var(--sh-radius-sm);
	color: var(--sh-faint);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-theme-toggle:hover,
.sidebar-theme-toggle:focus {
	background: var(--sh-hover);
	color: var(--sh-text);
	text-decoration: none;
}

.sidebar hr {
	margin: 0.6rem 0.85rem;
	border-top-color: var(--sh-border);
}

/* Plan / usage block above the account row */
.sidebar-plan {
	display: block;
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	background: var(--sh-surface-2);
	padding: 0.7rem 0.8rem !important;
	margin: 0.5rem 0.75rem !important;
	color: var(--sh-muted);
}

.sidebar-plan:hover {
	border-color: var(--sh-border-strong);
}

/* --------------------------------------------------------------------------
   Sidebar footer — account holder avatar (replaces the old logout icon)
   -------------------------------------------------------------------------- */

.sidebar-footer {
	background: var(--sh-surface);
	border-top: 1px solid var(--sh-border);
	padding: 0.5rem;
}

/* Must stay positioned: it is the containing block the account menu below is
   placed against. If this goes static the menu anchors to the sidebar instead
   and renders off the top of the screen. */
.sidebar-account {
	position: relative;
}

.sidebar-account-link {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.45rem 0.5rem;
	border: 0;
	border-radius: var(--sh-radius-sm);
	background: transparent;
	color: var(--sh-text);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.sidebar-account-link:hover,
.sidebar-account-link[aria-expanded="true"] {
	background: var(--sh-hover);
	color: var(--sh-text);
}

.sidebar-avatar {
	width: 1.75rem;
	height: 1.75rem;
	flex-shrink: 0;
	object-fit: cover;
	border: 1px solid var(--sh-border);
}

.sidebar-account-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex-grow: 1;
	line-height: 1.25;
}

.sidebar-account-name {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--sh-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sidebar-account-sub {
	font-size: 0.72rem;
	color: var(--sh-muted);
}

.sidebar-account-caret {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	color: var(--sh-faint);
}

/* The account menu is positioned here rather than by Bootstrap: PurgeCSS
   strips every `.dropup` rule from the built app.css (dropdown/dropup are not
   in the mix safelist), and a `.dropdown-menu{position:static}` navbar rule
   also applies inside .slide-menu. The toggle carries data-display="static"
   so Bootstrap's JS leaves placement to CSS instead of Popper. */
.sidebar-account-menu {
	position: absolute !important;
	top: auto !important;
	bottom: calc(100% + 0.35rem);
	left: 0.5rem;
	right: 0.5rem;
	width: auto;
	min-width: 0;
	margin: 0;
	float: none;
	z-index: 1040;
}

.sidebar-account-menu .dropdown-item {
	font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Cookie banner
   -------------------------------------------------------------------------- */

.cookie-banner {
	background: var(--sh-surface);
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	box-shadow: var(--sh-menu-shadow);
}


/* ==========================================================================
   3. Collapsed sidebar — narrow icon rail
   (moved out of layouts/wrapper.blade.php)
   ========================================================================== */

@media (min-width: 992px) {
	html.sidebar-collapsed .slide-menu {
		width: 60px;
	}

	html.sidebar-collapsed .content {
		margin-left: 60px;
	}

	html[dir="rtl"].sidebar-collapsed .content {
		margin-left: 0;
		margin-right: 60px;
	}

	/* Everything that carries text collapses away */
	html.sidebar-collapsed .slide-menu .sidebar-label,
	html.sidebar-collapsed .slide-menu .sidebar-expand,
	html.sidebar-collapsed .slide-menu .sidebar-section-title,
	html.sidebar-collapsed .slide-menu .sidebar-plan,
	html.sidebar-collapsed .slide-menu .sidebar-account-meta,
	html.sidebar-collapsed .slide-menu .sidebar-account-caret,
	html.sidebar-collapsed .slide-menu .sub-menu,
	html.sidebar-collapsed .slide-menu .alert,
	html.sidebar-collapsed .slide-menu hr {
		display: none !important;
	}

	/* Brand row keeps only the toggle, centred */
	html.sidebar-collapsed .slide-menu .sidebar-brand-row {
		justify-content: center;
		padding-left: 0.5rem !important;
		padding-right: 0.5rem !important;
	}

	html.sidebar-collapsed .slide-menu .sidebar-brand-row .navbar-brand {
		display: none !important;
	}

	html.sidebar-collapsed #sidebar-desktop-toggle {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	html.sidebar-collapsed #sidebar-desktop-toggle .sidebar-toggle-icon {
		transform: rotate(180deg);
	}

	/* The Menu label goes, so the theme switcher centres in the rail */
	html.sidebar-collapsed .slide-menu .sidebar-menu-row {
		justify-content: center;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	html.sidebar-collapsed .slide-menu .sidebar-theme-toggle {
		width: 2.25rem;
		height: 2.25rem;
	}

	/* Nav rows become centred icon squares */
	html.sidebar-collapsed .slide-menu .sidebar .nav-link {
		justify-content: center;
		margin: 0.15rem auto;
		padding: 0.5rem !important;
		width: 2.25rem;
		height: 2.25rem;
	}

	html.sidebar-collapsed .slide-menu .sidebar .nav-link .sidebar-icon {
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	html.sidebar-collapsed .slide-menu .sidebar .nav-link .sidebar-icon svg,
	html.sidebar-collapsed .slide-menu .sidebar .nav-link .sidebar-icon img {
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	/* Account row becomes just the avatar */
	html.sidebar-collapsed .slide-menu .sidebar-footer {
		padding: 0.5rem 0;
	}

	html.sidebar-collapsed .slide-menu .sidebar-account-link {
		justify-content: center;
		gap: 0;
		padding: 0.3rem;
		width: 2.5rem;
		margin: 0 auto;
	}

	/* In the narrow rail the menu spills out to the right of the sidebar */
	html.sidebar-collapsed .slide-menu .sidebar-account-menu {
		left: 0.4rem;
		right: auto;
		width: 13rem;
	}

	html[dir="rtl"].sidebar-collapsed .slide-menu .sidebar-account-menu {
		left: auto;
		right: 0.4rem;
	}
}

/* ==========================================================================
   4. Global component layer
   --------------------------------------------------------------------------
   These rules are deliberately unscoped so every signed-in page inherits the
   same grey minimal treatment — the six `.stattr-*` page scopes, the admin
   area, website forms, the installer and every shared partial. Semantic
   colours (danger / success / warning) are left alone; only the primary
   "blue" chrome is neutralised.
   ========================================================================== */

/* Page scopes: flat ground instead of the old radial gradient */
.stattr-auth,
.stattr-dashboard,
.stattr-stats-page,
.stattr-account-page,
.stattr-developers-page {
	background: var(--sh-ground);
	color: var(--sh-text);
	font-family: var(--sh-font);
}

/* Headings */
h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5 {
	font-weight: 500;
	letter-spacing: -0.022em;
	color: var(--sh-text);
}

.text-muted {
	color: var(--sh-muted) !important;
}

.text-dark {
	color: var(--sh-text) !important;
}

/* Neutralise the primary accent. Change these two rules (or --sh-ink) to
   reintroduce a coloured accent across the whole product. */
.text-primary {
	color: var(--sh-text) !important;
}

a {
	color: var(--sh-text);
}

a:hover {
	color: var(--sh-text);
}

/* Cards */
.card {
	border-radius: var(--sh-radius);
	background: var(--sh-surface);
	box-shadow: none !important;
	/* answers .border-0, which most card roots in the views carry */
	border: 1px solid var(--sh-card-border) !important;
}

.card-header {
	border-bottom: 1px solid var(--sh-border);
	font-weight: 500;
	color: var(--sh-text);
}

.card-footer {
	border-top: 1px solid var(--sh-border);

}

/* Buttons — shape for all variants, colour for the primary pair only */
.btn {
	border-radius: var(--sh-radius-sm);
	font-weight: 500;
}

.btn-primary,
.btn-primary:not(:disabled):not(.disabled):active {
	border-color: var(--sh-ink);
	background: var(--sh-ink);
	color: var(--sh-on-ink);
}

.btn-primary:hover,
.btn-primary:focus {
	border-color: var(--sh-ink-hover);
	background: var(--sh-ink-hover);
	color: var(--sh-on-ink);
}

.btn-outline-primary,
.btn-outline-secondary {
	border-color: var(--sh-border-strong);
	color: var(--sh-text);
	background: var(--sh-surface);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
	border-color: var(--sh-text);
	background: var(--sh-surface);
	color: var(--sh-text);
}

.btn-link {
	color: var(--sh-text);
}

.btn:focus,
.btn.focus {
	box-shadow: 0 0 0 3px var(--sh-grid);
}

/* Forms */
.form-control,
.custom-select,
.custom-file-label,
.input-group-text {
	border-color: var(--sh-border-strong);
	border-radius: var(--sh-radius-sm);
	background: var(--sh-surface);
	color: var(--sh-text);
}

.input-group-text {
	background: var(--sh-surface-2);
	color: var(--sh-muted);
}

.form-control:focus,
.custom-select:focus {
	border-color: var(--sh-text);
	box-shadow: 0 0 0 3px var(--sh-grid);
	background: var(--sh-surface);
	color: var(--sh-text);
}

.form-control::placeholder {
	color: var(--sh-faint);
}

label {
	font-weight: 500;
	color: var(--sh-text-2);
}

.form-text,
.custom-control-label {
	color: var(--sh-muted);
}

.custom-control-input:checked ~ .custom-control-label::before {
	border-color: var(--sh-ink);
	background-color: var(--sh-ink);
}

/* Lists */
.list-group-item {
	border-color: var(--sh-border);
	background: transparent;
	color: var(--sh-text);
}

.list-group-item-action:hover {
	background: var(--sh-hover);
	color: var(--sh-text);
}

/* Tables */
.table {
	color: var(--sh-text);
}

.table th {
	border-color: var(--sh-border);
	font-size: 0.7rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--sh-faint);
}

.table td {
	border-color: var(--sh-border);
}

.table thead th {
	border-bottom: 1px solid var(--sh-border);
}

.table-hover tbody tr:hover {
	background: var(--sh-hover);
	color: var(--sh-text);
}

/* Dropdowns */
.dropdown-menu {
	border: 1px solid var(--sh-border) !important;
	border-radius: var(--sh-radius);
	background: var(--sh-surface);
	box-shadow: var(--sh-menu-shadow) !important;
}

.dropdown-item {
	color: var(--sh-text-2);
}

.dropdown-item:hover,
.dropdown-item:focus {
	background: var(--sh-hover);
	color: var(--sh-text);
}

.dropdown-item.active,
.dropdown-item:active {
	background: var(--sh-ink);
	color: var(--sh-on-ink);
}

.dropdown-divider {
	border-top-color: var(--sh-border);
}

/* Tabs + pills outside the sidebar */
.nav-tabs {
	border-bottom-color: var(--sh-border);
}

.nav-tabs .nav-link {
	color: var(--sh-muted);
	border-radius: var(--sh-radius-sm) var(--sh-radius-sm) 0 0;
}

.nav-tabs .nav-link:hover {
	border-color: transparent;
	color: var(--sh-text);
}

.nav-tabs .nav-link.active {
	color: var(--sh-text);
	background: var(--sh-surface);
	border-color: var(--sh-border) var(--sh-border) var(--sh-surface);
	font-weight: 500;
}

.nav-pills .nav-link.active {
	background: var(--sh-ink);
	color: var(--sh-on-ink);
}

/* Pagination */
.page-link {
	color: var(--sh-text-2);
	background: var(--sh-surface);
	border-color: var(--sh-border);
}

.page-link:hover {
	color: var(--sh-text);
	background: var(--sh-hover);
	border-color: var(--sh-border);
}

.page-item.active .page-link {
	background: var(--sh-ink);
	border-color: var(--sh-ink);
	color: var(--sh-on-ink);
}

.page-item.disabled .page-link {
	color: var(--sh-faint);
	background: var(--sh-surface);
	border-color: var(--sh-border);
}

/* Badges — neutral variants only */
.badge-primary {
	background: var(--sh-ink);
	color: var(--sh-on-ink);
}

.badge-secondary,
.badge-light {
	background: var(--sh-neutral-bg);
	border: 1px solid var(--sh-border);
	color: var(--sh-neutral);
	font-weight: 500;
}

/* Alerts + modals + progress */
.alert {
	border-radius: var(--sh-radius);
}

.alert-primary {
	background: var(--sh-neutral-bg);
	border-color: var(--sh-border);
	color: var(--sh-text);
}

.modal-content {
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	background: var(--sh-surface);
}

.modal-header,
.modal-footer {
	border-color: var(--sh-border);
}

.progress {
	background: var(--sh-neutral-bg);
	border-radius: var(--sh-radius-sm);
}

.progress-bar {
	background: var(--sh-ink);
}

.close {
	color: var(--sh-text);
	text-shadow: none;
}

/* Code + preformatted */
code {
	color: var(--sh-text);
	background: var(--sh-neutral-bg);
	padding: 0.05rem 0.35rem;
	border-radius: 0.25rem;
}

pre {
	color: var(--sh-text);
}

hr {
	border-top-color: var(--sh-border);
}


/* ==========================================================================
   5. Shared small components
   ========================================================================== */

/* Uppercase micro-label */
.eyebrow {
	font-size: 0.68rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.13em;
	color: var(--sh-faint);
	margin-bottom: 0.5rem;
}

/* Page intro block */
.intro-shell {
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	background: var(--sh-surface);
	box-shadow: none;
	padding: 1.25rem;
}

.stattr-account-page .intro-shell {
	margin-top: 1rem;
}

.intro-copy {
	color: var(--sh-muted);
	margin-bottom: 0;
}

/* Dashed empty state */
.empty-state {
	border: 1px dashed var(--sh-border-strong);
	border-radius: var(--sh-radius);
	padding: 1.25rem;
	color: var(--sh-muted);
	background: var(--sh-surface-2);
}

/* Small pill label */
.section-badge {
	background: var(--sh-neutral-bg);
	color: var(--sh-neutral);
}

/* Status pills */
.status-badge {
	border-radius: var(--sh-radius-sm);
	font-weight: 500;
	font-size: 0.75rem;
	padding: 0.28rem 0.5rem;
	display: inline-block;
}

.status-badge.completed {
	background: var(--sh-positive-bg);
	color: var(--sh-positive);
}

.status-badge.pending {
	background: var(--sh-neutral-bg);
	color: var(--sh-neutral);
}

.status-badge.cancelled {
	background: var(--sh-negative-bg);
	color: var(--sh-negative);
}

/* Soft danger callout */
.alert-danger-soft {
	background: var(--sh-negative-bg);
	border: 1px solid var(--sh-border);
	color: var(--sh-negative);
	border-radius: var(--sh-radius);
}

/* Brand lockup (marketing + auth) */
.stattr-home .brand,
.stattr-auth .brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--sh-text);
	font-size: 0.98rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	font-family: var(--sh-font);
}

.stattr-home .brand-mark,
.stattr-auth .brand-mark {
	width: 1.3rem;
	height: 1.3rem;
	flex: 0 0 auto;
	display: block;
	border: 0;
	background: none;
	color: var(--sh-ink);
	fill: currentColor;
}

/* Chart series swatches — Chart.js reads its line colours from the computed
   background of these two elements, so this is also the chart palette. */
#visitors-legend {
	background-color: var(--sh-series-1) !important;
}

#pageviews-legend {
	background-color: var(--sh-series-2) !important;
}


/* ==========================================================================
   6. Auth pages
   ========================================================================== */

.stattr-auth {
	min-height: 100vh;
}

.stattr-auth .auth-shell {
	width: min(1100px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 1.5rem 0 3rem;
}

.stattr-auth .auth-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2rem;
}

.stattr-auth .auth-top-link {
	color: var(--sh-muted);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.875rem;
}

.stattr-auth .auth-top-link:hover {
	color: var(--sh-text);
}

.stattr-auth .auth-grid {
	display: grid;
	grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
	gap: 1rem;
	align-items: stretch;
}

.stattr-auth .auth-card,
.stattr-auth .auth-panel {
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	overflow: hidden;
	background: var(--sh-surface);
}

.stattr-auth .auth-card {
	padding: 1.5rem;
	box-shadow: none;
}

.stattr-auth .auth-title {
	font-size: 1.6rem;
	font-weight: 500;
	letter-spacing: -0.03em;
	margin-bottom: 0.45rem;
}

.stattr-auth .auth-subtitle {
	color: var(--sh-muted);
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

.stattr-auth .form-control {
	min-height: 2.75rem;
}

.stattr-auth .custom-control-label,
.stattr-auth .small-muted {
	color: var(--sh-muted);
}

.stattr-auth .auth-submit {
	border-radius: var(--sh-radius-sm);
	border: 1px solid var(--sh-ink);
	background: var(--sh-ink);
	color: var(--sh-on-ink);
	font-weight: 500;
	padding-top: 0.66rem;
	padding-bottom: 0.66rem;
}

.stattr-auth .auth-submit:hover {
	border-color: var(--sh-ink-hover);
	background: var(--sh-ink-hover);
	color: var(--sh-on-ink);
}

/* Secondary (social / alternate) buttons inside the auth card */
.stattr-auth .auth-card .btn-dark {
	border: 1px solid var(--sh-border-strong);
	background: var(--sh-surface);
	color: var(--sh-text);
	border-radius: var(--sh-radius-sm);
	font-weight: 500;
}

.stattr-auth .auth-card .btn-dark:hover {
	border-color: var(--sh-text);
	background: var(--sh-surface);
	color: var(--sh-text);
}

.stattr-auth .auth-footer-text {
	margin-top: 1.25rem;
	text-align: center;
	color: var(--sh-muted);
	font-size: 0.875rem;
}

/* Side panel — quiet surface instead of the old dark gradient */
.stattr-auth .auth-panel {
	position: relative;
	background: var(--sh-surface-2);
	padding: 1.5rem;
	color: var(--sh-text-2);
}

.stattr-auth .auth-panel .eyebrow {
	color: var(--sh-faint);
}

.stattr-auth .auth-panel h2 {
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.025em;
	margin: 0.5rem 0 0.75rem;
	color: var(--sh-text);
}

.stattr-auth .auth-panel p,
.stattr-auth .auth-panel li {
	color: var(--sh-muted);
	font-size: 0.9rem;
}

.stattr-auth .auth-panel ul {
	list-style: none;
	margin: 1rem 0 1.2rem;
	padding-left: 0;
}

.stattr-auth .auth-panel li {
	position: relative;
	margin-bottom: 0.5rem;
	padding-left: 1.1rem;
}

.stattr-auth .auth-panel li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62rem;
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 999px;
	border: 1px solid var(--sh-border-strong);
}


/* ==========================================================================
   7. Dashboard
   ========================================================================== */

.stattr-dashboard .container {
	max-width: 1160px;
}

.stattr-dashboard .profile-shell,
.stattr-dashboard .websites-shell {
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	background: var(--sh-surface);
	box-shadow: none;
}

.stattr-dashboard .profile-shell {
	padding: 1rem;
}

.stattr-dashboard .websites-shell {
	overflow: hidden;
}

.stattr-dashboard .avatar-ring {
	border: 1px solid var(--sh-border-strong);
	border-radius: 999px;
	padding: 2px;
	display: inline-flex;
	flex-shrink: 0;
}

.stattr-dashboard .avatar-ring img {
	border-radius: 999px;
}

.stattr-dashboard .profile-meta,
.stattr-dashboard .profile-meta a {
	color: var(--sh-muted);
	text-decoration: none;
}

.stattr-dashboard .profile-meta a:hover {
	color: var(--sh-text);
}

/* Time range pills */
.stattr-dashboard .time-range .nav-link {
	border-radius: var(--sh-radius-sm);
	border: 1px solid var(--sh-border);
	color: var(--sh-muted);
	margin-right: 0.35rem;
	background: var(--sh-surface);
	font-size: 0.82rem;
	font-weight: 500;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.stattr-dashboard .time-range .nav-link:hover {
	color: var(--sh-text);
	border-color: var(--sh-border-strong);
}

.stattr-dashboard .time-range .nav-link.active {
	border-color: var(--sh-ink);
	background: var(--sh-ink);
	color: var(--sh-on-ink);
}

.stattr-dashboard .list-head {
	font-size: 0.7rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--sh-faint);
}

.stattr-dashboard .metric-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	display: inline-flex;
	flex-shrink: 0;
	margin-right: 0.45rem;
}

.stattr-dashboard .metric-dot.visitors {
	background: var(--sh-series-1);
}

.stattr-dashboard .metric-dot.pageviews {
	background: var(--sh-series-2);
}

.stattr-dashboard .domain-link {
	color: var(--sh-text);
	font-weight: 500;
	text-decoration: none;
}

.stattr-dashboard .domain-link:hover {
	color: var(--sh-text);
	text-decoration: underline;
}


/* ==========================================================================
   Report top bar
   ==========================================================================
   Shared by the marketing dashboard preview and the real report pages, so the
   two stay in step. The preview supplies its own stroke icons; the app pages
   bring the fill-based icon set and a Bootstrap dropdown. */

.dash-topbar {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.85rem 1.1rem;
}

.dash-site {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-right: auto;
	min-width: 0;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.dash-site span,
.dash-site h1 {
	margin: 0;
	overflow: hidden;
	font: inherit;
	letter-spacing: inherit;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dash-site-mark {
	width: 1.15rem;
	height: 1.15rem;
	flex: 0 0 auto;
	fill: currentColor;
}

.dash-topbar-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

/* The overflow menu trigger. A bare row of dots has almost no hit area, so
   the button carries the padding and the dots stay decorative. */
.dash-menu {
	position: relative;
	display: flex;
}

.dash-dots-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 0.4rem;
	border: 0;
	background: none;
	border-radius: var(--sh-radius-sm);
	color: var(--sh-faint);
	cursor: pointer;
}

.dash-dots-btn:hover,
.dash-dots-btn[aria-expanded="true"] {
	color: var(--sh-text);
	background: var(--sh-hover);
}

.dash-dots {
	display: flex;
	gap: 0.16rem;
}

.dash-dots i {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
}

.dash-range {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.34rem 0.6rem;
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius-sm);
	background: var(--sh-surface);
	color: var(--sh-text-2);
	font-size: 0.8rem;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
}

a.dash-range:hover,
a.dash-range.active {
	border-color: var(--sh-border-strong);
	color: var(--sh-text);
	text-decoration: none;
}

/* The realtime window is a label, not a control */
.dash-range.is-static {
	color: var(--sh-muted);
	cursor: default;
}

.dash-range svg {
	width: 0.85rem;
	height: 0.85rem;
	flex-shrink: 0;
}

.dash-range .caret {
	width: 0.7rem;
	height: 0.7rem;
	color: var(--sh-faint);
}


/* ==========================================================================
   8. Stats pages
   ========================================================================== */

/* The reports carry the density of the marketing preview: one narrower
   column, a smaller base size, hairline borders in place of cards, and rows
   packed closer together.

   Several rules below need !important because the markup applies Bootstrap
   utilities (border-0, py-4, my-n3 …) that are themselves !important. Each
   one is paired with the utility it is answering. */

.stattr-stats-page {
	font-size: 0.82rem;
}

.stattr-stats-page .container {
	max-width: 1100px;
}

/* Site title row */
.stattr-stats-page .stattr-website-title,
.stattr-stats-page .stattr-stats-nav {
	box-shadow: none;
}

/* The shared .dash-topbar sits inside a framed card on the marketing page.
   Here it is the page header, so the side padding is dropped to keep it
   flush with the cards below it. */
.stattr-stats-page .stattr-website-title {
	padding: 0.1rem 0 0.85rem;
	margin-bottom: 0.85rem;
	border-bottom: 1px solid var(--sh-border);
}

/* Report tabs — a flat strip with an underline marking the current report,
   rather than a filled pill */
.stattr-stats-page .stattr-stats-nav {
	overflow: visible;
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	background: var(--sh-surface);
}
.stattr-stats-nav {
	border-radius: var(--sh-radius);
}

.stattr-stats-page .stattr-stats-nav .nav-link {
	color: var(--sh-muted);
	font-size: 0.8rem;
	font-weight: 500;
	border-radius: 0;
	border-bottom: 2px solid transparent;
	/* answers .py-3 .px-3 on every tab */
	padding: 0.6rem 0.65rem !important;
}

.stattr-stats-page .stattr-stats-nav .nav-link:hover {
	color: var(--sh-text);
	background: none;
}

/* .active sits on the <li> for the direct links and on the <a> for the
   dropdown toggles, so both need matching. */
.stattr-stats-page .stattr-stats-nav .nav-item.active > .nav-link,
.stattr-stats-page .stattr-stats-nav .nav-link.active {
	color: var(--sh-text);
	background: none;
	border-bottom-color: var(--sh-text);
}

/* Report cards */
.stattr-stats-page .stattr-stats-card {
	/* answers .rounded-top — without !important the trend card would keep
	   Bootstrap's 0.25rem on its top corners only. The border comes from the
	   global .card rule, so it follows the theme. */
	border-radius: var(--sh-radius-sm) !important;
}

.stattr-stats-page .card-header {
	padding: 0.6rem 0.9rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--sh-text-2);
}

.stattr-stats-page .card-body {
	padding: 0.5rem 0.9rem 0.7rem;
}

.stattr-stats-page .card-footer {
	padding: 0.5rem 0.9rem;
	font-size: 0.8rem;
}

/* The lists inside a card body are pulled up by .my-n3 to offset Bootstrap's
   1.25rem body padding. That padding is now much smaller, so the offset would
   drag the first row out of the card. */
.stattr-stats-page .card-body .list-group.my-n3 {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.stattr-stats-page .list-group-item {
	padding-top: 0.42rem;
	padding-bottom: 0.42rem;
	border-color: var(--sh-border);
}

.stattr-stats-page .list-group-flush > .list-group-item:last-child {
	border-bottom: 0;
}

/* Visitors / pageviews tiles above the trend chart */
.stattr-stats-page #trend-chart-container .py-4 {
	/* answers .py-4 on each tile */
	padding-top: 0.85rem !important;
	padding-bottom: 0.85rem !important;
}

.stattr-stats-page #trend-chart-container .h2 {
	font-size: 1.5rem;
	letter-spacing: -0.03em;
}

/* Growth deltas ship with Bootstrap's success/danger green and red, which
   are far louder than the rest of this palette. */
.stattr-stats-page .text-success {
	color: var(--sh-positive) !important;
}

.stattr-stats-page .text-danger {
	color: var(--sh-negative) !important;
}

/* Supporting type */
.stattr-stats-page .badge {
	font-size: 0.7rem;
	font-weight: 500;
	padding: 0.2rem 0.4rem;
}

.stattr-stats-page .small,
.stattr-stats-page small {
	font-size: 0.76rem;
}

/* Password-protected stats page */
.stattr-stats-page .protected-wrap {
	max-width: 640px;
	margin: 0 auto;
}

.stattr-stats-page .protected-card {
	padding: 1.5rem;
}

.stattr-stats-page .protected-title {
	margin-bottom: 0.65rem;
}

.stattr-stats-page .protected-subtitle {
	color: var(--sh-muted);
	margin-bottom: 1.25rem;
}


/* ==========================================================================
   9. Account pages
   ========================================================================== */

.stattr-account-page .container {
	max-width: 1040px;
}

.stattr-account-page .settings-grid {
	margin-top: 1rem;
}

.stattr-account-page .setting-card {
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	background: var(--sh-surface);
	box-shadow: none;
	transition: border-color 0.15s ease;
}

.stattr-account-page .setting-card:hover {
	border-color: var(--sh-border-strong);
}

.stattr-account-page .setting-icon {
	color: var(--sh-text);
	position: relative;
	width: 2.5rem;
	height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.stattr-account-page .setting-icon::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--sh-radius-sm);
	background: var(--sh-neutral-bg);
}

.stattr-account-page .setting-icon svg {
	position: relative;
	z-index: 1;
}

.stattr-account-page .setting-link {
	color: var(--sh-text);
	font-weight: 500;
	text-decoration: none;
}

.stattr-account-page .setting-link:hover {
	color: var(--sh-text);
	text-decoration: underline;
}

.stattr-account-page .setting-description {
	color: var(--sh-muted);
	font-size: 0.875rem;
}

.stattr-account-page .setting-arrow {
	color: var(--sh-faint);
}

.stattr-account-page .setting-card.setting-danger .setting-icon {
	color: var(--sh-negative);
}

.stattr-account-page .setting-card.setting-danger .setting-icon::before {
	background: var(--sh-negative-bg);
}

.stattr-account-page .setting-card.setting-danger .setting-link {
	color: var(--sh-negative);
}

.stattr-account-page .feature-item {
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius-sm);
	padding: 0.55rem 0.7rem;
	background: var(--sh-surface-2);
}

/* Payments */
.stattr-account-page .payments-head,
.stattr-account-page .detail-key {
	color: var(--sh-muted);
	font-size: 0.85rem;
}

.stattr-account-page .payment-link {
	color: var(--sh-text);
	font-weight: 500;
	text-decoration: none;
}

.stattr-account-page .payment-link:hover {
	color: var(--sh-text);
	text-decoration: underline;
}

.stattr-account-page .quick-card {
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	background: var(--sh-surface);
}


/* ==========================================================================
   10. Developer pages
   ========================================================================== */

.stattr-developers-page .container {
	max-width: 1160px;
}

.stattr-developers-page .developer-resource-card .resource-link,
.stattr-developers-page .developer-doc-card a:not(.btn),
.stattr-developers-page .developer-note-card a:not(.btn) {
	color: var(--sh-text);
	text-decoration: none;
}

.stattr-developers-page .developer-resource-card .resource-link:hover,
.stattr-developers-page .developer-doc-card a:not(.btn):hover,
.stattr-developers-page .developer-note-card a:not(.btn):hover {
	color: var(--sh-text);
	text-decoration: underline;
}

.stattr-developers-page .api-endpoint,
.stattr-developers-page .api-example {
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius-sm);
	background: var(--sh-surface-2);
	color: var(--sh-text);
}

.stattr-developers-page .api-endpoint pre,
.stattr-developers-page .api-example pre,
.stattr-developers-page pre.api-example {
	color: inherit;
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
}

.stattr-developers-page .developer-params .list-group-item {
	border-color: var(--sh-border);
	background: transparent;
}

.stattr-developers-page .developer-params code {
	color: var(--sh-text);
	background: var(--sh-neutral-bg);
	padding: 0.05rem 0.35rem;
	border-radius: 0.25rem;
}


/* ==========================================================================
   10b. Invoice (screen + print)
   ========================================================================== */

.stattr-invoice {
	background: var(--sh-ground);
	color: var(--sh-text);
	font-family: var(--sh-font);
}

.stattr-invoice :is(h1, h2, h3, h4, h5) {
	font-family: var(--sh-font);
	font-weight: 500;
	letter-spacing: -0.022em;
	color: var(--sh-text);
}

.stattr-invoice .text-muted {
	color: var(--sh-muted) !important;
}

.stattr-invoice .invoice-card {
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	background: var(--sh-surface);
	box-shadow: none;
}

.stattr-invoice .btn {
	border-radius: var(--sh-radius-sm);
	font-weight: 500;
}

.stattr-invoice .btn-primary {
	border-color: var(--sh-ink);
	background: var(--sh-ink);
	color: var(--sh-on-ink);
}

.stattr-invoice .btn-primary:hover {
	border-color: var(--sh-ink-hover);
	background: var(--sh-ink-hover);
	color: var(--sh-on-ink);
}

.stattr-invoice .list-group-item {
	border-color: var(--sh-border);
	background: transparent;
	color: var(--sh-text);
}

@media print {
	.stattr-invoice {
		background: #fff !important;
		color: #000 !important;
	}

	.stattr-invoice .invoice-card {
		box-shadow: none !important;
		border-color: #ddd !important;
	}
}


/* ==========================================================================
   11. Marketing homepage
   ========================================================================== */

.stattr-home {
	background: var(--sh-ground);
	color: var(--sh-text);
	font-family: var(--sh-font);
	font-size: 15px;
	line-height: 1.6;
}

.stattr-home .stattr-container {
	width: min(1120px, calc(100% - 3rem));
	margin: 0 auto;
}

/* Typography */
.stattr-home h1,
.stattr-home h2,
.stattr-home h3,
.stattr-home h4 {
	color: var(--sh-text);
	font-family: inherit;
	font-weight: 500;
	letter-spacing: -0.022em;
	margin: 0;
}

.stattr-home h2 {
	font-size: clamp(1.45rem, 2.2vw, 1.85rem);
	line-height: 1.2;
}

.stattr-home h3,
.stattr-home h4 {
	font-size: 0.97rem;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.stattr-home p {
	color: var(--sh-muted);
	font-size: 0.9rem;
	margin: 0;
}

.stattr-home .lede {
	font-size: 0.97rem;
	max-width: 46rem;
	margin-top: 0.7rem;
}

.stattr-home .sec-label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.68rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.13em;
	color: var(--sh-faint);
	margin-bottom: 1.15rem;
}

.stattr-home .sec-label::before {
	content: "";
	width: 0.3rem;
	height: 0.3rem;
	border: 1px solid currentColor;
	transform: rotate(45deg);
}

/* Buttons */
.stattr-home .btn-primary-stattr,
.stattr-home .btn-secondary-stattr {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border-radius: 0.5rem;
	text-decoration: none;
	padding: 0.56rem 0.95rem;
	font-size: 0.875rem;
	font-weight: 500;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.stattr-home .btn-primary-stattr {
	border: 1px solid var(--sh-ink);
	background: var(--sh-ink);
	color: var(--sh-on-ink);
}

.stattr-home .btn-primary-stattr:hover {
	background: var(--sh-ink-hover);
	border-color: var(--sh-ink-hover);
	color: var(--sh-on-ink);
}

.stattr-home .btn-secondary-stattr {
	border: 1px solid var(--sh-border-strong);
	background: var(--sh-surface);
	color: var(--sh-text);
}

.stattr-home .btn-secondary-stattr:hover {
	color: var(--sh-text);
	border-color: var(--sh-text);
}

.stattr-home .btn-primary-stattr svg,
.stattr-home .btn-secondary-stattr svg {
	width: 0.85rem;
	height: 0.85rem;
	stroke: currentColor;
	stroke-width: 1.75;
	fill: none;
}

/* Navigation */
.stattr-home .stattr-nav-wrap {
	position: sticky;
	top: 0;
	z-index: 1060;
	background: var(--sh-surface);
	border-bottom: 1px solid var(--sh-border);
}

.stattr-home .stattr-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
	min-height: 3.5rem;
}

.stattr-home .stattr-nav-links,
.stattr-home .stattr-nav-actions {
	display: flex;
	align-items: center;
}

.stattr-home .stattr-nav-links {
	gap: 1.5rem;
	margin-right: auto;
}

.stattr-home .stattr-nav-actions {
	gap: 1rem;
	margin-left: auto;
}

.stattr-home .stattr-nav-link {
	color: var(--sh-muted);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.85rem;
}

.stattr-home .stattr-nav-link:hover {
	color: var(--sh-text);
}

/* Theme switcher in the top bar — an icon-only .stattr-nav-link, so it picks
   up the same muted colour and hover as its text siblings. */
.stattr-home .stattr-nav-theme {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	cursor: pointer;
}

.stattr-home .stattr-nav-theme-icon {
	width: 1rem;
	height: 1rem;
	fill: currentColor;
}

/* Section rhythm */
.stattr-home section {
	padding: 4.5rem 0;
}

.stattr-home .band-top {
	background: var(--sh-surface);
}

.stattr-home .sec {
	border-top: 1px solid var(--sh-border);
}

.stattr-home .hero {
	position: relative;
	overflow: hidden;
	padding-top: 6.5rem;
	padding-bottom: 7.5rem;
}

.stattr-home .hero-grid,
.stattr-home .compare-grid,
.stattr-home .feature-grid,
.stattr-home .compatibility-grid,
.stattr-home .demo-grid,
.stattr-home .pricing-grid,
.stattr-home .footer-grid {
	display: grid;
	gap: 1rem;
}

/* Hero decoration */
.stattr-home .hero-deco {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.stattr-home .hero-wash {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 62%;
	background: linear-gradient(100deg, var(--sh-wash-a) 0%, var(--sh-wash-b) 46%, var(--sh-wash-c) 100%);
	-webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
	mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
}

.stattr-home .hero-grid-lines {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: 58%;
	background-image:
		linear-gradient(to right, var(--sh-grid) 1px, transparent 1px),
		linear-gradient(to bottom, var(--sh-grid) 1px, transparent 1px);
	background-size: 10.5rem 10.5rem;
	background-position: center top;
	-webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
	mask-image: linear-gradient(to left, #000 55%, transparent 100%);
}

.stattr-home .hero-rule-box {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: min(1120px, calc(100% - 3rem));
	border-right: 1px solid var(--sh-grid);
}

.stattr-home .hero-checker {
	position: absolute;
	top: 2.6rem;
	right: 2.2rem;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--sh-grid-strong);
	background-image:
		linear-gradient(45deg, var(--sh-grid-strong) 25%, transparent 25%, transparent 75%, var(--sh-grid-strong) 75%),
		linear-gradient(45deg, var(--sh-grid-strong) 25%, transparent 25%, transparent 75%, var(--sh-grid-strong) 75%);
	background-size: 0.62rem 0.62rem;
	background-position: 0 0, 0.31rem 0.31rem;
}

.stattr-home .hero-arc {
	position: absolute;
	bottom: -5rem;
	left: 45%;
	width: 15.5rem;
	height: 15.5rem;
}

.stattr-home .hero-arc circle {
	fill: none;
	stroke: var(--sh-grid-strong);
	stroke-dasharray: 2 4;
}

.stattr-home .hero-arc .hero-arc-mark {
	fill: var(--sh-faint);
	opacity: 0.18;
}

.stattr-home .hero-arc text {
	fill: var(--sh-faint);
	font-size: 0.58rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-anchor: middle;
	opacity: 0.75;
}

/* Hero content */
.stattr-home .hero-grid {
	position: relative;
	z-index: 2;
	grid-template-columns: 1fr 1fr;
	gap: 3.5rem;
	align-items: center;
}

.stattr-home .hero-eyebrow {
	font-size: 0.9rem;
	color: var(--sh-muted);
	margin-bottom: 1.35rem;
}

.stattr-home .hero h1 {
	font-size: clamp(2.3rem, 4.8vw, 3.85rem);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.035em;
	margin-bottom: 1.4rem;
	max-width: 15em;
}

.stattr-home .hero-copy {
	max-width: 27rem;
	font-size: 1rem;
	line-height: 1.55;
}

.stattr-home .hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 2rem;
}

.stattr-home .hero-actions .btn-primary-stattr,
.stattr-home .hero-actions .btn-secondary-stattr {
	padding: 0.66rem 1.15rem;
	font-size: 0.9rem;
}

.stattr-home .hero-support {
	margin-top: 1.35rem;
	font-size: 0.8rem;
	color: var(--sh-faint);
}

.stattr-home .hero-mock {
	position: relative;
}

.stattr-home .mock-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.9rem 1.5rem;
	padding: 0.28rem 0.6rem;
	border-radius: var(--sh-radius-sm);
	background: var(--sh-neutral-bg);
	color: var(--sh-muted);
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.stattr-home .mock-pill svg {
	width: 0.7rem;
	height: 0.7rem;
	stroke: none;
	fill: currentColor;
}

.stattr-home .hero-mock .referrals-mockup {
	box-shadow: var(--sh-card-shadow);
	border-radius: 0.8rem;
	padding: 1rem;
}

/* Dashboard mockup */
.stattr-home .referrals-mockup {
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	background: var(--sh-surface);
	padding: 0.9rem;
}

.stattr-home .referrals-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.85rem;
	padding: 0 0.15rem;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 500;
	color: var(--sh-faint);
}

.stattr-home .referrals-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.12rem 0.4rem;
	border: 1px solid var(--sh-border);
	border-radius: 0.25rem;
	font-size: 0.6rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--sh-muted);
}

.stattr-home .referrals-tag::before {
	content: "";
	width: 0.3rem;
	height: 0.3rem;
	border-radius: 999px;
	background: #28a745;
}

.stattr-home .referrals-table {
	border: 1px solid var(--sh-border);
	border-radius: 0.45rem;
	overflow: hidden;
}

.stattr-home .referrals-row {
	display: grid;
	grid-template-columns: 1.5fr 0.5fr 0.5fr;
	align-items: center;
	gap: 0.5rem;
	padding: 0.62rem 0.7rem;
	border-top: 1px solid var(--sh-border);
	font-size: 0.8rem;
}

.stattr-home .referrals-row:first-child {
	border-top: 0;
}

.stattr-home .referrals-row.header {
	font-size: 0.66rem;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	font-weight: 500;
	color: var(--sh-faint);
	background: var(--sh-surface-2);
}

.stattr-home .referrals-row.active {
	box-shadow: inset 0 0 0 1px var(--sh-text);
	border-radius: 0.3rem;
}

.stattr-home .referrals-source {
	color: var(--sh-text);
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	position: relative;
}

.stattr-home .referrals-source .bar {
	position: absolute;
	left: -0.3rem;
	top: 0;
	height: 100%;
	border-radius: 0.2rem;
	background: var(--sh-grid);
	z-index: 0;
}

.stattr-home .referrals-source span {
	position: relative;
	z-index: 1;
}

.stattr-home .referrals-value {
	text-align: right;
	font-variant-numeric: tabular-nums;
	color: var(--sh-muted);
}

/* Trust / platform strip */
.stattr-home .trust-strip {
	border-top: 1px solid var(--sh-border);
	padding: 2.35rem 0;
}

.stattr-home .trust-inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.15rem 2.5rem;
}

.stattr-home .trust-label {
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius-sm);
	padding: 0.4rem 0.75rem;
	font-size: 0.8rem;
	color: var(--sh-muted);
	white-space: nowrap;
}

.stattr-home .trust-logos {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem 2.35rem;
	margin-left: auto;
	margin-right: auto;
}

.stattr-home .trust-logos span {
	font-size: 1.02rem;
	font-weight: 500;
	letter-spacing: -0.025em;
	color: var(--sh-text);
	opacity: 0.55;
}

/* Divided grids */
.stattr-home .divided {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
}

.stattr-home .divided > * {
	padding: 1.5rem;
	border-left: 1px solid var(--sh-border);
}

.stattr-home .divided > *:nth-child(3n + 1) {
	border-left: 0;
	padding-left: 0;
}

.stattr-home .divided > *:nth-child(3n) {
	padding-right: 0;
}

.stattr-home .divided > *:nth-child(n + 4) {
	border-top: 1px solid var(--sh-border);
}

.stattr-home .divided svg {
	width: 1.05rem;
	height: 1.05rem;
	stroke: var(--sh-text);
	stroke-width: 1.5;
	fill: none;
	margin-bottom: 0.85rem;
}

.stattr-home .divided h3,
.stattr-home .divided h4 {
	margin-bottom: 0.35rem;
}

.stattr-home .divided p {
	font-size: 0.845rem;
	line-height: 1.55;
}

/* Flat bordered cards */
.stattr-home .feature-card,
.stattr-home .price-card,
.stattr-home .compare-col,
.stattr-home .compat-dev {
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	background: var(--sh-surface);
	padding: 1.15rem;
}

.stattr-home .feature-card svg {
	width: 1.05rem;
	height: 1.05rem;
	stroke: var(--sh-text);
	stroke-width: 1.5;
	fill: none;
	margin-bottom: 0.8rem;
}

.stattr-home .feature-card h3,
.stattr-home .compare-col h3 {
	margin-bottom: 0.35rem;
}

.stattr-home .feature-card p,
.stattr-home .compare-col p {
	font-size: 0.845rem;
}

.stattr-home .feature-grid,
.stattr-home .compare-grid,
.stattr-home .pricing-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stattr-home .compare-col strong {
	display: block;
	font-size: 0.78rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--sh-faint);
}

.stattr-home .compare-col.highlight {
	border-color: var(--sh-text);
}

/* Interactive dashboard preview inside the showcase frame. Everything is
   token-driven, so it follows the theme toggle without a second asset. */
.dash-mock {
	font-size: 0.82rem;
	color: var(--sh-text);
	background: var(--sh-surface-2);
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius);
	overflow: hidden;
}

/* Narrow columns — the auth panel beside the sign-in form */
.dash-mock-compact .dash-topbar {
	padding: 0.65rem 0.8rem;
}

.dash-mock-compact .dash-site {
	font-size: 0.95rem;
}

.dash-mock-compact .dash-body {
	padding: 0.8rem;
}

.dash-mock-compact .dash-panel {
	min-height: 0;
}

.dash-mock-compact .dash-stat {
	padding: 0.7rem 0.8rem;
}

.dash-mock-compact .dash-stat-figure {
	font-size: 1.35rem;
}

.dash-mock-compact .dash-range-label {
	display: none;
}

/* The preview draws its own stroke-based icons. Scoped to .dash-mock so it
   never reaches the app's fill-based icon set on the real report pages. */
.dash-mock .dash-range svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
}

/* Report tabs */
.dash-tabs {
	display: flex;
	gap: 0.15rem;
	padding: 0 0.6rem;
	background: var(--sh-surface);
	border-top: 1px solid var(--sh-border);
	border-bottom: 1px solid var(--sh-border);
	overflow-x: auto;
	scrollbar-width: none;
}

.dash-tabs::-webkit-scrollbar {
	display: none;
}

.dash-tab {
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	padding: 0.72rem 0.7rem;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	color: var(--sh-muted);
	font: inherit;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
}

.dash-tab svg {
	width: 0.9rem;
	height: 0.9rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.dash-tab:hover {
	color: var(--sh-text);
}

.dash-tab[aria-selected="true"] {
	color: var(--sh-text);
	border-bottom-color: var(--sh-text);
}

.dash-live {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--sh-positive);
	flex: 0 0 auto;
}

/* Panels */
.dash-body {
	padding: 1.1rem;
	background: var(--sh-surface-2);
}

.dash-panel {
	background: var(--sh-surface);
	border: 1px solid var(--sh-border);
	border-radius: var(--sh-radius-sm);
	overflow: hidden;
	/* Holds the frame steady as the reports are switched, so the page below
	   does not jump. Released on small screens where the panels are a similar
	   height anyway and the space would just be empty. */
	min-height: 19rem;
}

.dash-panel:focus-visible {
	outline: 2px solid var(--sh-text);
	outline-offset: 2px;
}

.dash-panel-head {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.72rem 0.9rem;
	border-bottom: 1px solid var(--sh-border);
	font-weight: 600;
	color: var(--sh-text-2);
}

.dash-panel-head strong {
	color: var(--sh-text);
}

/* Overview tiles */
.dash-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-bottom: 1px solid var(--sh-border);
}

.dash-stat {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.2rem 1rem;
	padding: 0.95rem 1rem;
}

.dash-stat + .dash-stat {
	border-left: 1px solid var(--sh-border);
}

.dash-stat-head {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 600;
}

.dash-swatch {
	width: 0.72rem;
	height: 0.72rem;
	border-radius: 0.2rem;
	flex: 0 0 auto;
}

.dash-swatch.series-1 {
	background: var(--sh-series-1);
}

.dash-swatch.series-2 {
	background: var(--sh-series-2);
}

.dash-stat-figure {
	grid-row: span 2;
	align-self: center;
	font-size: 1.65rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.dash-stat-delta {
	color: var(--sh-positive);
	font-size: 0.76rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

/* Trend chart */
.dash-chart {
	padding: 0.9rem 0.5rem 0.3rem;
}

.dash-chart svg {
	display: block;
	width: 100%;
	height: auto;
}

.dash-grid {
	stroke: var(--sh-border);
	stroke-width: 1;
}

.dash-axis {
	fill: var(--sh-faint);
	font-family: var(--sh-font);
	font-size: 11px;
}

.dash-line {
	fill: none;
	stroke-width: 2;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.dash-line.series-1 {
	stroke: var(--sh-series-1);
}

.dash-line.series-2 {
	stroke: var(--sh-series-2);
}

.dash-area {
	stroke: none;
}

.dash-area.series-1 {
	fill: var(--sh-series-1);
	opacity: 0.1;
}

.dash-area.series-2 {
	fill: var(--sh-series-2);
	opacity: 0.16;
}

.dash-dot.series-1 {
	fill: var(--sh-series-1);
}

/* Report tables */
.dash-table {
	padding: 0.35rem 0.9rem 0.75rem;
}

.dash-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 4.5rem 4.5rem;
	align-items: center;
	gap: 0.75rem;
	padding: 0.42rem 0;
	border-bottom: 1px solid var(--sh-border);
}

.dash-row:last-child {
	border-bottom: 0;
}

.dash-row.head {
	color: var(--sh-faint);
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.dash-row > span + span {
	text-align: right;
}

/* Tables with a single figure column */
.dash-table.cols-2 .dash-row {
	grid-template-columns: minmax(0, 1fr) 4.5rem;
}

.dash-key {
	position: relative;
	isolation: isolate;
	display: block;
	min-width: 0;
	padding: 0.22rem 0.4rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dash-key i {
	position: absolute;
	inset: 0 auto 0 0;
	display: block;
	border-radius: 0.2rem;
	background: var(--sh-hover);
	z-index: -1;
}

/* Header cells are plain spans, so they need the padding .dash-key carries
   to line up with the labels beneath them. */
.dash-row.head > span:first-child {
	padding-left: 0.4rem;
}

.dash-num {
	font-variant-numeric: tabular-nums;
	color: var(--sh-text-2);
}

/* Two report tables side by side, used by the Technology tab */
.dash-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-split > div + div {
	border-left: 1px solid var(--sh-border);
}

.dash-mock-note {
	margin: 0.9rem 0 0;
	color: var(--sh-muted);
	font-size: 0.84rem;
}

/* Steps */
.stattr-home .steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
}

.stattr-home .steps .step {
	padding: 1.5rem;
	border-left: 1px solid var(--sh-border);
}

.stattr-home .steps .step:first-child {
	border-left: 0;
	padding-left: 0;
}

.stattr-home .step-number {
	display: block;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	color: var(--sh-faint);
	margin-bottom: 0.6rem;
}

.stattr-home .step h3 {
	margin-bottom: 0.35rem;
}

.stattr-home .step p {
	font-size: 0.845rem;
}

/* Pricing */
.stattr-home .price-card {
	padding: 1.35rem;
	position: relative;
}

.stattr-home .price-card.recommended {
	border-color: var(--sh-text);
}

.stattr-home .price-label {
	position: absolute;
	top: -0.6rem;
	left: 1.35rem;
	background: var(--sh-ink);
	color: var(--sh-on-ink);
	border-radius: 0.25rem;
	padding: 0.12rem 0.42rem;
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.stattr-home .price-value {
	font-size: 1.7rem;
	font-weight: 500;
	letter-spacing: -0.03em;
	color: var(--sh-text);
	line-height: 1;
	margin: 0.5rem 0 0.4rem;
}

.stattr-home .price-period {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--sh-muted);
	letter-spacing: 0;
}

.stattr-home .price-frequency {
	color: var(--sh-muted);
	font-size: 0.82rem;
	padding-bottom: 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--sh-border);
}

.stattr-home .price-features {
	list-style: none;
	padding-left: 0;
	margin-bottom: 0;
}

.stattr-home .price-features li {
	position: relative;
	padding: 0.2rem 0 0.2rem 1.1rem;
	color: var(--sh-text-2);
	font-size: 0.845rem;
}

.stattr-home .price-features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72rem;
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 999px;
	border: 1px solid var(--sh-border-strong);
}

.stattr-home .price-features li.off {
	color: var(--sh-faint);
}

/* Privacy */
.stattr-home .privacy {
	background: var(--sh-surface);
}

.stattr-home .privacy-statements {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: 1.6rem 0;
}

.stattr-home .privacy-statement {
	padding: 1.35rem 1.5rem;
	border-left: 1px solid var(--sh-border);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: -0.015em;
	color: var(--sh-text);
}

.stattr-home .privacy-statement:first-child {
	border-left: 0;
	padding-left: 0;
}

/* Compatibility + demo */
.stattr-home .compatibility-grid,
.stattr-home .demo-grid {
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.stattr-home .compat-dev {
	padding: 1.5rem;
}

.stattr-home .compat-dev h3 {
	font-size: 1.05rem;
	font-weight: 500;
	margin-bottom: 0.4rem;
}

/* Final CTA */
.stattr-home .final-cta {
	background: var(--sh-surface);
	text-align: center;
}

.stattr-home .final-cta h2 {
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.stattr-home .final-cta .lede {
	margin-left: auto;
	margin-right: auto;
}

.stattr-home .final-cta .hero-actions {
	justify-content: center;
}

/* Footer */
.stattr-home .footer-wrap {
	border-top: 1px solid var(--sh-border);
	padding: 2.75rem 0 1.25rem;
}

.stattr-home .footer-grid {
	grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.stattr-home .footer-tagline {
	color: var(--sh-muted);
	font-size: 0.845rem;
	margin-top: 0.7rem;
}

.stattr-home .footer-col-title {
	font-size: 0.68rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.13em;
	color: var(--sh-faint);
	margin-bottom: 0.8rem;
}

.stattr-home .footer-links {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.stattr-home .footer-links a {
	color: var(--sh-muted);
	text-decoration: none;
	font-size: 0.845rem;
}

.stattr-home .footer-links a:hover {
	color: var(--sh-text);
}

.stattr-home .footer-base {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--sh-border);
	font-size: 0.78rem;
	color: var(--sh-faint);
}


/* ==========================================================================
   12. Motion
   ========================================================================== */

.stattr-home .fade-up {
	animation: stattrFadeUp 0.5s ease both;
}

.stattr-home .fade-delay-1 { animation-delay: 0.06s; }
.stattr-home .fade-delay-2 { animation-delay: 0.12s; }
.stattr-home .fade-delay-3 { animation-delay: 0.18s; }

@keyframes stattrFadeUp {
	from { opacity: 0; transform: translate3d(0, 8px, 0); }
	to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.stattr-home .fade-up {
		animation: none;
	}
}


/* ==========================================================================
   Responsive
   ========================================================================== */

/* Desktop has room to sit the auth card in the middle of the gap between the
   header and footer, so the 100vh floor is dropped (it always forced a scroll)
   and the shell is centred instead. Below lg the form is tall enough that it
   keeps starting at the top. */
@media (min-width: 992px) {
	.stattr-auth {
		min-height: 0;
		align-items: center;
	}

	.stattr-auth .auth-shell {
		padding-top: 2rem;
		padding-bottom: 2rem;
	}
}

@media (max-width: 991.98px) {
	.stattr-auth .auth-grid {
		grid-template-columns: 1fr;
	}

	/* The side panel is decorative marketing copy — below the lg breakpoint it
	   would stack above the sign-in form and push it off-screen, so it is
	   hidden and the auth card gets the full width. Affects login, register
	   and the forgot-password screen (the three views with an .auth-panel). */
	.stattr-auth .auth-panel {
		display: none;
	}

	.stattr-home .stattr-nav-links {
		display: none;
	}

	.stattr-home .stattr-container {
		width: min(1120px, calc(100% - 2rem));
	}

	/* The dashboard preview keeps its tab strip (it scrolls sideways on its
	   own) but drops to one column so the figures stay readable. */
	.dash-stats,
	.dash-split {
		grid-template-columns: minmax(0, 1fr);
	}

	.dash-stat + .dash-stat,
	.dash-split > div + div {
		border-left: 0;
		border-top: 1px solid var(--sh-border);
	}

	.stattr-home section {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	.stattr-home .hero {
		padding-top: 3.5rem;
		padding-bottom: 4rem;
	}

	.stattr-home .hero-checker,
	.stattr-home .hero-arc,
	.stattr-home .hero-rule-box {
		display: none;
	}

	.stattr-home .hero-grid-lines {
		width: 100%;
		-webkit-mask-image: linear-gradient(to top, transparent 0%, #000 100%);
		mask-image: linear-gradient(to top, transparent 0%, #000 100%);
	}

	.stattr-home .hero h1 {
		max-width: none;
	}

	.stattr-home .trust-inner {
		gap: 1rem 1.5rem;
	}

	.stattr-home .trust-logos {
		gap: 0.85rem 1.6rem;
		margin-left: 0;
	}

	.stattr-home .trust-logos span {
		font-size: 0.95rem;
	}

	.stattr-home .hero-grid,
	.stattr-home .compatibility-grid,
	.stattr-home .demo-grid {
		grid-template-columns: 1fr;
		gap: 2.25rem;
	}

	.stattr-home .divided,
	.stattr-home .feature-grid,
	.stattr-home .compare-grid,
	.stattr-home .pricing-grid,
	.stattr-home .steps,
	.stattr-home .privacy-statements {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stattr-home .compare-grid,
	.stattr-home .pricing-grid,
	.stattr-home .feature-grid {
		gap: 1rem;
	}

	.stattr-home .divided > *,
	.stattr-home .steps .step,
	.stattr-home .privacy-statement {
		padding: 1.25rem;
		border-left: 1px solid var(--sh-border);
	}

	.stattr-home .divided > *:nth-child(odd),
	.stattr-home .steps .step:nth-child(odd),
	.stattr-home .privacy-statement:nth-child(odd) {
		border-left: 0;
		padding-left: 0;
	}

	.stattr-home .divided > *:nth-child(even),
	.stattr-home .steps .step:nth-child(even),
	.stattr-home .privacy-statement:nth-child(even) {
		padding-right: 0;
	}

	.stattr-home .divided > *:nth-child(n + 3),
	.stattr-home .steps .step:nth-child(n + 3),
	.stattr-home .privacy-statement:nth-child(n + 3) {
		border-top: 1px solid var(--sh-border);
	}

	.stattr-home .footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.dash-row,
	.dash-table.cols-2 .dash-row {
		grid-template-columns: minmax(0, 1fr) 3.4rem;
	}

	.dash-row > span + span + span {
		display: none;
	}

	.dash-stat-figure {
		font-size: 1.35rem;
	}

	.dash-panel {
		min-height: 0;
	}

	.stattr-home .divided,
	.stattr-home .feature-grid,
	.stattr-home .compare-grid,
	.stattr-home .pricing-grid,
	.stattr-home .steps,
	.stattr-home .privacy-statements,
	.stattr-home .footer-grid {
		grid-template-columns: 1fr;
	}

	.stattr-home .divided > *,
	.stattr-home .steps .step,
	.stattr-home .privacy-statement {
		border-left: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.stattr-home .divided > *:nth-child(n + 2),
	.stattr-home .steps .step:nth-child(n + 2),
	.stattr-home .privacy-statement:nth-child(n + 2) {
		border-top: 1px solid var(--sh-border);
	}
}


/* ==========================================================================
   Horizontal spacing utilities
   ==========================================================================
   Bootstrap's responsive px-* utilities were purged out of app.css, and the
   project's $spacers map stops at 7, so the full 0-10 set lives here.

   Steps 0-7 are the project's own scale (0, .25, .5, 1, 1.5, 3, 4, 6rem);
   8-10 continue it in 2rem increments. This file loads after app.css, so the
   few base steps that survived purging are simply re-declared with the same
   values. Breakpoints ascend so the largest matching one wins. */

.px-0 { padding-right: 0 !important; padding-left: 0 !important; }
.px-1 { padding-right: 0.25rem !important; padding-left: 0.25rem !important; }
.px-2 { padding-right: 0.5rem !important; padding-left: 0.5rem !important; }
.px-3 { padding-right: 1rem !important; padding-left: 1rem !important; }
.px-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }
.px-5 { padding-right: 3rem !important; padding-left: 3rem !important; }
.px-6 { padding-right: 4rem !important; padding-left: 4rem !important; }
.px-7 { padding-right: 6rem !important; padding-left: 6rem !important; }
.px-8 { padding-right: 8rem !important; padding-left: 8rem !important; }
.px-9 { padding-right: 10rem !important; padding-left: 10rem !important; }
.px-10 { padding-right: 12rem !important; padding-left: 12rem !important; }

@media (min-width: 576px) {
	.px-sm-0 { padding-right: 0 !important; padding-left: 0 !important; }
	.px-sm-1 { padding-right: 0.25rem !important; padding-left: 0.25rem !important; }
	.px-sm-2 { padding-right: 0.5rem !important; padding-left: 0.5rem !important; }
	.px-sm-3 { padding-right: 1rem !important; padding-left: 1rem !important; }
	.px-sm-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }
	.px-sm-5 { padding-right: 3rem !important; padding-left: 3rem !important; }
	.px-sm-6 { padding-right: 4rem !important; padding-left: 4rem !important; }
	.px-sm-7 { padding-right: 6rem !important; padding-left: 6rem !important; }
	.px-sm-8 { padding-right: 8rem !important; padding-left: 8rem !important; }
	.px-sm-9 { padding-right: 10rem !important; padding-left: 10rem !important; }
	.px-sm-10 { padding-right: 12rem !important; padding-left: 12rem !important; }
}

@media (min-width: 768px) {
	.px-md-0 { padding-right: 0 !important; padding-left: 0 !important; }
	.px-md-1 { padding-right: 0.25rem !important; padding-left: 0.25rem !important; }
	.px-md-2 { padding-right: 0.5rem !important; padding-left: 0.5rem !important; }
	.px-md-3 { padding-right: 1rem !important; padding-left: 1rem !important; }
	.px-md-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }
	.px-md-5 { padding-right: 3rem !important; padding-left: 3rem !important; }
	.px-md-6 { padding-right: 4rem !important; padding-left: 4rem !important; }
	.px-md-7 { padding-right: 6rem !important; padding-left: 6rem !important; }
	.px-md-8 { padding-right: 8rem !important; padding-left: 8rem !important; }
	.px-md-9 { padding-right: 10rem !important; padding-left: 10rem !important; }
	.px-md-10 { padding-right: 12rem !important; padding-left: 12rem !important; }
}

@media (min-width: 992px) {
	.px-lg-0 { padding-right: 0 !important; padding-left: 0 !important; }
	.px-lg-1 { padding-right: 0.25rem !important; padding-left: 0.25rem !important; }
	.px-lg-2 { padding-right: 0.5rem !important; padding-left: 0.5rem !important; }
	.px-lg-3 { padding-right: 1rem !important; padding-left: 1rem !important; }
	.px-lg-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }
	.px-lg-5 { padding-right: 3rem !important; padding-left: 3rem !important; }
	.px-lg-6 { padding-right: 4rem !important; padding-left: 4rem !important; }
	.px-lg-7 { padding-right: 6rem !important; padding-left: 6rem !important; }
	.px-lg-8 { padding-right: 8rem !important; padding-left: 8rem !important; }
	.px-lg-9 { padding-right: 10rem !important; padding-left: 10rem !important; }
	.px-lg-10 { padding-right: 12rem !important; padding-left: 12rem !important; }
}

@media (min-width: 1200px) {
	.px-xl-0 { padding-right: 0 !important; padding-left: 0 !important; }
	.px-xl-1 { padding-right: 0.25rem !important; padding-left: 0.25rem !important; }
	.px-xl-2 { padding-right: 0.5rem !important; padding-left: 0.5rem !important; }
	.px-xl-3 { padding-right: 1rem !important; padding-left: 1rem !important; }
	.px-xl-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }
	.px-xl-5 { padding-right: 3rem !important; padding-left: 3rem !important; }
	.px-xl-6 { padding-right: 4rem !important; padding-left: 4rem !important; }
	.px-xl-7 { padding-right: 6rem !important; padding-left: 6rem !important; }
	.px-xl-8 { padding-right: 8rem !important; padding-left: 8rem !important; }
	.px-xl-9 { padding-right: 10rem !important; padding-left: 10rem !important; }
	.px-xl-10 { padding-right: 12rem !important; padding-left: 12rem !important; }
}
