/* ==========================================================================
   Unpuzzled LT — inner pages: Apie AR, Naujienlaiškis, blog post, legal pages (v0.3)
   ========================================================================== */

/* ---------- Apie AR: intro ---------- */
.about-intro { position: relative; padding: var(--section) 0; overflow: hidden; background: var(--c-bg); }
.about-intro::before { content: ""; position: absolute; inset: 0; background: var(--deco) center / cover; opacity: .07; pointer-events: none; }
.about-intro__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.about-intro__text { position: relative; padding-bottom: 30px; }
.about-intro__title { font-size: clamp(32px, 4vw, 48px); color: var(--c-ink); margin-bottom: 18px; }
.about-intro__text p { color: var(--c-ink-2); font-size: 17px; max-width: 92%; }
.about-intro__robot { position: absolute; right: -4%; bottom: -110px; width: 30%; pointer-events: none; z-index: 1; filter: drop-shadow(0 20px 30px rgba(26,23,20,.22)); }
.about-intro__video { position: relative; z-index: 2; padding: 0 clamp(0px, 4vw, 50px); }
.about-intro__clip { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--sh-lg); background: var(--c-ink); }

/* ---------- Apie AR: benefits ---------- */
.about-benefits { position: relative; padding: var(--section) 0; overflow: hidden; background: var(--c-ink); color: var(--c-cream); }
.about-benefits::before { content: ""; position: absolute; inset: 0; background: var(--bg) center 60% / cover no-repeat; opacity: .28; filter: blur(1px); pointer-events: none; }
.about-benefits::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,23,20,.55), rgba(26,23,20,.92)); pointer-events: none; }
.about-benefits__inner { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.about-benefits__title { grid-column: 1 / -1; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; color: var(--c-cream); max-width: 760px; margin-bottom: 10px; }
.about-benefits__title em { font-style: normal; color: var(--c-accent); }
.benefit { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 24px; transition: background .2s, transform .2s; }
.benefit:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); }
.benefit__num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-accent); color: var(--c-ink); font-family: var(--f-head); font-weight: 700; margin-bottom: 14px; }
.benefit__title { font-size: 23px; color: var(--c-accent); margin-bottom: 8px; }
.benefit__text { color: rgba(255,248,230,.8); margin: 0; font-size: 15px; }

/* ---------- Apie AR: how it works ---------- */
.about-how { position: relative; padding: var(--section) 0; background: var(--c-white); color: var(--c-ink); overflow: hidden; }
.about-how::before { content: ""; position: absolute; inset: 0; background: var(--deco) center / cover; opacity: .06; pointer-events: none; }
.about-how > .container { position: relative; }
.about-how__head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; margin-bottom: 30px; }
.about-how__title { font-size: clamp(30px, 4vw, 48px); color: var(--c-ink); }
.about-how__dino { width: 300px; transform: scaleX(-1); filter: drop-shadow(0 20px 30px rgba(26,23,20,.2)); }
.about-how__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.about-how__roadmap { position: sticky; top: calc(var(--header-h) + 20px); display: flex; justify-content: center; }
.about-how__roadmap img { max-height: 760px; width: auto; object-fit: contain; }
.how-steps { display: grid; gap: 14px; padding: 0; border: 0; }
.how-step {
	position: relative; overflow: hidden; padding: 24px 24px 24px 76px; border-radius: var(--r-lg);
	border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-ink); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.how-step:hover { transform: translateX(4px); box-shadow: var(--sh-md); border-color: var(--c-accent); }
.how-step::before { content: ""; position: absolute; right: -10%; top: -20%; width: 45%; height: 140%; background: var(--img) center / cover; opacity: .12; filter: blur(1px); mask-image: linear-gradient(90deg, transparent, #000 40%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); }
.how-step > * { position: relative; z-index: 1; }
.how-step__num { position: absolute; left: 22px; top: 24px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); color: var(--c-ink); font-family: var(--f-head); font-weight: 700; font-size: 19px; box-shadow: var(--sh-accent); }
.how-step__title { font-size: 24px; color: var(--c-ink); margin-bottom: 6px; }
.how-step__text { margin: 0; color: var(--c-ink-2); font-size: 15px; }

/* ---------- Apie AR: puzzles ---------- */
.about-puzzles { position: relative; padding: var(--section) 0; background: var(--c-bg); overflow: hidden; }
.about-puzzles__dino { position: absolute; left: -2%; top: 20px; height: 180px; width: auto; pointer-events: none; opacity: .9; }
.about-puzzles__head { text-align: center; margin: 0 auto 30px; border: 0; padding: 0; max-width: 700px; }
.puzzle-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.puzzle-tile {
	position: relative; display: flex; align-items: flex-end; min-height: 340px; border-radius: var(--r-lg); background: var(--img) center / cover no-repeat; overflow: hidden;
	box-shadow: var(--sh-md); transition: transform .3s, box-shadow .3s;
}
.puzzle-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(26,23,20,.85)); }
.puzzle-tile__label { position: relative; z-index: 1; width: 100%; padding: 18px; color: var(--c-cream); font-family: var(--f-head); font-size: 22px; display: flex; justify-content: space-between; align-items: center; }
.puzzle-tile__label svg { width: 20px; height: 20px; color: var(--c-accent); }
.puzzle-tile:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--sh-lg); }
.about-puzzles__cta { margin-top: 32px; }

/* ---------- Naujienlaiškis (blog) ---------- */
.blog-hero { position: relative; padding: 30px 0 0; overflow: hidden; }
.blog-hero__inner { max-width: 760px; display: flex; flex-direction: column; align-items: center; }
.blog-hero__brand { width: min(100%, 560px); max-width: 100%; filter: drop-shadow(0 10px 20px rgba(26,23,20,.12)); }
.blog-hero__img { width: 82%; max-width: 760px; margin: -46px 0; position: relative; z-index: 1; filter: drop-shadow(0 20px 30px rgba(26,23,20,.2)); }
.blog-hero__pieces { display: flex; justify-content: center; width: 100%; }
.blog-hero__pieces img { width: 33%; height: auto; }
.blog-hero__intro { max-width: 640px; margin: 10px auto 0; }
.blog-list { padding: 30px 0 var(--section); }
.post-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1040px; margin-inline: auto; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--c-line); background: var(--c-white); box-shadow: var(--sh-sm); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.post-card__media { overflow: hidden; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.post-card__meta { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent-2); }
.post-card__title { font-size: 26px; line-height: 1.15; color: var(--c-ink); }
.post-card__title a:hover { color: var(--c-accent-2); }
.post-card__excerpt { margin: 0; color: var(--c-ink-2); font-size: 15px; }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 700; color: var(--c-ink); font-size: 14px; }
.post-card__more::after { content: "→"; transition: transform .2s; }
.post-card__more:hover::after { transform: translateX(4px); }
.page-numbers { display: flex; justify-content: center; gap: 8px; margin-top: 50px; font-weight: 600; }
.page-numbers a, .page-numbers span { display: inline-block; padding: 8px 14px; border-radius: var(--r-pill); background: var(--c-white); border: 1px solid var(--c-line); }
.page-numbers .current { background: var(--c-accent); border-color: var(--c-accent); }

/* ---------- Single post ---------- */
.single-post-main { padding: 40px 0 var(--section); }
.entry-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--c-accent-2); margin-bottom: 16px; }
.entry--post .entry-title { font-size: clamp(32px, 4.5vw, 52px); color: var(--c-ink); margin-bottom: 8px; }
.entry-meta { color: var(--c-muted); font-weight: 600; font-size: 14px; margin-bottom: 24px; }
.entry-thumb { margin-bottom: 32px; }
.entry-thumb img { width: 100%; border-radius: var(--r-xl); border: 0 !important; box-shadow: var(--sh-md); }
.entry-content { font-size: 17px; color: var(--c-ink-2); }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.6em 0 .6em; color: var(--c-ink); }
.entry-content h2 { font-size: clamp(26px, 3vw, 36px); }
.entry-content h3 { font-size: clamp(22px, 2.5vw, 28px); }
.entry-content ul, .entry-content ol { padding-left: 24px; margin: 0 0 1.2em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: var(--r-lg); margin: 1.5em 0; }
.entry-content blockquote { border-left: 4px solid var(--c-accent); margin: 1.5em 0; padding: 8px 20px; background: var(--c-accent-soft); border-radius: 0 var(--r-md) var(--r-md) 0; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: 14px; opacity: .7; text-align: center; }
.entry-footer { margin-top: 48px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-weight: 600; }
.post-nav a { padding: 12px 18px; border-radius: var(--r-md); background: var(--c-white); border: 1px solid var(--c-line); font-size: 14px; }
.post-nav a:hover { border-color: var(--c-accent); }
.post-nav__next { margin-left: auto; text-align: right; }

/* ---------- Legal / generic pages ---------- */
.page-main { padding: var(--section) 0; }
.entry--page { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 56px); box-shadow: var(--sh-sm); }
.entry--page .entry-title { font-size: clamp(32px, 4vw, 46px); color: var(--c-ink); margin-bottom: 14px; }
.entry-divider { border: 0; height: 4px; width: 64px; border-radius: 2px; background: var(--c-accent); margin: 0 auto 32px; }
.entry-content--legal { color: var(--c-ink-2); }
.entry-content--legal h2, .entry-content--legal h3 { color: var(--c-ink); font-family: var(--f-body); font-weight: 700; font-size: 19px; margin: 1.8em 0 .6em; }
.entry-content--legal a { color: var(--c-accent-2); }

/* 404 */
.error404 .page-main .entry-title { font-size: clamp(60px, 10vw, 120px); color: var(--c-accent); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.about-intro__inner { grid-template-columns: 1fr; }
	.about-intro__video { order: -1; padding: 0; }
	.about-intro__robot { width: 36%; right: -8%; bottom: -60px; }
	.about-benefits__inner { grid-template-columns: 1fr 1fr; }
	.about-how__grid { grid-template-columns: 1fr; }
	.about-how__roadmap { position: static; }
	.about-how__roadmap img { max-height: 480px; }
	.puzzle-tiles { grid-template-columns: 1fr 1fr; }
	.post-cards { gap: 20px; }
}
@media (max-width: 640px) {
	.about-intro__text p { max-width: 100%; }
	.about-intro__robot { display: none; }
	.about-benefits__inner { grid-template-columns: 1fr; gap: 14px; }
	.about-how__head { grid-template-columns: 1fr; }
	.about-how__dino { width: 180px; justify-self: center; }
	.how-step { padding: 20px 18px 20px 66px; }
	.how-step__num { left: 16px; top: 20px; }
	.how-step__title { font-size: 21px; }
	.puzzle-tiles { grid-template-columns: 1fr; }
	.puzzle-tile { min-height: 220px; }
	.about-puzzles__dino { display: none; }
	.blog-hero__img { margin: -26px 0 -20px; width: 100%; }
	.post-cards { grid-template-columns: 1fr; gap: 18px; }
	.post-card__title { font-size: 23px; }
	.entry--page { border-radius: var(--r-lg); }
}
