/* Features page — additive to the shared design system. */

:root {
  --features-jump-h: 57px;
}

html:has(body.page-features) {
  scroll-padding-top: calc(var(--header-h) + var(--features-jump-h) + 10px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.features-jump {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}

.features-jump-inner {
  width: min(100% - 24px, var(--wide));
  margin-inline: auto;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.features-jump a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--mute);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

.features-jump a:hover {
  color: var(--navy);
  background: #f1f5f9;
}

.features-jump a[aria-current="true"],
.features-jump a.is-current {
  color: var(--navy);
  background: #eff6ff;
}

.features-hero {
  padding: 56px 0 48px;
}

.features-hero .lede {
  max-width: 40rem;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 22px;
}

.features-hero .hero-note {
  max-width: 40rem;
}

.feat-section {
  padding: 80px 0;
}

.feat-section .section-intro {
  max-width: 42rem;
  margin-bottom: 36px;
}

.feat-sub {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 36px 0 16px;
}

.feat-sub:first-child { margin-top: 0; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
}

.feat-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  box-shadow: var(--shadow-soft);
}

.bg-white .feat-item {
  background: #fff;
}

.bg-alt .feat-item {
  background: #fff;
}

.feat-item h3 {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 8px;
}

.feat-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #475569;
}

.feat-name {
  font-style: normal;
}

.feat-ready {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
  line-height: 1.4;
  white-space: nowrap;
}

.photo-break {
  margin: 0;
  width: 100%;
  background: #0f172a;
}

.photo-break img {
  width: 100%;
  height: min(56vh, 560px);
  object-fit: cover;
  object-position: center;
}

.features-close {
  padding: 88px 0;
}

.features-close .section-intro {
  margin-bottom: 22px;
}

@media (max-width: 1100px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-section { padding: 68px 0; }
}

@media (max-width: 700px) {
  .feat-grid { grid-template-columns: 1fr; }
  .features-hero { padding: 36px 0 32px; }
  .feat-section { padding: 56px 0; }
  .feat-item { padding: 18px 18px 20px; }
  .photo-break img { height: min(42vh, 320px); }
  .features-jump a { font-size: 12.5px; padding: 7px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .features-jump {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }
}


/* Anchors land below the sticky header + jump nav */
.feat-item,
.feat-sub,
.feat-section {
  scroll-margin-top: calc(var(--header-h) + var(--features-jump-h) + 12px);
}

.onebot-head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.onebot-head img {
  width: 200px;
  height: auto;
  flex: none;
  margin-top: 4px;
}

.onebot-head .section-intro {
  margin-bottom: 0;
}

.feat-apps-badges {
  margin-top: 8px;
}

.feat-apps-badges .store-badges {
  justify-content: flex-start;
}

.feat-apps-badges .anywhere-apps-caption {
  text-align: left;
  margin-top: 12px;
}

@media (max-width: 700px) {
  .onebot-head {
    flex-direction: column;
    gap: 16px;
  }
  .onebot-head img { width: 168px; }
}

.feat-more {
  margin-top: 28px;
}

.feat-soon {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
  line-height: 1.4;
  white-space: nowrap;
}

.feat-prose {
  max-width: 42rem;
  margin: 0 0 28px;
}

.feat-prose p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
}

.feat-prose p:last-child {
  margin-bottom: 0;
}


/* Small inline previews inside a feat-item, used by shipping labels and packing slips. */
.feat-thumb {
  margin: 12px 0 0;
}
.feat-thumb .media-zoom {
  display: inline-block;
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  box-shadow: none;
  transform: none;
}
.feat-thumb .media-zoom:hover,
.feat-thumb .media-zoom:focus-visible {
  transform: none;
  box-shadow: none;
  border-color: #94a3b8;
}
.feat-thumb img {
  display: block;
  width: auto;
  height: 110px;
  max-height: 110px;
}
