/* ==========================================================================
   Creators 50/50 — main styles
   Colour rule: green = the creator, purple = Kelly, ink/grey = everything else.
   ========================================================================== */

:root {
	--green: #2BD67B;
	--green-ink: #0B8A48;   /* green for text on light backgrounds */
	--green-deep: #0B6B38;  /* small green labels on green tint */
	--green-tint: #DDF8EA;
	--purple: #6A2BE8;
	--purple-ink: #5019C4;  /* purple links and small labels */
	--purple-tint: #EDE4FF;
	--purple-soft: #B79BFF;

	--ink: #16131F;
	--ground: #F5F3FA;
	--surface: #FFFFFF;
	--surface-2: #FBFAFD;
	--muted: #4A4557;
	--muted-2: #6A6477;
	--faint: #A8A3B6;
	--on-dark: #CFCBDA;
	--outline: #DAD4E6;
	--rule: #EEEAF5;

	--display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
	--body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

	--gutter: clamp(20px, 5vw, 120px);
	--max: 1200px;
	--section: clamp(72px, 8vw, 104px);
	--radius: 28px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--body);
	font-size: 18px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--purple-ink); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }

.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; }
.skip-link:focus { top: 16px; color: #fff; }

/* Type ------------------------------------------------------------------ */
.display-xl, .display-l, .wordmark, .calc-title, .calc-amount, .calc-half-amount, .tool-name, .lanes-who {
	font-family: var(--display);
	font-weight: 800;
	letter-spacing: -0.035em;
}
.display-xl { margin: 0; font-size: clamp(52px, 6.4vw, 84px); line-height: 0.95; letter-spacing: -0.04em; font-stretch: 85%; }
.display-xl > span { display: block; }
.display-funnel { font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.display-l { margin: 0; font-size: clamp(38px, 4.4vw, 56px); line-height: 1; font-stretch: 85%; }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 32em; }
.c-green { color: var(--green-ink); }
.c-purple { color: var(--purple); }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-green { background: var(--green); }
.dot-purple { background: var(--purple); }

/* Buttons --------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 60px; padding: 0 30px; border-radius: 999px; border: 0;
	font: inherit; font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--outline); }
.btn-sm { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.text-link { font-weight: 700; font-size: 17px; }

/* Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 243, 250, 0.92); backdrop-filter: blur(10px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand .custom-logo { max-height: 44px; width: auto; }
.wordmark { font-size: 24px; letter-spacing: -0.02em; white-space: nowrap; }
.wm-a { color: var(--green-ink); }
.wm-b { color: var(--purple); }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav .menu { display: flex; gap: 36px; margin: 0; padding: 0; list-style: none; }
.site-nav .menu a { color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.site-nav .menu a:hover { color: var(--purple-ink); }
.nav-toggle { display: none; }

@media (max-width: 1000px) {
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--outline); background: var(--surface); cursor: pointer;
	}
	.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
		display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ""; transition: transform .2s ease;
	}
	.nav-toggle-bar::before { position: absolute; top: -6px; }
	.nav-toggle-bar::after { position: absolute; top: 6px; }
	.nav-open .nav-toggle-bar { background: transparent; }
	.nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 20px;
		padding: 24px var(--gutter) 32px; background: var(--ground); border-bottom: 2px solid var(--outline);
		display: none;
	}
	.nav-open .site-nav { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 4px; }
	.site-nav .menu a { display: block; padding: 12px 0; font-size: 20px; }
}

/* Hero ------------------------------------------------------------------ */
.hero { padding-block: clamp(32px, 4vw, 56px) clamp(64px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 5vw, 64px); align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; padding-top: 24px; }
.hero-note {
	display: flex; flex-direction: column; gap: 6px; max-width: 460px;
	padding: 18px 22px; background: var(--surface); border-left: 4px solid var(--green); border-radius: 0 16px 16px 0;
	font-size: 16px; color: var(--muted);
}
.hero-note strong { color: var(--ink); font-size: 15px; }
@media (max-width: 1000px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-copy { padding-top: 0; }
}

/* Calculator ------------------------------------------------------------ */
.calc { background: var(--surface); border: 2px solid var(--outline); border-radius: var(--radius); overflow: hidden; }
.calc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 28px; border-bottom: 2px solid var(--rule); }
.calc-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.calc-badge { white-space: nowrap; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.calc-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-inputs { padding: 24px 28px; display: flex; flex-direction: column; gap: 18px; border-right: 2px solid var(--rule); }
.field-range { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 15px; }
.field-row output { font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; height: 26px; accent-color: var(--ink); cursor: pointer; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.calc input[type=number] {
	height: 46px; width: 100%; border-radius: 12px; border: 2px solid var(--outline); background: var(--surface); color: var(--ink);
	padding: 0 12px; font: inherit; font-size: 16px;
}
.calc-result { padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.calc-label { font-size: 14px; font-weight: 600; color: var(--muted-2); }
.calc-amount { font-size: clamp(64px, 6vw, 88px); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.calc-per { font-size: 17px; font-weight: 700; }
.bar { display: flex; height: 12px; margin-top: 8px; border-radius: 999px; overflow: hidden; background: var(--rule); }
.seg { display: block; height: 100%; transition: width .25s ease; }
@media (prefers-reduced-motion: reduce) { .seg { transition: none; } }
.seg-cost { background: #C9C3D6; }
.seg-time { background: #8F88A0; }
.seg-over { background: #5A5468; }
.seg-profit { background: var(--ink); }
.calc-breakdown { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.calc-breakdown div { display: flex; justify-content: space-between; gap: 12px; }
.calc-breakdown dd { margin: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--rule); }
.calc-half { padding: 18px 28px; display: flex; flex-direction: column; gap: 4px; }
.calc-half-you { background: var(--green-tint); }
.calc-half-me { background: var(--purple-tint); }
.calc-half-label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.calc-half-you .calc-half-label { color: var(--green-deep); }
.calc-half-me .calc-half-label { color: var(--purple-ink); }
.calc-half-amount { font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-sales { padding: 16px 28px 20px; font-size: 15px; color: var(--muted); line-height: 2.4; }
.calc .calc-sales input[type=number] {
	width: 72px; height: 38px; margin-inline: 4px; border-radius: 10px; border: 2px solid var(--outline);
	padding: 0 10px; font: inherit; font-size: 15px; color: var(--ink); vertical-align: middle;
}
@media (max-width: 640px) {
	.calc-body { grid-template-columns: 1fr; }
	.calc-inputs { border-right: 0; border-bottom: 2px solid var(--rule); }
	.calc-top, .calc-inputs, .calc-result, .calc-half, .calc-sales { padding-inline: 20px; }
	.calc-half-amount { font-size: 32px; }
}

/* How it works: two lanes ------------------------------------------------ */
.how { background: var(--surface); padding-block: var(--section); border-block: 2px solid var(--rule); }
.how-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; margin-bottom: 56px; }
.how-head .lede { max-width: 440px; }
.lanes-head, .lanes-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr); grid-template-areas: "you when me"; }
.lanes-head { padding-bottom: 20px; }
.lanes-head > :first-child { grid-area: you; }
.lanes-head > :last-child { grid-area: me; }
.lanes-who { display: flex; align-items: center; gap: 10px; font-size: 28px; letter-spacing: -0.02em; }
.lanes-who-you { justify-content: flex-end; padding-right: 36px; }
.lanes-who-me { padding-left: 36px; }
.lanes-rows { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--rule); }
.lanes-row { border-top: 2px solid var(--rule); }
.lanes-when {
	grid-area: when; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(90deg, transparent calc(50% - 1px), var(--ink) calc(50% - 1px), var(--ink) calc(50% + 1px), transparent calc(50% + 1px));
}
.lanes-when span { background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.lane { display: flex; flex-direction: column; gap: 14px; padding-block: 22px; }
.lane-you { grid-area: you; align-items: flex-end; justify-content: center; text-align: right; padding-right: 36px; }
.lane-me { grid-area: me; justify-content: center; padding-left: 36px; }
.lane-item { display: flex; flex-direction: column; gap: 2px; max-width: 380px; }
.lane-item strong { font-size: 19px; }
.lane-item span { font-size: 16px; color: var(--muted); }
.lane-empty { font-size: 16px; font-style: italic; color: var(--faint); }
.lane-paid { padding: 14px 18px; border-radius: 16px; font-weight: 800; font-size: 19px; align-self: flex-end; }
.lane-you .lane-paid { background: var(--green-tint); margin-top: auto; }
.lane-me .lane-paid { background: var(--purple-tint); align-self: flex-start; }
.lane-tag { display: none; }

@media (max-width: 860px) {
	.how-head { flex-direction: column; align-items: flex-start; }
	.lanes-head { display: none; }
	.lanes-row { grid-template-columns: 1fr; grid-template-areas: "when" "you" "me"; padding-block: 20px; }
	.lanes-when { justify-content: flex-start; background: none; }
	.lane { padding: 12px 0 12px 16px; text-align: left; align-items: flex-start; }
	.lane-you { border-left: 4px solid var(--green); padding-right: 0; }
	.lane-me { border-left: 4px solid var(--purple); }
	.lane-tag { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
	.lane-paid, .lane-me .lane-paid { align-self: flex-start; }
}

/* Tools ----------------------------------------------------------------- */
.tools { padding-block: var(--section); }
.tools-title { max-width: 760px; margin-bottom: 40px; }
.tool-grid { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tool-grid > li { display: flex; min-width: 0; }
.tool {
	flex: 1; min-width: 0; min-height: 240px; padding: 28px; display: flex; flex-direction: column; gap: 12px;
	background: var(--surface); border-radius: 24px; color: var(--ink); text-decoration: none;
}
.tool-live { border: 2px solid var(--outline); transition: transform .15s ease, box-shadow .15s ease; }
.tool-live:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 6px 0 var(--outline); }
.tool-soon { border: 2px dashed var(--outline); }
.tool-status { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.tool-soon .tool-status { color: var(--muted-2); }
.tool-name { font-size: clamp(22px, 1.8vw, 26px); line-height: 1.05; letter-spacing: -0.02em; overflow-wrap: break-word; }
.tool-ask { font-size: 16px; line-height: 1.45; color: var(--muted); }
.tool-link { margin-top: auto; font-weight: 700; font-size: 15px; }
.tools-foot { color: var(--muted); }
.tools-foot a { font-weight: 700; }
@media (max-width: 1000px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tool-grid { grid-template-columns: 1fr; } .tool { min-height: 0; } }

/* About ----------------------------------------------------------------- */
.about { padding-bottom: var(--section); }
.about-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-photo { aspect-ratio: 380 / 440; border-radius: 24px; overflow: hidden; background: var(--purple-tint); display: flex; align-items: center; justify-content: center; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-weight: 700; color: var(--muted); border: 2px dashed var(--purple-soft); border-radius: 24px; }
.about-copy { display: flex; flex-direction: column; gap: 20px; }
.about-copy > p:not(.about-links) { font-size: 20px; color: var(--muted); max-width: 32em; }
.about-links { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 700; font-size: 17px; }
.about-links a { color: var(--purple-ink); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 380px; } }

/* Small print ------------------------------------------------------------ */
.faq { padding-bottom: var(--section); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
.faq-head { display: flex; flex-direction: column; gap: 16px; }
.faq-head p { color: var(--muted); }
.faq-head a { color: var(--purple-ink); font-weight: 600; }
.faq-list { margin: 0; border-top: 2px solid var(--outline); }
.faq-row { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 8px 32px; padding-block: 22px; border-bottom: 2px solid var(--outline); }
.faq-row dt { font-weight: 700; font-size: 19px; }
.faq-row dd { margin: 0; font-size: 17px; color: var(--muted); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .faq-row { grid-template-columns: 1fr; } }

/* Apply ----------------------------------------------------------------- */
.apply { padding-bottom: var(--section); }
.apply-panel {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 56px);
	background: var(--ink); color: #fff; border-radius: 36px; padding: clamp(24px, 5vw, 64px);
}
.apply-copy { display: flex; flex-direction: column; gap: 22px; }
.apply-copy .display-l { font-size: clamp(40px, 5vw, 64px); line-height: 0.98; }
.apply-copy p { color: var(--on-dark); }
.apply-lede { font-size: 20px; }
.seats { display: flex; gap: 10px; }
.seat { width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--green); }
.seat-taken { background: var(--green); border-style: solid; }
.apply-form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.apply-form .field-pair { gap: 14px; }
.apply-form input[type=text], .apply-form input[type=email], .apply-form select, .apply-form textarea {
	width: 100%; min-height: 48px; border-radius: 12px; border: 2px solid var(--outline); background: #fff; color: var(--ink);
	padding: 0 14px; font: inherit; font-size: 16px;
}
.apply-form textarea { padding: 12px 14px; resize: vertical; }
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px var(--purple-tint); }
.field-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.field-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green-ink); flex: none; }
.field-check a { color: var(--purple-ink); }
.form-notice { padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 16px; }
.form-notice-ok { background: var(--green-tint); color: var(--green-deep); }
.form-notice-error { background: #FFE3DC; color: #8A1E08; }
@media (max-width: 900px) { .apply-panel { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .apply-form .field-pair { grid-template-columns: 1fr; } }

/* Pages ----------------------------------------------------------------- */
.page-wrap { padding-block: clamp(48px, 7vw, 96px); max-width: calc(820px + 2 * var(--gutter)); }
.page-title { margin-bottom: 32px; }
.entry-content { font-size: 18px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; font-size: 32px; margin-top: 1.6em; }
.entry-content a { color: var(--purple-ink); }
.entry-content h3 { font-size: 20px; margin-top: 1.4em; }
.entry-content h3 + p { margin-top: 0.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 0.5em; }
.entry-content .wp-block-table { margin-inline: 0; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 16px; overflow: hidden; font-size: 16px; }
.entry-content th, .entry-content td { padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--rule); }
.entry-content thead th { font-weight: 700; background: var(--surface-2); }
.entry-content td:not(:first-child), .entry-content th:not(:first-child) { text-align: center; width: 22%; }
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }

.entry-card { padding: 28px; margin-bottom: 20px; background: var(--surface); border: 2px solid var(--outline); border-radius: var(--radius); }
.entry-card h2 { margin: 0 0 8px; font-family: var(--display); }
.funnel-content { padding-block: var(--section); }
.funnel-content .entry-content > * { max-width: 780px; }
.funnel-content .entry-content > h2:first-child { margin-top: 0; }
.funnel-content .entry-content h2 { font-size: clamp(30px, 3vw, 40px); font-stretch: 85%; letter-spacing: -0.03em; }
.hero-funnel + .how { margin-top: 0; }
.page-404 { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.page-404 .btn { background: var(--ink); color: #fff; }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: 56px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-wordmark .wordmark { font-size: 26px; color: #fff; }
.footer-wordmark .wm-a { color: var(--green); }
.footer-wordmark .wm-b { color: var(--purple-soft); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; font-size: 16px; font-weight: 600; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--on-dark); }
.footer-links a:hover { color: #fff; }
