/* =========================================================
   EndorseOn – shared modern styles
   Used by: index.php, login and registration pages.
   Matches the look of business-index.php / partner-index.php.
   ========================================================= */

:root {
	--brand: #009cde;
	--brand-dark: #007cb1;
	--brand-soft: rgba(0, 156, 222, .10);
	--ink: #0f172a;
	--ink-soft: #1e293b;
	--muted: #64748b;
	--line: #e2e8f0;
	--surface: #ffffff;
	--page: #f8fbfd;
	--danger: #b42318;
	--danger-soft: #fef3f2;
	--success: #067647;
	--success-soft: #ecfdf3;
	--maple: #d32f2f;
	--radius: 18px;
	--shadow: 0 16px 36px rgba(15, 23, 42, .08);
	--nav-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.eo {
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--page);
	-webkit-font-smoothing: antialiased;
}

.eo a { color: inherit; }
.eo img { max-width: 100%; }

.eo .container { width: min(1120px, 92%); margin: 0 auto; }
.eo .container-narrow { width: min(460px, 92%); margin: 0 auto; }
.eo section { padding: 72px 0; }
.eo section[id] { scroll-margin-top: calc(var(--nav-height) + 16px); }

.eo .skip-link {
	position: absolute; left: -999px; top: 8px;
	background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 2000;
}
.eo .skip-link:focus { left: 8px; }

.eo :focus-visible { outline: 3px solid rgba(0, 156, 222, .45); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.eo .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 24px; border-radius: 12px; border: 1px solid transparent;
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.eo .btn:hover { transform: translateY(-2px); }
.eo .btn-primary { background: var(--brand); color: #fff; }
.eo .btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 22px rgba(0, 156, 222, .25); }
.eo .btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.eo .btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.eo .btn-block { width: 100%; }
.eo .btn-sm { padding: 9px 16px; font-size: .92rem; }

/* ---------- Header ---------- */
.eo-header {
	position: sticky; top: 0; z-index: 1000;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.eo-header .nav-inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: var(--nav-height); gap: 16px;
}
.eo-header .brand img { width: 190px; height: auto; display: block; }
.eo-header .nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.eo-header .nav-links > li > a,
.eo-header .login-menu > summary {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 9px 12px; border-radius: 10px;
	font-weight: 500; font-size: .95rem; color: var(--ink-soft); text-decoration: none;
	cursor: pointer; list-style: none;
}
.eo-header .login-menu > summary::-webkit-details-marker { display: none; }
.eo-header .nav-links > li > a:hover,
.eo-header .login-menu > summary:hover,
.eo-header .nav-links > li > a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
.eo-header .nav-links .maple { color: var(--maple); }

.eo-header .login-menu { position: relative; }
.eo-header .login-menu .caret { font-size: .7rem; transition: transform .2s; }
.eo-header .login-menu[open] .caret { transform: rotate(180deg); }
.eo-header .login-menu .menu {
	position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
	background: #fff; border: 1px solid var(--line); border-radius: 14px;
	box-shadow: var(--shadow); padding: 6px; list-style: none;
}
.eo-header .login-menu .menu a {
	display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: .95rem;
}
.eo-header .login-menu .menu a:hover { background: var(--brand-soft); }
.eo-header .login-menu .menu small { display: block; color: var(--muted); font-size: .8rem; }

.eo-header .nav-toggle {
	display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px;
	width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}

@media (max-width: 900px) {
	.eo-header .brand img { width: 160px; }
	.eo-header .nav-toggle { display: inline-flex; }
	.eo-header nav { display: none; }
	.eo-header.is-open nav {
		display: block; position: absolute; left: 0; right: 0; top: 100%;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		padding: 10px 4% 18px;
	}
	.eo-header .nav-links { flex-direction: column; align-items: stretch; }
	.eo-header .nav-links > li > a,
	.eo-header .login-menu > summary { padding: 12px; width: 100%; }
	.eo-header .login-menu .menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
}

/* ---------- Hero ---------- */
.eo .hero { background: linear-gradient(#fff, #f2faff); padding: 80px 0 72px; }
.eo .hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eo .badge {
	display: inline-block; background: var(--brand-soft); color: var(--brand-dark);
	padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; margin-bottom: 18px;
}
.eo .hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 18px; }
.eo .hero h1 em { font-style: normal; color: var(--brand); }
.eo .hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin-bottom: 28px; }
.eo .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.eo .hero-trust { margin-top: 18px; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.eo .hero-trust i { color: var(--brand); margin-right: 4px; }
.eo .path .eyebrow i { margin-right: 6px; }
.eo .step-num i { font-size: 1rem; }
.eo .alert .fa, .eo .alert .fas, .eo .alert .far { margin-right: 4px; }
.eo-footer li a i { color: var(--muted); margin-right: 4px; }
.eo-header .login-menu .menu a i { color: var(--brand-dark); margin-right: 4px; }
.eo-header .login-menu .menu small { padding-left: 22px; }
.eo-header .nav-toggle i { font-size: 1.1rem; color: var(--ink); }

/* Flow illustration (hero right) */
.eo .flow {
	background: #fff; border: 1px solid var(--line); border-radius: 22px;
	box-shadow: 0 24px 50px rgba(15, 23, 42, .08); padding: 22px;
}
.eo .flow-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.eo .flow-step .icon {
	flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
	background: var(--brand-soft); color: var(--brand-dark); font-size: 1.2rem;
}
.eo .flow-step strong { display: block; font-size: .98rem; }
.eo .flow-step span { color: var(--muted); font-size: .9rem; }
.eo .flow-arrow { text-align: center; color: var(--brand); font-size: 1.1rem; line-height: 1; padding: 6px 0; }
.eo .flow-foot { margin-top: 14px; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Sections ---------- */
.eo .section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.eo .section-head h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.25; letter-spacing: -.01em; margin-bottom: 10px; }
.eo .section-head p { color: var(--muted); font-size: 1.05rem; }

.eo .grid { display: grid; gap: 24px; }
.eo .grid-2 { grid-template-columns: repeat(2, 1fr); }
.eo .grid-3 { grid-template-columns: repeat(3, 1fr); }

.eo .card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px; box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}
.eo .card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.eo .card p { color: var(--muted); }
.eo .step-num {
	width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
	background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; margin-bottom: 14px;
}

/* Audience path cards */
.eo .path { display: flex; flex-direction: column; }
.eo .path .eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 8px; }
.eo .path h3 { font-size: 1.5rem; line-height: 1.25; margin-bottom: 10px; }
.eo .checks { list-style: none; margin: 18px 0 24px; }
.eo .checks li { position: relative; padding-left: 30px; margin-top: 10px; color: var(--ink-soft); }
.eo .checks li::before {
	content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900;
	position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--brand-soft); color: var(--brand-dark); font-size: .65rem;
	display: grid; place-items: center;
}
.eo .path .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.eo .path.partner { border-top: 4px solid #00266c; }
.eo .path.business { border-top: 4px solid var(--brand); }
.eo .path .note { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.eo .path .note a { color: var(--brand-dark); font-weight: 600; }

/* Direct mail band */
.eo .band {
	background: linear-gradient(135deg, #07131d, #0f2434); color: #fff;
	border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.eo .band .tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(211, 47, 47, .18); color: #ffb4b4; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.eo .band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin-bottom: 12px; }
.eo .band p { color: #cbd5e1; }
.eo .band .price { font-size: 3rem; font-weight: 800; line-height: 1; }
.eo .band .price small { display: block; font-size: .95rem; font-weight: 500; color: #cbd5e1; margin-top: 6px; }
.eo .band .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* CTA box */
.eo .cta-box { text-align: center; padding: 48px 28px; }
.eo .cta-box h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: 10px; }
.eo .cta-box .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Alerts ---------- */
.eo .alert { border-radius: 12px; padding: 12px 14px; font-size: .95rem; margin-bottom: 18px; border: 1px solid; }
.eo .alert-error { background: var(--danger-soft); color: var(--danger); border-color: #fecdca; }
.eo .alert-success { background: var(--success-soft); color: var(--success); border-color: #abefc6; }
.eo .alert-info { background: #eef8fd; color: var(--ink-soft); border-color: #cdeaf7; }
.eo .alert a { font-weight: 600; color: inherit; }
.eo .alert-danger { background: var(--danger-soft); color: var(--danger); border-color: #fecdca; }
.eo .alert .close { display: none; }
.eo .alert ul { margin: 6px 0 0 18px; }
.eo .email-chip { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--page); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; font-weight: 600; word-break: break-all; }
.eo .email-chip a { font-weight: 600; color: var(--brand-dark); text-decoration: none; white-space: nowrap; font-size: .9rem; }
.eo details.more { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; background: #fff; }
.eo details.more > summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.eo details.more[open] > summary { margin-bottom: 12px; }
.eo details.more ul { margin: 8px 0 0 18px; color: var(--muted); font-size: .92rem; }
.eo .result-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }
.eo .result-icon.ok { background: var(--success-soft); color: var(--success); }
.eo .result-icon.bad { background: var(--danger-soft); color: var(--danger); }
.eo .muted { color: var(--muted); }
.eo .small { font-size: .88rem; }

/* ---------- Auth pages ---------- */
.eo .auth { padding: 56px 0 72px; min-height: calc(100vh - var(--nav-height) - 140px); }
.eo .auth-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 36px 32px; }
.eo .auth-card .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); }
.eo .auth-card h1 { font-size: 1.75rem; line-height: 1.25; margin: 6px 0 8px; letter-spacing: -.01em; }
.eo .auth-card .sub { color: var(--muted); margin-bottom: 24px; }
.eo .auth-switch { display: flex; background: var(--page); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.eo .auth-switch a { flex: 1; text-align: center; padding: 8px; border-radius: 9px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--muted); }
.eo .auth-switch a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(15, 23, 42, .08); }
.eo .auth-foot { text-align: center; margin-top: 22px; color: var(--muted); font-size: .95rem; }
.eo .auth-foot a, .eo .link { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.eo .auth-foot a:hover, .eo .link:hover { text-decoration: underline; }
.eo .auth-steps { display: flex; gap: 8px; margin-bottom: 18px; }
.eo .auth-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.eo .auth-steps span.on { background: var(--brand); }

/* ---------- Forms ---------- */
.eo .field { margin-bottom: 16px; }
.eo .field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink-soft); }
.eo .field .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.eo .field input[type="text"],
.eo .field input[type="email"],
.eo .field input[type="password"],
.eo .field input[type="tel"],
.eo .field select,
.eo .field textarea {
	width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
	background: #fff; border: 1px solid #cbd5e1; border-radius: 12px;
	transition: border-color .15s, box-shadow .15s;
}
.eo .field input:focus, .eo .field select:focus, .eo .field textarea:focus {
	outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 156, 222, .15);
}
.eo .field.has-error input, .eo .field.has-error select { border-color: var(--danger); }
.eo .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eo .pw-wrap { position: relative; }
.eo .pw-wrap input { padding-right: 52px; }
.eo .pw-toggle {
	font-size: 1rem !important; width: 40px; text-align: center;
	position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
	background: none; border: 0; color: var(--brand-dark); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: 6px 8px;
}
.eo .check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); margin: 6px 0 18px; }
.eo .check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--brand); }
.eo .row-between a { white-space: nowrap; }
.eo .row-between { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin: -4px 0 18px; font-size: .9rem; }
.eo .divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 22px 0; }
.eo .divider::before, .eo .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.eo .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.eo-footer { background: #fff; border-top: 1px solid var(--line); padding: 52px 0 28px; margin-top: 24px; }
.eo-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.eo-footer .brand img { width: 170px; }
.eo-footer p { color: var(--muted); font-size: .92rem; margin-top: 12px; max-width: 300px; }
.eo-footer h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.eo-footer ul { list-style: none; }
.eo-footer li + li { margin-top: 8px; }
.eo-footer a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; }
.eo-footer a:hover { color: var(--brand-dark); }
.eo-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.eo .hero-grid, .eo .band { grid-template-columns: 1fr; }
	.eo .grid-3 { grid-template-columns: 1fr; }
	.eo-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
	.eo section { padding: 52px 0; }
	.eo .hero { padding: 48px 0 52px; }
	.eo .grid-2 { grid-template-columns: 1fr; }
	.eo .band { padding: 32px 24px; }
	.eo .card { padding: 22px; }
	.eo .auth-card { padding: 28px 20px; border-radius: 18px; }
	.eo .field-row { grid-template-columns: 1fr; gap: 0; }
	.eo .hero-actions .btn, .eo .path .actions .btn { flex: 1 1 auto; }
}
@media (max-width: 480px) {
	.eo-footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.eo .btn, .eo-header * { transition: none !important; }
}

/* Font Awesome touches */
.eo .auth-switch a i { margin-right: 6px; }
.eo details.more > summary i { color: var(--brand-dark); margin-right: 6px; width: 16px; text-align: center; }
.eo .email-chip i { color: var(--muted); margin-right: 6px; }
.eo .btn i { font-size: .95em; }
.eo .check.has-error { color: var(--danger); }
.eo .check.has-error input { outline: 2px solid var(--danger); outline-offset: 1px; }

/* EBIS-Pro product highlight (homepage) */
.eo .product { display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: center; padding: 36px; border-top: 4px solid #0f2434; }
.eo .product .eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); }
.eo .product .eyebrow i { margin-right: 6px; }
.eo .product h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.25; margin: 10px 0 12px; letter-spacing: -.01em; }
.eo .product-price { margin: 4px 0 20px; font-size: 1.05rem; color: var(--ink); }
.eo .product-price strong { font-size: 1.5rem; }
.eo .product-price span { color: var(--muted); font-size: .95rem; }
.eo .product .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.eo .product-shot { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(15, 23, 42, .12); }
.eo .product-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 980px) { .eo .product { grid-template-columns: 1fr; padding: 26px 22px; } .eo .product-shot { order: -1; } }

.eo-footer .trademark { max-width: none; margin-top: 14px; color: var(--muted); font-size: .8rem; line-height: 1.5; }

/* "More from EndorseOn" (homepage) */
.eo .more { padding: 36px; background: #f8fafc; }
.eo .more-head { text-align: center; max-width: 620px; margin: 0 auto 28px; }
.eo .more-head .eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); }
.eo .more-head h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); line-height: 1.25; margin: 8px 0; }
.eo .more-head p { color: var(--muted); }
.eo .more-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.eo .more-item h3 { font-size: 1.2rem; margin: 12px 0 6px; }
.eo .more-item > p { color: var(--muted); }
.eo .more-item .checks { margin: 14px 0 16px; }
.eo .more-item .btn { margin-top: auto; align-self: flex-start; }
.eo .more-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); font-size: 1.2rem; }
.eo .more-icon.maple { background: #fdecec; color: var(--maple); }
.eo .more-item > p.more-price { margin: 0 0 18px; color: var(--ink); }
.eo .more-price strong { font-size: 1.25rem; }
@media (max-width: 720px) { .eo .more { padding: 24px 18px; } .eo .more-item .btn { align-self: stretch; } }
.eo-header .login-menu .menu .maple { color: var(--maple); }
.eo-header .login-menu .menu a[aria-current="page"] { background: var(--brand-soft); }
.eo-header .more-menu .menu { min-width: 300px; }
.eo .more-item > p.more-sub { margin: -2px 0 8px; font-size: .9rem; font-weight: 600; color: var(--maple); }
.eo .more-item > p.more-sub i { margin-right: 4px; font-size: .8rem; }
