/* ===================================================================
   /browser-extension/{slug} product pages for the A2Z.Tools extension
   family (Pages/Shared/AppStore/_ExtensionProduct.cshtml) and the
   catalogue cards on the hub. Builds on app-store-pages.css (.asp-*);
   everything here is scoped under .axp / .axp-card so it cannot touch
   the shared header, footer or the mobile-app pages.

   Each product brings its own accent (--axp-accent / --axp-accent-2,
   the same colours as its extension icon), so the family pages look
   related without being identical.
   =================================================================== */

.axp { --axp-accent: #6a5cf0; --axp-accent-2: #3f7bf0; }

/* ---------- hero ---------- */
.axp-hero {
    position: relative;
    background:
        radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--axp-accent) 16%, transparent) 0%, transparent 60%),
        linear-gradient(180deg, #fbf9f7 0%, #fff 100%);
    border-bottom: 1px solid var(--asp-line);
}
.axp-hero::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--axp-accent-2), var(--axp-accent));
}
.axp-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px 48px; align-items: center; padding-block: 40px 44px; }
.axp-hero-main { display: flex; gap: 26px; align-items: flex-start; }
.axp-icon { width: 112px; height: 112px; flex: none; filter: drop-shadow(0 14px 22px color-mix(in srgb, var(--axp-accent) 35%, transparent)); }
.axp-title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; color: var(--asp-navy); }
.axp-lead { margin-top: 10px !important; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 600; color: var(--asp-heading); }
.axp-desc { margin-top: 8px !important; color: var(--asp-muted); max-width: 62ch; }
.axp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
.axp-pill { padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: #fff; border: 1px solid var(--asp-line); color: var(--asp-heading); }
.axp-pill--live { background: #e6f6ee; border-color: #bfe6cf; color: #13804f; }
.axp-pill--soon { background: color-mix(in srgb, var(--axp-accent) 10%, #fff); border-color: color-mix(in srgb, var(--axp-accent) 30%, #fff); color: color-mix(in srgb, var(--axp-accent) 75%, #10162b); }

.axp-stores { display: flex; flex-direction: column; gap: 10px; }
.axp-store {
    display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 58px;
    border-radius: var(--asp-r-md); background: var(--asp-navy); color: #fff !important; text-decoration: none;
    box-shadow: 0 8px 18px -10px rgb(29 36 64 / 70%); transition: transform .15s ease, box-shadow .15s ease;
}
a.axp-store:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgb(29 36 64 / 75%); }
a.axp-store:focus-visible { outline: 3px solid var(--asp-blue); outline-offset: 3px; }
.axp-store img { width: 28px; height: 28px; object-fit: contain; }
.axp-store span { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; font-size: 1rem; }
.axp-store small { font-size: .72rem; font-weight: 500; opacity: .8; }
.axp-store--soon { background: #fff; color: var(--asp-muted) !important; border: 1px dashed var(--asp-line); box-shadow: none; cursor: not-allowed; }
.axp-store--soon img { filter: grayscale(1); opacity: .65; }
.axp-note { font-size: .85rem; color: var(--asp-muted); line-height: 1.5; }

/* ---------- screenshots ---------- */
.axp-shots { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x mandatory; }
.axp-shots li { flex: none; scroll-snap-align: start; }
.axp-shots img { width: min(640px, 82vw); height: auto; border-radius: var(--asp-r-md); border: 1px solid var(--asp-line); box-shadow: var(--asp-shadow); }
.axp-shots:focus-visible { outline: 3px solid var(--asp-blue); outline-offset: 3px; }

/* ---------- features / shortcuts ---------- */
.axp-h3 { margin: 26px 0 12px !important; font-size: 1.12rem; font-weight: 700; color: var(--asp-heading); }
.axp-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 22px; }
.axp-features li { display: flex; gap: 10px; align-items: flex-start; }
.axp-features svg { width: 20px; height: 20px; margin-top: 3px; color: #13804f; flex: none; }
.axp-side-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; }
.axp-keys li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--asp-line); }
.axp-kbd { display: inline-flex; gap: 4px; }
.axp kbd { font: 600 .8rem/1.6 ui-monospace, Consolas, monospace; padding: 0 7px; border-radius: 6px; background: #f5f3f0; border: 1px solid #d9d4ce; border-bottom-width: 2px; color: var(--asp-heading); }
.axp-small { font-size: .88rem; margin-top: 10px !important; }

/* ---------- privacy ---------- */
.axp-privacy-lead { font-size: 1.08rem; color: var(--asp-heading); margin: 6px 0 20px !important; }
.axp-privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.axp-privacy-item { background: #fff; border: 1px solid var(--asp-line); border-radius: var(--asp-r-md); padding: 16px 18px; }
.axp-privacy-item h3 { font-size: .95rem; font-weight: 700; color: var(--asp-heading); margin-bottom: 6px !important; }
.axp-privacy-item p { font-size: .93rem; color: var(--asp-muted); }
.axp-perms { display: grid; gap: 10px; }
.axp-perms li { background: #fff; border: 1px solid var(--asp-line); border-radius: var(--asp-r-sm); padding: 12px 16px; }
.axp-perm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--asp-heading); }
.axp-perms p { font-size: .92rem; color: var(--asp-muted); }
.axp-tag { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eaf0fd; color: #2457c5; }

/* ---------- compatibility ---------- */
.axp-table-wrap { overflow-x: auto; border: 1px solid var(--asp-line); border-radius: var(--asp-r-md); }
.axp-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.axp-table th, .axp-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--asp-line); }
.axp-table tbody tr:last-child th, .axp-table tbody tr:last-child td { border-bottom: 0; }
.axp-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--asp-muted); background: var(--asp-soft); }
.axp-table tbody th { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.axp-limits { display: grid; gap: 8px; }
.axp-limits li { padding-left: 18px; position: relative; color: var(--asp-muted); }
.axp-limits li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--axp-accent); }

/* ---------- changelog ---------- */
.axp-log { display: grid; gap: 18px; }
.axp-log > li { border-left: 3px solid color-mix(in srgb, var(--axp-accent) 45%, #fff); padding-left: 16px; }
.axp-log h3 { font-size: 1.02rem; font-weight: 700; color: var(--asp-heading); display: flex; gap: 10px; align-items: baseline; }
.axp-log time { font-size: .85rem; font-weight: 500; color: var(--asp-muted); }
.axp-log ul { margin-top: 6px !important; display: grid; gap: 4px; }
.axp-log ul li { color: var(--asp-muted); padding-left: 14px; position: relative; }
.axp-log ul li::before { content: "\2013"; position: absolute; left: 0; }

/* ---------- related ---------- */
.axp-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 34px !important; }
.axp-tools a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--asp-line); font-weight: 600; text-decoration: none; color: var(--asp-heading); }
.axp-tools a:hover { border-color: var(--axp-accent); color: var(--axp-accent); }
.axp-related-head { margin-top: 8px; }
.axp-support { margin-top: 30px !important; color: var(--asp-muted); }

/* ---------- catalogue card (hub + related) ---------- */
.axp-card { border-top: 3px solid var(--axp-accent); }
.axp-card-tag { font-size: .78rem; font-weight: 700; color: color-mix(in srgb, var(--axp-accent) 80%, #10162b); margin-top: 2px !important; }
.asp-upcoming-note { margin: -12px 0 24px !important; }

@media (max-width: 900px) {
    .axp-hero-inner { grid-template-columns: 1fr; }
    .axp-stores { flex-direction: row; flex-wrap: wrap; }
    .axp-store { flex: 1 1 220px; }
}
@media (max-width: 640px) {
    .axp-hero-main { flex-direction: column; gap: 16px; }
    .axp-icon { width: 84px; height: 84px; }
    .axp-privacy-grid { grid-template-columns: 1fr; }
}

/* section headings need breathing room above grids/tables in the narrow sections */
.axp .asp-narrow > .asp-h2, .axp .asp-prose > .asp-h2 { margin-bottom: 16px; }
