/* ==========================================================================
   GeeksGIF — design tokens
   Signature: the filmstrip. GIFs are frames, so dividers, numbering, and
   the hero visual are all built from a sprocket-hole frame-strip motif.
   ========================================================================== */

:root {
	--ink: #1B1A3A;
	--ink-soft: #33315C;
	--paper: #F5F3FB;
	--white: #FFFFFF;
	--coral: #FF5D73;
	--coral-dark: #E84763;
	--flash: #FFC93C;
	--grape: #7B61FF;
	--ash: #6E6C8A;
	--line: #E3E1F0;

	--font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, monospace;

	--radius: 16px;
	--radius-sm: 10px;
	--wrap: 1180px;
	--shadow: 0 20px 45px -25px rgba(27, 26, 58, 0.35);
}

/* ---- Reset / base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--paper);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--ink);
	line-height: 1.12;
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 999; background: var(--ink); color: var(--white);
	padding: 10px 16px; border-radius: 8px; width: auto; height: auto; clip: auto;
}
:focus-visible { outline: 3px solid var(--grape); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }

.eyebrow {
	font-family: var(--font-mono);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.75rem;
	color: var(--coral-dark);
	font-weight: 500;
	margin: 0 0 12px;
}
.eyebrow--center { text-align: center; }
.text-accent { color: var(--coral); }

.section { padding: 88px 0; }
.section--tint { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h2, .section--dark .eyebrow { color: var(--white); }
.section__title { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.section__footnote { text-align: left; margin-top: 24px; }
.section__footnote a { color: var(--coral-dark); font-weight: 600; }
.section__footnote--center { text-align: center; color: var(--ash); }

/* ---- Buttons --------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
	border: 2px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
	cursor: pointer;
}
.btn--primary { background: var(--coral); color: var(--white); }
.btn--primary:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { border-color: var(--coral); color: var(--coral-dark); }
.btn--ghost { color: var(--ink); font-weight: 600; padding: 12px 14px; }
.btn--ghost:hover { color: var(--coral-dark); }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; margin: 18px 0; }

/* ---- Header ------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,243,251,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px; }
.site-logo { display: inline-flex; align-items: center; gap: 8px; }
.site-logo__mark { color: var(--coral); display: inline-flex; }
.site-logo__text { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.nav-menu { display: flex; gap: 28px; }
.nav-menu a { font-weight: 500; color: var(--ink-soft); }
.nav-menu a:hover { color: var(--coral-dark); }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle__bar { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---- Filmstrip divider (signature element) ---------------------------- */
.filmstrip {
	display: flex; align-items: center; justify-content: center; gap: 18px;
	padding: 18px 0; background: var(--ink); color: var(--paper);
}
.filmstrip__holes {
	flex: 1; max-width: 340px; height: 14px;
	background-image: radial-gradient(circle, var(--ash) 2.5px, transparent 2.6px);
	background-size: 22px 14px; background-repeat: repeat-x; opacity: 0.7;
}
.filmstrip__label {
	font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--flash); white-space: nowrap;
}

/* ---- Hero -------------------------------------------------------------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
.hero__lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 12px; }
.hero__note { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ash); }

.frame-stack { position: relative; height: 340px; }
.frame-stack__frame {
	position: absolute; width: 240px; height: 170px; border-radius: var(--radius);
	border: 2px solid var(--ink); box-shadow: var(--shadow);
	display: flex; align-items: flex-end; padding: 14px;
	font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; font-weight: 600;
}
.frame-stack__frame span { background: var(--ink); color: var(--white); padding: 4px 8px; border-radius: 6px; }
.frame-stack__frame--1 { background: var(--flash); top: 0; left: 10px; transform: rotate(-6deg); z-index: 1; }
.frame-stack__frame--2 { background: var(--coral); top: 60px; left: 110px; transform: rotate(3deg); z-index: 2; }
.frame-stack__frame--3 { background: var(--grape); color: var(--white); top: 150px; left: 30px; transform: rotate(-2deg); z-index: 3; }
.frame-stack__frame--3 span { background: var(--white); color: var(--ink); }

/* ---- Grids & cards ------------------------------------------------------ */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature-card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--paper); display: flex; align-items: center; justify-content: center; color: var(--coral-dark); margin-bottom: 16px; }
.feature-card p { color: var(--ash); margin-bottom: 0; }

.use-case { padding: 22px; border-left: 3px solid var(--coral); }
.use-case p { color: var(--ash); margin-bottom: 0; }

/* ---- Steps --------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.step__num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--coral-dark); display: block; margin-bottom: 10px; }
.step p { color: var(--ash); margin-bottom: 0; }

/* ---- Testimonials ---------------------------------------------------------- */
.testimonial { background: var(--ink-soft); border-radius: var(--radius); padding: 26px; }
.testimonial p { font-size: 1.05rem; margin-bottom: 14px; }
.testimonial footer { font-family: var(--font-mono); font-size: 0.78rem; color: var(--flash); }

/* ---- Pricing --------------------------------------------------------------- */
.pricing-card { position: relative; text-align: left; }
.pricing-card--featured { border-color: var(--coral); box-shadow: var(--shadow); }
.pricing-card__badge { position: absolute; top: -12px; right: 20px; background: var(--coral); color: var(--white); font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.pricing-card__tagline { color: var(--ash); margin-bottom: 18px; }
.pricing-card__price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; margin-bottom: 4px; }
.pricing-card__price span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--ash); }
.pricing-card__features li { padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.94rem; }
.pricing-card__features li:first-child { border-top: none; }

/* ---- FAQ -------------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--coral); margin-left: 12px; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 14px 0 0; color: var(--ash); }

/* ---- CTA banner --------------------------------------------------------------- */
.cta-banner { background: var(--grape); color: var(--white); padding: 70px 0; }
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.cta-banner h2 { color: var(--white); margin: 0; }
.cta-banner .btn--primary { background: var(--white); color: var(--grape); }
.cta-banner .btn--primary:hover { background: var(--flash); color: var(--ink); }

/* ---- Feature rows (Features page) ---------------------------------------------- */
.feature-rows { display: flex; flex-direction: column; gap: 64px; }
.feature-row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }
.feature-row__visual { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); height: 200px; display: flex; align-items: center; justify-content: center; }
.feature-row__icon { width: 64px; height: 64px; border-radius: 16px; background: var(--paper); color: var(--coral-dark); display: flex; align-items: center; justify-content: center; }
.feature-row__icon .icon { width: 32px; height: 32px; }
.feature-row__num { font-family: var(--font-mono); color: var(--coral-dark); font-size: 0.85rem; }
.feature-row__copy p { color: var(--ash); }

/* ---- Blog / posts ---------------------------------------------------------------- */
.page-header { padding: 64px 0 40px; text-align: center; }
.page-header--post { text-align: left; padding-bottom: 24px; }
.page-header__lede { color: var(--ash); max-width: 60ch; margin: 12px auto 0; }
.page-header--post .page-header__lede { margin: 12px 0 0; }
.page-header__meta { color: var(--ash); font-family: var(--font-mono); font-size: 0.8rem; }

.category-strip__list { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.category-pill { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.85rem; font-weight: 600; background: var(--paper); }
.category-pill:hover { border-color: var(--coral); color: var(--coral-dark); }

.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card__thumb { display: block; aspect-ratio: 16/10; background: var(--ink); position: relative; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__thumb-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--flash); opacity: 0.6; }
.post-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card__cat { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--coral-dark); font-weight: 600; }
.post-card__title { font-size: 1.15rem; margin: 8px 0; }
.post-card__excerpt { color: var(--ash); font-size: 0.94rem; flex: 1; }
.post-card__meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ash); margin: 0; }

.prose h2 { margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose ul li { margin-bottom: 0.4em; }
.prose a { color: var(--coral-dark); font-weight: 600; text-decoration: underline; }
.post-thumb { margin: 0 auto 32px; border-radius: var(--radius); overflow: hidden; }

/* ---- Footer ------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand__blurb { color: #B4B2D6; max-width: 32ch; }
.footer-col__title { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--flash); margin-bottom: 14px; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: #D8D6EE; }
.footer-menu a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; }
.footer-bottom p { margin: 0; color: #9391B8; font-size: 0.85rem; }

/* ---- Responsive ---------------------------------------------------------------------- */
@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
	.frame-stack { height: 260px; margin-top: 24px; }
	.grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: 1fr; }
	.feature-row, .feature-row--reverse { grid-template-columns: 1fr; direction: ltr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.site-header__actions .btn--ghost { display: none; }
	.nav-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); display: none; }
	.nav-menu.is-open { display: flex; }
	.nav-menu li { padding: 10px 0; border-top: 1px solid var(--line); }
	.nav-toggle { display: flex; }
	.grid--3, .grid--4 { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.cta-banner__inner { flex-direction: column; text-align: center; }
}

/* ---- Reduced motion ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn { transition: none; }
}
