/* CodeSpace Solutions — homepage */
:root {
	--cs-ink: #0F172A;
	--cs-ink-2: #1E293B;
	--cs-text: #475569;
	--cs-muted: #64748B;
	--cs-line: #E2E8F0;
	--cs-field: #CBD5E1;
	--cs-bg: #F7F8FA;
	--cs-white: #FFFFFF;
	--cs-accent: #1F7AA8;      /* logo blue, darkened for readable white text */
	--cs-accent-dark: #17618A;
	--cs-accent-soft: #E6F3F9;
	--cs-orange: #FF912A;      /* logo orange, used on dark backgrounds */
	--cs-radius: 14px;
	--cs-head: 'Space Grotesk', Inter, system-ui, sans-serif;
	--cs-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body.cs-home { margin: 0; background: var(--cs-bg); color: var(--cs-ink); font-family: var(--cs-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.cs-home *, .cs-home *::before, .cs-home *::after { box-sizing: border-box; }
.cs-home img { max-width: 100%; height: auto; }
.cs-home h1, .cs-home h2, .cs-home h3 { font-family: var(--cs-head); color: inherit; margin: 0; letter-spacing: -0.01em; }
.cs-home h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.cs-home h3 { font-size: 20px; line-height: 1.3; }
.cs-home p { margin: 0; }
.cs-home a { color: var(--cs-accent); }
.cs-home a:hover { color: var(--cs-accent-dark); }
.cs-home :focus-visible { outline: 3px solid var(--cs-orange); outline-offset: 2px; }

.cs-skip { position: absolute; left: -9999px; top: 8px; background: var(--cs-white); padding: 10px 16px; z-index: 100; }
.cs-skip:focus { left: 8px; }
.cs-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.cs-section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 44px; }
.cs-muted { color: var(--cs-text); font-size: 15px; line-height: 1.6; }
.cs-small { font-size: 12px; color: var(--cs-muted); text-align: center; }
.cs-card { background: var(--cs-white); border: 1px solid var(--cs-line); border-radius: var(--cs-radius); }

/* Buttons & links */
.cs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: var(--cs-accent); color: var(--cs-white) !important; text-decoration: none; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; font-family: var(--cs-body); transition: background .15s; }
.cs-btn:hover { background: var(--cs-accent-dark); }
.cs-btn--lg { padding: 16px 26px; border-radius: 10px; font-size: 16px; }
.cs-btn--ghost { background: transparent; border: 1px solid #475569; }
.cs-btn--ghost:hover { background: var(--cs-ink-2); }
.cs-btn--block { width: 100%; padding: 15px; border-radius: 10px; font-size: 16px; }
.cs-link { font-weight: 600; text-decoration: none; font-size: 15px; }
.cs-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cs-accent); }
.cs-eyebrow--sm { letter-spacing: 0; text-transform: none; }

/* Header */
.cs-header { background: var(--cs-white); border-bottom: 1px solid var(--cs-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .cs-header { top: 32px; }
.cs-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.cs-logo img { height: 52px; width: auto; display: block; }
.cs-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; font-weight: 500; }
.cs-nav a { color: #334155; text-decoration: none; }
.cs-header__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cs-phone { font-weight: 600; color: var(--cs-ink) !important; text-decoration: none; font-size: 15px; padding: 12px 4px; }

/* Hero */
.cs-hero { background: var(--cs-ink); color: var(--cs-white); }
.cs-hero__inner { padding-top: 88px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.cs-hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cs-pill { align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cs-orange); border: 1px solid #334155; padding: 6px 12px; border-radius: 999px; }
.cs-hero h1 { font-size: clamp(36px, 5.5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; color: var(--cs-white); }
.cs-lead { font-size: 19px; line-height: 1.6; color: #CBD5E1; max-width: 560px; }
.cs-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cs-proof { list-style: none; margin: 0; padding: 12px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: #CBD5E1; }
.cs-proof li::before { content: "✓ "; color: var(--cs-orange); font-weight: 700; }
.cs-hero__form { flex: 1 1 380px; min-width: 0; color: var(--cs-ink); padding: 28px; border: 0; border-radius: 16px; }
.cs-hero__form h2 { font-size: 22px; }

/* Forms */
.cs-form { display: flex; flex-direction: column; gap: 14px; }
.cs-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--cs-ink); }
.cs-form input, .cs-form select, .cs-form textarea { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--cs-field); border-radius: 8px; background: var(--cs-white); color: var(--cs-ink); width: 100%; }
.cs-form textarea { resize: vertical; }
.cs-form input:focus, .cs-form select:focus, .cs-form textarea:focus { border-color: var(--cs-accent); outline: 2px solid var(--cs-accent-soft); }
.cs-form__row { display: flex; flex-wrap: wrap; gap: 14px; }
.cs-form__row label { flex: 1 1 180px; }
.cs-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.cs-notice { padding: 12px 14px; border-radius: 8px; font-size: 15px; font-weight: 500; }
.cs-notice--ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.cs-notice--err { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* Platforms */
.cs-platforms { background: var(--cs-white); border-bottom: 1px solid var(--cs-line); }
.cs-platforms__inner { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: center; font-family: var(--cs-head); font-weight: 600; font-size: 18px; color: var(--cs-muted); }
.cs-platforms__label { font-family: var(--cs-body); font-weight: 500; font-size: 14px; }

/* Stats */
.cs-stats { padding-top: 64px; display: flex; flex-wrap: wrap; gap: 20px; }
.cs-stat { flex: 1 1 220px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.cs-stat__value { font-family: var(--cs-head); font-weight: 700; font-size: 40px; color: var(--cs-ink); line-height: 1.1; }

/* Services / work grids */
.cs-heading { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.cs-heading--row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.cs-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.cs-service { flex: 1 1 340px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cs-service__num { width: 44px; height: 44px; border-radius: 10px; background: var(--cs-accent-soft); color: var(--cs-accent); display: flex; align-items: center; justify-content: center; font-family: var(--cs-head); font-weight: 700; }
.cs-service .cs-link { margin-top: auto; padding-top: 4px; }

/* Process */
.cs-band { background: var(--cs-white); border-top: 1px solid var(--cs-line); border-bottom: 1px solid var(--cs-line); }
.cs-band .cs-section { padding-top: 88px; padding-bottom: 88px; }
.cs-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.cs-step { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--cs-ink); padding-top: 20px; }
.cs-step__n { font-family: var(--cs-head); font-weight: 700; font-size: 15px; color: var(--cs-accent); }

/* Work */
.cs-work { flex: 1 1 340px; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.cs-work__img { width: 100%; height: 220px; object-fit: cover; display: block; }
.cs-work__img--empty { background: var(--cs-line); display: flex; align-items: center; justify-content: center; color: var(--cs-muted); font-size: 14px; }
.cs-work__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }

/* Reviews */
.cs-dark { background: var(--cs-ink); color: var(--cs-white); }
.cs-dark .cs-section { padding-top: 88px; padding-bottom: 88px; }
.cs-dark h2 { color: var(--cs-white); }
.cs-dark__sub { font-size: 17px; color: #CBD5E1; }
.cs-dark__sub a { color: var(--cs-orange); font-weight: 600; }
.cs-reviews { display: flex; flex-wrap: wrap; gap: 20px; }
.cs-review { flex: 1 1 300px; min-width: 0; margin: 0; background: var(--cs-ink-2); border-radius: var(--cs-radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.cs-stars { color: var(--cs-orange); letter-spacing: 2px; }
.cs-review blockquote { margin: 0; padding: 0; border: 0; font-size: 15px; line-height: 1.65; color: #E2E8F0; font-style: normal; }
.cs-review figcaption { font-weight: 600; font-size: 15px; margin-top: auto; }

/* Contact */
.cs-contact { padding: 48px; border-radius: 20px; display: flex; flex-wrap: wrap; gap: 48px; }
.cs-contact__copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cs-lead--dark { font-size: 17px; }
.cs-contact__links { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.cs-contact__links a { font-weight: 600; text-decoration: none; }
.cs-contact__form { flex: 1 1 420px; min-width: 0; }

/* Footer */
.cs-footer { background: var(--cs-ink); color: #CBD5E1; font-size: 14px; }
.cs-footer__inner { padding-top: 40px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.cs-footer__logo { background: var(--cs-white); border-radius: 10px; padding: 8px 14px; display: inline-flex; }
.cs-footer__logo img { height: 40px; width: auto; display: block; }
.cs-footer__links { display: flex; gap: 20px; }
.cs-footer a { color: #CBD5E1; }
.cs-footer a:hover { color: var(--cs-white); }
.cs-footer__copy { padding-bottom: 32px; font-size: 13px; color: #94A3B8; }


/* Pricing (Growth page) */
.cs-plans { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.cs-plan { flex: 1 1 320px; min-width: 0; background: var(--cs-white); color: var(--cs-ink); border: 1px solid var(--cs-line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.cs-plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cs-plan h3 { font-size: 22px; }
.cs-plan__for { font-size: 15px; color: var(--cs-text); }
.cs-plan__price { font-family: var(--cs-head); font-weight: 700; font-size: 32px; }
.cs-plan__price span { font-family: var(--cs-body); font-weight: 500; font-size: 15px; color: var(--cs-text); }
.cs-plan__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.cs-plan__items li::before { content: "✓ "; color: var(--cs-accent); font-weight: 700; }
.cs-plan__btn { margin-top: auto; background: var(--cs-ink); }
.cs-plan__btn:hover { background: var(--cs-ink-2); }
.cs-plan--featured { background: var(--cs-ink); color: var(--cs-white); border-color: var(--cs-ink); }
.cs-plan--featured h3 { color: var(--cs-white); }
.cs-plan--featured .cs-plan__for, .cs-plan--featured .cs-plan__price span { color: #CBD5E1; }
.cs-plan--featured .cs-plan__items li::before { color: var(--cs-orange); }
.cs-plan--featured .cs-plan__btn, .cs-btn--orange { background: var(--cs-orange); color: var(--cs-ink) !important; }
.cs-plan--featured .cs-plan__btn:hover, .cs-btn--orange:hover { background: #F07F12; }
.cs-badge { font-size: 12px; font-weight: 700; background: var(--cs-orange); color: var(--cs-ink); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* Cross-sell band (Development page) */
.cs-crosssell { padding-top: 96px; }
.cs-crosssell__box { background: var(--cs-ink); color: var(--cs-white); border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cs-crosssell__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cs-crosssell h2 { font-size: 28px; color: var(--cs-white); }
.cs-crosssell p { color: #CBD5E1; font-size: 16px; }

/* Small screens */
@media (max-width: 782px) {
	.admin-bar .cs-header { top: 0; position: relative; }
	.cs-nav { display: none; }
	.cs-phone { display: none; }
	.cs-hero__inner { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
	.cs-section { padding-top: 64px; padding-bottom: 64px; }
	.cs-contact { padding: 28px; }
	.cs-crosssell { padding-top: 64px; }
	.cs-crosssell__box, .cs-plan { padding: 28px; }
	.cs-lead { font-size: 17px; }
}
