/* Diamonds marketing site. Colors and type follow the app's tokens
   (plugins/diamonds/svelte/src/lib/styles/tokens.css, light theme). */
.dm-site {
	--bg: #f3f6f4; --surface: #ffffff; --surface-2: #ebf1ee;
	--text: #172624; --muted: #576966; --faint: #627471;
	--border: #dde6e2; --border-strong: #c6d3ce;
	--accent: #0b7f69; --accent-hover: #096a58; --accent-fg: #ffffff; --accent-soft: #dff3ed;
	--deep: #113a37; --deep-2: #1c5550; --deep-fg: #e2f1ed; --deep-muted: #93bdb5; --deep-accent: #3fd0ae;
	--star: #f2a516;
	--st-new: #5f7f99; --st-closed: #a3b0ad; --danger: #d1453b; --st-applied: #2f6ae0; --st-interviewing: #e07a12;
	--shadow-sm: 0 1px 2px rgb(17 58 55 / 0.06);
	--shadow-md: 0 6px 18px rgb(17 58 55 / 0.08), 0 1px 3px rgb(17 58 55 / 0.05);
	--shadow-lg: 0 20px 48px rgb(17 58 55 / 0.16);
	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
	--radius: 12px; --radius-lg: 18px;
	min-height: 100vh; background: var(--bg); color: var(--text);
	font: 15px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; color-scheme: light;
}
body { margin: 0; background: #f3f6f4; }
html { scroll-behavior: smooth; }
.dm-site [id] { scroll-margin-top: 72px; }
.dm-site *, .dm-site *::before, .dm-site *::after { box-sizing: border-box; }
.dm-site a { color: inherit; text-decoration: none; }
.dm-site h1, .dm-site h2, .dm-site h3 { margin: 0; font-family: var(--font-display); font-weight: 750; letter-spacing: -0.015em; line-height: 1.15; }
.dm-site p { margin: 0; }
.dm-site :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dm-width { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.dm-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.dm-i { display: inline-block; width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dm-skip { position: absolute; left: 16px; top: -48px; z-index: 20; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #fff !important; }
.dm-skip:focus { top: 12px; }
main:focus { outline: none; }

/* Buttons: the app's pill buttons */
.dm-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 20px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--accent-fg) !important; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s; white-space: nowrap; }
.dm-button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.dm-button:active { transform: translateY(1px); }
.dm-button-small { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.dm-button-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted) !important; }
.dm-button-ghost:hover { background: var(--surface-2); border-color: transparent; color: var(--text) !important; }
.dm-button-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text) !important; }
.dm-button-outline:hover { background: var(--surface-2); border-color: var(--border-strong); }

/* Header */
.dm-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.dm-bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.dm-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.dm-brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--deep); color: #fff; }
.dm-brand-mark .dm-i { width: 15px; height: 15px; }
.dm-brand-small { font-size: 15px; }
.dm-brand-small .dm-brand-mark { width: 24px; height: 24px; border-radius: 7px; }
.dm-brand-small .dm-brand-mark .dm-i { width: 12px; height: 12px; }
.dm-nav { display: flex; gap: 4px; margin-left: 12px; }
.dm-nav a { padding: 6px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14px; }
.dm-nav a:hover { background: var(--surface-2); color: var(--text); }
.dm-header-actions { margin-left: auto; display: flex; gap: 8px; }

/* Hero */
.dm-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: 72px 0 88px; }
.dm-hero h1 { font-size: clamp(30px, 3.75vw, 48px); }
.dm-hero h1 em { font-style: normal; color: var(--accent); }
.dm-nowrap { white-space: nowrap; }
.dm-lead { max-width: 30em; margin: 20px 0 28px !important; color: var(--muted); font-size: 17.5px; }
.dm-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* App window: a slice of the real Listings page */
.dm-preview { margin: 0; min-width: 0; }
.dm-preview figcaption { margin-top: 12px; color: var(--faint); font-size: 12px; text-align: center; }
.dm-window { display: grid; grid-template-columns: 54px 1fr; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.dm-rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; background: var(--deep); }
.dm-rail span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--deep-muted); }
.dm-rail span:first-child { margin-bottom: 8px; color: #fff; }
.dm-rail span.dm-on { background: var(--deep-2); color: #fff; }
.dm-pane { min-width: 0; padding: 18px 18px 14px; }
.dm-pane-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.dm-pane-head h2 { font-size: 19px; }
.dm-pane-head span { color: var(--faint); font-size: 12px; }
.dm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dm-chip { padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; }
.dm-chip.dm-on { border-color: transparent; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.dm-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dm-table th { padding: 6px; border-bottom: 1px solid var(--border); color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.dm-table td { padding: 10px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dm-table tr:last-child td { border-bottom: 0; }
.dm-job-title { color: var(--text); font-weight: 600; }
.dm-job-company { color: var(--muted); font-size: 11.5px; }
.dm-score { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.dm-score-high { background: var(--accent-soft); color: var(--accent); }
.dm-score-mid { background: #fdf0d9; color: #9a5b00; }
.dm-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.dm-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.dm-star { color: var(--border-strong); }
.dm-star.dm-starred { color: var(--star); fill: currentColor; }
.dm-top { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #fff3d6; color: #8a5a00; font-size: 10px; font-weight: 700; vertical-align: 1px; white-space: nowrap; }

/* Sections */
.dm-workflow, .dm-workspace, .dm-questions { padding: 88px 0; }
.dm-section-intro { max-width: 780px; margin-bottom: 44px; }
.dm-section-intro h2 { font-size: clamp(30px, 3.6vw, 40px); }
.dm-section-intro > p { margin-top: 14px; color: var(--muted); font-size: 16.5px; }

.dm-workflow { background: var(--deep); color: var(--deep-fg); }
.dm-workflow h2, .dm-workflow h3 { color: #fff; }
.dm-workflow .dm-section-intro > p { color: var(--deep-muted); }
.dm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dm-aside { display: block; margin-top: 6px; color: var(--deep-accent); font-size: 0.55em; font-weight: 700; letter-spacing: 0; }
.dm-steps article { padding: 26px; border-radius: var(--radius-lg); background: var(--deep-2); }
.dm-step-number { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 50%; background: var(--deep-accent); color: var(--deep); font-family: var(--font-display); font-size: 14px; font-weight: 800; }
.dm-steps h3 { margin-bottom: 8px; font-size: 19px; }
.dm-steps p { color: var(--deep-muted); font-size: 14.5px; }

.dm-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dm-resume { color: var(--accent); font-weight: 600; }
.dm-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.dm-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.dm-icon .dm-i { width: 19px; height: 19px; }
.dm-card h3 { margin-bottom: 6px; font-size: 18px; }
.dm-card > p { margin-bottom: 18px !important; color: var(--muted); font-size: 14.5px; }
.dm-mini { margin-top: auto; padding: 12px; border-radius: var(--radius); background: var(--surface-2); font-size: 12.5px; }
.dm-mini h4 { margin: 0 0 6px; padding-bottom: 4px; border-bottom: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--faint); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.dm-mini ul { margin: 0; padding-left: 16px; list-style: disc; }
.dm-mini li { margin: 2px 0; }
.dm-row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--border-strong); }
.dm-row:last-child { border-bottom: 0; }
.dm-row { align-items: center; }
.dm-mini h4.dm-mini-danger { color: var(--danger); border-bottom-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.dm-row-closed .dm-job-title { color: var(--faint); }

.dm-questions { padding-top: 24px; }
.dm-questions .dm-section-intro { margin-bottom: 28px; }
.dm-faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.dm-faq > div { padding: 22px 0; border-top: 1px solid var(--border-strong); }
.dm-faq h3 { display: flex; gap: 12px; margin-bottom: 8px; font-size: 18px; }
.dm-faq h3::before { content: 'Q'; color: var(--accent); font-weight: 800; }
.dm-faq p { margin-left: 26px; color: var(--muted); font-size: 14.5px; }

.dm-closing { padding-bottom: 40px; }
.dm-closing-card { padding: 64px 24px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-md); text-align: center; }
.dm-closing-card h2 { margin-bottom: 10px; font-size: clamp(28px, 3.4vw, 38px); }
.dm-closing-card p { margin-bottom: 26px; color: var(--muted); font-size: 16.5px; }

/* Footer */
.dm-footer { padding: 36px 0 48px; color: var(--faint); font-size: 13.5px; }
.dm-footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.dm-footer .dm-brand { color: var(--text); }
.dm-footer nav { display: flex; gap: 18px; margin-left: auto; }
.dm-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.dm-footer nav a:hover { color: var(--text); }
.dm-copyright { width: 100%; font-size: 12.5px; }

@media (max-width: 900px) {
	.dm-hero { grid-template-columns: 1fr; gap: 40px; }
	.dm-faq { grid-template-columns: 1fr; }
	.dm-features { grid-template-columns: 1fr; }
	.dm-steps { grid-template-columns: 1fr 1fr; }
	.dm-nav { display: none; }
	.dm-hero { padding: 44px 0 64px; }
	.dm-workflow, .dm-workspace { padding: 64px 0; }
	.dm-questions { padding-bottom: 48px; }
	.dm-footer nav { margin-left: 0; }
}
@media (max-width: 520px) {
	.dm-steps { grid-template-columns: 1fr; }
	.dm-bar { gap: 12px; }
	.dm-header-actions { gap: 2px; }
	.dm-header-actions .dm-login { padding: 0 10px; }
	.dm-window { grid-template-columns: 1fr; }
	.dm-rail { display: none; }
	.dm-table th:nth-child(4), .dm-table td:nth-child(4) { display: none; }
}
@media (max-width: 360px) {
	.dm-header-actions .dm-button .dm-i { display: none; }
	.dm-brand { font-size: 16px; }
	.dm-bar { gap: 8px; }
	.dm-header-actions .dm-button { padding: 0 12px; }
	.dm-header-actions .dm-login { padding: 0 6px; }
}

/* Signed-in visitors (html.dm-signed-in, set in marketing_base.html) see the
   top-right "Open jobsland" (.dm-in) and no Sign in / Get started (.dm-out). */
html:not(.dm-signed-in) .dm-in,
html.dm-signed-in .dm-out { display: none !important; }
