/*
 * Slide Science program page.
 *
 * Loaded only by page-slide-science.php, after style.css. The page sits
 * inside the site header and footer; these rules style the .ss wrapper
 * between them.
 * One centred column, one idea per section. Sand page, white bands, a navy
 * band for the waitlist; palette from the tokens at the top of style.css.
 *
 * Everything is scoped under .ss so nothing here leaks if the page is ever
 * rendered inside the site chrome.
 */

.ss {
	/* Slide Science brand — same values as style.css */
	--navy: #042249;
	--red: #c91d1d;
	--yellow: #f5ad21;
	--sand: #f8f7f6;
	--white: #fff;

	/* Neutrals */
	--ink: #0a0a0a;
	--ink-2: #44464a;
	--ink-3: #737373;
	--line: #e5e5e5;
	--line-soft: #eeedea;
	--green: #16a34a;

	--font-sans: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-serif: "DM Serif Text", Georgia, "Times New Roman", serif; /* Google Fonts, loaded by functions.php */
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	margin: 0;
	background: var(--sand);
	color: var(--ink-2);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 25px;
	-webkit-font-smoothing: antialiased;

	display: flex;
	flex-direction: column;
}

.ss main {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
}

/* On the skills page the white hero is the only section, so it takes the
   spare height too; otherwise the body's sand shows through above the footer. */
.ss .hero-skills { flex: 1 0 auto; }

.ss *,
.ss *::before,
.ss *::after { box-sizing: border-box; }

.ss h1, .ss h2, .ss h3, .ss p, .ss ul, .ss ol { margin: 0; }
.ss ul, .ss ol { padding: 0; list-style: none; }
.ss li { margin: 0; } /* style.css spaces list items; these lists use gap */
.ss img { display: block; max-width: 100%; height: auto; }
.ss a { color: inherit; }

/* ---------- Type ---------- */

.ss .display {
	font-weight: 500;
	letter-spacing: -0.025em;
	color: var(--ink);
	text-wrap: balance; /* even line lengths on wrapped headings */
}

.ss .h1 { font-size: 54px; line-height: 58px; }
.ss .h2 { font-size: 38px; line-height: 44px; }
.ss .h3 { font-size: 26px; line-height: 32px; }

/* Eyebrow. Switzer medium, not a monospace: the mono stack fell back to the
   system monospace at 11px regular and read as hairline. */
.ss .mono {
	font-size: 12.5px;
	line-height: 16px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-3);
}

/* Chips: small filled pills used as labels inside cards. */
.ss .chip {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	color: #fff;
}

.ss .chip-navy { background: var(--navy); }
.ss .chip-red  { background: var(--red); }

.ss .t     { font-size: 16px; line-height: 22px; font-weight: 500; color: var(--ink); }
.ss .body  { font-size: 16px; line-height: 25px; color: var(--ink); }
.ss .lede  { font-size: 19px; line-height: 29px; color: var(--ink); }
.ss .small { font-size: 14px; line-height: 21px; color: var(--ink-3); }

/* ---------- Layout ---------- */

/* Same frame as the site header and footer (.container-op in style.css), so
   the page's left and right edges line up with the logo and the menu. */
.ss .wrap {
	max-width: var(--container-max, 1140px);
	margin: 0 auto;
	padding: 0 var(--gutter, 15px);
}

/* The centred column every section's headline sits in. */
.ss .col {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
	max-width: 760px;
}

.ss .col .body,
.ss .col .lede { max-width: 620px; }

/* Space between a section's headline column and the thing under it. */
.ss .col + .wrap { margin-top: 48px; }

.ss section { padding: 104px 0; }
.ss .bg-white { background: var(--white); }
.ss .bg-navy  { background: var(--navy); }

.ss .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* Dark band */
.ss .dark { color: rgba(255, 255, 255, 0.8); }
.ss .dark .display { color: #fff; }
.ss .dark .mono  { color: rgba(255, 255, 255, 0.62); }
.ss .dark .body  { color: rgba(255, 255, 255, 0.8); }
.ss .dark .small { color: rgba(255, 255, 255, 0.62); }

/* ---------- Buttons ---------- */

.ss .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
}

.ss .btn svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

.ss .btn-red  { background: var(--red);  color: #fff; }
.ss .btn-red:hover  { background: #b11919; color: #fff; }
.ss .btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.ss .btn-block { width: 100%; height: 46px; }

/* ---------- Nav ---------- */

.ss .nav {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--white);
	border-bottom: 1px solid var(--line-soft);
}

.ss .nav .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 68px;
}

.ss .brand { display: flex; align-items: center; text-decoration: none; }
.ss .brand img { height: 20px; width: auto; }

/* Logo left; links and the button together on the right. */
.ss .nav .links { display: flex; gap: 28px; margin-left: auto; }

.ss .nav .links a {
	font-size: 14px;
	color: var(--ink);
	text-decoration: none;
}

.ss .nav .links a:hover { color: var(--red); }
.ss .nav .btn { height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- Hero ---------- */

.ss .hero {
	padding: 88px 0 96px;
	background: var(--white);
	/* The site header is white too; other pages' sand heroes separate
	   themselves from it, this one needs a rule. */
	border-top: 1px solid var(--line);
}

/* Left-aligned to the same container as the header, so the headline lines
   up with the logo. The lede is capped so the lines stay readable. */
.ss .hero .col {
	gap: 29px; /* 24px up 20% */
	align-items: flex-start;
	text-align: left;
	max-width: var(--container-max, 1140px); /* the .wrap width, not .col's 760px */
}

.ss .hero .h1 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: 64px;
	line-height: 68px;
	letter-spacing: -0.015em;
	max-width: 860px;
	/* Pull the lede up by the descender depth, so the gap below the headline
	   reads from the baseline rather than from the bottom of the "p". */
	margin-bottom: -0.2em;
}
.ss .hero .lede { font-size: 16px; line-height: 25px; max-width: 640px; }
/* Same gap button-to-logos as lede-to-button (the column's 29px). */
.ss .hero .actions { align-items: flex-start; gap: 29px; }

/* Program page hero: copy left, the ASCII slide right, centred on the copy.
   The slide is 576px wide and fades out from 45% across, gone by 88%
   (507px). Its column is that 507px, so the point where it turns white is
   the container's right edge and the invisible remainder overhangs; the
   hero clips the overhang, so it never causes a sideways scroll. The copy
   takes the rest, and the headline is sized to fill it on two lines.
   assets/js/ascii-slide.js sizes the slide's type to fit its box. */
.ss .hero { overflow: hidden; }

.ss .hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 507px; /* 88% of the slide's 576px */
	gap: 32px;
	align-items: center;
}

.ss .hero-art {
	width: 576px;
	-webkit-mask-image: linear-gradient(to right, #000 45%, transparent 88%);
	mask-image: linear-gradient(to right, #000 45%, transparent 88%);
	background: var(--sand);
	border-radius: 8px;
	padding: 18px;
	overflow: hidden;
}

@media (min-width: 1081px) {
	.ss .hero .h1 { font-size: 55px; line-height: 59px; }
	.ss .hero .lede { max-width: 440px; }
}

.ss .ascii-slide {
	display: inline-block; /* shrink-wraps the text so the script can measure it */
	vertical-align: top;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	overflow: hidden;
	font-family: var(--font-mono);
	font-size: 7px; /* placeholder; the script fits it to the box */
	line-height: 1.1;
	white-space: pre;
	color: #cbc7bf; /* the background dots */
	user-select: none;
	cursor: default;
}

/* Two-column hero (the slide-skills page): copy left, opt-in card right */
.ss .hero .split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 64px;
	align-items: center;
}

.ss .hero-skills .h1 { font-size: 48px; line-height: 52px; margin-bottom: 0; }

/* The four skills, listed under the headline */
.ss .skills {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 520px;
}

.ss .skills li {
	font-size: 15px;
	line-height: 23px;
	color: var(--ink);
}

/* The skill's slash command, as a code chip at the start of the line */
.ss .skill {
	display: inline-block;
	margin-right: 6px;
	padding: 2px 9px;
	border-radius: 8px;
	background: #e4ebf6; /* light tint of the navy, no border */
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: var(--navy);
	white-space: nowrap;
	vertical-align: 1px;
}

/* Even spacing on the skills page: one gap everywhere. */
.ss .hero-skills .col { gap: 24px; }
.ss .hero-skills .skills { gap: 24px; }

/* On the skills page the rating is plain: stars and text, no pill. */
.ss .hero-skills .proof {
	height: auto;
	padding: 0;
	border: 0;
}

.ss .hero .split .col { padding: 0; }

.ss .optin {
	background: var(--sand);
	border-radius: 8px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ss .optin .t {
	font-size: 18px;
	line-height: 26px;
	font-weight: 600;
	letter-spacing: 0;
	text-align: center;
	padding: 4px 8px 0;
}

.ss .optin .wl-form { max-width: none; margin-top: 18px; }
.ss .optin .btn { font-weight: 500; }

.ss .optin .wl-form .small {
	margin-top: 4px;
	font-size: 13px;
	line-height: 20px;
	text-align: center;
}

.ss .optin .works {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 13px;
	gap: 12px 14px;
}

/* "Works with:" on its own line above the logos */
.ss .optin .works-label { flex-basis: 100%; }

/* Minimal footer: one centred line */
.ss .foot.foot-min { padding: 30px 0; }
.ss .foot-min .wrap { gap: 0; }
.ss .foot.foot-min .small { border: 0; padding: 0; text-align: center; }

/* "Works with" the four AI tools, under the button */
.ss .works {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	font-size: 14px;
	line-height: 20px;
	color: var(--ink);
}

.ss .works-label { color: var(--ink); }

.ss .works-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 500;
}

.ss .works-item img { width: 18px; height: 18px; }

.ss .actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

/* Rating, as an outlined pill */
.ss .proof {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 34px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 14px;
	line-height: 20px;
	color: var(--ink);
}

/* The row is pinned to the stars' own 14px: left to itself the span came
   out 17.5px tall with the stars at its top, which set them about 2px above
   the text. The half-pixel drop centres the star shape (which sits slightly
   high in its viewBox) on the capitals and figures beside it. */
.ss .stars {
	display: flex;
	align-items: center;
	gap: 1px;
	height: 14px;
	position: relative;
	top: 0.5px;
}
.ss .stars svg { width: 14px; height: 14px; fill: var(--yellow); }

/* ---------- Logo strip ---------- */

/* Navy band, white logos and caption, like the site's own trust strip. */
.ss .logos-band { padding: 56px 0; background: var(--navy); }
.ss .logos-band .col { max-width: none; gap: 32px; }
.ss .logos-band .small { color: #fff; }

.ss .logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 52px;
}

/* Whatever colour the SVGs carry (the site's are white-fill, Atlassian's is
   black), flatten them all to white. */
.ss .logos img {
	height: 24px;
	width: auto;
	filter: brightness(0) invert(1);
}

/* Optical sizing. At one shared height the wide, dense wordmarks (Atlassian,
   Deloitte) look heavy and the compact ones (Google, the stacked Goldman
   Sachs) look small. These heights even out the area of ink each logo puts
   on the band, measured from the SVGs and damped so none strays far from 24px. */
.ss .logos img[src*="bcg"]       { height: 25px; }
.ss .logos img[src*="deloitte"]  { height: 21px; }
.ss .logos img[src*="google"]    { height: 31px; }
.ss .logos img[src*="meta"]      { height: 23px; }
.ss .logos img[src*="goldman"]   { height: 31px; }
.ss .logos img[src*="atlassian"] { height: 19px; }

/* ---------- Cards ---------- */

.ss .card {
	background: var(--sand);
	border-radius: 8px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* The problem: a short run of paragraphs in a narrow left-aligned column,
   each leader's question in bold with its diagnosis under it. */
.ss .prose {
	max-width: 720px;
	margin: 0 auto;
	background: var(--white);
	border-radius: 8px;
	padding: 40px 48px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.ss .prose .q { font-weight: 600; color: var(--ink); }

/* Each leader's question: a red cross-in-circle bullet, with the question
   and its diagnosis indented together beside it. */
.ss .fail {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	column-gap: 12px;
	row-gap: 6px;
	align-items: start;
}

.ss .fail .mark { grid-row: 1; margin-top: 3px; }
.ss .fail .body { grid-column: 2; }

.ss .mark {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--red);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ss .mark svg {
	width: 10px;
	height: 10px;
	fill: none;
	stroke: #fff;
	stroke-width: 2.5;
	stroke-linecap: round;
}

/* The vertical line between the two columns. */
.ss .diag-row .body + .body {
	border-left: 1px solid var(--line);
	padding-left: 32px;
	margin-left: -16px;
}

/* The three phases */
.ss .phase { gap: 12px; padding: 28px; background: var(--white); }

/* The four phases, two by two */
.ss .grid-4 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
.ss .phase .chip { margin-bottom: 10px; }
.ss .phase .t { font-size: 20px; line-height: 26px; }
.ss .phase .body { font-size: 15px; line-height: 23px; }

.ss .phase .list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 6px 0 2px;
	flex: 1;
}

.ss .phase .list li {
	position: relative;
	padding-left: 18px;
	font-size: 15px;
	line-height: 22px;
	color: var(--ink);
}

.ss .phase .list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 9px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ink);
}

.ss .phase .with-ai {
	margin-top: 6px;
	padding: 14px 16px;
	border-radius: 8px;
	background: var(--sand);
	font-size: 14px;
	line-height: 22px;
	color: var(--ink);
}

.ss .phase .with-ai b { font-weight: 500; color: var(--navy); }

/* The three checks */
.ss .check { align-items: center; text-align: center; padding: 32px 28px; }

/* Tabler outline icons, MIT, from tabler.io/icons */
.ss .check .ico {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: var(--ink);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	margin-bottom: 4px;
}

.ss .check .t { font-size: 18px; line-height: 24px; }
.ss .check .body { font-size: 15px; line-height: 23px; }

/* ---------- Bio: text left, photo right ---------- */

.ss .rowf {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 64px;
	align-items: center;
}

.ss .rowf .txt {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 500px;
}

.ss .bio {
	background: var(--sand);
	border-radius: 8px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ss .bio img { width: 100%; border-radius: 6px; }
.ss .bio .who { display: flex; flex-direction: column; gap: 2px; }

/* ---------- Quotes ---------- */

.ss .quote {
	background: var(--white);
	border-radius: 8px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
}

.ss .quote > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.ss .quote .body { font-size: 15px; line-height: 24px; color: var(--ink); }

.ss .quote .who {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ss .quote .who img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.ss .quote .who .t { font-size: 14px; }

/* ---------- Waitlist form (inline and in the dialog) ---------- */

.wl-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	max-width: 400px;
	margin-top: 8px;
}

.wl-form input {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 15px;
	color: #0a0a0a;
}

.wl-form input::placeholder { color: #9a9a96; }
.wl-form input:focus { outline: none; border-color: #042249; }
.wl-form .btn { margin-top: 4px; }

/* Kit's embed script hooks. The fields wrapper keeps the form's stacking,
   the spinner is hidden (the button label dims while submitting), and the
   alerts carry the error or the success message in the form's own style. */
.wl-form .formkit-fields { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.wl-form .formkit-field { margin: 0; }
.wl-form .formkit-spinner { display: none; }
.wl-form .formkit-submit[data-active] span { opacity: 0.5; }
.wl-form .formkit-submit > span { display: inline-flex; align-items: center; gap: 8px; }

.wl-form .formkit-alert {
	list-style: none;
	margin: 0;
	padding: 12px 14px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 21px;
	text-align: center;
}

.wl-form .formkit-alert:empty { display: none; }
.wl-form .formkit-alert-error { background: #fbe9e9; color: #a12626; }
.wl-form .formkit-alert-success { background: #e6f2ea; color: #1f5e36; }

/* ---------- Dialog ---------- */

.ss dialog.wl {
	width: min(440px, calc(100% - 48px));
	border: 0;
	border-radius: 8px;
	padding: 40px;
	background: var(--white);
	color: var(--ink-2);
	font-family: var(--font-sans);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.ss dialog.wl::backdrop { background: rgba(4, 34, 73, 0.62); }

.ss .wl-card { display: flex; flex-direction: column; gap: 12px; }
.ss .wl-card .wl-form { max-width: none; }

.ss .wl-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--ink-3);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ss .wl-close:hover { background: var(--sand); color: var(--ink); }

.ss .wl-close svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

/* ---------- Footer ---------- */

.ss .foot {
	padding: 56px 0 40px;
	background: var(--white);
	border-top: 1px solid var(--line-soft);
}

.ss .foot .wrap {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.ss .foot-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.ss .foot nav { display: flex; gap: 24px; flex-wrap: wrap; }

.ss .foot a {
	font-size: 14px;
	color: var(--ink-2);
	text-decoration: none;
}

.ss .foot a:hover { color: var(--ink); }

.ss .foot .small {
	border-top: 1px solid var(--line);
	padding-top: 20px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.ss .wrap { padding: 0 24px; }
	.ss section { padding: 72px 0; }
	.ss .hero { padding-top: 56px; }
	.ss .h1 { font-size: 38px; line-height: 42px; }
	.ss .h2 { font-size: 30px; line-height: 36px; }
	.ss .lede { font-size: 17px; line-height: 26px; }
	.ss .nav .links { display: none; }
	.ss .col + .wrap { margin-top: 36px; }
	.ss .grid-3, .ss .grid-4, .ss .rowf, .ss .hero .split { grid-template-columns: minmax(0, 1fr); }
	.ss .hero .split { gap: 40px; }
	.ss .prose { padding: 24px; }
	.ss .rowf { gap: 32px; }
	.ss .rowf .txt { max-width: none; }
	.ss .hero .h1 { font-size: 42px; line-height: 46px; }
	.ss .logos { gap: 32px; }
	.ss .logos img { height: 20px; }
}

/* No room for two columns: the copy takes the full width and the slide is
   hidden (its script stops drawing while it is). */
@media (max-width: 1080px) {
	.ss .hero-grid { grid-template-columns: minmax(0, 1fr); }
	.ss .hero-art { display: none; }
}

@media (max-width: 520px) {
	.ss dialog.wl { padding: 32px 24px; }
}
