/* Home (templates/front-page.html + patterns/home.php). */
.an-home { margin: 0; }
.an-home h2 { font-size: var(--wp--preset--font-size--x-large); letter-spacing: -.02em; margin: 6px 0 0; }
.an-section { padding: 40px 0; }
.an-section--tight { padding-top: 0; }
.an-section__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
.an-section__head p:not(.an-eyebrow) { margin: 8px 0 0; color: var(--wp--preset--color--muted); max-width: 620px; }
.an-link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 590; font-size: 15px; }
.an-link-more .an-icon { width: 18px; height: 18px; }

/* Hero */
.an-hero { background: var(--wp--preset--color--deep); color: #fff; position: relative; overflow: hidden; }
.an-hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(70,180,188,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(70,180,188,.07) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.an-hero__row { position: relative; display: grid; gap: 36px; padding-top: 36px !important; padding-bottom: 56px !important; }
.an-hero__title { color: #fff; font-size: var(--wp--preset--font-size--display); letter-spacing: -.02em; line-height: 1.05; margin: 14px 0 0; }
.an-hero__lead { font-size: 17px; color: #CFE3E5; max-width: 540px; margin: 18px 0 26px; }
.an-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.an-hero__ctas .an-btn { flex: 1 1 200px; }
.an-hero__stats { display: flex; gap: 22px; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.an-hero__stats dt { font-size: 21px; font-weight: 590; letter-spacing: -.02em; }
.an-hero__stats dd { margin: 0; font-size: 13.5px; color: #9FC3C6; }
.an-hero__visual { position: relative; }
.an-hero__photo { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.an-hero__photo img { width: 100%; aspect-ratio: 16/10; object-fit: contain; display: block; }
.an-reading { position: absolute; left: 12px; bottom: -24px; width: 220px; background: var(--wp--preset--color--slate-deep); color: #fff; border: 1px solid #36404a; border-radius: var(--wp--custom--radius--card); padding: 12px 14px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); }
.an-reading__top { display: flex; justify-content: space-between; font-size: 12px; color: #AEB8C2; }
.an-reading__live { display: flex; align-items: center; gap: 6px; color: var(--wp--preset--color--lime); font-weight: 590; }
.an-reading__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wp--preset--color--lime); }
.an-reading__val { font-family: var(--wp--preset--font-family--mono); font-size: 24px; font-weight: 500; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.an-reading__val small { font-size: 12.5px; color: #AEB8C2; margin-left: 6px; }
.an-reading svg { width: 100%; height: 36px; display: block; }

/* Trust strip */
.an-trust { background: var(--wp--preset--color--surface); border-bottom: 1px solid var(--wp--preset--color--border); }
.an-trust__list { list-style: none; margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: 1fr 1fr; padding-top: 6px !important; padding-bottom: 6px !important; }
.an-trust__list li { display: flex; align-items: center; gap: 12px; padding: 12px 6px; font-size: 14px; line-height: 1.3; }
.an-trust__list li:nth-child(5) { display: none; }
.an-trust__list .an-icon { color: var(--wp--preset--color--brand); width: 26px; height: 26px; stroke-width: 1.5; }
.an-trust__list b { display: block; font-weight: 590; font-size: 15px; }
.an-trust__list span { color: var(--wp--preset--color--muted); font-size: 13.5px; }

/* Segments */
.an-segs { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; }
.an-seg { flex: 0 0 76%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 0 20px 20px; background: var(--wp--preset--color--surface); border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); color: var(--wp--preset--color--text) !important; text-decoration: none !important; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.an-seg:hover { box-shadow: 0 0 0 1px var(--wp--preset--color--brand), var(--wp--preset--shadow--raised); transform: translateY(-2px); }
.an-seg__img { display: block; height: 132px; margin: 0 -20px 6px; background: var(--wp--preset--color--tint); overflow: hidden; }
.an-seg__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.an-seg:hover .an-seg__img img { transform: scale(1.04); }
.an-seg__name { display: flex; align-items: center; gap: 10px; color: var(--wp--preset--color--brand); }
.an-seg__name b { color: var(--wp--preset--color--text); font-size: 19px; font-weight: 590; }
.an-seg__desc { font-size: 14px; color: var(--wp--preset--color--muted); flex: 1; }
.an-seg__params { display: flex; flex-wrap: wrap; gap: 5px; }
.an-seg__go { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 590; color: var(--wp--preset--color--brand); }
.an-seg__go .an-icon { width: 16px; height: 16px; }

/* Category tiles */
.an-cats { display: grid; grid-template-columns: 1fr; gap: 8px; }
.an-cat { display: flex; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; background: var(--wp--preset--color--surface); border-radius: var(--wp--custom--radius--card); box-shadow: var(--wp--preset--shadow--ring); color: var(--wp--preset--color--text) !important; text-decoration: none !important; }
.an-cat:hover { box-shadow: 0 0 0 1px var(--wp--preset--color--brand); }
.an-cat__img { width: 72px; aspect-ratio: 4/3; flex: none; display: grid; place-items: center; background: #fff; border-radius: var(--wp--custom--radius--tile); color: var(--wp--preset--color--brand); overflow: hidden; }
.an-cat__img:has(svg) { background: var(--wp--preset--color--tint); }
.an-cat__img img { width: 100%; height: 100%; object-fit: contain; }
.an-cat__img .an-icon { width: 28px; height: 28px; stroke-width: 1.3; }
.an-cat b { flex: 1; font-size: 15px; font-weight: 590; line-height: 1.2; overflow-wrap: anywhere; }
.an-cat > span:last-child { font-size: 13px; color: var(--wp--preset--color--muted); white-space: nowrap; }

/* Solution band */
.an-solution { background: var(--wp--preset--color--slate-deep); color: #EDF0F2; margin-top: 16px; }
.an-solution h2 { color: #fff; }
.an-solution .an-eyebrow { color: var(--wp--preset--color--lime); }
.an-solution .an-section__head p:not(.an-eyebrow) { color: #AEB8C2; }
.an-flow { display: grid; grid-template-columns: 1fr; gap: 14px; }
.an-flow__step { background: var(--wp--preset--color--slate); border: 1px solid #36404a; border-radius: var(--wp--custom--radius--card); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.an-flow__step h3 { color: #fff; font-size: 21px; margin: 0; }
.an-flow__step p { margin: 0; color: #AEB8C2; font-size: 14.5px; flex: 1; }
.an-flow__step a { color: var(--wp--preset--color--accent); font-weight: 590; font-size: 14.5px; }
.an-flow__n { font-family: var(--wp--preset--font-family--mono); font-size: 12px; color: var(--wp--preset--color--accent); }
.an-flow__img { display: block; height: 130px; background: #fff; border-radius: var(--wp--custom--radius--tile); overflow: hidden; }
.an-flow__img img { width: 100%; height: 100%; object-fit: contain; }
.an-flow__img--shot { background: var(--wp--preset--color--slate-deep); border: 1px solid #36404a; }
.an-flow__img--shot img { object-fit: cover; object-position: left top; }
.an-flow__arrow { display: grid; place-items: center; color: var(--wp--preset--color--accent); transform: rotate(90deg); height: 28px; }
.an-flow__arrow .an-icon { width: 28px; height: 28px; }
.an-software { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
.an-software .an-shot + .an-shot { display: none; } /* phones: step 03 already shows AN-alytics */
.an-shot { margin: 0; background: var(--wp--preset--color--slate); border: 1px solid #36404a; border-radius: var(--wp--custom--radius--card); overflow: hidden; }
.an-shot img { width: 100%; height: auto; aspect-ratio: 16/8.5; object-fit: cover; object-position: left top; display: block; border-bottom: 1px solid #36404a; }
.an-shot figcaption { padding: 14px 18px; font-size: 14.5px; color: #AEB8C2; }
.an-shot figcaption b { color: #fff; font-weight: 590; }
.an-solution__cta { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; padding: 20px; border-radius: var(--wp--custom--radius--card); background: var(--wp--preset--color--deep); border: 1px solid #1E4A4F; }
.an-solution__cta p { margin: 0; color: #CFE3E5; }
.an-solution__cta b { color: #fff; }

@media (min-width: 901px) {
	.an-section { padding: 56px 0; }
	.an-section--tight { padding-top: 0; }
	.an-section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
	.an-hero__row { grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; padding-top: 64px !important; padding-bottom: 72px !important; }
	.an-hero__lead { font-size: 19px; }
	.an-hero__ctas .an-btn { flex: none; }
	.an-hero__stats { gap: 36px; margin-top: 40px; }
	.an-hero__stats dt { font-size: 26px; }
	.an-hero__photo { padding: 18px; }
	.an-reading { left: -34px; bottom: -26px; width: 250px; }
	.an-trust__list { grid-template-columns: repeat(5, 1fr); padding-top: 0 !important; padding-bottom: 0 !important; }
	.an-trust__list li { padding: 20px 14px; }
	.an-trust__list li:nth-child(5) { display: flex; }
	.an-trust__list li + li { border-left: 1px solid var(--wp--preset--color--border); }
	.an-segs { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 0; }
	.an-seg { flex: none; min-height: 230px; }
	.an-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
	.an-cat { flex-direction: column; text-align: center; padding: 14px 10px 16px; gap: 10px; }
	.an-cat__img { width: 100%; }
	.an-cat b { flex: none; }
	.an-cat > span:last-child { margin-top: -6px; }
	.an-flow { grid-template-columns: 1fr auto 1fr auto 1fr; }
	.an-flow__arrow { transform: none; height: auto; }
	.an-software { grid-template-columns: 1.25fr 1fr; }
	.an-software .an-shot + .an-shot { display: block; }
	.an-solution__cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 22px 28px; }
}
@media (min-width: 1181px) { .an-cats { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
