:root {
	--paper: #FBF7EE;
	--paper-2: #F3ECDD;
	--card: #FFFDF8;
	--ink: #1C1917;
	--ink-2: #3F3A34;
	--muted: #5B5147;
	--muted-2: #6B5F52;
	--red: #B3261E;
	--red-dark: #8E1D17;
	--navy: #14213D;
	--stamp: #9B2C2C;
	--line: rgba(28, 25, 23, .1);
	--radius: 14px;
	--airmail: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--card) 14px 20px, var(--navy) 20px 34px, var(--card) 34px 40px);
	--font: 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.container { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

.skip-link { position: absolute; inset-inline-start: -9999px; top: 12px; z-index: 100; }
.skip-link:focus { inset-inline-start: 16px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; }

.airmail-strip { height: 6px; background: var(--airmail); }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 26px;
	border: 1.5px solid transparent;
	border-radius: 10px;
	font-family: inherit;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .9rem; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 247, 238, .95);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 46px; height: 46px; flex-shrink: 0; transform: rotate(-4deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-size: 1.5rem; font-weight: 800; }
.brand__tag { font-size: .74rem; font-weight: 600; color: var(--muted); }
.custom-logo-link img { max-height: 52px; width: auto; }

.primary-nav ul { display: flex; gap: 30px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--ink-2); font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-cta { white-space: nowrap; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--card);
	color: var(--ink);
	cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Sections */
.section { padding-block: 92px; }
.section--tint { background: var(--paper-2); }
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--muted-2); font-size: 1.02rem; }
.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--red); font-size: .82rem; font-weight: 800; letter-spacing: .3px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }

/* Hero */
.hero { padding-block: 76px 84px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero__badge {
	display: inline-flex;
	padding: 6px 16px;
	border: 1px solid rgba(179, 38, 30, .28);
	border-radius: 999px;
	background: rgba(179, 38, 30, .07);
	color: var(--red-dark);
	font-size: .82rem;
	font-weight: 700;
}
.hero h1 { margin-top: 22px; font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; line-height: 1.3; }
.hero__lead { max-width: 580px; margin-top: 20px; color: var(--muted); font-size: 1.08rem; line-height: 1.95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__note { margin-top: 18px; color: var(--muted-2); font-size: .88rem; font-weight: 600; }

.envelope {
	position: relative;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--card);
	box-shadow: 0 32px 60px -32px rgba(28, 25, 23, .45);
	transform: rotate(-1.5deg);
}
.envelope__inner { position: relative; min-height: 320px; padding: 28px 30px 34px; border: 9px solid transparent; border-image: var(--airmail) 14; }
.envelope__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.envelope__airmail { color: var(--navy); font-size: .72rem; font-weight: 800; letter-spacing: 2px; line-height: 1.6; }
.envelope__stamp { width: 84px; height: 84px; flex-shrink: 0; transform: rotate(5deg); filter: drop-shadow(0 2px 2px rgba(28, 25, 23, .15)); }
.envelope__postmark { position: absolute; top: 58px; inset-inline-end: 72px; width: 168px; color: var(--navy); opacity: .7; transform: rotate(-9deg); }
.envelope__to { display: flex; flex-direction: column; gap: 2px; width: 62%; margin-top: 72px; margin-inline-start: auto; padding-top: 14px; border-top: 1px dashed rgba(28, 25, 23, .25); }
.envelope__to strong { font-size: 1.15rem; font-weight: 800; }
.envelope__to span:last-child { color: var(--muted-2); font-size: .9rem; }
.envelope__label { color: var(--muted-2); font-size: .78rem; font-weight: 700; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature h3 { margin-top: 20px; font-size: 1.12rem; font-weight: 700; }
.feature p { margin-top: 8px; color: var(--muted-2); font-size: .95rem; }
.seal { display: grid; place-items: center; width: 52px; height: 52px; border: 2px dashed var(--red); border-radius: 50%; color: var(--red); }
.seal svg { width: 24px; height: 24px; }

/* How it works */
.start { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.start__stamp { display: flex; justify-content: center; }
.trial-stamp { width: min(260px, 70vw); color: var(--stamp); opacity: .92; transform: rotate(-10deg); }
.start__title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.start__lead { max-width: 560px; margin-top: 12px; color: var(--muted-2); }
.steps { display: grid; gap: 24px; margin: 32px 0 0; padding: 0; list-style: none; }
.step { display: flex; align-items: flex-start; gap: 18px; }
.step__num { display: grid; flex-shrink: 0; place-items: center; width: 54px; height: 54px; border: 2px dashed rgba(28, 25, 23, .3); border-radius: 50%; color: var(--red); font-weight: 800; }
.step h3 { font-size: 1.08rem; font-weight: 700; }
.step p { margin-top: 4px; color: var(--muted-2); font-size: .95rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service { position: relative; overflow: hidden; padding-top: 36px; }
.service::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 6px; background: var(--airmail); }
.service__num { color: var(--red); font-size: .85rem; font-weight: 800; letter-spacing: 1px; }
.service h3 { margin-top: 8px; font-size: 1.15rem; font-weight: 700; }
.service p { margin-top: 10px; color: var(--muted-2); font-size: .95rem; }
.services__cta { margin-top: 40px; text-align: center; }

/* Tools */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tool { position: relative; }
.tool h3 { font-size: 1.15rem; font-weight: 700; }
.tool p { max-width: 440px; margin-top: 10px; color: var(--muted-2); font-size: .95rem; }
.soon-stamp {
	position: absolute;
	top: 22px;
	inset-inline-end: 22px;
	padding: 3px 14px;
	border: 2px solid var(--stamp);
	border-radius: 6px;
	color: var(--stamp);
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: 1px;
	opacity: .85;
	transform: rotate(-8deg);
}

/* FAQ */
.faq { display: grid; gap: 14px; max-width: 840px; margin-inline: auto; }
.faq details { padding-inline: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 20px;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; color: var(--red); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 22px; color: var(--muted); }

/* Signup */
.signup { max-width: 900px; margin-inline: auto; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); box-shadow: 0 32px 60px -36px rgba(28, 25, 23, .4); }
.signup__inner { padding: 52px 44px; border: 9px solid transparent; border-image: var(--airmail) 14; text-align: center; }
.signup__title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.signup__lead { max-width: 620px; margin: 12px auto 0; color: var(--muted-2); }
.signup__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; text-align: start; }
.field label { display: block; margin-bottom: 6px; color: var(--ink-2); font-size: .88rem; font-weight: 700; }
.field__optional { color: var(--muted-2); font-weight: 600; }
.field input {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid rgba(28, 25, 23, .25);
	border-radius: 8px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
}
.field input[dir="ltr"] { text-align: right; }
.field input:focus { border-color: var(--navy); outline: 2px solid var(--navy); outline-offset: 1px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.signup__submit { margin-top: 24px; min-width: 220px; }
.signup__status { min-height: 1.5em; margin-top: 14px; font-weight: 700; }
.signup__status.is-error { color: var(--red-dark); }
.signup__consent, .signup__hint { margin-top: 8px; color: var(--muted-2); font-size: .85rem; }
.signup__success { outline: none; }
.signup__success h3 { margin-top: 18px; font-size: 1.4rem; font-weight: 800; }
.signup__success p { max-width: 560px; margin: 10px auto 22px; color: var(--muted); }
.signup__seal {
	display: inline-block;
	padding: 6px 20px;
	border: 3px double var(--stamp);
	border-radius: 8px;
	color: var(--stamp);
	font-weight: 800;
	letter-spacing: 1px;
	transform: rotate(-6deg);
}

/* Footer */
.site-footer { padding-block: 64px 28px; background: var(--ink); color: #E9E3D6; }
.site-footer a { color: #E9E3D6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.brand--footer, .brand--footer:hover { color: #fff; }
.brand--footer .brand__tag { color: #BDB4A5; }
.footer__about p { max-width: 400px; margin-top: 16px; color: #BDB4A5; font-size: .92rem; }
.footer__about .footer__disclaimer { font-size: .82rem; color: #A79E8F; }
.footer__title { margin-bottom: 14px; color: #fff; font-size: 1rem; font-weight: 800; }
.footer__list { display: grid; gap: 8px; margin: 0; padding: 0; font-size: .92rem; list-style: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); color: #A79E8F; font-size: .85rem; }
.footer__credit a { color: #fff; font-weight: 800; letter-spacing: .5px; }

/* Inner pages */
.page-hero { padding-block: 64px 36px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
.post-meta { margin-top: 6px; color: var(--muted-2); font-size: .9rem; }
.entry { margin-bottom: 92px; padding: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { margin-top: 1.6em; font-size: 1.5rem; }
.entry-content h3 { margin-top: 1.4em; font-size: 1.2rem; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.post-list { display: grid; gap: 20px; margin-bottom: 40px; }
.post-card h2 { font-size: 1.3rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--red); }
.post-card__excerpt { margin-top: 10px; color: var(--muted); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 92px; }
.nav-links .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); text-decoration: none; }
.nav-links .current { background: var(--ink); color: var(--paper); }

/* 404 */
.returned { padding-block: 110px; text-align: center; }
.returned__stamp {
	display: inline-block;
	padding: 8px 30px;
	border: 4px double var(--stamp);
	border-radius: 10px;
	color: var(--stamp);
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: 2px;
	opacity: .9;
	transform: rotate(-8deg);
}
.returned h1 { margin-top: 36px; font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; }
.returned p { max-width: 540px; margin: 14px auto 30px; color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
	.hero__grid, .start { grid-template-columns: 1fr; gap: 48px; }
	.hero__visual { max-width: 540px; width: 100%; margin-inline: auto; }
	.features, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.footer__about { grid-column: 1 / -1; }
}

@media (max-width: 1040px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		display: none;
		position: absolute;
		top: 100%;
		inset-inline: 0;
		padding: 8px 24px 18px;
		border-bottom: 1px solid var(--line);
		background: var(--paper);
	}
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; gap: 0; }
	.primary-nav a { display: block; padding: 12px 0; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 640px) {
	.section { padding-block: 68px; }
	.hero { padding-block: 48px 60px; }
	.features, .services, .tools, .signup__fields, .footer__grid { grid-template-columns: 1fr; }
	.header-cta { display: none; }
	.brand__tag { display: none; }
	.envelope__inner { min-height: 280px; padding: 22px; }
	.envelope__postmark { width: 130px; inset-inline-end: 56px; }
	.envelope__to { width: 80%; }
	.signup__inner { padding: 36px 20px; }
	.signup__submit { width: 100%; }
	.entry { padding: 26px 20px; }
	.card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
