/* Full project page. Section shells only — the Den home does not load this file. */

body[data-nav-scope="section"]:not(.dedication-page):not(.quest-page):not(.unindexed-page):not(.storybook-page):not(.word-heart-page) .page {
  max-width: 1720px;
}

body[data-nav-scope="section"]:not(.dedication-page):not(.quest-page):not(.unindexed-page):not(.storybook-page):not(.word-heart-page) .sidebar {
  width: 220px;
}

body[data-nav-scope="section"]:not(.dedication-page):not(.quest-page):not(.unindexed-page):not(.storybook-page):not(.word-heart-page) .main {
  padding: 1.15rem 1.2rem 2rem;
  min-width: 0;
}

.product-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 280px);
  grid-template-areas:
    "hero side"
    "body side";
  column-gap: 1.5rem;
  row-gap: 0.2rem;
  align-items: start;
}

.product-hero-wrap { grid-area: hero; min-width: 0; }
.product-body { grid-area: body; min-width: 0; }
.product-side {
  grid-area: side;
  position: sticky;
  top: 4.6rem;
  max-height: calc(100vh - 5.4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 138, 69, 0.45) transparent;
}

.product-crumbs {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.product-hero {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.product-hero .product-icon {
  width: 84px;
  height: 84px;
  border-radius: 18px;
}

.product-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  line-height: 1.12;
  margin: 0 0 0.4rem;
  color: var(--heading);
}

.product-hero .product-tagline {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 42rem;
}

.product-hero .meta-facts-label {
  display: inline;
}

.product-hero .meta-facts-label small {
  margin-left: 0.2rem;
}

.product-hero .product-kind .status-badge,
.product-hero .product-kind [class^="status-"] {
  margin-left: 0.35rem;
  letter-spacing: 0.08em;
}

.product-tabs {
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  margin: 0.35rem 0 1.15rem;
}

.product-tabs::-webkit-scrollbar { display: none; }

.product-tabs a {
  flex: 0 0 auto;
  color: var(--muted);
  text-decoration: none;
  padding: 0.65rem 0.8rem;
  font-size: 0.92rem;
  border-bottom: 2px solid transparent;
}

.product-tabs a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.product-body > section { scroll-margin-top: 5.2rem; }

.product-showcase {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: 1.1rem;
  align-items: center;
  padding: 1.15rem 1.15rem 1.2rem;
  margin-bottom: 1.4rem;
  background:
    radial-gradient(ellipse 80% 80% at 80% 40%, rgba(224, 138, 69, 0.08), transparent 55%),
    #152019;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.product-showcase h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  line-height: 1.15;
  margin: 0 0 0.55rem;
  color: var(--heading);
}

.product-showcase-copy > p:not(.product-kind) {
  color: var(--muted);
  margin: 0 0 0.9rem;
  line-height: 1.5;
}

.product-showcase .product-actions { margin-bottom: 0; }

.product-showcase-shots {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
  min-height: 180px;
  overflow: hidden;
}

.product-showcase-shots > img,
.product-showcase-shots > .phone-frame {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
}

.product-showcase-shots > img {
  max-height: 220px;
  object-fit: cover;
  object-position: top left;
  border-radius: 8px;
  border: 1px solid rgba(242, 239, 232, 0.16);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
  background: #0e1714;
}

.phone-frame {
  position: relative;
  padding: 8px 6px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, #3a4048 0%, #12151a 18%, #0c0e12 100%);
  border: 1px solid rgba(242, 239, 232, 0.22);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 32%;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 0 0 7px 7px;
  background: #0c0e12;
  z-index: 1;
}

.phone-frame img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  background: #0e1714;
}

.product-body .features-grid {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.feature-ico {
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.45rem;
  color: var(--accent);
}

.feature-ico svg { width: 100%; height: 100%; }

.shot-gallery { margin-top: 0.2rem; }

.shot-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 280px;
  padding: 1.35rem 1.5rem;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0e1714;
  cursor: zoom-in;
}

.shot-stage img {
  display: block;
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

.shot-strip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.shot-nav {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(14, 23, 20, 0.8);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.shot-nav:hover { border-color: var(--accent); color: var(--accent); }

.shot-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  min-width: 0;
  flex: 1 1 auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.shot-thumbs::-webkit-scrollbar { display: none; }

.shot-thumb {
  flex: 0 0 96px;
  height: 68px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #0e1714;
  cursor: pointer;
  scroll-snap-align: start;
}

.shot-thumb.is-active { border-color: var(--accent); }

.shot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.changelog-version {
  margin: 0 0 0.45rem;
  color: var(--accent-soft);
  font-weight: 600;
}

.about-faq-filter {
  width: 100%;
  max-width: 24rem;
  margin: 0 0 0.75rem;
  box-sizing: border-box;
}

.faq-item {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  padding: 0.7rem 0;
  font-weight: 600;
  color: var(--heading);
}

.faq-item p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.product-side-card {
  background: rgba(14, 23, 20, 0.72);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.9rem 0.95rem;
  margin-bottom: 0.7rem;
}

.product-side-card h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.product-side .product-actions {
  max-width: none;
  margin-bottom: 0;
}

.info-list { margin: 0; }

.info-row {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.info-row--solo { grid-template-columns: 1.35rem minmax(0, 1fr); }

.info-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.info-ico .meta-ico { width: 16px; height: 16px; }

.info-list .info-label { color: var(--text); }
.info-list .info-value { margin: 0; text-align: right; color: var(--text); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6f8f7c;
  box-shadow: 0 0 0 3px rgba(111, 143, 124, 0.18);
}

.status-dot--live,
.status-dot--beta {
  background: #3ecf8e;
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.16);
}

.status-dot--in_progress {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 138, 69, 0.18);
}

.product-quick a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.product-quick a::after {
  content: "›";
  margin-left: auto;
  color: var(--accent);
}

.product-side .den-related-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}

.product-side .den-related-item img,
.product-side .den-related-item .app-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.product-side,
.product-side-card,
.product-hero-wrap,
.product-hero,
.product-hero-copy {
  min-width: 0;
  max-width: 100%;
}

.product-side .den-related-item {
  min-width: 0;
}

.product-side .den-related-item span {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-side .den-related-item strong {
  font-size: 0.88rem;
}

.product-side .den-related-item em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-side .den-related-go {
  margin-left: auto;
  color: var(--accent);
}

@media (max-width: 980px) {
  .product-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "side"
      "body";
  }

  .product-side {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .product-showcase { grid-template-columns: 1fr; }
  .phone-frame img,
  .product-showcase-shots > img { max-height: 220px; }
}

@media (max-width: 640px) {
  .product-hero { gap: 0.75rem; }
  .product-hero .product-icon { width: 64px; height: 64px; }
  .product-showcase-shots { overflow-x: auto; justify-content: flex-start; }
  .product-showcase-shots > img,
  .product-showcase-shots > .phone-frame { width: 42%; flex: 0 0 42%; }
  .phone-frame img { max-height: 200px; }
}
