/* Cozy Concepts: what every page shares. Colors, type, buttons, the nav and footer, and the doodle drawing classes.
   STYLE.md is the reference; change it first, then this file. Page-specific styles stay inline in each page. */

/* Light by default, a softer dark when the system (or the toggle) asks for it. Cool neutrals and one accent
   (blue); teal only appears inside the accent gradient, and green only means "running / all good". */
:root {
	--bg: #F7F8FA;
	--bg-2: #EEF1F5;
	--panel: #FFFFFF;
	--tint: rgba(15, 20, 30, 0.025);
	--tint-2: rgba(15, 20, 30, 0.05);
	--line: rgba(15, 20, 30, 0.09);
	--line-2: rgba(15, 20, 30, 0.15);
	--text: #0D1017;
	--text-2: #4A5263;
	--text-3: #7A8293;
	--accent: #3D6BF5;
	--accent-ink: #2C58DD;
	--accent-soft: rgba(61, 107, 245, 0.1);
	--accent-line: rgba(61, 107, 245, 0.45);
	--ok: #15803D;
	--ok-soft: rgba(22, 163, 74, 0.1);
	--grad: linear-gradient(100deg, #0D1017 0%, #3D6BF5 58%, #0E9FC0 100%);
	--btn-bg: #0D1017;
	--btn-fg: #FFFFFF;
	--btn-hover: #2A303C;
	--glow: rgba(61, 107, 245, 0.13);
	--dot: rgba(15, 20, 30, 0.09);
	--code-bg: #F3F5F8;
	--nav-bg: rgba(247, 248, 250, 0.75);
	--rm-bg: rgba(220, 38, 38, 0.08);
	--rm-fg: #B42318;
	--ad-bg: rgba(22, 163, 74, 0.09);
	--ad-fg: #15803D;
	--shadow-sm: 0 1px 2px rgba(15, 20, 30, 0.04), 0 6px 16px -10px rgba(15, 20, 30, 0.14);
	--shadow: 0 1px 2px rgba(15, 20, 30, 0.05), 0 18px 44px -22px rgba(15, 20, 30, 0.25);
	--shadow-blue: 0 30px 80px -40px rgba(61, 107, 245, 0.35), 0 2px 6px rgba(15, 20, 30, 0.04);
	--nook-ink: #0D1017;
	--nook-fill: #FFFFFF;
	/* Drawing palette (STYLE.md). Lines are ink; color is highlighter laid just off the line. Nothing outside this set. */
	--d-ink: #0D1017;
	--d-blue: #3D6BF5;
	--d-amber: #F2B04A;
	--d-sage: #5DAE7E;
	--d-coral: #EC6F57;
	--d-water: color-mix(in srgb, var(--d-blue) 62%, var(--bg));
	--d-wash: color-mix(in srgb, var(--d-blue) 10%, var(--bg));
	--d-line: 2.5px;
	--swipe-o: 0.85;
	--sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--r: 20px;
	--max: 74rem;
	--nook: 60px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #101217; --bg-2: #14171E; --panel: #171A22; --tint: rgba(255, 255, 255, 0.025); --tint-2: rgba(255, 255, 255, 0.05);
		--line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.13);
		--text: #E9ECF2; --text-2: #A2A9B7; --text-3: #6F7787;
		--accent: #6B93FF; --accent-ink: #93B1FF; --accent-soft: rgba(107, 147, 255, 0.13); --accent-line: rgba(107, 147, 255, 0.42);
		--ok: #5BCB89; --ok-soft: rgba(91, 203, 137, 0.12);
		--grad: linear-gradient(100deg, #FFFFFF 0%, #BFCDFF 50%, #86D6EA 100%);
		--btn-bg: #E9ECF2; --btn-fg: #101217; --btn-hover: #FFFFFF;
		--glow: rgba(107, 147, 255, 0.1); --dot: rgba(255, 255, 255, 0.06); --code-bg: #12151B; --nav-bg: rgba(16, 18, 23, 0.75);
		--rm-bg: rgba(248, 113, 113, 0.1); --rm-fg: #F5A3A3; --ad-bg: rgba(91, 203, 137, 0.1); --ad-fg: #8EDDB0;
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25); --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 44px -22px rgba(0, 0, 0, 0.6);
		--shadow-blue: 0 30px 80px -44px rgba(107, 147, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
		--nook-ink: #E9ECF2; --nook-fill: #1C2029;
		--d-ink: #E9ECF2; --d-blue: #6B93FF; --d-amber: #E9A84A; --d-sage: #5BCB89; --d-coral: #F08A74; --swipe-o: 0.5;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #101217; --bg-2: #14171E; --panel: #171A22; --tint: rgba(255, 255, 255, 0.025); --tint-2: rgba(255, 255, 255, 0.05);
	--line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.13);
	--text: #E9ECF2; --text-2: #A2A9B7; --text-3: #6F7787;
	--accent: #6B93FF; --accent-ink: #93B1FF; --accent-soft: rgba(107, 147, 255, 0.13); --accent-line: rgba(107, 147, 255, 0.42);
	--ok: #5BCB89; --ok-soft: rgba(91, 203, 137, 0.12);
	--grad: linear-gradient(100deg, #FFFFFF 0%, #BFCDFF 50%, #86D6EA 100%);
	--btn-bg: #E9ECF2; --btn-fg: #101217; --btn-hover: #FFFFFF;
	--glow: rgba(107, 147, 255, 0.1); --dot: rgba(255, 255, 255, 0.06); --code-bg: #12151B; --nav-bg: rgba(16, 18, 23, 0.75);
	--rm-bg: rgba(248, 113, 113, 0.1); --rm-fg: #F5A3A3; --ad-bg: rgba(91, 203, 137, 0.1); --ad-fg: #8EDDB0;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25); --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 44px -22px rgba(0, 0, 0, 0.6);
	--shadow-blue: 0 30px 80px -44px rgba(107, 147, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
	--nook-ink: #E9ECF2; --nook-fill: #1C2029;
	--d-ink: #E9ECF2; --d-blue: #6B93FF; --d-amber: #E9A84A; --d-sage: #5BCB89; --d-coral: #F08A74; --swipe-o: 0.5;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body {
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	transition: background-color 250ms ease, color 250ms ease;
}
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.02em; line-height: 1.25; }

.dim { color: var(--text-3); }
.kicker {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--mono); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--text-2);
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.lede { font-size: 1.14rem; color: var(--text-2); max-width: 40rem; }
.sec { padding: 128px 0; position: relative; }
.sec-head { max-width: 50rem; margin-bottom: 56px; }
.sec-head h2 { margin: 18px 0 18px; }
.sec-head h2:first-child { margin-top: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lede { margin: 0 auto; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
	font-weight: 600; font-size: 0.97rem; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform 160ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { border-color: var(--line-2); background: var(--panel); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-3); }

/* Doodles (STYLE.md): ink marker line with a gentle boil, highlighter color laid just off the line, no frames.
   --px is drawing units per screen pixel (set by script), so the line is the same width in every drawing. */
/* The wobble itself is a per-drawing filter set by script, sized to the drawing's scale. */
.dd { --px: 1; overflow: visible; }
.dd .k { fill: none; stroke: var(--d-ink); stroke-width: calc(2.5 * var(--px)); stroke-linecap: round; stroke-linejoin: round; }
.dd .k.thin { stroke-width: calc(1.6 * var(--px)); }
.dd .k.fill, .dd .fl { fill: var(--bg); }
.dd .led { fill: var(--d-blue); }
.dd .hl { stroke: none; transform: translate(calc(3px * var(--px)), calc(2.5px * var(--px))); }
.dd .hl-amber { fill: var(--d-amber); }
.dd .hl-water { fill: var(--d-water); }
.dd .hl-wash { fill: var(--d-wash); }
.dd .hl-sage { fill: var(--d-sage); }
.dd .hl-blue { fill: var(--d-blue); }
.dd.drawing [pathLength] { stroke-dasharray: 1 1; animation: draw 1.4s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Nav ---------- */
header.nav {
	position: sticky; top: 0; z-index: 50; background: var(--nav-bg);
	backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
	border-bottom: 1px solid transparent; transition: border-color 200ms ease;
}
header.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 1.04rem; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-size: 0.92rem; font-weight: 500; transition: color 150ms ease, background-color 150ms ease; }
.nav-links a:hover { color: var(--text); background: var(--tint-2); }
.nav-r { display: flex; align-items: center; gap: 8px; }
.nav .btn { padding: 9px 16px; font-size: 0.88rem; }
.theme-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--text-2); transition: color 150ms ease, border-color 150ms ease; }
.theme-btn:hover { color: var(--text); border-color: var(--text-3); }
.theme-btn .ico { width: 18px; height: 18px; }
.cta-short { display: none; }
.theme-btn .t-sun { display: none; }
:root[data-theme="dark"] .theme-btn .t-sun { display: block; }
:root[data-theme="dark"] .theme-btn .t-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-btn .t-sun { display: block; }
	:root:not([data-theme="light"]) .theme-btn .t-moon { display: none; }
}

footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.88rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 1020px) {
	.nav-links { display: none; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.sec { padding: 88px 0; }
	.sec-head { margin-bottom: 36px; }
	.nav .btn { padding: 8px 13px; font-size: 0.82rem; }
	.theme-btn { width: 34px; height: 34px; }
	.brand { font-size: 0.98rem; }
	.cta-long { display: none; }
	.cta-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.dd.drawing [pathLength], .dd.play * { animation: none; }
}

/* ---------- Plan picker (home support plans on /quotes, business plans on /business) ---------- */
/* The plans: pick a tier on one side, the shared list of what's included checks and crosses itself on the other. */
.plans-q { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "feats pick"; gap: 28px; align-items: start; max-width: 64rem; margin: 56px auto 0; }
.plan-pick { grid-area: pick; display: grid; gap: 14px; }
.plan-pick .btn { justify-self: stretch; }
.bill { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--tint-2); }
.bill button { appearance: none; border: 0; background: none; border-radius: 10px; padding: 10px 8px; font-weight: 600; font-size: 0.92rem; color: var(--text-2); cursor: pointer; }
.bill button[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: var(--shadow-sm); }
.bill .save { margin-left: 6px; padding: 2px 7px; border-radius: 999px; font-size: 0.74rem; color: var(--ok); background: var(--ok-soft); }
.tiers { display: grid; gap: 12px; }
.tier { position: relative; appearance: none; width: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 14px; align-items: center; text-align: left; padding: 18px 20px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--panel); cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.tier .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); transition: border 0.2s; }
.tier[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tier[aria-checked="true"] .dot { border: 6px solid var(--accent); }
.tier b { display: block; font-size: 1.08rem; font-weight: 600; }
.tier small { display: block; font-size: 0.84rem; color: var(--text-3); }
.tier .pr { text-align: right; font-size: 1.4rem; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tier .pr span { font-size: 0.82rem; font-weight: 500; letter-spacing: 0; color: var(--text-3); }
.tier .pr small { font-size: 0.74rem; letter-spacing: 0; }
.tier .rec { position: absolute; top: -11px; right: 16px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 0.72rem; font-weight: 600; }
.plan-feats { grid-area: feats; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.plan-feats h3 { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.perks { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 12px; }
.perks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 0.95rem; line-height: 1.45; }
.perks .mk { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.perks .mk svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.perks .yes .mk { background: var(--accent); color: #FFFFFF; }
.perks .no .mk { background: var(--tint-2); color: var(--text-3); }
.perks .no { color: var(--text-3); }
.perks .rate { display: block; margin-top: 3px; font-size: 0.85rem; color: var(--text-2); }
.perks s { color: var(--text-3); }
.no-plan { max-width: 64rem; margin: 28px auto 0; padding: 18px 22px; border-radius: 16px; background: var(--tint-2); color: var(--text-2); font-size: 0.97rem; line-height: 1.55; text-align: center; }
.no-plan b { color: var(--text); font-weight: 600; }
@media (max-width: 860px) {
	.no-plan { max-width: 36rem; text-align: left; }
	.plans-q { grid-template-columns: 1fr; grid-template-areas: "pick" "feats"; max-width: 36rem; }
}
