/* ==========================================================
   iDeedit — Public Pages
   ========================================================== */

/* --- Site Nav ------------------------------------------- */
.ideedit-site-nav {
	position: relative;
	z-index: 200;
	background: var(--wp--preset--color--base, #fff);
	border-bottom: 1px solid var(--wp--preset--color--contrast-3, #e0e0e0);
	font-family: var(--wp--preset--font-family--body, system-ui, sans-serif);
	font-size: 0.95rem;
}

.ideedit-nav-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0.9rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.ideedit-nav-logo {
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -0.03em;
	text-decoration: none;
	color: var(--wp--preset--color--contrast, #111);
	display: flex;
	align-items: center;
}

.ideedit-nav-logo-img {
	height: 32px;
	width: auto;
	display: block;
}

.ideedit-nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.4rem;
	color: var(--wp--preset--color--contrast, #111);
	padding: 0.2rem 0.4rem;
	line-height: 1;
}

.ideedit-nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.2rem;
}

.ideedit-nav-menu a {
	display: inline-block;
	padding: 0.35rem 0.7rem;
	text-decoration: none;
	color: var(--wp--preset--color--contrast, #111);
	border-radius: 6px;
	transition: background 0.12s;
}

.ideedit-nav-menu a:hover {
	background: var(--wp--preset--color--contrast-3, #f0f0f0);
}

.ideedit-nav-cta a {
	background: var(--wp--preset--color--contrast, #111) !important;
	color: var(--wp--preset--color--base, #fff) !important;
	font-weight: 700;
	padding: 0.35rem 1rem !important;
}

.ideedit-nav-cta a:hover {
	opacity: 0.82;
	background: var(--wp--preset--color--contrast, #111) !important;
}

@media (max-width: 640px) {
	.ideedit-nav-toggle { display: block; }

	.ideedit-nav-menu {
		display: none;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		padding: 0.5rem 0 0.75rem;
		gap: 0;
	}

	.ideedit-nav-menu.open { display: flex; }

	.ideedit-nav-menu li { width: 100%; }

	.ideedit-nav-menu a {
		display: block;
		width: 100%;
		padding: 0.55rem 0.5rem;
	}

	.ideedit-nav-cta { margin-top: 0.5rem; }
}

/* --- Hero ---------------------------------------------- */
.ideedit-hero {
	background: var(--wp--preset--color--contrast, #111) !important;
	color: var(--wp--preset--color--base, #fff) !important;
	padding: 4.5rem 1.5rem 5rem !important;
	text-align: center;
}

.ideedit-hero h1,
.ideedit-hero .wp-block-heading {
	color: var(--wp--preset--color--base, #fff) !important;
	font-size: clamp(2rem, 5vw, 3.25rem) !important;
	line-height: 1.15 !important;
	max-width: 700px;
	margin: 0 auto 1.1rem;
}

.ideedit-hero p,
.ideedit-hero .ideedit-tagline {
	color: rgba(255,255,255,0.82) !important;
	font-size: clamp(1rem, 1.8vw, 1.2rem) !important;
	max-width: 580px;
	margin: 0 auto 2.25rem;
	line-height: 1.6;
}

/* App store CTA inside hero */
.ideedit-app-store-area {
	display: flex;
	gap: 0.9rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}

.ideedit-store-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.7rem 1.4rem;
	background: #fff;
	color: #111 !important;
	border-radius: 10px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none !important;
	transition: opacity 0.15s;
	border: 2px solid transparent;
}

.ideedit-store-btn:hover { opacity: 0.88; }

.ideedit-store-btn-outline {
	background: transparent !important;
	color: rgba(255,255,255,0.88) !important;
	border-color: rgba(255,255,255,0.45) !important;
}

/* Dark CTA-banner buttons (e.g. "Start Tracking Free"): the base rule's
   `color:#111 !important` was defeating the intended white label, leaving
   black text on the dark (#111) banner button. Force readable contrast,
   independent of inline styles or stale page HTML. Hero white buttons
   (.ideedit-app-store-area .ideedit-store-btn) are unaffected. */
.ideedit-cta-banner .ideedit-store-btn {
	background: #111;
	color: #fff !important;
	border-color: transparent;
}

.ideedit-cta-banner .ideedit-store-btn:hover {
	opacity: 0.9;
}

/* --- Feature Card Grid --------------------------------- */
.ideedit-feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1.25rem;
	margin: 2rem 0 0;
}

.ideedit-card {
	background: var(--wp--preset--color--contrast-3, #f7f7f7);
	border-radius: 14px;
	padding: 1.5rem;
}

.ideedit-card-icon {
	font-size: 1.8rem;
	display: block;
	margin-bottom: 0.6rem;
	line-height: 1;
}

.ideedit-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 700;
}

.ideedit-card p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--wp--preset--color--contrast-2, #555);
}

/* --- Feature Use-Case Sections (Features page) -------- */
.ideedit-use-case-section {
	border-left: 3px solid var(--wp--preset--color--contrast, #111);
	padding-left: 1.25rem;
	margin-bottom: 2.5rem;
}

.ideedit-use-case-section h3 {
	margin: 0 0 0.4rem;
	font-size: 1.1rem;
}

.ideedit-use-case-section p {
	margin: 0 0 0.6rem;
	font-size: 0.95rem;
	color: var(--wp--preset--color--contrast-2, #555);
}

.ideedit-use-case-section ul {
	margin: 0.5rem 0 0 1rem;
	padding: 0;
	font-size: 0.92rem;
	color: var(--wp--preset--color--contrast-2, #555);
}

.ideedit-use-case-section li { margin-bottom: 0.3rem; }

/* --- Support Page -------------------------------------- */
.ideedit-support-contact {
	background: var(--wp--preset--color--contrast-3, #f5f5f5);
	border-radius: 14px;
	padding: 1.75rem;
	margin: 1.75rem 0;
	text-align: center;
}

.ideedit-support-contact p { margin: 0.4rem 0; }

.ideedit-support-contact a {
	font-size: 1.1rem;
	font-weight: 700;
}

/* --- Legal Pages --------------------------------------- */
.ideedit-legal {
	line-height: 1.75;
	font-size: 0.95rem;
	color: var(--wp--preset--color--contrast, #111);
}

.ideedit-legal h2 { margin-top: 2.25rem; }
.ideedit-legal h3 { margin-top: 1.5rem; }
.ideedit-legal ul { padding-left: 1.4rem; }
.ideedit-legal li { margin-bottom: 0.4rem; }

/* --- Generic Section / Shared ------------------------- */
.ideedit-section-intro {
	font-size: 1.05rem;
	color: var(--wp--preset--color--contrast-2, #555);
	margin-bottom: 2rem;
	max-width: 680px;
}

.ideedit-cta-banner {
	background: var(--wp--preset--color--contrast-3, #f5f5f5);
	border-radius: 16px;
	padding: 2.5rem 2rem;
	text-align: center;
	margin: 3rem 0;
}

.ideedit-cta-banner h2 { margin: 0 0 0.6rem; }
.ideedit-cta-banner p  { margin: 0 0 1.5rem; opacity: 0.75; }

/* Footer legal links shown inside page content */
.ideedit-page-legal-links {
	font-size: 0.85rem;
	opacity: 0.65;
	margin-top: 2rem;
}

.ideedit-page-legal-links a { margin-right: 1rem; }

/* --- Example Use Cases --------------------------------- */
.ideedit-examples-section {
	padding: 3.5rem 1.5rem;
	background: var(--wp--preset--color--contrast-3, #f7f7f7);
}

.ideedit-examples-section h2 {
	text-align: center;
	margin: 0 0 0.5rem;
}

.ideedit-examples-section > p {
	text-align: center;
	color: var(--wp--preset--color--contrast-2, #666);
	margin: 0 0 2.25rem;
	font-size: 1rem;
}

.ideedit-examples-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
	max-width: 960px;
	margin: 0 auto;
}

.ideedit-example-card {
	background: #fff;
	border-radius: 12px;
	padding: 1.25rem 1.4rem;
	border: 1px solid rgba(0,0,0,0.07);
}

.ideedit-example-card-header {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.5rem;
}

.ideedit-example-icon {
	font-size: 1.4rem;
	line-height: 1;
}

.ideedit-example-card h3 {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
}

.ideedit-example-quote {
	font-size: 0.88rem;
	color: var(--wp--preset--color--contrast-2, #555);
	font-style: italic;
	margin: 0 0 0.75rem;
	line-height: 1.5;
}

.ideedit-example-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.ideedit-tag {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	background: var(--wp--preset--color--contrast-3, #f0f0f0);
	border-radius: 20px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast-2, #555);
	letter-spacing: 0.01em;
}

/* --- AI Smart Setup ------------------------------------ */
.ideedit-ai-section {
	padding: 3.5rem 1.5rem;
	max-width: 860px;
	margin: 0 auto;
}

.ideedit-ai-section h2 {
	text-align: center;
	margin: 0 0 0.5rem;
}

.ideedit-ai-section > p {
	text-align: center;
	color: var(--wp--preset--color--contrast-2, #666);
	margin: 0 0 2.5rem;
}

.ideedit-ai-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
	align-items: start;
}

.ideedit-ai-step {
	text-align: center;
	padding: 1.5rem 1rem;
}

.ideedit-ai-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	background: var(--wp--preset--color--contrast, #111);
	color: var(--wp--preset--color--base, #fff);
	font-size: 0.9rem;
	font-weight: 800;
	margin-bottom: 0.9rem;
}

.ideedit-ai-step h3 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 700;
}

.ideedit-ai-step p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--wp--preset--color--contrast-2, #555);
	line-height: 1.55;
}

.ideedit-ai-example {
	background: var(--wp--preset--color--contrast-3, #f5f5f5);
	border-radius: 10px;
	padding: 1.25rem 1.5rem;
	margin: 2rem auto 0;
	max-width: 600px;
	font-size: 0.9rem;
	line-height: 1.6;
}

.ideedit-ai-example p { margin: 0 0 0.4rem; }
.ideedit-ai-example p:last-child { margin: 0; }

.ideedit-ai-example .ideedit-ai-user {
	color: var(--wp--preset--color--contrast-2, #555);
	font-style: italic;
}

.ideedit-ai-example .ideedit-ai-result {
	color: var(--wp--preset--color--contrast, #111);
	font-weight: 600;
}

/* --- Screenshots --------------------------------------- */
.ideedit-screenshots-section {
	padding: 3.5rem 1.5rem;
	background: var(--wp--preset--color--contrast, #111);
	color: var(--wp--preset--color--base, #fff);
}

.ideedit-screenshots-section h2 {
	text-align: center;
	color: var(--wp--preset--color--base, #fff);
	margin: 0 0 0.5rem;
}

.ideedit-screenshots-section > p {
	text-align: center;
	color: rgba(255,255,255,0.65);
	margin: 0 0 2.25rem;
}

.ideedit-screenshots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem 1.5rem;
	max-width: 920px;
	margin: 0 auto;
	justify-items: center;
}

.ideedit-screenshot-slot {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 248px;
}

/* App-like device frame around each screenshot */
.ideedit-screenshot-frame {
	display: block;
	width: 100%;
	padding: 8px;
	background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
	border: 1px solid rgba(255,255,255,0.16);
	border-radius: 28px;
	box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.ideedit-screenshot-frame img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 20px;
}

.ideedit-screenshot-caption {
	margin: 0.9rem 0 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: rgba(255,255,255,0.7);
	text-align: center;
	line-height: 1.4;
}

/* --- Trust Signals ------------------------------------- */
.ideedit-trust-section {
	padding: 3.5rem 1.5rem;
	max-width: 900px;
	margin: 0 auto;
}

.ideedit-trust-section h2 {
	text-align: center;
	margin: 0 0 0.5rem;
}

.ideedit-trust-section > p {
	text-align: center;
	color: var(--wp--preset--color--contrast-2, #666);
	margin: 0 0 2.25rem;
}

.ideedit-trust-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1.25rem;
}

.ideedit-trust-item {
	padding: 1.4rem;
	border: 1px solid var(--wp--preset--color--contrast-3, #e5e5e5);
	border-radius: 12px;
}

.ideedit-trust-icon {
	font-size: 1.6rem;
	display: block;
	margin-bottom: 0.65rem;
	line-height: 1;
}

.ideedit-trust-item h3 {
	margin: 0 0 0.4rem;
	font-size: 0.95rem;
	font-weight: 700;
}

.ideedit-trust-item p {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--wp--preset--color--contrast-2, #555);
}

/* --- Page wrapper (plugin template) -------------------- */
body.ideedit-public-page {
	margin: 0;
	padding: 0;
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #111);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ideedit-page-wrap {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.ideedit-page-main {
	flex: 1;
	padding-top: 60px; /* height of the fixed nav bar */
}

/* --- Site footer ---------------------------------------- */
.ideedit-site-footer {
	background: var(--wp--preset--color--contrast, #111);
	color: rgba(255,255,255,0.6);
	padding: 2rem 1.5rem;
	margin-top: 3rem;
}

.ideedit-footer-inner {
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.ideedit-footer-copy {
	margin: 0;
	font-size: 0.85rem;
}

.ideedit-footer-nav {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.ideedit-footer-nav a {
	color: rgba(255,255,255,0.6);
	text-decoration: none;
	font-size: 0.85rem;
	transition: color 0.15s;
}

.ideedit-footer-nav a:hover {
	color: #fff;
}

/* --- Nav: legal links (smaller, secondary style) -------- */
.ideedit-nav-legal a {
	font-size: 0.82rem;
	opacity: 0.7;
}

@media (max-width: 700px) {
	.ideedit-footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
