/*
 * store.css — apps-specific overrides and additions.
 * Loaded AFTER css/Astyle.css and css/main.css (Mystum base CSS).
 * Only styles the apps pages need that the Mystum base CSS doesn't already provide.
 *
 * Per-app accent: pages set `--accent` inline from apps.json (`accent`);
 * everything below falls back to Mystum green when it's absent.
 */

:root { --accent: #8bc34a; }

/* ── Catalog header ─────────────────────────────────────────────────────── */
.catalog-hero { padding: 2.4rem 0 1.4rem; border-bottom: 1px solid #eef0ea; margin-bottom: 2.2rem; }
.catalog-hero .eyebrow {
  font-family: 'Urbanist', sans-serif; font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #78ad39; margin: 0 0 .7rem;
}
.catalog-hero h1.newsreader {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 2.8rem); font-weight: 400; line-height: 1.08;
  margin: 0 0 .6rem; color: #18280f;
}
.catalog-hero .lede {
  font-family: 'Mate', serif; color: #5b6b52; font-size: 1.08rem; line-height: 1.6;
  max-width: 58ch; margin: 0;
}

/* ── App cards (catalog grid) ───────────────────────────────────────────── */
.app-card-link { display: block; text-decoration: none; color: inherit; }

.app-card {
  display: flex; align-items: center; gap: 18px; padding: 16px 18px;
  border: 1px solid #e8ebe2; border-radius: 4px; background: #fbfcf9; margin: 0;
  transition: transform .24s cubic-bezier(.22,1,.36,1), box-shadow .24s ease, border-color .24s ease;
}
.app-card-link:hover .app-card {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(6, 40, 6, .10);
  border-color: color-mix(in srgb, var(--accent) 55%, #e8ebe2);
}
.app-card-link:focus-visible { outline: none; }
.app-card-link:focus-visible .app-card { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Square app icon, overriding the base .post-entry-2 .thumbnail (3:2 cover) */
.app-card .thumb-wrap { position: relative; flex: 0 0 auto; align-self: flex-start; }
.app-card .thumbnail {
  width: 92px; height: 92px; min-height: 0; max-height: none; aspect-ratio: 1;
  object-fit: cover; border-radius: 21px; margin: 0; background: #fff;
  box-shadow: 0 0 0 1px rgba(6, 40, 6, .05), 0 6px 16px rgba(6, 40, 6, .09);
}
.app-card .contents { width: auto; flex: 1 1 auto; padding: 0; min-width: 0; }
.app-card .home-h2 { font-size: 1.45rem; margin: 0 0 .25rem; line-height: 1.15; color: #1a1a1a; }
.app-card-link:hover .home-h2 { color: color-mix(in srgb, var(--accent) 78%, #1a1a1a); }
.app-card .tagline { color: #5d6b57; line-height: 1.5; margin: 0 0 .7rem; font-size: .98rem; }
.app-card .card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-card .meta-dim { font-family: 'Urbanist', sans-serif; font-size: .8rem; color: #9aa295; }

@media (min-width: 520px) {
  .app-card .thumbnail { width: 104px; height: 104px; }
}

/* ── Status pill — overlaid on the app icon ─────────────────────────────── */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: #fff; border: 1px solid #ececec; border-radius: 3px;
  padding: 3px 10px 3px 9px; box-shadow: 0 3px 10px rgba(6, 40, 6, .12);
  font-family: 'Urbanist', sans-serif; font-size: .66rem; font-weight: 700;
  letter-spacing: .03em;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.status-pill.is-live { color: #2f6d1a; }
.status-pill.is-live .dot { background: #5fb52b; }
.status-pill.is-beta { color: #9a5b00; }
.status-pill.is-beta .dot { background: #f5a623; animation: betaPulse 2.4s ease-out infinite; }
.status-pill.is-comingsoon { color: #707a70; }
.status-pill.is-comingsoon .dot { background: #b3bcc4; }

/* Catalog: tucked into the icon's lower-left corner */
.thumb-wrap .status-pill { position: absolute; left: 6px; bottom: 6px; }
/* Detail hero: floated off the icon's top-right corner */
.app-icon { position: relative; display: inline-block; line-height: 0; }
.app-icon .status-pill { position: absolute; top: -10px; right: -12px; font-size: .7rem; padding: 4px 12px 4px 10px; }

@keyframes betaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 166, 35, .5); }
  70%  { box-shadow: 0 0 0 7px rgba(245, 166, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .status-pill.is-beta .dot { animation: none; }
}

/* ── Inline badges (category chip, sidebar status chip) ─────────────────── */
.badge {
  font-family: 'Urbanist', 'Lucida Grande', Arial, sans-serif; font-size: .72rem;
  font-weight: 600; letter-spacing: .03em; padding: 3px 11px; border-radius: 3px;
  border: 1px solid #dee2e6; color: #6c757d; white-space: nowrap; display: inline-flex;
  align-items: center; gap: 6px;
}
.badge.cat { background: #eef4e4; border-color: transparent; color: #2f5012; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge.status-live { background: #eaf3de; border-color: transparent; color: #2f6d1a; }
.badge.status-live .dot { background: #5fb52b; }
.badge.status-beta { background: #fff3e0; border-color: transparent; color: #9a5b00; }
.badge.status-beta .dot { background: #f5a623; }
.badge.status-comingsoon { background: #f1f3ee; color: #707a70; }
.badge.status-comingsoon .dot { background: #b3bcc4; }

/* ── Back link ──────────────────────────────────────────────────────────── */
.back { display: inline-flex; align-items: center; gap: .4rem; color: #6c757d; font-family: 'Urbanist', sans-serif; font-size: .9rem; text-decoration: none; }
.back:hover { color: #78ad39; }

/* ── Detail hero icon (accent ring) ─────────────────────────────────────── */
.single-content .app-icon .img-fluid2 {
  display: block; width: 116px; height: 116px; max-width: 116px; object-fit: cover;
  border-radius: 26px; background: #fff;
  box-shadow: 0 0 0 3px #cfe6b6, 0 12px 28px rgba(6, 40, 6, .14);  /* fallback */
}
.single-content .app-icon .img-fluid2 {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, white), 0 12px 28px rgba(6, 40, 6, .14);
}

/* ── CTA row + buttons ──────────────────────────────────────────────────── */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.1rem; margin-bottom: 1.4rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem; font-family: Garamond, Georgia, serif;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: .9rem;
  padding: 13px 26px; border-radius: 3px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary { background: #497c81; color: #fff; border-color: #497c81; }
.btn-primary:hover { background: #3a666b; color: #fff; }
.btn-ghost { background: #fff; border-color: #497c81; color: #497c81; }
.btn-ghost:hover { background: #f1f6f6; border-color: #3a666b; color: #3a666b; }

/* ── Beta access form ───────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.beta-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; margin: .2rem 0 .5rem; }
.beta-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.beta-form input[type="email"] {
  flex: 1 1 220px; min-width: 0; padding: 13px 18px; border: 1px solid #d7dccf; border-radius: 3px;
  background: #fff; color: #212529; font-family: 'Urbanist', sans-serif; font-size: 1rem;
}
.beta-form input[type="email"]:focus { outline: none; border-color: #497c81; box-shadow: 0 0 0 3px rgba(73, 124, 129, .18); }
.beta-form .btn { flex: 0 0 auto; }
.form-note { font-family: 'Urbanist', sans-serif; font-size: .86rem; color: #6c757d; margin: .1rem 0 0; max-width: 60ch; }
.form-success, .form-error { font-family: 'Urbanist', sans-serif; font-size: .95rem; line-height: 1.5; border-radius: 4px; padding: 13px 16px; margin: 0 0 1.1rem; max-width: 480px; }
.form-success { background: #eef4e4; border: 1px solid #cfe6b6; color: #2f6d1a; }
.form-error { background: #fdecea; border: 1px solid #f5c6c2; color: #a32d2d; }
@media (max-width: 520px) { .beta-form .btn { flex: 1 1 100%; } }

/* ── Beta enrolment callout ─────────────────────────────────────────────── */
.beta-callout {
  position: relative; border: 1px solid #f0dcae; background: #fff9ef;
  border-radius: 4px; padding: 20px 22px 22px 26px; margin: .2rem 0 1.8rem; overflow: hidden;
}
.beta-callout::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: #f5a623; }
.beta-callout .kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 .55rem;
  font-family: 'Urbanist', sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: #9a5b00;
}
.beta-callout .kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #f5a623; animation: betaPulse 2.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .beta-callout .kicker .dot { animation: none; } }
.beta-callout h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 1.4rem; color: #3a2a09; margin: 0 0 .5rem; }
.beta-callout p { font-family: 'Mate', serif; color: #6b5836; line-height: 1.7; margin: 0 0 1.1rem; font-size: .99rem; max-width: 58ch; }
.beta-callout .note { font-family: 'Urbanist', sans-serif; font-size: .85rem; color: #9a5b00; margin: .75rem 0 0; }
.beta-callout .note a { color: #7a4a00; font-weight: 600; text-decoration: underline; }

/* ── "Great for" use-case chips ─────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 1rem; }
.tag {
  font-family: 'Urbanist', sans-serif; font-size: .85rem; font-weight: 500; color: #2f5012;
  background: #eef4e4; border: 1px solid #dbe8c6; border-radius: 3px; padding: 5px 14px;
}

/* ── Numbered steps timeline (beta walkthrough page) ────────────────────── */
.steps { list-style: none; margin: 1.4rem 0 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 1.6rem 58px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: #e7f4f8; color: #1c7e93;  /* fallback */
  background: color-mix(in srgb, var(--accent) 13%, white);
  color: color-mix(in srgb, var(--accent) 72%, #10242a);
  box-shadow: inset 0 0 0 1px #cfe9f0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, white);
  font-family: 'Urbanist', sans-serif; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 18px; top: 44px; bottom: 4px; width: 2px;
  background: #e3ebe0; background: color-mix(in srgb, var(--accent) 16%, #eef0ea);
}
.steps h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 1.18rem; margin: .35rem 0 .35rem; color: #18280f; }
.steps p { font-family: 'Mate', serif; line-height: 1.7; color: #4a5546; margin: 0; }
.steps .inline-cta { display: inline-flex; margin-top: .7rem; }

/* ── "Good to know" facts list ──────────────────────────────────────────── */
.facts { list-style: none; margin: 1rem 0 0; padding: 0; }
.facts li { position: relative; padding: 0 0 .7rem 26px; font-family: 'Mate', serif; line-height: 1.65; color: #3f4a3b; }
.facts li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: #8bc34a; background: color-mix(in srgb, var(--accent) 70%, #8bc34a); }
.facts strong { color: #18280f; }

/* ── Screenshots gallery ────────────────────────────────────────────────── */
.gallery { display: flex; gap: 16px; overflow-x: auto; padding: 1.6rem 0 2rem; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #c9d3bf transparent; }
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: #c9d3bf; border-radius: 3px; }
.gallery figure { margin: 0; flex: 0 0 auto; }
.gallery img { height: 360px; width: auto; border-radius: 4px; border: 1px solid #e3e7dc; scroll-snap-align: start; background: #f7f8f5; display: block; box-shadow: 0 6px 18px rgba(6, 40, 6, .07); cursor: zoom-in; transition: transform .18s ease; }
.gallery img:hover { transform: translateY(-2px); }

/* ── Lightbox (click a screenshot to view it larger) ────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 28px; background: rgba(6, 40, 6, .82); cursor: zoom-out; }
.lightbox.open { display: flex; animation: lbFade .16s ease-out; }
.lightbox img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; border-radius: 4px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
.lightbox-close { position: absolute; top: 14px; right: 22px; width: 44px; height: 44px; padding: 0; background: none; border: none; color: #fff; font-size: 2.3rem; line-height: 1; cursor: pointer; font-family: 'Urbanist', sans-serif; opacity: .85; }
.lightbox-close:hover { opacity: 1; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lightbox.open { animation: none; } .gallery img { transition: none; } }

/* ── Detail two-column layout (desktop) ─────────────────────────────────── */
@media (min-width: 992px) { .single-content { flex: 0 0 66.66667%; max-width: 66.66667%; } }

/* ── Sidebar details card ───────────────────────────────────────────────── */
.custom-box .status-line { display: flex; align-items: center; gap: 8px; margin: .2rem 0; }

/* ── Footer (apps footer is simpler) ────────────────────────────────────── */
.footer { border-top: 1px solid #dee2e6; background: #f7f8f5; margin-top: 2rem; padding: 1.4rem 0; font-family: 'Urbanist', sans-serif; font-size: .86rem; color: #6c757d; }
.footer a { color: #062806; text-decoration: none; }
.footer a:hover { color: #78ad39; }
.copyright p { margin: 0; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .gallery img { height: 280px; }
}
@media (max-width: 460px) {
  .app-card { gap: 14px; padding: 14px; }
  .app-card .home-h2 { font-size: 1.25rem; }
  .gallery img { height: 240px; }
}

/* ── Showcase sections (feature carousel + scene strip) ──────────────────── */
.showcase .showcase-lede { font-family: 'Mate', serif; color: #5b6b52; line-height: 1.65; margin: .9rem 0 0; max-width: 62ch; font-size: 1rem; }

/* Feature carousel — wide marketing banners, one at a time */
.feature-carousel { position: relative; margin: 1.6rem 0 2.2rem; }
.fc-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  border: 1px solid #e3e7dc; border-radius: 4px; background: #0e1b2b;
  scrollbar-width: none; -ms-overflow-style: none;
}
.fc-track::-webkit-scrollbar { display: none; }
.fc-slide { margin: 0; flex: 0 0 100%; scroll-snap-align: center; line-height: 0; }
.fc-slide img { width: 100%; height: auto; display: block; aspect-ratio: 1024 / 500; object-fit: cover; cursor: zoom-in; }
.fc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: #497c81; font-size: 1.55rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(6, 40, 6, .22); transition: background .18s ease, transform .18s ease;
}
.fc-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.fc-arrow:focus-visible { outline: 2px solid #497c81; outline-offset: 2px; }
.fc-prev { left: 12px; }
.fc-next { right: 12px; }
.fc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.fc-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: none; cursor: pointer; background: #cdd6c6; transition: background .18s ease, transform .18s ease; }
.fc-dot.is-active { background: #497c81; transform: scale(1.18); }
.fc-dot:focus-visible { outline: 2px solid #497c81; outline-offset: 2px; }
@media (max-width: 560px) { .fc-arrow { width: 34px; height: 34px; font-size: 1.3rem; } }

/* Scene strip — captioned use-case story cards */
.scene-strip {
  display: flex; gap: 16px; overflow-x: auto; padding: 1.4rem 0 1.8rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #c9d3bf transparent;
}
.scene-strip::-webkit-scrollbar { height: 8px; }
.scene-strip::-webkit-scrollbar-thumb { background: #c9d3bf; border-radius: 3px; }
.scene { margin: 0; flex: 0 0 auto; width: 210px; scroll-snap-align: start; }
.scene img {
  width: 210px; height: 373px; object-fit: cover; border-radius: 4px; border: 1px solid #e3e7dc;
  background: #0e1b2b; display: block; box-shadow: 0 6px 18px rgba(6, 40, 6, .09); cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}
.scene:hover img { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(6, 40, 6, .15); }
.scene figcaption {
  font-family: 'Urbanist', sans-serif; font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: #3f4a3b; margin-top: .6rem; text-align: center;
}
@media (max-width: 560px) { .scene, .scene img { width: 168px; } .scene img { height: 298px; } }

@media (prefers-reduced-motion: reduce) {
  .fc-track { scroll-behavior: auto; }
  .fc-arrow, .fc-dot, .scene img { transition: none; }
}
