/* =============================================================================
   ProphetGen theme — assets/css/main.css
   Mobile-first. Tokens → base → layout → components → pages → utilities → print
   ============================================================================= */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
	font-family: "Exo 2";
	src: url("../fonts/Exo2-variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Manrope";
	src: url("../fonts/Manrope-variable.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens (from the ProphetGen logo: teal circuit wings on deep teal-black) ---------- */
:root {
	--ink: #0e2a30;          /* body text */
	--deep: #061b20;         /* brand dark — hero, footer */
	--deep-2: #0b2a31;       /* headings, dark surfaces, page heads */
	--teal: #3d9297;         /* wordmark teal — icons, highlights, focus */
	--teal-deep: #21777c;    /* buttons and links on light backgrounds (AA with white) */
	--teal-strong: #2a8a8f;  /* hover */
	--aqua: #7fd6d8;         /* accent on dark backgrounds, wing-tip light */
	--aqua-pale: #e0f3f3;    /* tints, chips, callouts */
	--sky: #f2f7f7;          /* page background */
	--white: #ffffff;
	--mist: #d9e6e7;         /* borders */
	--muted: #4f6a6e;
	--success: #2e7d5b;
	--success-pale: #e3f3ea;
	--blue: #3356c9;
	--blue-pale: #e5ebfa;
	--danger: #b3261e;
	--danger-pale: #fbe7e5;

	--font-display: "Exo 2", "Segoe UI", Helvetica, Arial, sans-serif;
	--font-body: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;

	--radius-sm: 10px;
	--radius: 18px;
	--radius-lg: 28px;
	--shadow: 0 10px 30px rgba(6, 27, 32, 0.08);
	--shadow-lg: 0 24px 60px rgba(6, 27, 32, 0.22);

	--container: 1180px;
	--gutter: 20px;
	--header-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	font-size: 17px;
}
@media (min-width: 768px) { html { font-size: 18px; } }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--sky);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { font-style: italic; }

h1, h2, h3, h4, h5 {
	font-family: var(--font-display);
	font-weight: 700;
		line-height: 1.12;
	margin: 0 0 0.5em;
	color: var(--deep-2);
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4, .h4 { font-size: 1.2rem; }
h5, .h5 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.h3, .h4 { font-family: var(--font-display); font-weight: 700; color: var(--deep-2); margin: 0 0 0.5em; }

p { margin: 0 0 1em; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--deep-2); }
strong { font-weight: 700; }
small { font-size: 0.9em; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; background: var(--mist); padding: 0.1em 0.35em; border-radius: 4px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--deep-2); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding: 3.5rem 0; }
.section--tint { background: #fff; }
.section__head { max-width: 720px; margin-bottom: 2rem; }
.section__head p { font-size: 1.1rem; color: var(--muted); margin: 0; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; max-width: none; }
.center { text-align: center; }
@media (min-width: 768px) {
	.section { padding: 5rem 0; }
	.section__head { margin-bottom: 2.75rem; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	min-height: 52px; padding: 0.75em 1.5em;
	font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
	border-radius: 14px; border: 2px solid transparent; text-decoration: none; cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--deep-2); color: #fff; }
.btn--primary:hover { background: var(--teal-strong); color: #fff; }
.btn--accent { background: var(--aqua); color: var(--deep); }
.btn--accent:hover { background: #9ae3e4; color: var(--deep); }
.btn--outline { background: transparent; color: var(--deep-2); border-color: var(--deep-2); }
.btn--outline:hover { background: var(--deep-2); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.btn--ghost { background: #fff; color: var(--deep-2); border-color: var(--mist); }
.btn--ghost:hover { border-color: var(--deep-2); color: var(--deep-2); }
.btn--lg { min-height: 60px; padding: 0.9em 2em; font-size: 1.1rem; }
.btn--block { width: 100%; }
.text-link { font-weight: 700; color: var(--deep-2); text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.text-link:hover { color: var(--teal-deep); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-deep); text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--deep-2); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--mist); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; }
.brand img, .custom-logo { height: 40px; width: auto; }
.custom-logo-link { display: inline-flex; }
.site-nav { display: none; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.site-nav__list a { display: block; padding: 0.55em 0.9em; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-nav__list a:hover, .site-nav__list .current-menu-item > a, .site-nav__list .current_page_item > a { background: var(--sky); color: var(--deep-2); }
.site-nav__cta { min-height: 46px; padding: 0.55em 1.2em; margin-left: 0.5rem; }
.nav-toggle { display: inline-flex; align-items: center; gap: 0.4em; background: none; border: 2px solid var(--mist); border-radius: 12px; padding: 0.4em 0.75em; font: inherit; font-weight: 700; color: var(--deep-2); cursor: pointer; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }
body.nav-open .site-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--mist); box-shadow: var(--shadow-lg); padding: 0.75rem var(--gutter) 1.25rem; }
body.nav-open .site-nav__list { flex-direction: column; gap: 0; }
body.nav-open .site-nav__list a { padding: 0.9em 0.75em; font-size: 1.1rem; border-bottom: 1px solid var(--mist); border-radius: 0; }
body.nav-open .site-nav__cta { margin: 1rem 0 0; width: 100%; }
@media (min-width: 960px) {
	.site-nav { display: flex; align-items: center; }
	.site-nav__list a, .site-nav__cta { white-space: nowrap; }
	.nav-toggle { display: none; }
	.brand img, .custom-logo { height: 50px; }
}
@media (min-width: 960px) and (max-width: 1120px) {
	.site-nav__list a { padding: 0.5em 0.6em; font-size: 0.95rem; }
	.site-nav__cta { padding: 0.5em 0.9em; font-size: 0.95rem; min-height: 42px; }
	.brand img, .custom-logo { height: 40px; }
}

/* ---------- Hero (home) ---------- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background: radial-gradient(120% 90% at 50% 115%, rgba(127, 214, 216, 0.55) 0%, rgba(61, 146, 151, 0.45) 32%, rgba(6, 27, 32, 0) 62%), linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 60%, #0f3d44 100%);
	padding: 3rem 0 2.5rem;
}
.hero__grid { position: relative; z-index: 2; display: grid; gap: 2.5rem; align-items: center; }
.hero__title { color: #fff; font-size: clamp(2.3rem, 5.6vw, 3.7rem); line-height: 1.08; margin-bottom: 0.4em; max-width: 13.5em; }
.hero__text { font-size: 1.15rem; line-height: 1.6; color: #d3e6e7; max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1.25rem; }
.hero__trust { font-size: 0.9rem; color: #9fbfc1; margin: 0; }
.hero__visual { display: flex; justify-content: center; }
.hero__dawn {
	position: absolute; left: 50%; bottom: -78vw; width: 160vw; max-width: none; aspect-ratio: 1; transform: translateX(-50%);
	border-radius: 50%; border: 2px solid rgba(127, 214, 216, 0.8);
	box-shadow: 0 0 80px 10px rgba(127, 214, 216, 0.25), inset 0 0 120px rgba(127, 214, 216, 0.22);
	z-index: 1; pointer-events: none;
}
@media (min-width: 768px) {
	.hero { padding: 4.5rem 0 3.5rem; }
	.hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
	.hero__visual { justify-content: flex-end; padding-right: 1rem; }
	.hero__dawn { width: 1700px; bottom: -1380px; }
}
@media (min-width: 1100px) {
	.hero { padding: 5.5rem 0 4rem; }
}

/* One orchestrated page-load moment: headline rises, dawn arc brightens. */
@media (prefers-reduced-motion: no-preference) {
	.is-home .hero__copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.is-home .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
	.is-home .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
	.is-home .hero__copy > :nth-child(4) { animation-delay: 0.24s; }
	.is-home .hero__dawn { animation: dawn 1.4s ease-out both; }
	.is-home .hero__visual { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dawn { from { opacity: 0; transform: translateX(-50%) translateY(60px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ---------- Phone mock ---------- */
.phone {
	width: 272px; aspect-ratio: 9 / 18.5; background: #07171b; border-radius: 42px; padding: 12px;
	box-shadow: 0 30px 70px rgba(2, 12, 15, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
	flex: none;
}
.phone__screen { height: 100%; background: #f6fbfb; border-radius: 32px; padding: 14px 16px 12px; color: var(--ink); display: flex; flex-direction: column; gap: 10px; overflow: hidden; font-size: 13px; line-height: 1.35; }
.phone__status { display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; color: #444; }
.phone__signal { width: 36px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, #444 0 60%, #c9c9c9 60%); margin-top: 3px; }
.phone__greeting small { display: block; color: var(--muted); font-size: 11px; }
.phone__greeting strong { font-family: var(--font-display); font-size: 17px; color: var(--deep-2); font-weight: 700; }
.phone__card { background: var(--deep-2); color: #fff; border-radius: 18px; padding: 14px 14px 12px; }
.phone__chip { display: inline-block; font-size: 10px; font-weight: 700; background: rgba(127, 214, 216, 0.2); color: #a9e4e5; padding: 2px 8px; border-radius: 999px; }
.phone__card h3 { color: #fff; font-size: 16px; margin: 8px 0 2px; line-height: 1.25; }
.phone__card p { margin: 0 0 8px; font-size: 11px; color: #bcd9da; }
.phone__player { display: flex; align-items: center; gap: 10px; }
.phone__play { color: var(--aqua); display: inline-flex; }
.phone__bar { flex: 1; height: 6px; background: rgba(255, 255, 255, 0.18); border-radius: 3px; overflow: hidden; }
.phone__bar i { display: block; width: 38%; height: 100%; background: var(--aqua); }
.phone__row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e3eeee; border-radius: 14px; padding: 9px 11px; }
.phone__row strong { display: block; font-size: 12.5px; }
.phone__row small { color: var(--muted); font-size: 10.5px; }
.phone__dot { width: 30px; height: 30px; border-radius: 50%; background: var(--aqua-pale); border: 2px solid var(--aqua); flex: none; }
.phone__dot--alt { background: var(--blue-pale); border-color: #5b8def; }
.phone__dot--green { background: var(--success-pale); border-color: var(--success); }
.phone__tabs { margin-top: auto; display: flex; justify-content: space-around; padding-top: 6px; border-top: 1px solid #e3eeee; }
.phone__tabs span { width: 22px; height: 6px; border-radius: 3px; background: #d4e2e3; }
.phone__tabs .is-active { background: var(--deep-2); }
@media (min-width: 768px) { .phone { width: 300px; } }

/* ---------- Services (home) ---------- */
.services { display: grid; gap: 1.25rem; }
.service { background: #fff; border: 1px solid var(--mist); border-radius: var(--radius); padding: 1.75rem; }
.service .icon { color: var(--teal-deep); margin-bottom: 0.9rem; }
.service h3 { margin-bottom: 0.4em; }
.service p { margin: 0; color: var(--muted); }
.service--featured { background: var(--deep-2); color: #fff; border: 0; display: grid; gap: 1.5rem; padding: 2rem; border-radius: var(--radius-lg); }
.service--featured h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.service--featured p { color: #cfe3e4; margin-bottom: 1.25rem; }
.service--featured .text-link { color: #fff; }
.service__platforms { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; align-content: center; }
.service__platforms li { display: flex; align-items: center; gap: 0.75rem; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; padding: 0.8rem 1rem; font-weight: 700; }
.service__platforms .icon { color: var(--aqua); margin: 0; flex: none; }
@media (min-width: 720px) {
	.services { grid-template-columns: repeat(3, 1fr); }
	.service--featured { grid-column: 1 / -1; grid-template-columns: 1.4fr 0.8fr; padding: 2.5rem; }
}

/* ---------- App cards ---------- */
.app-grid { display: grid; gap: 1.25rem; }
.app-card { display: grid; grid-template-columns: 84px 1fr; gap: 1.1rem; background: #fff; border: 1px solid var(--mist); border-radius: var(--radius); padding: 1.25rem; }
.app-card__icon { display: block; width: 84px; height: 84px; border-radius: 22px; overflow: hidden; background: var(--sky); flex: none; }
.app-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.app-card__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 84px; font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--deep-2); background: linear-gradient(135deg, var(--aqua-pale), #fff); border: 2px solid var(--app-accent, var(--teal)); border-radius: inherit; }
.app-card__status { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 0.2em 0.7em; border-radius: 999px; background: var(--aqua-pale); color: var(--teal-deep); margin-bottom: 0.4rem; }
.app-card__status--live { background: var(--success-pale); color: var(--success); }
.app-card__status--beta { background: var(--blue-pale); color: var(--blue); }
.app-card__title { font-size: 1.4rem; margin: 0 0 0.2em; }
.app-card__title a { color: var(--deep-2); text-decoration: none; }
.app-card__title a:hover { text-decoration: underline; text-decoration-color: var(--teal); }
.app-card__tagline { font-weight: 600; margin-bottom: 0.4em; }
.app-card__excerpt { color: var(--muted); margin-bottom: 0.6em; }
.app-card__platforms { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.8em; }
@media (min-width: 720px) {
	.app-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
	.app-card { grid-template-columns: 110px 1fr; padding: 1.5rem; }
	.app-card__icon { width: 110px; height: 110px; border-radius: 26px; }
}

/* Store buttons (neutral, trademark-safe) */
.store-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.store-btn { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--ink); color: #fff; text-decoration: none; border-radius: 12px; padding: 0.5rem 1rem 0.5rem 0.8rem; min-height: 52px; min-width: 160px; border: 2px solid var(--ink); }
.store-btn:hover { background: var(--teal-strong); border-color: var(--teal-strong); color: #fff; }
.store-btn .icon { flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn small { font-size: 0.68rem; opacity: 0.85; }
.store-btn strong { font-size: 1.02rem; }
.store-btn--web { background: #fff; color: var(--deep-2); border-color: var(--deep-2); }
.store-btn--web:hover { background: var(--sky); color: var(--deep-2); border-color: var(--deep-2); }
.store-buttons--lg .store-btn { min-height: 58px; min-width: 180px; }
.store-soon { display: inline-block; font-weight: 600; color: var(--teal-deep); background: var(--aqua-pale); padding: 0.5em 0.9em; border-radius: 10px; }

/* Empty state */
.empty-state { text-align: center; background: #fff; border: 1px dashed #c9c8dc; border-radius: var(--radius); padding: 2.5rem 1.5rem; max-width: 640px; margin: 0 auto; }
.empty-state .icon { color: var(--aqua); margin: 0 auto 0.75rem; }
.empty-state h3, .empty-state h2 { margin-bottom: 0.3em; }
.empty-state p { color: var(--muted); }
.empty-state--wide { display: grid; gap: 2rem; text-align: left; max-width: none; align-items: center; justify-items: center; }
.empty-state--wide .btn { margin-top: 0.5rem; }
@media (min-width: 820px) { .empty-state--wide { grid-template-columns: 1fr auto; padding: 3rem; } }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
.process li { position: relative; padding-left: 4rem; }
.process__num { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--teal-deep); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.process h3 { font-size: 1.25rem; margin-bottom: 0.3em; }
.process p { margin: 0; color: var(--muted); }
@media (min-width: 900px) {
	.process { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
	.process li { padding-left: 0; padding-top: 4.25rem; }
	.process li::after { content: ""; position: absolute; top: 24px; left: 60px; right: -2rem; height: 2px; background: linear-gradient(90deg, var(--teal), var(--mist)); }
	.process li:last-child::after { display: none; }
}

/* ---------- Trust ---------- */
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.trust li { border-top: 2px solid var(--mist); padding-top: 1.25rem; }
.trust .icon { color: var(--teal-deep); margin-bottom: 0.75rem; }
.trust h3 { font-size: 1.25rem; margin-bottom: 0.35em; }
.trust p { color: var(--muted); margin-bottom: 0.6em; }
@media (min-width: 620px) { .trust { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (min-width: 1000px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* ---------- CTA band ---------- */
.cta { background: var(--deep-2); color: #fff; padding: 3.5rem 0; }
.cta__inner { display: grid; gap: 1.5rem; align-items: center; }
.cta h2 { color: #fff; margin-bottom: 0.3em; }
.cta p { color: #cfe3e4; margin: 0; font-size: 1.1rem; max-width: 40em; }
@media (min-width: 820px) { .cta__inner { grid-template-columns: 1fr auto; gap: 3rem; } .cta { padding: 4.5rem 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #b7cfd1; padding: 3.5rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--aqua); }
.site-footer__grid { display: grid; gap: 2rem; }
.site-footer__brand img { height: 56px; width: auto; }
.site-footer__tagline { margin: 1rem 0 0; color: #d3e6e7; max-width: 24em; }
.site-footer__heading { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; color: var(--aqua); margin: 0 0 0.9rem; letter-spacing: 0; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer__contact address { font-style: normal; }
.site-footer__contact p { margin-bottom: 0.9rem; }
.site-footer__contact strong { color: #fff; }
.site-footer .link-button { color: #fff; margin-top: 0.9rem; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.85rem; color: #8aa7aa; }
.site-footer__legal p { margin-bottom: 0.6em; max-width: 90ch; }
.social-links { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social-links a { display: inline-block; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 0.35em 0.9em; }
.social-links--dark a { color: var(--deep-2); border-color: var(--mist); }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }

/* ---------- Page head ---------- */
.page-head { padding: 3rem 0 2.5rem; background: var(--deep-2); color: #fff; }
.page-head__title { color: #fff; margin-bottom: 0.3em; }
.page-head__lead { font-size: 1.15rem; color: #cfe3e4; max-width: 40em; margin: 0; }
.page-head--light { background: #fff; border-bottom: 1px solid var(--mist); color: var(--ink); }
.page-head--light .page-head__title { color: var(--deep-2); }
.page-head--light .page-head__lead { color: var(--muted); }
.page-head__kicker { margin: 0 0 0.5rem; font-weight: 700; }
.page-head__kicker a { color: var(--teal-deep); text-decoration: none; }
.page-head__meta { color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
@media (min-width: 768px) { .page-head { padding: 4.5rem 0 3.5rem; } }

/* ---------- Prose (editor content) ---------- */
.prose { max-width: 72ch; }
.prose--lead { font-size: 1.1rem; max-width: 60ch; margin-bottom: 2rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.2em; scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose h3 { margin-top: 1.6em; font-size: 1.25rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--teal-deep); font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1.25em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.7em 0.8em; border: 1px solid var(--mist); min-width: 9em; }
.prose th { background: var(--sky); }
.prose img { border-radius: var(--radius-sm); }
.prose blockquote { margin: 1.5em 0; padding: 0.25em 0 0.25em 1.25em; border-left: 4px solid var(--teal); color: var(--muted); font-style: italic; }
.notice-box { background: var(--aqua-pale); border-left: 5px solid var(--teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.25rem; margin: 0 0 2rem; }
.notice-box p:last-child { margin-bottom: 0; }

/* FAQ (details/summary) */
.faq { background: #fff; border: 1px solid var(--mist); border-radius: var(--radius-sm); margin-bottom: 0.75rem; }
.faq summary { cursor: pointer; padding: 1rem 3rem 1rem 1.25rem; font-weight: 700; font-size: 1.05rem; color: var(--deep-2); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.25rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq > div { padding: 0 1.25rem 1rem; }
.faq > div > p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.pg-form { background: #fff; border: 1px solid var(--mist); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; max-width: 640px; }
.pg-form__title { font-size: 1.5rem; margin-bottom: 0.75em; }
.pg-form__hp { position: absolute; left: -9999px; top: -9999px; }
.pg-form__row { margin-bottom: 1.1rem; }
.pg-form label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.pg-form input[type="text"], .pg-form input[type="email"], .pg-form select, .pg-form textarea, .search-form input[type="search"] {
	width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fff;
	border: 2px solid #c9c8dc; border-radius: 12px; padding: 0.8em 0.9em; min-height: 56px;
}
.pg-form textarea { min-height: 150px; resize: vertical; }
.pg-form input:focus, .pg-form select:focus, .pg-form textarea:focus { border-color: var(--deep-2); outline: 3px solid rgba(61, 146, 151, 0.4); outline-offset: 0; }
.pg-form .is-invalid { border-color: var(--danger); }
.pg-form__row--check label { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 500; }
.pg-form__row--check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--deep-2); }
.pg-form__actions { display: grid; gap: 1rem; align-items: center; }
.pg-form__note { margin: 0; font-size: 0.95rem; color: var(--muted); }
.pg-form__status { margin-top: 1rem; font-weight: 600; min-height: 1em; }
.pg-form__status.is-success { color: var(--success); background: var(--success-pale); padding: 0.8em 1em; border-radius: 10px; }
.pg-form__status.is-error { color: var(--danger); background: var(--danger-pale); padding: 0.8em 1em; border-radius: 10px; }
.pg-form.is-sent .pg-form__row, .pg-form.is-sent .pg-form__actions { display: none; }
.search-form { display: flex; gap: 0.6rem; max-width: 560px; }
.search-form input[type="search"] { flex: 1; }

/* ---------- Identity block ---------- */
.identity { background: #fff; border: 1px solid var(--mist); border-radius: var(--radius); padding: 1.5rem; }
.identity h3 { font-size: 1.3rem; }
.identity dl { margin: 0; display: grid; gap: 0.9rem; }
.identity dl > div { display: grid; gap: 0.15rem; }
.identity dt { font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.identity dd { margin: 0; }
@media (min-width: 640px) {
	.identity dl > div { grid-template-columns: 200px 1fr; gap: 1rem; }
	.identity dt { font-size: 1rem; }
	.identity { padding: 2rem; }
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2rem; }
.about-grid__story { font-size: 1.08rem; }
.fact-card { background: #fff; border: 1px solid var(--mist); border-radius: var(--radius); padding: 1.5rem; }
.facts { margin: 0; display: grid; gap: 0.9rem; }
.facts dt { font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.facts dd { margin: 0; }
.beliefs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.beliefs li { background: var(--sky); border-radius: var(--radius); padding: 1.5rem; }
.beliefs .icon { color: var(--teal-deep); margin-bottom: 0.6rem; }
.beliefs h3 { font-size: 1.25rem; margin-bottom: 0.3em; }
.beliefs p { margin: 0; color: var(--muted); }
.founders { display: grid; gap: 1.5rem; }
.founder { background: #fff; border: 1px solid var(--mist); border-radius: var(--radius); padding: 1.5rem; display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; }
.founder__photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--deep-2); display: flex; align-items: center; justify-content: center; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__initials { font-family: var(--font-display); font-size: 2rem; color: var(--aqua); font-weight: 700; }
.founder h3 { font-size: 1.3rem; margin-bottom: 0.15em; }
.founder p { margin: 0; color: var(--muted); }
@media (min-width: 860px) {
	.about-grid { grid-template-columns: 1.4fr 0.8fr; gap: 3rem; align-items: start; }
	.beliefs { grid-template-columns: 1fr 1fr; }
	.founders { grid-template-columns: 1fr 1fr; max-width: 900px; }
}

/* ---------- Services page ---------- */
.detail { display: grid; gap: 2rem; }
.detail__text .icon { color: var(--teal-deep); margin-bottom: 0.75rem; }
.detail__text p { color: var(--muted); font-size: 1.05rem; }
.detail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; align-content: start; }
.detail__list li { display: flex; gap: 0.8rem; align-items: flex-start; background: var(--sky); border-radius: 14px; padding: 0.9rem 1.1rem; font-weight: 600; }
.section--tint .detail__list li { background: var(--sky); }
.section:not(.section--tint) .detail__list li { background: #fff; border: 1px solid var(--mist); }
.detail__list .icon { color: var(--teal-deep); flex: none; margin-top: 0.15em; }
@media (min-width: 860px) {
	.detail { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
	.detail--reverse .detail__text { order: 2; }
	.detail--reverse .detail__list { order: 1; }
}

/* ---------- Apps page ---------- */
.promise-grid { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
.promise-grid li { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--sky); border-radius: 14px; padding: 1.1rem 1.2rem; }
.promise-grid .icon { color: var(--teal-deep); flex: none; }
.promise-grid p { margin: 0; font-weight: 600; }
@media (min-width: 720px) { .promise-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Single app ---------- */
.app-hero { background: linear-gradient(180deg, var(--deep), var(--deep-2)); color: #fff; padding: 3rem 0; }
.app-hero__grid { display: grid; gap: 1.5rem; }
.app-hero__icon { width: 120px; height: 120px; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.app-hero__icon img { width: 100%; height: 100%; object-fit: cover; }
.app-hero h1 { color: #fff; margin: 0.25em 0 0.2em; }
.app-hero__tagline { font-size: 1.2rem; color: #d3e6e7; margin-bottom: 1.25rem; max-width: 36em; }
.app-hero__facts { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.5rem; color: #cfe3e4; }
.app-hero__facts li { display: flex; gap: 0.6rem; align-items: flex-start; }
.app-hero__facts .icon { color: var(--aqua); flex: none; margin-top: 0.2em; }
.app-layout { display: grid; gap: 2.5rem; }
.feature-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.6rem; }
.feature-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.feature-list .icon { color: var(--success); flex: none; margin-top: 0.2em; }
.screens { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; }
.screens figure { margin: 0; flex: none; width: 220px; scroll-snap-align: start; }
.screens img { border-radius: 22px; border: 1px solid var(--mist); width: 100%; height: auto; }
.side-card { background: #fff; border: 1px solid var(--mist); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; }
.side-card p:last-child { margin-bottom: 0; }
.side-card__meta { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.side-links a { font-weight: 600; }
@media (min-width: 768px) {
	.app-hero { padding: 4rem 0; }
	.app-hero__grid { grid-template-columns: 140px 1fr; gap: 2.5rem; align-items: start; }
	.app-hero__icon { width: 140px; height: 140px; }
}
@media (min-width: 960px) { .app-layout { grid-template-columns: 1fr 340px; gap: 3.5rem; align-items: start; } }

/* ---------- Support / Contact layouts ---------- */
.support-layout, .contact-layout { display: grid; gap: 2.5rem; }
.support-layout__side .side-card p { display: flex; gap: 0.5rem; align-items: flex-start; }
.support-layout__side .side-card .icon { color: var(--teal-deep); flex: none; margin-top: 0.2em; }
.office { background: #fff; border: 1px solid var(--mist); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; }
.office .icon { color: var(--teal-deep); margin-bottom: 0.5rem; }
.office p:last-child { margin-bottom: 0; }
.office small { color: var(--muted); }
@media (min-width: 960px) {
	.support-layout, .contact-layout { grid-template-columns: 1fr 360px; gap: 3.5rem; align-items: start; }
}

/* ---------- Legal ---------- */
.legal__grid { display: grid; gap: 2rem; }
.legal__toc { display: none; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.legal__toc a { display: block; color: var(--muted); text-decoration: none; padding: 0.3em 0.75em; border-left: 3px solid transparent; font-size: 0.95rem; }
.legal__toc a:hover { color: var(--deep-2); }
.legal__toc a.is-active { color: var(--deep-2); border-left-color: var(--teal); font-weight: 700; }
.legal__body { max-width: 72ch; }
.legal__body h2 { font-size: 1.6rem; }
.legal__body h2:first-of-type { margin-top: 0; }
.legal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.legal-list a { display: block; background: #fff; border: 1px solid var(--mist); border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; text-decoration: none; color: var(--ink); }
.legal-list a:hover { border-color: var(--teal); }
.legal-list strong { display: block; color: var(--deep-2); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.2em; }
.legal-list span { color: var(--muted); }
.related-policies { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.related-policies a { display: inline-block; border: 1px solid var(--mist); border-radius: 999px; padding: 0.5em 1em; text-decoration: none; color: var(--deep-2); font-weight: 600; background: var(--sky); }
.related-policies a:hover { border-color: var(--teal); }
@media (min-width: 1000px) {
	.legal__grid { grid-template-columns: 260px 1fr; gap: 4rem; align-items: start; }
	.legal__toc { display: block; position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow: auto; }
	.legal__toc.is-empty { display: none; }
}

/* ---------- Misc ---------- */
.quick-links { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.6rem; }
.quick-links a { display: block; background: #fff; border: 1px solid var(--mist); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; font-weight: 700; text-decoration: none; color: var(--deep-2); }
.post-list { display: grid; gap: 1.25rem; }
.post-card { background: #fff; border: 1px solid var(--mist); border-radius: var(--radius); padding: 1.5rem; }
.post-card h2 { font-size: 1.5rem; margin-bottom: 0.2em; }
.post-card h2 a { color: var(--deep-2); text-decoration: none; }
.post-card__meta { color: var(--muted); font-size: 0.9rem; }
.navigation.pagination { margin-top: 2rem; }
.wp-block-image img, .alignwide { border-radius: var(--radius-sm); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: calc(100% - 32px); max-width: 720px; z-index: 200; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { background: #fff; border: 1px solid var(--mist); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.25rem 1.5rem; }
.cookie-banner h2 { font-size: 1.2rem; margin-bottom: 0.3em; }
.cookie-banner p { font-size: 0.95rem; color: var(--muted); margin-bottom: 1rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-banner__actions .btn { flex: 1 1 auto; min-height: 48px; }
.cookie-note { margin: 0.5rem 0 0; font-size: 0.9rem; }
@media (max-width: 480px) { .cookie-banner__inner { padding: 1rem 1.1rem; } .cookie-banner p { font-size: 0.9rem; } }

/* ---------- WooCommerce (optional plugin) light styling ---------- */
.woocommerce .button, .woocommerce button.button { background: var(--deep-2); color: #fff; border-radius: 12px; font-weight: 700; }
.woocommerce-page .container--narrow { max-width: 1000px; }

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .cookie-banner, .legal__toc, .related-policies, .page-head .link-button, .nav-toggle { display: none !important; }
	body { background: #fff; color: #000; font-size: 11pt; }
	.page-head { background: none; color: #000; padding: 0 0 1rem; }
	.page-head__title { color: #000; }
	.prose a { color: #000; text-decoration: none; }
	.prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
	.legal__grid { display: block; }
}
