/* ==========================================================================
   eSIM DVK – homepage sections (template-home.php)
   Layout follows the DVK Design System marketing kit: Hero, Plans,
   How it works, Why DVK, Support & FAQ, closing CTA.
   ========================================================================== */

/* --- Hero: soft brand wash, copy left, featured plan card right --- */
.edv-hero {
	position: relative;
	padding: 48px 0 56px;
	background: var(--edv-gradient-soft);
	overflow: hidden;
}

.edv-hero__inner {
	display: grid;
	gap: 40px;
	align-items: center;
}

.edv-hero__title {
	font-size: clamp(2.25rem, 1.4rem + 3.8vw, 4rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0;
}

.edv-hero__lead {
	max-width: 460px;
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--edv-text-2);
	margin: 18px 0 0;
}

.edv-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-top: 28px;
}

.edv-hero__actions .edv-btn { flex: 1 1 auto; }
.edv-hero__actions .edv-reassure { flex: 1 0 100%; margin-top: 0; }

.edv-hero__points {
	list-style: none;
	margin: 26px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.edv-hero__points li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 12px 8px 10px;
	border-radius: var(--edv-radius-pill);
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(232, 213, 191, 0.8);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--edv-text);
}

.edv-hero__points .edv-icon { width: 16px; height: 16px; color: var(--edv-primary); }

/* Featured plan card */
.edv-hero__visual { display: grid; }

.edv-hero-card {
	background: var(--edv-surface);
	border: 1px solid var(--edv-border);
	border-radius: var(--edv-radius-2xl);
	box-shadow: var(--edv-shadow-lg);
	padding: 24px;
}

.edv-hero-card__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.edv-hero-card__data {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--edv-text);
	letter-spacing: -0.02em;
}

.edv-hero-card__meta {
	font-family: var(--edv-font-mono);
	font-weight: 500;
	font-size: 0.875rem;
	color: var(--edv-text-muted);
	margin: 0 0 18px;
}

.edv-hero-card__meta .woocommerce-Price-amount { font-family: inherit; font-weight: 600; color: var(--edv-text); }
.edv-hero-card__meta del { opacity: 0.7; margin-right: 4px; }
.edv-hero-card__meta ins { text-decoration: none; color: var(--edv-primary-hover); }

.edv-hero-card__art {
	position: relative;
	height: 216px;
	border-radius: var(--edv-radius-lg);
	background: var(--edv-surface-sunken);
	overflow: hidden;
	display: grid;
	place-items: center;
	margin-bottom: 18px;
}

/* Stylised eSIM inside the art area */
.edv-sim {
	position: relative;
	width: 196px;
	height: 118px;
	padding: 12px 14px;
	border-radius: 16px;
	background: linear-gradient(135deg, #d6272b 0%, #f0791e 60%, #fdb913 100%);
	color: #fff;
	box-shadow: var(--edv-shadow-brand);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transform: rotate(-5deg);
}

.edv-sim__top { display: flex; justify-content: space-between; align-items: center; }
.edv-sim__brand { font-weight: 700; font-size: 0.9rem; }
.edv-sim__brand strong { font-weight: 800; }
.edv-sim__flag {
	font-family: var(--edv-font-mono);
	font-weight: 600;
	font-size: 0.7rem;
	padding: 2px 8px;
	border-radius: var(--edv-radius-pill);
	background: rgba(255, 255, 255, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.5);
}

.edv-sim__chip { width: 40px; height: auto; }
.edv-sim__meta { display: flex; align-items: baseline; justify-content: space-between; }
.edv-sim__label { font-weight: 600; font-size: 0.8rem; opacity: 0.95; }
.edv-sim__value { font-family: var(--edv-font-mono); font-weight: 600; font-size: 1.1rem; }

.edv-sim__bars { position: absolute; right: 14px; top: 40px; display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.edv-sim__bars i { width: 3px; background: #fff; border-radius: 2px; }
.edv-sim__bars i:nth-child(1) { height: 30%; }
.edv-sim__bars i:nth-child(2) { height: 50%; }
.edv-sim__bars i:nth-child(3) { height: 70%; }
.edv-sim__bars i:nth-child(4) { height: 100%; }

.edv-hero-card__pill {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: var(--edv-radius-pill);
	background: #fff;
	color: var(--edv-text);
	font-weight: 700;
	font-size: 0.75rem;
	box-shadow: var(--edv-shadow-sm);
	white-space: nowrap;
}

.edv-hero-card__pill .edv-icon { width: 14px; height: 14px; color: var(--edv-primary); }
.edv-hero-card__pill--1 { left: 12px; bottom: 12px; }
.edv-hero-card__pill--2 { right: 12px; top: 12px; }

.edv-hero-card__features {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: grid;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--edv-text-2);
}

.edv-hero-card__features li { display: flex; align-items: center; gap: 8px; }
.edv-hero-card__features .edv-icon { width: 18px; height: 18px; color: var(--edv-success); }
.edv-hero-card__features li.is-no .edv-icon { color: var(--edv-ink-300); }
.edv-hero-card__features li.is-no { color: var(--edv-text-muted); }

.edv-hero-card .edv-reassure { text-align: center; }

@media (min-width: 768px) {
	.edv-hero { padding: 72px 0; }
	.edv-hero__actions .edv-btn { flex: 0 0 auto; }
	.edv-hero__actions .edv-reassure { flex: 0 0 auto; }
	.edv-hero-card { padding: 28px; }
}

@media (min-width: 1024px) {
	.edv-hero { padding: 88px 0 72px; }
	.edv-hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
	.edv-hero-card__art { height: 224px; }
}

/* --- Plans --- */
.edv-plan-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) { .edv-plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .edv-plan-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .edv-plan-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } }

.edv-plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
}

.edv-plan-card.is-featured { border-color: var(--edv-orange-300); box-shadow: var(--edv-shadow-brand); }

.edv-plan-card__badge { align-self: flex-start; }

.edv-plan-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.edv-plan-card__name { font-size: 1rem; line-height: 1.35; margin: 0; font-weight: 700; }
.edv-plan-card__name a { color: var(--edv-text-2); text-decoration: none; }
.edv-plan-card__name a:hover { color: var(--edv-primary); text-decoration: none; }

.edv-plan-card__network {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
	padding: 3px 9px;
	border-radius: var(--edv-radius-pill);
	background: var(--edv-blue-100);
	color: var(--edv-accent);
	font-size: 0.7rem;
	font-weight: 700;
}

.edv-plan-card__network .edv-icon { width: 13px; height: 13px; }

.edv-plan-card__data-value {
	display: block;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--edv-text);
}

.edv-plan-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
	font-family: var(--edv-font-mono);
	font-weight: 500;
	font-size: 0.8125rem;
	color: var(--edv-text-muted);
}

.edv-plan-card__features {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: grid;
	gap: 7px;
	font-size: 0.875rem;
}

.edv-plan-card__features li { display: flex; align-items: center; gap: 8px; color: var(--edv-text-2); }
.edv-plan-card__features .edv-icon { width: 17px; height: 17px; }
.edv-plan-card__features li.is-yes .edv-icon { color: var(--edv-success); }
.edv-plan-card__features li.is-no { color: var(--edv-text-muted); }
.edv-plan-card__features li.is-no .edv-icon { color: var(--edv-ink-300); }

.edv-plan-card__price {
	margin-top: auto;
	padding-top: 6px;
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--edv-primary);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.edv-plan-card__price .woocommerce-Price-amount { font-weight: 800; color: inherit; }
.edv-plan-card__price del { font-size: 1rem; font-weight: 600; color: var(--edv-text-muted); margin-right: 6px; opacity: 1; }
.edv-plan-card__price del .woocommerce-Price-amount { font-weight: 600; color: var(--edv-text-muted); }
.edv-plan-card__price ins { text-decoration: none; color: var(--edv-primary); }

.edv-plan-card__actions { display: grid; gap: 8px; text-align: center; }
.edv-plan-card__details { font-size: 0.8125rem; font-weight: 600; color: var(--edv-text-muted); }
.edv-plan-card__details:hover { color: var(--edv-accent-hover); text-decoration: underline; }

.edv-plans__foot {
	margin: 28px 0 0;
	color: var(--edv-text-muted);
	font-size: 0.9rem;
}

.edv-plans__foot a { color: var(--edv-accent); font-weight: 600; margin-left: 6px; }

/* --- How it works --- */
.edv-steps {
	counter-reset: edv-step;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 28px;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) { .edv-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.edv-step__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--edv-gradient);
	color: #fff;
	box-shadow: var(--edv-shadow-brand);
}

.edv-step__icon .edv-icon { width: 26px; height: 26px; }
.edv-step { counter-increment: edv-step; }
.edv-step__title { font-size: 1.125rem; font-weight: 700; margin: 0 0 6px; letter-spacing: 0; }
.edv-step__title::before { content: counter(edv-step) ". "; }
.edv-step__text { margin: 0; line-height: 1.65; color: var(--edv-text-2); font-size: 0.95rem; }

.edv-how__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* --- Why DVK --- */
.edv-why__grid {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) { .edv-why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .edv-why__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.edv-feature { padding: 22px; }

.edv-feature__icon {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 14px;
	border-radius: var(--edv-radius-md);
	background: var(--edv-surface-sunken);
	color: var(--edv-primary);
}

.edv-feature__icon .edv-icon { width: 22px; height: 22px; }
.edv-feature__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; letter-spacing: 0; }
.edv-feature__text { margin: 0; line-height: 1.6; color: var(--edv-text-2); font-size: 0.925rem; }

/* --- Support & FAQ --- */
.edv-faq__inner { display: grid; gap: 32px; }
.edv-faq__inner .edv-section__head { margin-bottom: 0; }
.edv-faq__inner .edv-section__lead { margin-bottom: 18px; }
.edv-faq__inner .edv-accordion { max-width: 680px; }

@media (min-width: 1024px) {
	.edv-faq__inner { grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
	.edv-faq__inner .edv-section__head { position: sticky; top: 100px; }
}

/* --- Closing CTA: white card on soft wash, gradient reserved for the button --- */
.edv-cta { padding-top: 0; }

.edv-cta__box {
	display: grid;
	gap: 24px;
	padding: 32px 24px;
	border-radius: var(--edv-radius-xl);
	background: var(--edv-gradient-soft);
	border: 1px solid var(--edv-border);
}

.edv-cta__title { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.25rem); margin: 0 0 8px; }
.edv-cta__text { margin: 0; font-size: 1.05rem; color: var(--edv-text-2); }
.edv-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.edv-cta__actions .edv-btn { flex: 1 1 auto; }

@media (min-width: 768px) {
	.edv-cta__box { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 44px 48px; }
	.edv-cta__actions { justify-content: flex-end; }
	.edv-cta__actions .edv-btn { flex: 0 0 auto; }
}
