/**
 * Shared design tokens for every Pulsely surface — marketing, auth, dashboard.
 * Import this before any page-specific stylesheet.
 */

:root {
	/* Surfaces: a deliberate ramp so cards stack legibly on the page ground. */
	--bg:          #08090d;
	--bg-raised:   #0e1017;
	--surface:     #12151d;
	--surface-2:   #1a1e29;
	--surface-3:   #232838;
	--border:      #242938;
	--border-soft: #1a1e2a;

	--text:        #f0f2f7;
	--text-muted:  #99a1b3;
	--text-dim:    #6b7386;

	/* One accent, used only for the path to signup. */
	--accent:      #34e58b;
	--accent-2:    #22c46f;
	--accent-ink:  #04220f;
	--accent-glow: rgba(52, 229, 139, .16);

	--info:        #58b8ff;
	--danger:      #ff6b6b;

	--radius-sm: 7px;
	--radius:    11px;
	--radius-lg: 18px;

	--maxw: 1140px;

	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

	--shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .65);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--font-mono); }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.022em; font-weight: 640; }

::selection { background: var(--accent-glow); color: var(--text); }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ------------------------------------------------------------------ buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid var(--border);
	background: var(--surface-2);
	color: var(--text);
	border-radius: var(--radius-sm);
	padding: 10px 18px;
	font: inherit;
	font-size: 15px;
	font-weight: 550;
	cursor: pointer;
	white-space: nowrap;
	transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.btn:hover { border-color: var(--surface-3); background: var(--surface-3); }
.btn:active { transform: translateY(1px); }

/* The one thing on the page that should look clickable above all else. */
.btn-primary {
	background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
	border-color: var(--accent-2);
	color: var(--accent-ink);
	font-weight: 660;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 20px -6px var(--accent-glow);
}

.btn-primary:hover {
	background: linear-gradient(180deg, #4bf39c 0%, #2ad47a 100%);
	border-color: var(--accent);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 10px 28px -8px rgba(52, 229, 139, .4);
}

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }

.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------------- forms */

input, select, textarea {
	background: var(--bg-raised);
	border: 1px solid var(--border);
	color: var(--text);
	border-radius: var(--radius-sm);
	padding: 10px 13px;
	font: inherit;
	font-size: 15px;
	transition: border-color .16s ease, box-shadow .16s ease;
}

input::placeholder { color: var(--text-dim); }

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--accent-2);
	box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ------------------------------------------------------------------- shared */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }

.pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 560;
	letter-spacing: .02em;
	background: var(--surface-2);
	color: var(--text-muted);
	border: 1px solid var(--border);
}

.pill-ok { background: rgba(52, 229, 139, .1); color: var(--accent); border-color: rgba(52, 229, 139, .25); }
.pill-off { background: rgba(255, 107, 107, .1); color: var(--danger); border-color: rgba(255, 107, 107, .25); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
}
