/* ==========================================================
   NOTFUNIE — page layouts
   ========================================================== */

/* ---------- Inner page header ---------- */
.page-head { padding-block: clamp(40px, 7vw, 80px) clamp(20px, 3vw, 36px); text-align: center; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin: 16px 0 12px; }
.page-head p { max-width: 56ch; margin-inline: auto; color: var(--muted); font-size: 1.05rem; }

/* ---------- Home: hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(24px, 4vw, 40px); text-align: center; overflow: clip; }
.hero::before { /* very light stardust */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: radial-gradient(1.2px 1.2px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 78% 14%, #9fd8ff, transparent), radial-gradient(1.2px 1.2px at 88% 52%, #fff, transparent), radial-gradient(1px 1px at 24% 68%, #9fd8ff, transparent), radial-gradient(1px 1px at 55% 34%, #fff, transparent), radial-gradient(1.4px 1.4px at 66% 78%, #9fd8ff, transparent);
  -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent);
}
.hero__logo { width: 64px; height: 64px; margin: 0 auto 22px; filter: drop-shadow(0 0 22px rgba(40, 150, 255, .75)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.hero h1 { font-size: clamp(2.9rem, 8.2vw, 5.4rem); font-weight: 800; line-height: .98; letter-spacing: -.035em; margin: 22px 0 20px; }
.hero h1 span { display: block; }
.hero__sub { max-width: 54ch; margin: 0 auto 30px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.js .hero__logo, .js .hero .eyebrow, .js .hero h1, .js .hero__sub, .js .hero__cta { opacity: 0; transform: translateY(14px); animation: in .8s var(--ease) forwards; }
.js .hero .eyebrow { animation-delay: .05s; } .js .hero h1 { animation-delay: .12s; } .js .hero__sub { animation-delay: .22s; } .js .hero__cta { animation-delay: .3s; }
.js .hero__logo { animation: in .8s var(--ease) forwards, float 6s ease-in-out 1s infinite; }
@keyframes in { to { opacity: 1; transform: none; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 64px); }
.stat { padding: 22px 20px; text-align: left; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { display: block; font: 800 clamp(1.3rem, 2.6vw, 1.9rem)/1.1 var(--f-head); letter-spacing: -.02em; background: linear-gradient(180deg, #e8f7ff, var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--border); } }

/* ---------- Scrolling strip ---------- */
.ticker { padding-block: 26px; }
.ticker__label { display: flex; justify-content: center; margin-bottom: 16px; }
.ticker__view { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.ticker__view:hover .ticker__track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 12px; background: var(--glass); border: 1px solid var(--border); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__view { overflow-x: auto; } .ticker__track { animation: none; } }

/* ---------- Home: why us ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why__item { padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; transition: transform .3s var(--ease), border-color .3s; }
.why__item:hover { transform: translateY(-4px); border-color: rgba(92, 217, 255, .4); }
.why__item h3 { font-size: 1.15rem; }
.why__item p { color: var(--muted); font-size: .94rem; flex: 1; }
.why__metric { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.why__metric b { display: block; font: 800 1.7rem/1 var(--f-head); background: linear-gradient(180deg, #e8f7ff, var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why__metric span { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 960px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* ---------- Guides banner / final call ---------- */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: clamp(24px, 4vw, 40px); background: linear-gradient(120deg, rgba(12, 60, 140, .5), rgba(40, 150, 255, .16)), var(--bg-2); border-color: rgba(92, 217, 255, .28); }
.banner h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 8px; }
.banner p { color: var(--muted); max-width: 52ch; }
.faq-wrap { max-width: 800px; margin-inline: auto; }

/* ---------- Catalogue ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 9px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border-2); color: var(--muted); font-size: .86rem; font-weight: 600; transition: color .2s, background .2s, border-color .2s; }
.pill:hover { color: var(--fg); border-color: rgba(92, 217, 255, .4); }
.pill[aria-pressed="true"] { background: rgba(40, 150, 255, .22); border-color: rgba(92, 217, 255, .5); color: var(--ice); }
.search { position: relative; width: min(100%, 300px); }
.search .input { padding-left: 42px; border-radius: 999px; }
.search svg { position: absolute; left: 15px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.result-count { margin-bottom: 16px; font-size: .86rem; color: var(--faint); }

/* ---------- Status ---------- */
.status-table { overflow: hidden; }
.srow { display: grid; grid-template-columns: minmax(0, 1.6fr) 150px 140px 1fr; gap: 16px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--border); transition: background .2s; }
.srow:last-child { border-bottom: 0; }
a.srow:hover { background: rgba(40, 150, 255, .08); }
.srow--head { padding-block: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); background: rgba(255, 255, 255, .03); }
.srow b { font-family: var(--f-head); font-size: 1.05rem; }
.srow .muted { font-size: .88rem; }
.legend { display: flex; gap: 12px 28px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: .86rem; }
.legend .lg { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 760px) {
  .srow { grid-template-columns: 1fr auto; padding: 16px 18px; gap: 6px 12px; }
  .srow--head { display: none; }
  .srow > :nth-child(3) { display: none; }
  .srow > :nth-child(4) { grid-column: 1 / -1; font-size: .82rem; }
}

/* ---------- Product page ---------- */
.pdp { padding-block: 20px clamp(48px, 7vw, 96px); }
.crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; font-size: .84rem; color: var(--faint); }
.crumbs a:hover { color: var(--ice); }
.crumbs [aria-current] { color: var(--muted); }
.pdp__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pdp__visual { position: sticky; top: calc(var(--header-h) + 20px); }
.pdp__visual .glass { overflow: hidden; padding: 0; border-radius: 22px; box-shadow: 0 30px 80px -30px rgba(40, 150, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .12); }
.pdp__visual .art { aspect-ratio: 1 / 1; }
.pdp__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pdp h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.pdp__desc { color: var(--muted); max-width: 52ch; margin-bottom: 28px; }
.fieldset { border: 0; padding: 0; min-width: 0; margin-bottom: 20px; }
.fieldset legend { padding: 0; margin-bottom: 12px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.buy__total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; margin-top: 6px; border-top: 1px solid var(--border); }
.buy__total span { color: var(--muted); font-weight: 600; }
.buy__total strong { font: 800 clamp(2rem, 3.6vw, 2.7rem)/1 var(--f-head); letter-spacing: -.03em; }
.buy__actions { display: grid; gap: 10px; }
.perks { display: grid; gap: 4px; margin-top: 30px; }
.perks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.perks .ck { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(40, 150, 255, .18); border: 1px solid rgba(92, 217, 255, .35); color: var(--ice); }
.perks .ck svg { width: 12px; height: 12px; }
.perks b { display: block; font-weight: 700; }
.perks span { color: var(--muted); font-size: .92rem; }
.note { margin-top: 20px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 194, 75, .3); background: rgba(255, 194, 75, .07); font-size: .88rem; color: #f2dcab; }
.note a { text-decoration: underline; text-underline-offset: 3px; }
.more { padding-top: clamp(24px, 4vw, 48px); }
.more h2 { font-size: 1.5rem; margin-bottom: 18px; }
.buybar { display: none; }
@media (max-width: 860px) {
  .pdp__grid { grid-template-columns: 1fr; }
  .pdp__visual { position: static; max-width: 420px; margin-inline: auto; width: 100%; }
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(4, 8, 16, .92); backdrop-filter: blur(14px); border-top: 1px solid var(--border-2); }
  .buybar small { display: block; font-size: .74rem; color: var(--faint); }
  .buybar strong { font: 800 1.4rem var(--f-head); }
  body.has-buybar { padding-bottom: 78px; }
}

/* ---------- Cart & checkout ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); gap: clamp(24px, 4vw, 48px); align-items: start; padding-block: 12px clamp(56px, 8vw, 100px); }
.two__side { position: sticky; top: calc(var(--header-h) + 20px); }
.cart-foot { margin-top: 18px; }
.stepper { display: flex; justify-content: center; gap: 8px; margin-top: 22px; font-size: .8rem; font-weight: 600; color: var(--faint); }
.stepper li { display: flex; align-items: center; gap: 8px; }
.stepper li + li::before { content: ""; width: 26px; height: 1px; background: var(--border-2); }
.stepper .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-2); font-size: .72rem; }
.stepper .done, .stepper .now { color: var(--fg); }
.stepper .done .n { background: var(--primary); border-color: var(--ice); }
.stepper .now .n { border-color: var(--ice); color: var(--ice); box-shadow: 0 0 12px rgba(40, 150, 255, .5); }
.form-block + .form-block { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--border); }
.form-block > h2 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; margin-bottom: 20px; }
.form-block > h2 span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(40, 150, 255, .2); border: 1px solid rgba(92, 217, 255, .4); color: var(--ice); font: 700 .85rem var(--f-body); }
.form-msg { min-height: 22px; margin: 14px 0 10px; font-size: .88rem; font-weight: 600; color: var(--danger); }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } .two__side { position: static; } .checkout .two__side { order: 2; } }

.done { max-width: 620px; margin: 0 auto; padding-block: clamp(48px, 9vw, 110px); text-align: center; }
.done__check { width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(61, 220, 151, .14); border: 1px solid rgba(61, 220, 151, .5); box-shadow: 0 0 40px rgba(61, 220, 151, .35); color: var(--ok); animation: pop .6s var(--ease); }
.done__check svg { width: 34px; height: 34px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 14px; }
.done__ref { display: inline-block; margin: 22px 0 28px; padding: 14px 24px; border-radius: 14px; border: 1px dashed rgba(92, 217, 255, .6); background: rgba(40, 150, 255, .1); font: 700 1.5rem var(--f-head); letter-spacing: .06em; color: var(--ice); }

/* ---------- FAQ & terms ---------- */
.split { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; padding-block: 12px clamp(56px, 8vw, 100px); }
.split__side { position: sticky; top: calc(var(--header-h) + 20px); }
.help-card { padding: 22px; }
.help-card p { margin: 8px 0 18px; color: var(--muted); font-size: .94rem; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-group h2 { font-size: 1.1rem; margin-bottom: 14px; color: var(--ice); }
.toc { display: grid; gap: 2px; }
.toc a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; border-left: 2px solid var(--border); transition: color .2s, background .2s, border-color .2s; }
.toc a:hover { color: var(--fg); background: rgba(255, 255, 255, .04); }
.toc a[aria-current="true"] { color: var(--ice); border-color: var(--ice); background: rgba(40, 150, 255, .1); }
.legal { max-width: 70ch; }
.legal section { padding-bottom: 32px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal h2 { font-size: 1.5rem; margin-bottom: 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal li { position: relative; padding-left: 22px; }
.legal li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__side { position: static; } }

.notfound { padding-block: clamp(56px, 9vw, 120px); text-align: center; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin: 16px 0; }
.notfound p { color: var(--muted); margin-bottom: 26px; }

/* ---------- CMS-driven content: prose, blog, gallery, specs ---------- */
.prose { color: var(--muted); font-size: 1.04rem; line-height: 1.75; max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; } .prose h2 { font-size: 1.7rem; color: var(--fg); margin-top: 1.8em; } .prose h3 { font-size: 1.35rem; color: var(--fg); margin-top: 1.5em; } .prose h4 { font-size: 1.1rem; color: var(--fg); }
.prose strong, .prose b { color: var(--fg); } .prose a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; } .prose ul, .prose ol { padding-left: 1.4em; } .prose ul { list-style: disc; } .prose ol { list-style: decimal; } .prose li + li { margin-top: .4em; }
.prose blockquote { padding: 6px 18px; border-left: 3px solid var(--primary); background: var(--glass); border-radius: 0 10px 10px 0; color: var(--fg); } .prose img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }
.prose pre { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); overflow-x: auto; font-size: .9rem; } .prose hr { border: 0; border-top: 1px solid var(--border); } .prose table { width: 100%; border-collapse: collapse; } .prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.legal .prose, .legal { max-width: 70ch; } .pdp__long { margin: 26px 0 8px; font-size: 1rem; } .pdp__h { font-size: 1.25rem; margin: 28px 0 10px; } .pdp__extra { margin-top: 14px; font-size: .92rem; }
.specs { display: grid; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; } .specs div { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); font-size: .92rem; } .specs div:first-child { border-top: 0; } .specs dt { color: var(--faint); } .specs dd { margin: 0; }
.was { color: var(--faint); font-weight: 500; font-size: .85em; margin-right: 4px; }
.gal__main { aspect-ratio: 1 / 1; background: rgba(255, 255, 255, .03); display: grid; place-items: center; overflow: hidden; border-radius: 22px 22px 0 0; } .gal__main img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; } .gal__t { width: 64px; height: 64px; flex: none; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .65; transition: opacity .2s, border-color .2s; } .gal__t:hover { opacity: 1; } .gal__t.on { border-color: var(--ice); opacity: 1; } .gal__t img { width: 100%; height: 100%; object-fit: cover; }
.pdp__visual .glass:has(.gal__main) { padding: 0; }
.grid--posts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); } .post .art { aspect-ratio: 16 / 10; } .post .art img { transition: transform .8s var(--ease); } .post:hover .art img { transform: scale(1.05); }
.post__ex { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .post__meta { margin-top: auto; padding-top: 10px; font-size: .8rem; color: var(--faint); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; }
.article { padding-block: 20px clamp(48px, 7vw, 96px); } .post-page { max-width: 820px; margin-inline: auto; } .post-head { margin: 8px 0 28px; } .post-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; margin: 14px 0 12px; } .post-sub { font-size: 1.2rem; color: var(--muted); margin-bottom: 12px; }
.post-cover { margin: 0 0 32px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); } .post-cover img { width: 100%; max-height: 480px; object-fit: cover; }
.post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; } .post-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); } .post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.preview-bar { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 194, 75, .12); border: 1px solid rgba(255, 194, 75, .4); color: #ffe2a0; font-weight: 600; font-size: .9rem; }
.social { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; } .social a { color: var(--muted); font-size: .9rem; } .social a:hover { color: var(--ice); }
.toolbar form.search { margin-left: auto; }
