/*
 * Nanopixo, Features section styles
 * Shared by features-mockup.html (features homepage), the feature-*.html detail
 * pages and the two pillar landing pages. Loaded alongside css/style.css, which
 * still provides the standard header, footer and base resets.
 *
 * Only the feature CONTENT lives here. Class names are intentionally unprefixed
 * (verified not to collide with style.css) except the homepage hero, renamed to
 * .ft-hero because style.css already defines .hero.
 */

:root {
  --ft-yellow: #ffff20;
  --ft-ink: #111418;
  --ft-muted: #6b7280;
  --ft-line: #e7e7ea;
  --ft-bg: #ffffff;
  --ft-soft: #f7f7f8;
}

/* ---- Layout containers ---------------------------------------------------- */
.ft-main { display: block; }
.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 24px; }
.wide { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.features-home { width: 100%; max-width: var(--container-max-width); margin: 0 auto; padding: 0 var(--container-padding); }

/* ---- Homepage hero -------------------------------------------------------- */
.ft-hero { padding: 80px 0 64px; }
.ft-hero h1 { font-size: clamp(32px, 6vw, 58px); line-height: 1.06; font-weight: 900; letter-spacing: -.02em; margin: 0 0 30px; max-width: 18ch; }
.ft-hero mark { background: var(--ft-yellow); color: var(--ft-ink); padding: 0 .12em 2px; border-bottom: 3px solid var(--ft-ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; mix-blend-mode: multiply; }
.ft-hero-copy { display: flex; flex-direction: column; gap: 16px; max-width: 64ch; }
.ft-hero-copy p { font-size: 18px; color: #2b2f36; font-weight: 500; margin: 0; line-height: 1.6; }

/* ---- Homepage pillars ----------------------------------------------------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 96px; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.pillar { border: 1px solid var(--ft-line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.pillar:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(0, 0, 0, .10); }
.pillar-img { height: 260px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 16px 28px 26px; background-position: center; background-size: cover; background-repeat: no-repeat; }
.ph-video { background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0) 55%), url('https://static.nanopixo.com/images/pillar-nanopixo-video.jpg') center/cover, linear-gradient(135deg, #161a33, #3a2c4d); }
.ph-social { background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0) 55%), url('https://static.nanopixo.com/images/pillar-nanopixo-social.jpg') center/cover, linear-gradient(135deg, #06243f, #0f74b8); }
.pillar h2 { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.pillar-body { padding: 30px 40px 40px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.pillar p { color: var(--ft-muted); font-size: 16px; margin: 0; flex: 1; }
.pillar .more { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.pillar .more svg { width: 18px; height: 18px; }

/* ---- Category blocks + card grid (homepage) ------------------------------ */
.block { padding: 40px 0 80px; }
.label { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 52px; }
.label .dn { width: 24px; height: 24px; }
.label span { background: var(--ft-yellow); font-weight: 700; font-size: 22px; letter-spacing: -.01em; padding: 7px 16px; border-radius: 6px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--ft-line); border-radius: 18px; padding: 44px 38px 38px; display: flex; flex-direction: column; background: var(--ft-bg); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.card:hover { border-color: #c9c9cf; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .05); }
.card-icon { margin-bottom: 40px; }
.card-icon svg { width: 52px; height: 52px; stroke-width: 1.5; color: var(--ft-ink); }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 12px; line-height: 1.3; }
.card p { font-size: 15.5px; color: var(--ft-muted); margin: 0; flex: 1; line-height: 1.6; }
.card .more { font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; }
.card .more svg { width: 16px; height: 16px; }

/* Mobile: compact landscape cards, icon beside the title, description hidden,
   so the grid stays scannable instead of tall portrait blocks. Placed after the
   base .card rules to win the source-order cascade. */
@media (max-width: 620px) {
  .card { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; row-gap: 5px; padding: 20px 22px; }
  .card-icon { grid-row: 1 / -1; margin: 0; align-self: center; }
  .card-icon svg { width: 42px; height: 42px; }
  .card h3 { grid-column: 2; margin: 0; font-size: 17px; line-height: 1.3; }
  .card:has(.coming-soon-badge) h3 { padding-right: 54px; }
  .card p { display: none; }
  .card .more { grid-column: 2; margin: 4px 0 0; font-size: 13.5px; }
}

/* ---- CTA bar (homepage + detail) ----------------------------------------- */
.cta-bar { background: var(--ft-soft); border-radius: 22px; padding: 64px 40px; text-align: center; margin: 8px 0 36px; }
.cta-bar h2, .cta-bar h3 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 900; letter-spacing: -.02em; margin: 0 0 12px; }
.cta-bar p { color: var(--ft-muted); font-size: 17px; margin: 0 0 28px; }

/* Cross-promo block (video <-> social): image left, content right, whole box clickable. */
.crosslink { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border: 1px solid var(--ft-line); border-radius: 22px; overflow: hidden; background: var(--ft-soft); text-decoration: none; color: inherit; margin: 8px 0 36px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.crosslink:hover { border-color: #d6d6da; box-shadow: 0 16px 40px rgba(0,0,0,.08); transform: translateY(-2px); }
.crosslink__media { background: var(--ft-soft); }
.crosslink__media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 240px; }
.crosslink__body { padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.crosslink__title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; letter-spacing: -.02em; line-height: 1.12; margin: 0; }
.crosslink__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ft-muted); }
.crosslink .btn-primary { align-self: flex-start; margin-top: 6px; }
@media (max-width: 880px) { .crosslink { grid-template-columns: 1fr; } .crosslink__media img { min-height: 200px; max-height: 300px; } }
@media (max-width: 560px) { .crosslink__body { padding: 28px; } }
.cta-btn { background: var(--ft-ink); color: #fff; font-weight: 700; font-size: 15px; padding: 15px 30px; border-radius: 999px; display: inline-block; }
.cta-btn:hover { opacity: .9; }
.note { background: var(--ft-soft); border: 1px dashed #cfcfd4; border-radius: 12px; padding: 14px 18px; font-size: 13px; color: var(--ft-muted); margin: 30px 0 0; }

/* ---- Detail page: pager + breadcrumb ------------------------------------- */
.pager { display: flex; justify-content: space-between; gap: 16px; padding: 26px 0 8px; }
.pager a { display: inline-flex; align-items: center; gap: 16px; color: var(--ft-ink); font-size: 14px; max-width: 46%; }
.pager .dir { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: var(--ft-yellow); border-radius: 50%; flex: none; transition: transform .15s; }
.pager a:hover .dir { transform: scale(1.07); }
.pager svg { width: 22px; height: 22px; }
.pager .prev svg { transform: rotate(180deg); }
.pager b { color: var(--ft-ink); font-weight: 700; font-size: 17.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager .next { flex-direction: row-reverse; text-align: right; }
.pager.bottom { border-top: 1px solid var(--ft-line); margin-top: 20px; padding: 34px 0 8px; }
.crumb { font-size: 13px; color: var(--ft-muted); padding-top: 8px; }
.crumb a:hover { color: var(--ft-ink); }

/* ---- Detail page: lead + screenshot -------------------------------------- */
.lead { padding: 44px 0 8px; }
/* "Coming soon" label for features that don't exist yet, matte grey-green,
   sits at the bottom-right under the title */
.coming-soon-badge { display: block; width: fit-content; margin: 0 0 4px auto; padding: 6px 14px; border-radius: 999px;
  background: #dde6df; border: 1px solid #c3d2c7; color: #44574b;
  font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
/* On the overview cards: a small pill pinned to the top-right corner. */
.card { position: relative; }
.card .coming-soon-badge { position: absolute; top: 12px; right: 12px; margin: 0; padding: 2px 7px; font-size: 8px; letter-spacing: .04em; }
.lead-head { display: flex; align-items: center; gap: 24px; margin-bottom: 18px; }
.lead .ico { flex: none; display: flex; align-items: center; justify-content: center; }
.lead .ico svg { width: 60px; height: 60px; stroke-width: 1.5; color: var(--ft-ink); }
.lead h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin: 0; min-width: 0; }
.lead .sub { font-size: 20px; font-weight: 500; color: #2b2f36; margin: 0; max-width: 52ch; }
.shot { margin: 40px 0 8px; border-radius: 18px; overflow: hidden; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f3f4f8, #e9ebf2); }
.shot .ph { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #9aa0ab; font-size: 13px; }
.shot .ph svg { width: 34px; height: 34px; stroke-width: 1.5; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .88); display: none; align-items: center; justify-content: center; z-index: 60; padding: 30px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 96%; max-height: 96%; border-radius: 10px; box-shadow: 0 24px 80px rgba(0, 0, 0, .5); }
.lightbox .x { position: absolute; top: 22px; right: 26px; color: #fff; font-size: 30px; line-height: 1; font-weight: 300; opacity: .85; }

/* ---- Detail page: homepage-style hero demo (cinematic-motion) ------------ */
.hero-demo { display: grid; grid-template-columns: minmax(0, 1fr) auto 280px; align-items: center; gap: 8px; margin: 40px 0 8px; }
@media (max-width: 820px) { .hero-demo { grid-template-columns: 1fr; justify-items: center; gap: 26px; } .hero-demo .arrowc { transform: rotate(90deg); } }
.browser { width: 100%; background: #fff; border: 1px solid var(--ft-line); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .08); overflow: hidden; }
.browser .bar { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid #f0f0f2; }
.browser .dots { display: flex; gap: 7px; flex: none; }
.browser .dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.browser .url { flex: 1; display: flex; align-items: center; background: #f2f2f4; border-radius: 9px; padding: 9px 12px; color: #aab0ba; }
.browser .url svg { width: 16px; height: 16px; }
.browser .gen { flex: none; background: var(--ft-yellow); color: var(--ft-ink); font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: 9px; }
.browser .bbody { padding: 18px; }
.skeleton { height: 13px; border-radius: 6px; background: #eef0f3; }
.skeleton.w1 { width: 48%; height: 15px; margin-bottom: 12px; }
.skeleton.w2 { width: 120px; display: inline-block; }
.skeleton.w3 { width: 70px; display: inline-block; margin-left: 8px; }
.grid-imgs { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-auto-rows: 112px; gap: 10px; margin-top: 16px; }
.gi { border-radius: 12px; overflow: hidden; position: relative; }
.gi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gi.main { grid-column: 1; grid-row: 1 / span 2; }
.gi.bed { grid-column: 2; grid-row: 1; }
.gi.hall { grid-column: 3; grid-row: 1; }
.gi.ext { grid-column: 2 / span 2; grid-row: 2; }
.gi.main .badge { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .92); font-weight: 700; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
.arrowc { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1px solid var(--ft-line); box-shadow: 0 8px 22px rgba(0, 0, 0, .08); display: flex; align-items: center; justify-content: center; }
.arrowc svg { width: 22px; height: 22px; stroke-width: 2; }
.phone { width: 280px; justify-self: center; border-radius: 42px; background: #0c0c0e; padding: 9px; box-shadow: 0 26px 64px rgba(0, 0, 0, .28); }
.phone .screen { position: relative; border-radius: 34px; overflow: hidden; aspect-ratio: 9/19.5; background: #1a1a1d; }
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 86px; height: 22px; background: #0c0c0e; border-radius: 14px; z-index: 4; }
.phone .grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 42%); z-index: 2; }
.phone .acts { position: absolute; right: 12px; bottom: 118px; display: flex; flex-direction: column; gap: 18px; z-index: 3; }
.phone .acts .a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-size: 12px; font-weight: 600; }
.phone .acts svg { width: 26px; height: 26px; }
.phone .cap { position: absolute; left: 14px; right: 50px; bottom: 18px; color: #fff; z-index: 3; }
.phone .cap .who { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.phone .cap .who img { width: 26px; height: 26px; border-radius: 50%; }
.phone .cap p { font-size: 12.5px; line-height: 1.35; margin: 0; }

/* ---- Detail page: article prose ------------------------------------------ */
article { padding: 36px 0 8px; }
.prow { display: flex; gap: 22px; align-items: flex-start; margin: 0 0 26px; max-width: calc(100% - 60px); }
.prow-ico { flex: none; width: 30px; display: flex; justify-content: center; margin-top: 5px; }
.prow-ico svg { width: 26px; height: 26px; stroke-width: 1.6; color: var(--ft-ink); }
.prow p { font-size: 18px; line-height: 1.75; color: #23262c; margin: 0; max-width: 72ch; }
.prow strong { font-weight: 700; color: var(--ft-ink); }
.app-btn { display: inline-block; background: var(--ft-yellow); color: var(--ft-ink); font-weight: 700; font-size: 16px; padding: 16px 30px; border-radius: 12px; text-decoration: none; margin: 20px 0 8px; }
.app-btn:hover { filter: brightness(.96); }

/* Mobile: float the icon as a cut-out so the paragraph wraps beside the first
   lines and fills the FULL width below it, reclaims the horizontal space that
   the icon column + the -60px right margin used to waste. */
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .prow { display: flow-root; max-width: none; margin: 0 0 22px; }
  .prow-ico { float: left; width: 40px; margin: 2px 18px 6px 0; }
  .prow-ico svg { width: 38px; height: 38px; stroke-width: 1.4; }
  /* indent the paragraph to ~the icon's mid-point; lines beside the icon still
     wrap further right around the float, lines below start at this indent */
  .prow p { max-width: none; font-size: 17px; line-height: 1.7; padding-left: 20px; }
}

/* ---- Detail page: pricing (free-plan) ------------------------------------ */
.pricing { padding: 14px 0 0; border-top: 1px solid var(--ft-line); margin-top: 16px; }
.plabel { display: inline-block; background: var(--ft-yellow); font-weight: 700; font-size: 20px; letter-spacing: -.01em; padding: 7px 16px; border-radius: 6px; margin: 30px 0 18px; }
.pricing p { font-size: 16.5px; line-height: 1.7; color: #1d1d1f; font-weight: 500; margin: 0 0 18px; }
.pricing .sub { font-size: 19px; font-weight: 800; margin: 32px 0 10px; padding-left: 14px; border-left: 3px solid var(--ft-yellow); line-height: 1.3; }
.ptable-wrap { margin: 44px 0 50px; overflow-x: auto; }
.pricetable { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 16.5px; }
.pricetable thead th { text-align: left; padding: 0 20px 16px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: #86868b; border-bottom: 1px solid var(--ft-line); }
.pricetable tbody td { padding: 26px 20px; border-bottom: 1px solid #f1f1f3; color: #1d1d1f; font-weight: 500; vertical-align: middle; }
.pricetable tbody tr:last-child td { border-bottom: none; }
.pricetable tbody td:first-child { font-size: 21px; font-weight: 800; color: var(--ft-ink); }
.pricetable tbody td:nth-child(2) { font-weight: 700; color: var(--ft-ink); }

/* ---- Detail page: related rail ------------------------------------------- */
.related { padding: 60px 0 80px; }
.related .label { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.related .label span { background: var(--ft-yellow); font-weight: 700; font-size: 20px; padding: 6px 14px; border-radius: 6px; }
.rail { display: flex; gap: 22px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: #dcdce1; border-radius: 99px; }
.rel-card { flex: 0 0 280px; scroll-snap-align: start; border: 1px solid var(--ft-line); border-radius: 16px; padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.rel-card:hover { border-color: #c9c9cf; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .05); }
.rel-icon svg { width: 40px; height: 40px; stroke-width: 1.6; color: var(--ft-ink); }
.rel-card h3, .rel-card h4 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin: 8px 0 0; line-height: 1.3; }
.rel-card p { font-size: 14px; color: var(--ft-muted); margin: 0; line-height: 1.55; }
