/* ==========================================================================
   Basecamp Commerce — main stylesheet
   Ported from the "Basecamp Commerce Website Redesign" design handoff.
   Two intentional departures from the base brand tokens (per the handoff):
   rounded pill buttons / 24-32px card radii, and translucent card surfaces
   that let the animated topo background read through.
   ========================================================================== */

:root {
	--bc-primary: #4A5F7F;
	--bc-secondary: #FFFFFF;
	--bc-cta: #C1666B;
	--bc-cta-hover: #A85558;
	--bc-ink: #2B2D42;
	--bc-light-accent: #F1F1F1;
	--bc-background: #252d3f;
	--bc-rose-tint: #DAA0A3;

	--bc-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--bc-font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

	--bc-ease: cubic-bezier(.2, 0, .2, 1);
	--bc-container: 100%;
	--bc-gutter: 48px;
}

/* ---------------------------------------------------------------------- */
/* Reset & base                                                           */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-snap-type: y proximity;
}

body {
	margin: 0;
	background: var(--bc-background);
	color: var(--bc-secondary);
	font-family: var(--bc-font-body);
	letter-spacing: -0.03em;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--bc-rose-tint); text-decoration: none; transition: color 140ms var(--bc-ease); }
a:hover { color: var(--bc-secondary); }

input, textarea, button {
	font-family: var(--bc-font-body);
	letter-spacing: -0.03em;
}
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, .45); }

img { max-width: 100%; display: block; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------------------------------------------------------------------- */
/* Fixed background + scrim + page wrapper                                */
/* ---------------------------------------------------------------------- */
topo-background { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.bc-scrim {
	position: fixed; inset: 0; z-index: 0;
	background: rgba(30, 36, 50, .42);
	pointer-events: none;
}

.bc-page { position: relative; z-index: 1; }

.bc-container { max-width: var(--bc-container); margin: 0 auto; width: 100%; }

/* ---------------------------------------------------------------------- */
/* Section rhythm                                                          */
/* ---------------------------------------------------------------------- */
.bc-section {
	min-height: 100vh;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	padding: 96px var(--bc-gutter);
	scroll-snap-align: start;
}
.bc-section--flush { padding: 0 var(--bc-gutter); }

/* ---------------------------------------------------------------------- */
/* Elevation eyebrow                                                       */
/* ---------------------------------------------------------------------- */
.bc-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.bc-eyebrow__rule { display: block; width: 64px; height: 2px; background: var(--bc-cta); }
.bc-eyebrow__label {
	font-size: 13px; font-weight: 600; text-transform: uppercase;
	letter-spacing: 0.08em; color: var(--bc-rose-tint);
}

/* Shared heading helpers */
.bc-h2 {
	font-family: var(--bc-font-heading); font-weight: 600;
	font-size: 44px; line-height: 1.08; letter-spacing: -0.03em;
	margin: 0 0 22px; color: var(--bc-secondary); text-wrap: pretty;
}
.bc-p { font-size: 18.5px; line-height: 1.6; margin: 0 0 18px; color: rgba(255, 255, 255, .9); }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                  */
/* ---------------------------------------------------------------------- */
.bc-btn {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 15px; font-weight: 600; padding: 17px 28px;
	border-radius: 999px; border: 0; cursor: pointer;
	transition: background-color 140ms var(--bc-ease), color 140ms var(--bc-ease), border-color 140ms var(--bc-ease);
	text-align: center; justify-content: center;
}
.bc-btn--cta { background: var(--bc-cta); color: var(--bc-secondary); }
.bc-btn--cta:hover { background: var(--bc-cta-hover); color: var(--bc-secondary); }
.bc-btn--outline { border: 2px solid var(--bc-secondary); color: var(--bc-secondary); padding: 15px 26px; }
.bc-btn--outline:hover { background: rgba(255, 255, 255, .12); color: var(--bc-secondary); }
.bc-btn--light { background: var(--bc-secondary); color: var(--bc-ink); font-weight: 700; padding: 15px 22px; font-size: 14.5px; }
.bc-btn--light:hover { background: var(--bc-light-accent); color: var(--bc-ink); }
.bc-btn--sm { padding: 11px 20px; font-size: 13.5px; }
.bc-btn--fluid { display: flex; width: 100%; }
.bc-btn--sm-pad { padding: 13px 22px; font-size: 14.5px; margin-bottom: 26px; }
.bc-btn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------------- */
/* Header                                                                   */
/* ---------------------------------------------------------------------- */
.bc-header {
	position: sticky; top: 0; z-index: 5;
	background: linear-gradient(to bottom, rgba(37, 45, 63, .96) 0%, rgba(37, 45, 63, .88) 45%, rgba(37, 45, 63, .55) 75%, rgba(37, 45, 63, 0) 100%);
	padding-bottom: 22px;
}
.bc-header__row {
	max-width: var(--bc-container); margin: 0 auto;
	padding: 18px var(--bc-gutter);
	display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.bc-header__logo { display: flex; align-items: center; }
.bc-header__logo img { height: auto; width: 155px; }

.bc-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.bc-nav a:not(.bc-btn) { color: rgba(255, 255, 255, .82); }

.bc-nav-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 40px; height: 40px; background: transparent; border: 0; cursor: pointer; padding: 0;
}
.bc-nav-toggle span { display: block; height: 2px; width: 100%; background: var(--bc-secondary); }

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */
.bc-hero { padding: 96px var(--bc-gutter) 72px; }
.bc-hero__content { max-width: 840px; }
.bc-hero__title {
	font-family: var(--bc-font-heading); font-weight: 600;
	font-size: 82px; line-height: 1.02; letter-spacing: -0.03em;
	margin: 0 0 28px; color: var(--bc-secondary); text-wrap: pretty;
}
.bc-hero__lead {
	font-size: 20px; line-height: 1.55; max-width: 560px;
	margin: 0 0 40px; color: rgba(255, 255, 255, .86);
}

/* ---------------------------------------------------------------------- */
/* Services                                                                 */
/* ---------------------------------------------------------------------- */
.bc-services { padding: 0 var(--bc-gutter); min-height: 0; align-items: initial; scroll-snap-align: initial; }
.bc-services__grid {
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	gap: 64px; align-items: start;
}

.bc-services__nav {
	position: sticky; top: 0; height: 100vh; box-sizing: border-box;
	display: flex; flex-direction: column; justify-content: center;
	padding: clamp(40px, 7vh, 88px) 0;
}
.bc-services__nav .bc-eyebrow { margin-bottom: clamp(16px, 3vh, 32px); }
.bc-services__nav .bc-h2 { font-size: clamp(32px, 4.4vh, 52px); line-height: 1.06; margin-bottom: clamp(12px, 2vh, 22px); }
.bc-services__intro {
	font-size: clamp(15px, 1.8vh, 17.5px); line-height: 1.55; max-width: 40ch;
	margin: 0 0 clamp(20px, 3.5vh, 40px); color: rgba(255, 255, 255, .8);
}

.bc-services__index {
	list-style: none; padding: 0; margin: 0 0 clamp(20px, 3.5vh, 40px);
	display: flex; flex-direction: column; gap: clamp(9px, 1.6vh, 16px);
}
.bc-services__index li {
	display: flex; align-items: center; gap: 14px;
	font-size: clamp(14px, 1.7vh, 15.5px); color: rgba(255, 255, 255, .55);
	transition: color 320ms var(--bc-ease);
}
.bc-services__index li.is-active { color: var(--bc-secondary); }
.bc-services__dot {
	width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .35);
	flex: none; transition: background 320ms var(--bc-ease);
}
.bc-services__index li.is-active .bc-services__dot { background: var(--bc-cta); }

.bc-services__nav .bc-btn { align-self: flex-start; width: auto; padding: clamp(11px, 1.7vh, 16px) 28px; }

.bc-services__cards { display: flex; flex-direction: column; gap: 32px; padding: 14vh 0; }

.bc-service-card {
	scroll-snap-align: center; min-height: 74vh; box-sizing: border-box;
	display: flex; flex-direction: column; justify-content: center;
	background: rgba(43, 45, 66, .82); border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 28px; padding: 56px 52px 58px;
	opacity: 0.28; transition: opacity 320ms var(--bc-ease);
}
.bc-service-card.is-active { opacity: 1; }
.bc-service-card--featured { background: #4A5F7F; border-color: #4A5F7F; }

.bc-service-card__num {
	font-size: 12.5px; font-weight: 600; text-transform: uppercase;
	letter-spacing: 0.08em; color: var(--bc-rose-tint); margin-bottom: 26px;
}
.bc-service-card--featured .bc-service-card__num { color: var(--bc-secondary); }

.bc-service-card__title {
	font-family: var(--bc-font-heading); font-weight: 600; font-size: 34px;
	line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 16px; color: var(--bc-secondary);
}
.bc-service-card__body { font-size: 17.5px; line-height: 1.6; margin: 0 0 30px; max-width: 44ch; color: rgba(255, 255, 255, .84); }
.bc-service-card--featured .bc-service-card__body { color: var(--bc-secondary); }

.bc-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.bc-chip {
	font-size: 13px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px; color: rgba(255, 255, 255, .86);
}
.bc-service-card--featured .bc-chip { border-color: rgba(255, 255, 255, .5); color: var(--bc-secondary); }

.bc-service-extra {
	border: 1px solid rgba(255, 255, 255, .18); border-radius: 28px;
	padding: 34px 40px 36px; background: rgba(43, 45, 66, .6);
}
.bc-service-extra__label {
	font-size: 12.5px; font-weight: 600; text-transform: uppercase;
	letter-spacing: 0.08em; color: rgba(255, 255, 255, .62); margin-bottom: 20px;
}

/* ---------------------------------------------------------------------- */
/* About + Testimonials                                                    */
/* ---------------------------------------------------------------------- */
.bc-about-block, .bc-testimonials-block {
	min-height: 100vh; box-sizing: border-box;
	display: flex; flex-direction: column; justify-content: center; padding: 96px 0;
	scroll-snap-align: start;
}

.bc-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.bc-about__portrait { border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 5; filter: grayscale(1); }
.bc-about__portrait img { width: 100%; height: 100%; object-fit: cover; }

.bc-about__copy .bc-h2 { font-size: 44px; line-height: 1.08; margin-bottom: 26px; }
.bc-about__copy .bc-p:last-of-type { margin-bottom: 34px; }

.bc-stats {
	border: 1px solid rgba(255, 255, 255, .18); border-radius: 24px; overflow: hidden;
	background: rgba(43, 45, 66, .72);
	display: grid; grid-template-columns: 1fr 1fr;
}
.bc-stats__cell {
	padding: 24px 26px;
	border-right: 1px solid rgba(255, 255, 255, .18);
	border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.bc-stats__cell:nth-child(2n) { border-right: 0; }
.bc-stats__cell:nth-child(n+3) { border-bottom: 0; }
.bc-stats__value {
	font-family: var(--bc-font-heading); font-weight: 600; font-size: 30px;
	line-height: 1; letter-spacing: -0.03em; color: var(--bc-secondary);
}
.bc-stats__label { font-size: 13px; color: rgba(255, 255, 255, .72); margin-top: 8px; }

.bc-testimonials__arrows { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 32px; }
.bc-arrow-btn {
	width: 52px; height: 52px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .5);
	background: transparent; color: var(--bc-secondary); font-size: 19px; cursor: pointer;
	transition: border-color 140ms var(--bc-ease), background-color 140ms var(--bc-ease);
}
.bc-arrow-btn:hover { border-color: var(--bc-secondary); background: rgba(255, 255, 255, .12); }

.bc-testimonial { display: none; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 56px; align-items: center; min-height: 320px; }
.bc-testimonial.is-active { display: grid; }

.bc-testimonial__logo { border-radius: 28px; overflow: hidden; aspect-ratio: 1 / 1; }
.bc-testimonial__logo img { width: 100%; height: 100%; object-fit: contain; }

.bc-testimonial__content { display: flex; flex-direction: column; justify-content: center; }
.bc-testimonial__mark {
	font-family: var(--bc-font-heading); font-weight: 600; font-size: 44px;
	line-height: 1; color: var(--bc-cta); margin-bottom: 12px;
}
.bc-testimonial__quote { font-size: 23px; line-height: 1.5; margin: 0 0 28px; color: var(--bc-secondary); text-wrap: pretty; }
.bc-testimonial__attribution { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); }
.bc-testimonial__name { font-family: var(--bc-font-heading); font-weight: 600; font-size: 19px; letter-spacing: -0.03em; color: var(--bc-secondary); }
.bc-testimonial__role { font-size: 14.5px; color: rgba(255, 255, 255, .72); margin-top: 6px; }

.bc-testimonials__footer { display: flex; align-items: center; gap: 10px; margin-top: 32px; }
.bc-dot { width: 9px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .35); transition: background 140ms var(--bc-ease); }
.bc-dot.is-active { background: var(--bc-cta); }
.bc-testimonials__note { font-size: 13.5px; color: rgba(255, 255, 255, .7); margin-left: 10px; }

/* ---------------------------------------------------------------------- */
/* Pricing                                                                  */
/* ---------------------------------------------------------------------- */
.bc-pricing__header {
	display: flex; align-items: end; justify-content: space-between;
	gap: 48px; margin-bottom: 32px; flex-wrap: wrap;
}
.bc-pricing__header .bc-h2 { margin: 0; }
.bc-pricing__note { font-size: 15.5px; line-height: 1.6; max-width: 340px; margin: 0; color: rgba(255, 255, 255, .78); }

.bc-pricing__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }

.bc-price-card {
	border: 1px solid rgba(255, 255, 255, .18); border-radius: 28px;
	background: rgba(43, 45, 66, .78); padding: 36px 34px 38px;
}
.bc-price-card--featured { border-color: #4A5F7F; background: #4A5F7F; }

.bc-price-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.bc-price-card__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, .62); }
.bc-price-card--featured .bc-price-card__label { color: var(--bc-secondary); }

.bc-badge {
	font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
	padding: 6px 12px; border-radius: 999px; background: var(--bc-cta); color: var(--bc-secondary);
}

.bc-price-card__name { font-family: var(--bc-font-heading); font-weight: 600; font-size: 24px; letter-spacing: -0.03em; margin: 0 0 16px; color: var(--bc-secondary); }
.bc-price-card__price { font-family: var(--bc-font-heading); font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; color: var(--bc-secondary); }
.bc-price-card__suffix { font-size: 20px; font-weight: 500; color: rgba(255, 255, 255, .7); }
.bc-price-card__desc { font-size: 14.5px; color: rgba(255, 255, 255, .78); margin: 0 0 26px; }
.bc-price-card--featured .bc-price-card__desc { color: var(--bc-secondary); }

.bc-price-card__features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; color: rgba(255, 255, 255, .86); }
.bc-price-card--featured .bc-price-card__features { color: var(--bc-secondary); }
.bc-price-card__features li.is-bold { font-weight: 600; }

.bc-pricing__footnote { margin-top: 32px; text-align: center; font-size: 19px; color: rgba(255, 255, 255, .86); }
.bc-pricing__footnote a { color: var(--bc-rose-tint); font-weight: 600; border-bottom: 1px solid rgba(218, 160, 163, .5); }

/* ---------------------------------------------------------------------- */
/* Contact                                                                  */
/* ---------------------------------------------------------------------- */
.bc-contact__grid { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(40%, 440px); gap: 64px; align-items: stretch; }

.bc-contact__left { display: flex; flex-direction: column; justify-content: space-between; }
.bc-contact__title { font-family: var(--bc-font-heading); font-weight: 600; font-size: 46px; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; color: var(--bc-secondary); }
.bc-contact__lead { font-size: 18px; line-height: 1.55; max-width: 420px; margin: 0 0 32px; color: rgba(255, 255, 255, .86); }

.bc-contact__details {
	display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 44px;
	padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .2);
}
.bc-contact__detail-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bc-rose-tint); margin-bottom: 7px; }
.bc-contact__detail-value { font-size: 16px; color: var(--bc-secondary); white-space: nowrap; }

.bc-contact__form-panel {
	border: 1px solid rgba(255, 255, 255, .2); border-radius: 28px;
	background: #2B2D42; padding: 34px 34px 36px;
}
.bc-contact__form-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, .62); margin-bottom: 22px; }

.bc-form { display: flex; flex-direction: column; gap: 16px; }
.bc-form__field { display: flex; flex-direction: column; gap: 8px; }
.bc-form__field span { font-size: 13px; font-weight: 600; color: var(--bc-secondary); }
.bc-form__field input, .bc-form__field textarea {
	border: 2px solid rgba(255, 255, 255, .35); border-radius: 16px; background: transparent;
	color: var(--bc-secondary); padding: 12px 16px; font-size: 14.5px;
	transition: border-color 140ms var(--bc-ease);
}
.bc-form__field input:focus, .bc-form__field textarea:focus { outline: none; border-color: var(--bc-rose-tint); }
.bc-form__field textarea { resize: vertical; }

.bc-form__status { font-size: 14px; margin: 4px 0 0; min-height: 1.4em; }
.bc-form__status.is-success { color: #9CD8B4; }
.bc-form__status.is-error { color: var(--bc-rose-tint); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */
.bc-footer { padding: 0 var(--bc-gutter); }
.bc-footer__inner {
	max-width: var(--bc-container); margin: 0 auto;
	border-top: 1px solid rgba(255, 255, 255, .24); padding: 36px 0 44px;
	display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.bc-footer__copy { font-size: 13px; color: rgba(255, 255, 255, .7); }

/* ---------------------------------------------------------------------- */
/* Placeholder art for missing assets (portrait, testimonial logos)        */
/* ---------------------------------------------------------------------- */
.bc-image-placeholder {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .06); border: 1px dashed rgba(255, 255, 255, .3);
	color: rgba(255, 255, 255, .5); font-size: 13px; text-align: center; padding: 16px;
	min-height: 180px;
}
.bc-image-placeholder--square { aspect-ratio: 1 / 1; min-height: 0; }

/* ==========================================================================
   Responsive — breakpoints per the design handoff
   ========================================================================== */

/* ≤1024px */
@media (max-width: 1024px) {
	:root { --bc-gutter: 24px; }

	.bc-hero__title { font-size: 56px; }

	.bc-about__grid { grid-template-columns: 1fr; }
	.bc-about__portrait { max-width: 420px; margin: 0 auto 32px; }

	.bc-contact__grid { grid-template-columns: 1fr; }
	.bc-contact__form-panel { order: 2; }
	.bc-contact__left { order: 1; }

	.bc-pricing__grid { grid-template-columns: 1fr; }
}

/* ≤900px — services drops sticky/scroll-driven behavior */
@media (max-width: 900px) {
	.bc-services__grid { grid-template-columns: 1fr; gap: 40px; }
	.bc-services__nav { position: static; height: auto; padding: 0 0 40px; }
	.bc-services__index { display: none; }

	.bc-services__cards { padding: 0 0 40px; }
	.bc-service-card { min-height: auto; opacity: 1 !important; scroll-snap-align: none; }
}

/* ≤768px */
@media (max-width: 768px) {
	.bc-section { padding: 64px var(--bc-gutter); scroll-snap-align: none; }
	.bc-section--flush { padding: 0 var(--bc-gutter); }
	.bc-about-block, .bc-testimonials-block { padding: 64px 0; scroll-snap-align: none; }

	html { scroll-snap-type: none; }

	.bc-testimonial { grid-template-columns: 1fr; text-align: left; }
	.bc-testimonial__logo { max-width: 180px; }

	.bc-header__row { padding: 16px var(--bc-gutter); }
	.bc-nav-toggle { display: flex; }
	.bc-nav {
		position: fixed; inset: 0; top: 0; z-index: 10;
		background: rgba(30, 36, 50, .98);
		flex-direction: column; justify-content: center; align-items: center;
		gap: 24px; font-size: 18px;
		transform: translateY(-100%); opacity: 0; pointer-events: none;
		transition: transform 220ms var(--bc-ease), opacity 220ms var(--bc-ease);
	}
	.bc-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
	.bc-nav a.bc-btn { margin-top: 8px; }
}
