/* Feature pages (/features, /inventory, /purchasing, ...): the home page's look. Parts: templates/_feature.html. Loaded only on those pages. */
.f-sec { padding: 104px 0 0; }
.f-sec > .wrap > h2 { margin: 0 0 40px; text-align: left; }
.f-lead { max-width: 36em; font-size: 20px; line-height: 1.5; color: var(--text); margin: -24px 0 40px; }

/* the top: the page_top band, the big picture breaks out of it */
.ptop--pic .fpic { box-shadow: 0 0 0 1px rgba(8,18,34,.14), 0 30px 70px rgba(8,18,34,.3); background: #fff; }
.ptop--pic .fpic img { aspect-ratio: auto; }
@media (prefers-reduced-motion: no-preference) {
    .ptop--pic .fpic { animation: f-settle .7s cubic-bezier(.2, .7, .2, 1) both; }
    @keyframes f-settle { from { opacity: 0; transform: translateY(28px) scale(.985); } to { opacity: 1; transform: none; } }
}

/* one point, one picture, sides alternate */
.f-rows { border-bottom: 1px solid var(--line); }
.frow { display: grid; grid-template-columns: minmax(240px, 1fr) 1.5fr; gap: 56px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.frow:nth-child(even) { grid-template-columns: 1.5fr minmax(240px, 1fr); }
.frow:nth-child(even) .frow__text { order: 2; }
.frow h3, .frow h4 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 12px; }
.frow__text p { color: var(--text); margin: 0; max-width: 30em; }
.frow__text p + p { margin-top: 12px; }
.frow__pic { min-width: 0; }
.fpic--row { max-width: 100%; }
.fpic.fpic--narrow { max-width: 420px; margin-inline: auto; }
@media (max-width: 960px) {
    .frow, .frow:nth-child(even) { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
    .frow:nth-child(even) .frow__text { order: 0; }
}

/* the video, with its own pause control */
.fvid { margin: 0; max-width: 960px; }
.fvid .frame { background: #1B2A40; }
.fvid__btn { position: absolute; right: 12px; bottom: 12px; font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; min-width: 44px; padding: 8px 16px; color: #fff; background: rgba(11,31,58,.85); border: 1.5px solid rgba(255,255,255,.6); border-radius: 8px; cursor: pointer; }
.fvid__btn[hidden] { display: none; }
.fvid__btn:hover { background: var(--navy); border-color: #fff; }
.fvid__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--orange); }

/* related pages */
.f-rel__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.f-rel__pic { display: block; border-radius: 12px; overflow: hidden; }
.f-rel__pic .fpic { box-shadow: 0 0 0 1px #CBD3DD; }
.f-rel__list h3 { font-size: 22px; margin: 18px 0 6px; }
.f-rel__list h3 a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; text-decoration-thickness: 2px; display: inline-block; padding: 2px 0; }
.f-rel__list p { color: var(--text); margin: 0; }
@media (max-width: 800px) { .f-rel__list { grid-template-columns: 1fr; } }

/* questions */
.f-faq details { border-top: 1px solid var(--line); }
.f-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.f-faq summary { cursor: pointer; font-weight: 700; font-size: 19px; padding: 20px 0; min-height: 44px; }
.f-faq details p { padding: 0 0 20px; color: var(--text); max-width: 40em; margin: 0; }

/* closing, as on home */
.f-close { padding: 120px 0 128px; }
.f-close h2 { font-size: clamp(34px, 4.6vw, 64px); margin: 0 0 14px; text-align: left; }
.f-close p { color: var(--text); font-size: 20px; margin: 0; }
.f-close__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 700px) { .f-sec { padding-top: 72px; } .f-close { padding: 88px 0 96px; } }

.ptop .btn--ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.ptop .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* /features: the group of things built on request. Plain grey cards, no icon, so they can't be taken for what is in Zobook now. */
.f-group { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.025em; margin: 56px 0 24px; }
.f-sec .f-group:first-of-type { margin-top: 0; }
#built-on-request.f-sec { margin-top: 104px; padding: 72px 0; background: #F1F4F8; border-top: 1px solid var(--line); }
#built-on-request > .wrap > h2 { margin-bottom: 40px; }
.f-req { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.f-req__card { background: #fff; border: 1px dashed #9AA7B8; border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.f-req__card h3 { font-size: 20px; font-weight: 800; margin: 0; }
.f-req__card p { margin: 0; color: var(--text); }
.f-req__card p:last-child { margin-top: auto; }
.f-req__card a { display: inline-block; padding: 8px 0; min-height: 24px; font-weight: 600; }
@media (max-width: 700px) { #built-on-request.f-sec { margin-top: 72px; padding: 48px 0; } }

/* On phones the picture is the phone crop, so reserve its own shape (--ph-w and --ph-h are its pixel size) before it loads. */
@media (max-width: 699px) { .fpic img[style*="--ph-h"] { aspect-ratio: var(--ph-w) / var(--ph-h); height: auto; } }
.about-facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; max-width: 760px; margin: 0; }
.about-facts dt { font-weight: 600; }
.about-facts dd { margin: 0; }
@media (max-width: 700px) { .about-facts { grid-template-columns: 1fr; gap: 2px; } .about-facts dd { margin-bottom: 12px; } }
