/* Philentia — landing
 *
 * Self-contained on purpose: this page deploys apart from the product and must
 * not depend on its asset pipeline. The values below are copied from
 * apps/itbd_nonprofit_core/.../public/css/philentia-tokens.css so the two
 * surfaces read as one brand. If a token changes there, change it here.
 *
 * The narrative follows ITBD COOPBANK (the company's other product); the
 * colours, type and imagery are Philentia's own.
 */

:root {
	--blue-700: #0147a4;
	--blue-600: #0164c9;
	--blue-500: #038bef;
	--blue-200: #89cdfa;
	--blue-100: #d0ecfb;
	--blue-50: #f1f9fe;
	--navy: #063078;
	--navy-900: #041f4f;
	--green-700: #0d7420;
	--green-600: #3da124;
	--lime-500: #7ccf2c;
	--n-950: #101828;
	--n-900: #1d2939;
	--n-800: #344054;
	--n-700: #475467;
	--n-600: #667085;
	--n-300: #d0d5dd;
	--n-200: #eaecf0;
	--n-100: #f2f4f7;
	--n-50: #f9fafb;
	--white: #ffffff;
	--warning-bg: #fffaeb;
	--warning-text: #b54708;
	--success-bg: #ecfdf3;
	--success-text: #067647;
	--info-bg: #eff8ff;
	--info-text: #175cd3;

	--font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-brand: "Montserrat", var(--font-ui);

	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;
	--radius-full: 9999px;
	--shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
	--shadow-lg: 0 12px 30px rgba(16, 24, 40, 0.1);
	--gradient-brand: linear-gradient(135deg, #041f4f 0%, #063078 35%, #0164c9 80%, #038bef 100%);

	--wrap: 1160px;
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Headless Chrome clamps windows narrower than 500px, so a "390px" screenshot
 * is the left 390px of a 500px layout and looks clipped when nothing is. The
 * real phone check is an iframe of 390px measuring its own scrollWidth. This
 * clip is a guard against a genuine overflow ever adding a sideways scroll. */
html, body { overflow-x: clip; }
body {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 17px;
	line-height: 1.6;
	color: var(--n-800);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-brand); color: var(--n-950); margin: 0 0 0.5em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.75rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-600); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 0.75rem; }
.lede { font-size: 1.1rem; color: var(--n-700); }
.intro { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.intro .lede { margin-bottom: 0; }
.note { color: var(--n-600); font-size: 0.95rem; margin-top: 1.5rem; text-align: center; }

/* ---------------------------------------------------------------- header */
/* The brand is the size of a banner, by request. At that size it cannot share
 * a row with the navigation — it collided with the menu and the buttons — so
 * the header is two rows: the brand alone, centred, and the menu with the
 * calls to action beneath it. It scrolls with the page rather than pinning,
 * because a bar this tall would hide half a laptop screen while scrolling. */
.top { position: static; z-index: 50; background: var(--white); border-bottom: 1px solid var(--n-200); }
.top__bar { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 1.25rem; padding: 2rem 0 1.5rem; }
.top__bar > * { min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 1.5rem; text-decoration: none; color: var(--navy); font-family: var(--font-brand); font-weight: 800; letter-spacing: 0.08em; font-size: 8rem; line-height: 1; }
.brand--foot { font-size: 1.6rem; gap: 0.75rem; }
.top__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem; }
.top__nav a { color: var(--n-700); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.top__nav a:hover { color: var(--blue-700); }
.top__cta { display: flex; gap: 0.75rem; justify-content: center; }

/* --------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0 1.15rem; border-radius: var(--radius-md); font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background 160ms var(--ease), transform 160ms var(--ease), border-color 160ms var(--ease); font-size: 0.95rem; }
.btn--lg { min-height: 52px; padding: 0 1.5rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn--secondary { background: var(--white); color: var(--navy); border-color: var(--n-300); }
.btn--secondary:hover { border-color: var(--blue-500); }
.btn--ghost { background: transparent; color: var(--blue-700); }
.btn--ghost:hover { background: var(--blue-50); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; background: var(--navy-900); background-image: var(--gradient-brand); color: #fff; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.32; pointer-events: none; }
.hero::before { width: 60vw; height: 60vw; left: -20vw; top: -30vw; background: radial-gradient(circle, #7ccf2c 0%, transparent 60%); animation: drift 22s ease-in-out infinite alternate; }
.hero::after { width: 50vw; height: 50vw; right: -20vw; bottom: -30vw; background: radial-gradient(circle, #89cdfa 0%, transparent 60%); animation: drift 26s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(4%,-3%,0) scale(1.12); } }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.crumb { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 1.25rem; }
.crumb strong { color: var(--lime-500); font-weight: 700; }
.crumb span + strong::before, .crumb strong + span::before { content: "·"; margin-right: 0.5rem; color: rgba(255,255,255,0.45); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--blue-200); }
.hero .lede { color: rgba(255,255,255,0.88); font-size: 1.15rem; max-width: 40rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
/* The main call to action must be the most visible thing on the page. Blue on
 * the blue gradient made it the least: it read as part of the background. */
.hero .btn--primary { background: #fff; color: var(--navy); }
.hero .btn--primary:hover { background: var(--blue-50); }
.hero .btn--secondary { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); }
.hero .btn--secondary:hover { background: rgba(255,255,255,0.2); }
.proofs { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; font-size: 0.92rem; color: rgba(255,255,255,0.85); }
.proofs li { position: relative; padding-left: 1.25rem; }
.proofs li::before { content: "✓"; position: absolute; left: 0; color: var(--lime-500); font-weight: 700; }

/* the product, drawn rather than screenshotted, so it stays crisp on any screen */
.hero__art { position: relative; }
.screen { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-xl); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 30px 60px rgba(4,31,79,0.45); overflow: hidden; animation: rise 700ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.screen__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.screen__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.screen__bar em { font-style: normal; margin-left: 0.5rem; }
.screen__body { padding: 1rem; display: grid; gap: 0.9rem; }
.screen__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.screen__kpis > div { background: var(--white); color: var(--n-800); border-radius: var(--radius-lg); padding: 0.9rem 1rem; }
.screen__kpis small { display: block; font-size: 0.72rem; color: var(--n-600); }
.screen__kpis b { display: block; font-family: var(--font-brand); font-size: 1.45rem; color: var(--n-950); font-variant-numeric: tabular-nums; margin: 0.15rem 0; }
.screen__kpis i { font-style: normal; font-size: 0.75rem; color: var(--n-600); display: flex; align-items: center; gap: 0.4rem; }
.screen__rows { display: grid; gap: 0.4rem; }
.screen__rows > div { display: flex; align-items: center; gap: 0.6rem; background: rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: 0.55rem 0.8rem; font-size: 0.82rem; color: rgba(255,255,255,0.9); }
.screen__rows b { margin-left: auto; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--ok { background: var(--lime-500); }
.dot--warn { background: #f79009; }
.screen__foot { font-size: 0.75rem; color: rgba(255,255,255,0.65); }
.badge { display: inline-block; padding: 0.1rem 0.55rem; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 600; }
.badge--info { background: var(--info-bg); color: var(--info-text); }
.badge--warning { background: var(--warning-bg); color: var(--warning-text); }
.badge--success { background: var(--success-bg); color: var(--success-text); }

/* ---------------------------------------------------------------- stats */
.stats { border-bottom: 1px solid var(--n-200); background: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 2.25rem 0; }
.stats__grid > div { border-top: 3px solid var(--blue-600); padding-top: 1rem; }
.stats b { display: block; font-family: var(--font-brand); font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: 0.5rem; }
.stats span { font-size: 0.9rem; color: var(--n-700); }

/* -------------------------------------------------------------- sections */
.section { padding: clamp(3.25rem, 7vw, 6rem) 0; }
.section--tint { background: var(--n-50); }
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--center { align-items: center; gap: 3.5rem; }
.feature { background: var(--white); border: 1px solid var(--n-200); border-radius: var(--radius-lg); padding: 1.5rem; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature h3::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue-500), var(--lime-500)); margin-bottom: 0.9rem; }
.feature p { margin: 0; color: var(--n-700); font-size: 0.97rem; }
.feature--audit { border-top: 4px solid var(--green-600); }
.feature--audit h3::before { display: none; }

/* --------------------------------------------------------------- showcase */
.showcase { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: center; padding: 2.5rem 0; border-top: 1px solid var(--n-200); }
.showcase:first-of-type { border-top: none; }
.showcase--flip .showcase__text { order: 2; }
.showcase__text h3 { font-size: 1.5rem; }
.showcase__text p { color: var(--n-700); }
.showcase__shot { margin: 0; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--n-200); box-shadow: var(--shadow-lg); background: var(--white); }
.showcase__shot img { display: block; width: 100%; }
.checks { list-style: none; padding: 0; margin: 1rem 0 0; }
.checks li { position: relative; padding-left: 1.75rem; margin-bottom: 0.55rem; color: var(--n-800); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--green-600); color: #fff; font-size: 0.7rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 0.3em; }

/* ------------------------------------------------------------- decisions */
.decisions { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: d; }
.decisions li { position: relative; padding: 0.9rem 0 0.9rem 2.6rem; border-top: 1px solid var(--n-200); counter-increment: d; }
.decisions li::before { content: "0" counter(d); position: absolute; left: 0; top: 1rem; font-family: var(--font-brand); font-weight: 700; color: var(--blue-600); font-size: 0.85rem; }
.decisions b { display: block; color: var(--n-950); font-family: var(--font-brand); font-size: 1rem; margin-bottom: 0.15rem; }
.decisions span { color: var(--n-700); font-size: 0.95rem; }
.trace { background: var(--navy-900); background-image: var(--gradient-brand); color: #fff; border-radius: var(--radius-xl); padding: 1.75rem; box-shadow: var(--shadow-lg); }
.trace__title { font-family: var(--font-brand); font-weight: 700; font-size: 1.15rem; margin-bottom: 1.25rem; }
.trace ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.trace li { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-lg); padding: 0.9rem 1rem; position: relative; }
.trace li::after { content: "↓"; position: absolute; right: 1rem; bottom: -0.95rem; color: var(--lime-500); font-weight: 700; }
.trace li:last-child::after { display: none; }
.trace b { display: block; font-size: 0.95rem; }
.trace span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ----------------------------------------------------------------- steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { background: var(--white); border: 1px solid var(--n-200); border-radius: var(--radius-lg); padding: 1.5rem; }
.steps__n { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue-600); color: #fff; font-family: var(--font-brand); font-weight: 700; margin-bottom: 0.75rem; }
.steps p { margin: 0; color: var(--n-700); font-size: 0.95rem; }

/* ------------------------------------------------------------------ rule */
.rule { margin-top: 2rem; background: var(--white); border: 1px solid var(--n-200); border-left: 4px solid var(--blue-600); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; box-shadow: var(--shadow-md); }
.rule__head { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.5rem; }
.rule__where { font-size: 0.85rem; color: var(--n-600); }
.rule__title { font-family: var(--font-brand); font-weight: 700; color: var(--n-950); font-size: 1.1rem; }
.rule p:last-child { margin: 0; color: var(--n-700); }

/* --------------------------------------------------------------- benefit */
.benefit { background: var(--white); border: 1px solid var(--n-200); border-radius: var(--radius-lg); padding: 1.5rem; }
.benefit h3 { color: var(--navy); }
.benefit p { margin: 0; color: var(--n-700); font-size: 0.97rem; }

/* --------------------------------------------------------------- compare */
.compare-wrap { overflow-x: auto; border: 1px solid var(--n-200); border-radius: var(--radius-lg); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 640px; }
.compare th, .compare td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--n-200); vertical-align: top; }
.compare thead th { font-family: var(--font-brand); font-size: 0.85rem; color: var(--n-700); background: var(--n-50); }
.compare tbody th { font-weight: 600; color: var(--n-950); }
.compare td { color: var(--n-700); }
.compare__us { background: var(--blue-50); color: var(--navy) !important; font-weight: 600; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }

/* ----------------------------------------------------------------- plans */
.plans { align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--n-200); border-radius: var(--radius-xl); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; position: relative; }
.plan--featured { border-color: var(--blue-500); box-shadow: var(--shadow-lg); }
.plan__tag { position: absolute; top: -0.8rem; left: 1.5rem; background: var(--blue-600); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.7rem; border-radius: var(--radius-full); margin: 0; }
.plan h3 { font-size: 1.35rem; }
.plan__for { color: var(--n-600); font-size: 0.95rem; min-height: 3.2em; }
.plan ul { list-style: none; padding: 0; margin: 0.5rem 0 1.25rem; flex: 1; }
.plan li { padding: 0.45rem 0; border-top: 1px solid var(--n-100); font-size: 0.95rem; }
.plan li:first-child { font-weight: 600; color: var(--n-950); border-top: none; }
.plan .btn { margin-top: auto; }

/* ------------------------------------------------------------------ band */
.band { background: var(--navy-900); background-image: var(--gradient-brand); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.band__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,0.85); margin: 0; }
.band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }
.band .btn--primary { background: #fff; color: var(--navy); }
.band .btn--secondary { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); }

/* --------------------------------------------------------------- contact */
.card { background: var(--white); border: 1px solid var(--n-200); border-radius: var(--radius-lg); padding: 1.25rem 1.4rem; color: var(--n-800); box-shadow: var(--shadow-md); }
.card--contact { text-align: center; padding: 2rem; }
.card__foot { font-size: 0.9rem; color: var(--n-600); margin: 0.75rem 0 0; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--n-950); color: var(--n-300); padding: 3rem 0 1.5rem; font-size: 0.93rem; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.foot h4 { color: #fff; }
.foot a { display: block; color: var(--n-300); text-decoration: none; margin-bottom: 0.4rem; }
.foot a:hover { color: #fff; }
.brand--foot { color: #fff; margin-bottom: 0.75rem; }
.brand--foot img { filter: none; }
.foot__tag { color: var(--blue-200); font-family: var(--font-brand); font-weight: 600; letter-spacing: 0.08em; font-size: 0.8rem; text-transform: uppercase; }
.foot__legal { border-top: 1px solid var(--n-800); margin-top: 2rem; padding-top: 1.25rem; color: var(--n-600); font-size: 0.85rem; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
	.hero__grid, .grid--2, .grid--3, .grid--4, .steps, .foot__grid, .showcase, .band__grid { grid-template-columns: 1fr; }
	.stats__grid { grid-template-columns: 1fr 1fr; }
	.hero__art { display: none; }
	.top__nav { gap: 1rem; }
	.showcase--flip .showcase__text { order: 0; }
	.band__actions { justify-content: flex-start; }
	.proofs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.top__bar { gap: 0.75rem; }
	.top__cta .btn--ghost { display: none; }
	.top__cta .btn--primary { padding: 0 0.85rem; font-size: 0.85rem; min-height: 40px; }
	.brand { flex-direction: column; gap: 0.5rem; font-size: 2.75rem; }
	.brand img { width: 160px; height: auto; }
	.top__bar { padding: 1.25rem 0 1rem; }
	.hero__actions .btn { width: 100%; }
	.stats__grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
	.hero::before, .hero::after, .screen, .feature, .btn { animation: none; transition: none; }
}
