/*
 * ClinicalSec stylesheet. Calm and minimal: sage green on warm off-white,
 * translucent green tints instead of extra colors, flat components (border,
 * not shadow), one reading column. Every color comes from the tokens below.
 */
:root {
	color-scheme: light;
	--bg: #f7f6f3;
	--bg-card: #fffefc;
	--bg-inset: #f0efe9;
	--ink: #2b2e2d;
	--ink-soft: #626662;
	--ink-faint: #8d908a;
	--accent: #56716a; /* text, buttons: 5:1 on white */
	--accent-line: #5f7a72; /* borders, icons */
	--accent-hover: #48605a;
	--accent-soft: #e8ede9;
	--tint: rgba(104, 150, 128, 0.12); /* translucent green wash */
	--tint-strong: rgba(104, 150, 128, 0.22);
	--glass: rgba(247, 246, 243, 0.82);
	--on-accent: #fbfbf9;
	--line: #e3e1d9;
	--bad: #a24734;
	--review: #fff6c7;
	--review-line: #c9a400;
	--radius: 10px;
	--max: 64rem;
	--read: 44rem;
}
@media (prefers-color-scheme: dark) {
	:root {
		color-scheme: dark;
		--bg: #17191a;
		--bg-card: #1d2020;
		--bg-inset: #232726;
		--ink: #e7e5df;
		--ink-soft: #a3a69f;
		--ink-faint: #7d817b;
		--accent: #92ac9f;
		--accent-line: #92ac9f;
		--accent-hover: #aec4b8;
		--accent-soft: #232f2a;
		--tint: rgba(146, 172, 159, 0.08);
		--tint-strong: rgba(146, 172, 159, 0.14);
		--glass: rgba(23, 25, 26, 0.82);
		--on-accent: #101513;
		--line: #33362f;
		--bad: #d98f79;
		--review: #3a3410;
		--review-line: #cba456;
	}
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); margin: 0 0 0.45em; }
h2 { font-size: 1.4rem; margin: 0 0 0.6em; }
h3 { font-size: 1.08rem; margin: 0 0 0.35em; }
img, svg { max-width: 100%; }
code { background: var(--bg-inset); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: calc(var(--read) + 32px); }
section { padding: 48px 0; }
section + section { border-top: 1px solid var(--line); }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 40em; margin-top: 0; }
.small { font-size: 0.9rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* header: translucent bar that stays on top while scrolling */
.site-header {
	position: sticky; top: 0; z-index: 5;
	background: var(--glass);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo svg { color: var(--accent-line); }
.logo b { color: var(--accent); font-weight: 700; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-left: auto; font-size: 0.95rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"] { font-weight: 600; }

/* buttons: one solid style, one quiet outline, and plain text links */
.btn {
	display: inline-block; background: var(--accent); color: var(--on-accent); border: 1px solid transparent;
	border-radius: 8px; padding: 10px 18px; font: inherit; font-size: 0.95rem; font-weight: 600;
	text-decoration: none; cursor: pointer; transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--tint); }
.site-nav .btn { padding: 6px 14px; color: var(--on-accent); font-size: 0.9rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.back { display: table; font-size: 0.9rem; text-decoration: none; margin-bottom: 14px; }

/* hero: pale translucent green wash */
.hero, .page-hero {
	background:
		radial-gradient(ellipse at 85% 0%, var(--tint-strong), transparent 60%),
		linear-gradient(180deg, var(--tint), transparent);
	border-bottom: 1px solid var(--line);
}
.hero { padding: 64px 0 56px; }
.page-hero { padding: 44px 0 32px; }
.page-hero .lead { margin-bottom: 0; }
.kicker {
	display: inline-block; background: var(--accent-soft); color: var(--accent);
	text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.72rem; font-weight: 600;
	padding: 4px 11px; border-radius: 99px; margin: 0 0 14px;
}

/* link rows: the main way to click through to more detail */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows a {
	display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center;
	padding: 18px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.rows a:hover { background: var(--tint); }
.rows strong { font-weight: 600; }
.rows span { grid-column: 1; color: var(--ink-soft); font-size: 0.95rem; }
.rows a::after { content: "→"; grid-column: 2; grid-row: 1 / span 2; color: var(--accent); font-size: 1.1rem; }

/* click to show more */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
	cursor: pointer; list-style: none; padding: 16px 4px; font-weight: 600;
	display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "−"; }
summary:hover { color: var(--accent); }
details > :not(summary) { margin-left: 4px; margin-right: 4px; }
details > :last-child { margin-bottom: 20px; }

/* cards (tiers, plans) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg-card); }
.card p:last-child { margin-bottom: 0; }
.card .price { font-size: 1.2rem; font-weight: 700; margin: 8px 0 14px; }
.card.featured { border-color: var(--accent-line); }
.tag {
	display: inline-block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
	background: var(--accent-soft); color: var(--accent); padding: 2px 9px; border-radius: 99px; margin-bottom: 6px;
}

/* lists and steps */
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 26px; position: relative; margin: 6px 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 18px 46px; }
.steps > li::before {
	content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
	background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
}
.steps h3 { margin-top: 3px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-soft); font-weight: 600; font-size: 0.85rem; }

/* callouts */
.note { background: var(--accent-soft); border-radius: 8px; padding: 14px 18px; }

/* learning articles */
.prose { max-width: var(--read); }
.prose h2 { margin-top: 1.6em; }
.prose li { margin: 4px 0; }
.meta { font-size: 0.85rem; color: var(--ink-faint); margin: 0; }

/* teaching examples (illustrative, never real data) */
.example-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 20px 0; }
.example-card__label {
	font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint);
	background: var(--bg-inset); padding: 9px 18px; border-bottom: 1px solid var(--line);
}
.example-card__body { padding: 18px 18px 20px; }
.mock-email { font-size: 0.88rem; }
.mock-email .row { display: flex; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.mock-email .row span:first-child { color: var(--ink-faint); flex: none; width: 3.8rem; }
.mock-email .row span:last-child { word-break: break-word; }
.mock-email .body { padding: 14px 0 0; color: var(--ink-soft); }
.fake-btn {
	display: inline-block; margin-top: 10px; background: var(--ink-faint); color: var(--bg-card);
	padding: 7px 14px; border-radius: 6px; font-size: 0.82rem; font-weight: 600;
}
.mock-breach .domain { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.82rem; color: var(--ink-faint); margin: 0 0 10px; }
.mock-breach .row {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 9px 0;
	border-bottom: 1px solid var(--line); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.8rem;
}
.mock-breach .row:last-child { border-bottom: none; }
.mock-breach .src { color: var(--ink-faint); white-space: nowrap; }
.flags { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 7px; }
.flags li { position: relative; padding-left: 20px; font-size: 0.9rem; color: var(--ink-soft); }
.flags li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-line); }

/* forms */
form.card { max-width: var(--read); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--ink-faint); }
input, select, textarea {
	width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px;
	background: var(--bg-card); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--tint-strong); border-color: var(--accent-line); }
.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { width: auto; margin-top: 5px; accent-color: var(--accent); }
.consent label { font-weight: 400; }
.form-note { font-size: 0.9rem; color: var(--ink-soft); background: var(--bg-inset); border-radius: 7px; padding: 10px 14px; margin: 0 0 18px; }
.form-msg { min-height: 1.5em; font-weight: 600; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: var(--bad); }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 10px; }
.tier-result { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; }
.tier-result .tier-name { font-size: 1.15rem; font-weight: 700; }

/* quiet close at the end of a page */
.close { text-align: center; padding: 40px 0; }
.close p { margin: 0; color: var(--ink-soft); }

/* review notes: hidden unless review mode is on (?review) */
.review { display: none; }
.review-mode .review {
	display: block; background: var(--review); border: 2px dashed var(--review-line); border-radius: 6px;
	padding: 12px 16px; margin: 16px 0; font-size: 0.93rem;
}
.review-mode .review::before { content: "REVIEW · "; font-weight: 800; }
.review ul { margin: 6px 0 0; padding-left: 20px; }
.review-badge {
	position: fixed; bottom: 12px; right: 12px; z-index: 10; background: var(--review); border: 2px solid var(--review-line);
	color: var(--ink); padding: 6px 12px; border-radius: 99px; font-size: 0.85rem; font-weight: 700; text-decoration: none;
}

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 0.86rem; color: var(--ink-soft); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); text-decoration: underline; }
.site-footer p { margin: 0 0 8px; }
.site-footer .disclaimer { max-width: 56em; font-size: 0.8rem; color: var(--ink-faint); }

/* phones: menu folds behind a button, tighter spacing, comfortable tap sizes */
.menu-btn { display: none; }
@media (max-width: 760px) {
	body { font-size: 16px; }
	.js .menu-btn {
		display: inline-block; margin-left: auto; background: transparent; color: var(--ink); font: inherit; font-size: 0.95rem;
		font-weight: 600; border: 1px solid var(--line); border-radius: 8px; padding: 7px 14px; cursor: pointer;
	}
	.js .site-nav { display: none; }
	.js .site-nav.open { display: flex; }
	.site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
	.site-nav a { padding: 12px 4px; border-top: 1px solid var(--line); font-size: 1rem; }
	.site-nav .btn { margin: 12px 0 4px; text-align: center; padding: 11px 14px; }
	.hero { padding: 40px 0 36px; }
	.page-hero { padding: 32px 0 26px; }
	section { padding: 36px 0; }
	h1 { font-size: 1.75rem; }
	.lead { font-size: 1.02rem; }
	.cta-row { flex-direction: column; align-items: stretch; text-align: center; }
	.cta-row .more { padding: 6px 0; }
	.more { white-space: normal; }
	.card { padding: 18px; }
	.rows a { padding: 16px 2px; }
	summary { padding: 15px 2px; }
	input, select, textarea { font-size: 16px; } /* stops iOS zooming into fields */
	.form-msg, .btn[type="submit"] { width: 100%; }
	.site-footer nav { gap: 2px 16px; }
	.site-footer nav a { padding: 6px 0; }
}

/* honeypot field: off-screen for people, still present for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
