/* ============ Apantia v2 - landing + gallery ============ */

/* ---------- generic, product-led hero ---------- */
.v2hero { padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 6vw, 64px); text-align: center; position: relative; }
.v2hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.v2hero h1 { max-width: 16ch; margin: 0 auto 20px; }
.v2hero h1 .grad { color: var(--accent); }
.v2hero .lead { max-width: 52ch; margin: 0 auto 34px; }

/* the "link composer" mock */
.composer {
  max-width: 620px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 10px 10px 10px 22px;
  display: flex; align-items: center; gap: 14px;
}
.composer .cpx { color: var(--text-faint); font-size: 16px; }
.composer .url { flex: 1; text-align: left; font-size: 16px; color: var(--text); display: flex; align-items: center; }
.composer .url b { color: var(--accent); font-weight: 700; }
.caret { display: inline-block; width: 2px; height: 19px; background: var(--accent); margin-left: 1px; border-radius: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
@media (max-width: 540px) { .composer { flex-direction: column; align-items: stretch; padding: 16px; } .composer .url { justify-content: center; } }

.v2hero .micro { margin-top: 18px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.v2hero .micro span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-dim); font-weight: 600; }
.v2hero .micro svg { color: var(--accent); }

/* template teaser strip under hero */
.teaser { margin-top: 40px; }
.teaser .tlabel { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.teaser-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tpill {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 650; color: var(--text); transition: all .16s var(--ease);
}
.tpill svg { color: var(--accent); }
.tpill:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tpill.more { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }

/* ---------- value band (generic benefits) ---------- */
.v2values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .v2values { grid-template-columns: 1fr; } }
.v2value { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.v2value .vic { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.v2value h4 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.v2value p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }

/* ---------- template gallery (inside create) ---------- */
.gallery-head { text-align: center; margin-bottom: 26px; }
.gallery-head h1 { margin: 0 0 8px; }
.gal-search {
  max-width: 420px; margin: 0 auto 22px; position: relative;
}
.gal-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }
.gal-search input { padding-left: 44px; border-radius: var(--radius-pill); }

.gal-cats { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.cat-chip {
  padding: 9px 16px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 650;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
  transition: all .15s var(--ease);
}
.cat-chip:hover { color: var(--text); }
.cat-chip[data-on="true"] { background: var(--accent); color: #fff; border-color: transparent; }

.gal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 600px) { .gal-grid { grid-template-columns: 1fr; } }
.gal-card {
  position: relative; text-align: left; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px;
  display: flex; gap: 16px; align-items: flex-start; transition: all .18s var(--ease); overflow: hidden;
}
.gal-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gal-card .gic { width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.gal-card .gbody { flex: 1; min-width: 0; }
.gal-card .gtitle { display: flex; align-items: center; gap: 9px; }
.gal-card h3 { margin: 0; font-size: 17.5px; font-weight: 700; }
.gal-card .gtag { font-size: 13px; color: var(--accent); font-weight: 650; margin-top: 2px; }
.gal-card .gdesc { font-size: 14px; color: var(--text-dim); line-height: 1.5; margin: 9px 0 12px; }
.gal-card .gfields { display: flex; flex-wrap: wrap; gap: 6px; }
.gal-card .gfield { font-size: 11.5px; font-weight: 600; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 4px 10px; }
.gal-card .garrow { color: var(--text-faint); flex: none; align-self: center; }
.gal-card:hover .garrow { color: var(--accent); transform: translateX(3px); }
.gal-card .garrow { transition: transform .18s var(--ease), color .18s; }
.pop-badge {
  position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-pill);
  padding: 4px 9px;
}
.gal-empty { text-align: center; color: var(--text-faint); padding: 40px 0; grid-column: 1/-1; }

/* ---------- host / list public extras ---------- */
.amenities { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.amenity { font-size: 13px; font-weight: 600; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 6px 12px; display: inline-flex; align-items: center; gap: 6px; }
.amenity svg { color: var(--accent); }

.list-progress { margin: 16px 0 6px; }
.list-bar { height: 9px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.list-bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .5s var(--ease); }
.list-progress .pmeta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); margin-top: 9px; font-weight: 600; }
.joiners { display: flex; align-items: center; margin: 14px 0; }
.joiner { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.joiner:first-child { margin-left: 0; }
.joined-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.joined-row:last-child { border-bottom: none; }
.joined-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; flex: none; }
