/*
Theme Name:   ScienceNow Digital
Description:  Child theme of Twenty Twenty-Five — FSE block-based theme for ScienceNow Digital.
Template:     twentytwentyfive
Version:      1.0.3
Requires at least: 6.5
Text Domain:  sciencenow-child
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =============================================================
   CSS CUSTOM PROPERTIES (supplement theme.json)
   ============================================================= */
:root {
    --snd-primary:              var(--wp--preset--color--primary, #EC3535);
    --snd-primary-container:    var(--wp--preset--color--primary-container, #800000);
    --snd-on-primary:           #ffffff;
    --snd-surface:              var(--wp--preset--color--surface, #F9F9F9);
    --snd-surface-low:          var(--wp--preset--color--surface-low, #F3F3F3);
    --snd-surface-high:         var(--wp--preset--color--surface-high, #E8E8E8);
    --snd-surface-lowest:       #ffffff;
    --snd-on-surface:           var(--wp--preset--color--on-surface, #1A1C1C);
    --snd-on-surface-variant:   var(--wp--preset--color--on-surface-variant, #5A413D);
    --snd-secondary:            var(--wp--preset--color--secondary, #5F5E5E);
    --snd-tertiary-container:   var(--wp--preset--color--tertiary-container, #3D3D3D);
    --snd-on-tertiary:          var(--wp--preset--color--on-tertiary-container, #A9A7A7);
    --snd-outline:              var(--wp--preset--color--outline, #8E706C);
    --snd-outline-variant:      var(--wp--preset--color--outline-variant, #E2BFB9);
    --snd-surface-variant:      #E2E2E2;
    --snd-teal:                 #138889;
    --snd-font-serif:           var(--wp--preset--font-family--newsreader, Newsreader, Georgia, serif);
    --snd-font-sans:            var(--wp--preset--font-family--work-sans, 'Work Sans', system-ui, sans-serif);
    --snd-max-width:            96rem;
    --snd-content-pad:          2rem;
}

/* =============================================================
   GLOBAL RESETS
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    background-color: var(--snd-surface);
    color: var(--snd-on-surface);
    font-family: var(--snd-font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }

/* Override twentytwentyfive body padding */
.wp-site-blocks { padding-top: 0 !important; padding-bottom: 0 !important; }

/* =============================================================
   KEYFRAMES
   ============================================================= */
@keyframes snd-marquee {
    from { transform: translateX(100vw); }
    to   { transform: translateX(-100%); }
}
@keyframes snd-modal-in {
    from { opacity: 0; transform: scale(0.88) translateY(24px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* =============================================================
   BREAKING NEWS BAR
   ============================================================= */
.snd-breaking-bar {
    background-color: var(--snd-primary);
    color: var(--snd-on-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem var(--snd-content-pad);
    overflow: hidden;
    font-family: var(--snd-font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    min-height: 2.25rem;
    max-height: 4rem;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease;
}
/* Collapse breaking bar when user has scrolled — nav wrapper stays visible */
header.wp-block-template-part.scrolled .snd-breaking-bar {
    max-height: 0;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}
.snd-breaking-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}
.snd-breaking-badge {
    background: #fff;
    color: var(--snd-primary);
    padding: 0.1rem 0.4rem;
    font-weight: 900;
    border-radius: 2px;
    flex-shrink: 0;
    font-size: 0.7rem;
}
.snd-ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}
.snd-ticker {
    display: inline-block;
    animation: snd-marquee 32s linear infinite;
}
.snd-breaking-social {
    display: none;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: 1rem;
    align-items: center;
}
.snd-breaking-social .material-symbols-outlined {
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}
@media (min-width: 768px) {
    .snd-breaking-social { display: flex; }
}

/* =============================================================
   STICKY HEADER
   ============================================================= */
/* Sticky on the template-part so the nav sticks for the full scroll range.
   The breaking bar collapses out of view on scroll via .scrolled class. */
header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0 !important;
    margin: 0 !important;
    /* WP global stylesheet applies margin-block-start:1.2rem via :where(.wp-site-blocks)>*
       Physical margin shorthand does not override the logical property in layout —
       we must zero the logical property explicitly. */
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}
/* Also zero on the .wp-site-blocks selector for higher specificity */
.wp-site-blocks > header.wp-block-template-part {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
}
/* WP block layout engine adds margin-block-start to inner block children — kill it */
header.wp-block-template-part > *,
header.wp-block-template-part > .wp-block-group {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
}

.snd-header-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--snd-surface-variant);
    transition: box-shadow 0.3s ease;
    width: 100%;
}
.snd-header-wrapper.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }

/* Hide WooCommerce account block — we use our own icon buttons */
.wp-block-woocommerce-customer-account { display: none !important; }
.snd-header-inner,
.snd-header-wrapper > .wp-block-group.snd-header-inner {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem var(--snd-content-pad);
    max-width: var(--snd-max-width);
    margin: 0 auto;
    width: 100%;
    gap: 1rem;
}

/* Site logo in header */
.snd-header-logo {
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
}
.snd-header-logo .wp-block-site-logo img,
.snd-header-logo img {
    height: 2.5rem;
    width: auto;
    max-width: none;
    display: block;
}

/* Desktop nav */
.snd-nav {
    display: none;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    font-family: var(--snd-font-serif);
    letter-spacing: -0.025em;
    font-size: 1rem;
}
.snd-nav ul,
.snd-nav .wp-block-navigation__container {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    align-items: center;
}
.snd-nav a { color: var(--snd-on-surface-variant); text-decoration: none; white-space: nowrap; transition: color 0.15s; }
.snd-nav a:hover { color: var(--snd-teal); }
.snd-nav .snd-nav-active a, .snd-nav a.snd-nav-active {
    color: #7f1d1d;
    border-bottom: 2px solid #7f1d1d;
    padding-bottom: 0.25rem;
    font-weight: 700;
}
@media (min-width: 1024px) { .snd-nav { display: flex; } }

/* Action icons */
.snd-header-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 1rem;
    color: #7f1d1d;
}
.snd-icon-btn {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-family: 'Material Symbols Outlined';
    font-size: 1.5rem;
    line-height: 1;
    transition: color 0.15s;
    -webkit-font-smoothing: antialiased;
}
.snd-icon-btn:hover { color: var(--snd-teal); }
.snd-hamburger { display: block; }
@media (min-width: 768px) { .snd-hamburger { display: none; } }

/* =============================================================
   MOBILE MENU
   ============================================================= */
.snd-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.94);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
}
.snd-mobile-menu.open { display: flex; }
.snd-mobile-menu a {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--snd-font-serif);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.15s;
}
.snd-mobile-menu a:hover { color: var(--snd-primary); }
.snd-mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-family: 'Material Symbols Outlined';
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* =============================================================
   MAIN CONTENT WRAPPER
   ============================================================= */
.snd-main {
    max-width: var(--snd-max-width);
    margin: 0 auto;
    padding: 2rem var(--snd-content-pad);
}

/* =============================================================
   SECTION: HERO
   ============================================================= */
.snd-hero { margin-bottom: 6rem; }
.snd-hero-columns.wp-block-columns {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 3rem;
}
/* stack on mobile (WP default handles this via is-not-stacked-on-mobile) */

.snd-cover-wrap {
    position: relative;
    overflow: hidden;
}
.snd-cover-wrap img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}
.snd-cover-wrap:hover img { transform: scale(1.05); }
.snd-cover-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--snd-primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--snd-font-sans);
}
.snd-article-category {
    font-family: var(--snd-font-sans);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--snd-primary);
    display: block;
    margin-bottom: 0.5rem;
}
.snd-cover-title {
    font-family: var(--snd-font-serif) !important;
    font-size: clamp(2.5rem, 5vw, 3.75rem) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: -0.05em;
    margin: 0 !important;
}
.snd-cover-excerpt {
    color: var(--snd-on-surface-variant);
    font-size: 1.125rem;
    line-height: 1.625;
    margin-top: 1.5rem !important;
    font-family: var(--snd-font-sans);
}
.snd-author-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}
.snd-author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--snd-surface-high);
    flex-shrink: 0;
}
.snd-author-name {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0;
}
.snd-author-title {
    font-size: 0.75rem;
    color: var(--snd-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: -0.05em;
    font-family: var(--snd-font-sans);
}

/* Fresh Stories sidebar card */
.snd-fresh-stories {
    background: var(--snd-surface-low);
    padding: 2rem;
    border-radius: 2px;
}
.snd-fresh-stories h2,
.snd-section-label {
    font-family: var(--snd-font-sans) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--snd-outline-variant);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem !important;
    color: var(--snd-on-surface);
}
.snd-fresh-article { margin-bottom: 2rem; }
.snd-fresh-article:last-child { margin-bottom: 0; }
.snd-fresh-article h3 {
    font-family: var(--snd-font-serif) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.25;
    margin: 0.25rem 0 0.5rem !important;
    transition: color 0.15s;
    cursor: pointer;
}
.snd-fresh-article h3:hover { color: var(--snd-teal); }
.snd-fresh-article .snd-time {
    font-size: 0.7rem;
    color: var(--snd-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0;
    font-family: var(--snd-font-sans);
}

/* Popular Insights */
.snd-popular {
    padding: 1rem;
    border: 2px solid rgba(236,53,53,0.1);
}
.snd-popular h2 { margin-bottom: 1.5rem !important; }
.snd-popular-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.snd-popular-item { display: flex; gap: 1rem; align-items: flex-start; }
.snd-popular-num {
    font-family: var(--snd-font-serif);
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--snd-outline-variant);
    font-style: italic;
    line-height: 1;
    flex-shrink: 0;
}
.snd-popular-item p { font-weight: 700; font-size: 0.875rem; line-height: 1.375; margin: 0; font-family: var(--snd-font-sans); }

/* =============================================================
   SECTION: BREAKING DISCOVERIES BENTO GRID
   ============================================================= */
.snd-discoveries { margin-bottom: 6rem; }
.snd-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 4px solid var(--snd-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}
.snd-section-title {
    font-family: var(--snd-font-serif) !important;
    font-size: 2.25rem !important;
    font-weight: 900 !important;
    margin: 0 !important;
}
.snd-view-archive {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--snd-on-surface);
    font-family: var(--snd-font-sans);
    transition: color 0.15s;
}
.snd-view-archive:hover { color: var(--snd-teal); }
.snd-bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .snd-bento-grid { grid-template-columns: repeat(4, 1fr); }
    .snd-bento-featured { grid-column: span 2; }
}
.snd-bento-card { padding: 1.5rem; }
.snd-bento-card-light { background: var(--snd-surface-lowest); }
.snd-bento-card-mid   { background: var(--snd-surface-low); display: flex; flex-direction: column; justify-content: space-between; }
.snd-bento-card-dark  { background: var(--snd-primary-container); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.snd-bento-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 1rem; display: block; }
.snd-bento-card h3 {
    font-family: var(--snd-font-serif) !important;
    font-weight: 700 !important;
    margin: 0.5rem 0 0 !important;
    line-height: 1.25;
}
.snd-bento-card-light h3 { font-size: 1.5rem !important; }
.snd-bento-card-mid h3, .snd-bento-card-dark h3 { font-size: 1.25rem !important; }
.snd-bento-card-dark .snd-article-category { color: #fff; }
.snd-bento-excerpt {
    font-size: 0.875rem;
    color: var(--snd-on-surface-variant);
    line-height: 1.625;
    margin-top: 0.75rem;
    font-family: var(--snd-font-sans);
}
.snd-bento-card-dark .snd-bento-excerpt { color: rgba(255,255,255,0.8); margin-top: 1rem; font-size: 0.75rem; }
.snd-bento-card-mid .snd-bento-excerpt { margin-top: 1rem; font-size: 0.75rem; }

/* =============================================================
   SECTION: SCIENCE DIGEST + VOICE MODE
   ============================================================= */
.snd-digest-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
}
@media (min-width: 1024px) {
    .snd-digest-section { grid-template-columns: 2fr 1fr; }
}
.snd-digest-title {
    font-family: var(--snd-font-serif) !important;
    font-size: 1.875rem !important;
    font-weight: 900 !important;
    font-style: italic;
    margin: 0 0 2rem !important;
}
.snd-digest-articles { display: flex; flex-direction: column; gap: 2.5rem; }
.snd-digest-article {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}
@media (min-width: 768px) {
    .snd-digest-article { flex-direction: row; }
}
.snd-digest-article img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .snd-digest-article img { width: 12rem; }
}
.snd-digest-article h3 {
    font-family: var(--snd-font-serif) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 0.25rem 0 !important;
    line-height: 1.25;
}
.snd-digest-article p {
    font-size: 0.875rem;
    color: var(--snd-on-surface-variant);
    line-height: 1.625;
    margin: 0.5rem 0 0 !important;
    font-family: var(--snd-font-sans);
}
.snd-read-more {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--snd-primary);
    color: var(--snd-primary);
    font-family: var(--snd-font-sans);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    padding: 0;
}
/* Voice Mode Panel */
.snd-voice-panel {
    background: var(--snd-tertiary-container);
    color: var(--snd-on-tertiary);
    padding: 2rem;
}
.snd-voice-panel h2 {
    color: #fff !important;
    font-family: var(--snd-font-serif) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 0 0 1.5rem !important;
}
.snd-voice-feature { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.snd-voice-feature:last-of-type { margin-bottom: 0; }
.snd-voice-feature .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    color: rgba(255,131,113,0.9);
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1.3;
}
.snd-voice-feature strong { color: #fff; display: block; font-size: 0.9rem; font-family: var(--snd-font-sans); }
.snd-voice-feature span { font-size: 0.7rem; opacity: 0.7; line-height: 1.5; font-family: var(--snd-font-sans); }
.snd-voice-quote {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 2px;
    margin-top: 3rem;
}
.snd-voice-quote p.label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin: 0 0 1rem !important;
    font-family: var(--snd-font-sans);
}
.snd-voice-quote blockquote {
    margin: 0;
    font-family: var(--snd-font-serif);
    font-style: italic;
    font-size: 1.25rem;
    color: #fff;
    line-height: 1.375;
}

/* =============================================================
   SECTION: TESTIMONIALS
   ============================================================= */
.snd-testimonials {
    background: var(--snd-surface-low);
    padding: 4rem 2rem;
    border-radius: 2px;
    margin-bottom: 6rem;
}
.snd-testimonials-title {
    font-family: var(--snd-font-serif) !important;
    font-size: 2.25rem !important;
    font-weight: 900 !important;
    font-style: italic;
    text-align: center;
    margin: 0 0 4rem !important;
}
.snd-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 768px) {
    .snd-testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}
.snd-testimonial { display: flex; flex-direction: column; align-items: center; text-align: center; }
.snd-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: var(--snd-font-sans);
    flex-shrink: 0;
}
.snd-avatar-1 { background: var(--snd-primary-container); }
.snd-avatar-2 { background: var(--snd-primary); }
.snd-avatar-3 { background: var(--snd-secondary); }
.snd-testimonial blockquote {
    margin: 0 0 1rem;
    font-family: var(--snd-font-serif);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--snd-on-surface-variant);
    line-height: 1.625;
}
.snd-testimonial h3 {
    font-family: var(--snd-font-sans) !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.25rem !important;
}
.snd-testimonial p {
    font-size: 0.75rem;
    color: var(--snd-on-surface-variant);
    margin: 0 !important;
    font-family: var(--snd-font-sans);
}

/* =============================================================
   SECTION: APP DOWNLOAD CTA
   ============================================================= */
.snd-app-cta {
    background: var(--snd-primary);
    padding: 3rem;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 6rem;
    overflow: hidden;
    position: relative;
}
@media (min-width: 768px) {
    .snd-app-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 6rem;
    }
}
.snd-app-content { position: relative; z-index: 1; max-width: 36rem; }
.snd-app-cta h2 {
    font-family: var(--snd-font-serif) !important;
    font-size: clamp(2.25rem, 5vw, 3.75rem) !important;
    font-weight: 900 !important;
    color: #fff !important;
    line-height: 1.1;
    margin: 0 0 1.5rem !important;
}
.snd-app-cta p {
    color: rgba(255,255,255,0.82);
    font-size: 1.25rem;
    margin: 0 0 2.5rem !important;
    font-family: var(--snd-font-sans);
    line-height: 1.625;
}
.snd-app-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.snd-app-btn {
    background: #000;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    border: none;
    transition: background 0.15s;
    text-align: left;
}
.snd-app-btn:hover { background: #18181b; }
.snd-app-btn .material-symbols-outlined { font-size: 1.875rem; line-height: 1; }
.snd-app-btn-label-small {
    display: block;
    font-size: 0.625rem;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.6;
    line-height: 1;
    margin-bottom: 0.1rem;
    font-family: var(--snd-font-sans);
}
.snd-app-btn-label-large {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}
.snd-app-phone {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
}
@media (min-width: 768px) { .snd-app-phone { width: 33%; } }
.snd-app-phone-glow {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.12);
    border-radius: 1.5rem;
    backdrop-filter: blur(64px);
    transform: rotate(12deg);
    margin-right: -3rem;
    margin-bottom: -3rem;
}
.snd-app-phone img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* =============================================================
   FOOTER
   ============================================================= */
.snd-footer-wrapper { background: #f8fafc; width: 100%; margin-top: 6rem; }
.snd-footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem var(--snd-content-pad);
    max-width: var(--snd-max-width);
    margin: 0 auto;
}
@media (min-width: 768px) {
    .snd-footer-inner { grid-template-columns: 1fr 1fr; }
}
.snd-footer-brand { display: flex; flex-direction: column; gap: 2rem; }
.snd-footer-brand img { height: 6rem; width: auto; }
.snd-footer-tagline {
    color: var(--snd-on-surface-variant);
    font-size: 0.875rem;
    line-height: 1.625;
    max-width: 24rem;
    margin: 0 !important;
    font-family: var(--snd-font-sans);
}
.snd-footer-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.snd-btn-primary {
    background: var(--snd-primary);
    color: #fff;
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    font-family: var(--snd-font-sans);
    transition: opacity 0.15s;
}
.snd-btn-primary:hover { opacity: 0.9; }
.snd-btn-outline {
    border: 1px solid var(--snd-outline);
    color: var(--snd-on-surface);
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2px;
    background: none;
    cursor: pointer;
    font-family: var(--snd-font-sans);
    transition: background 0.15s;
}
.snd-btn-outline:hover { background: var(--snd-surface-high); }
.snd-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    font-family: var(--snd-font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.snd-footer-links h4 {
    font-weight: 700;
    color: #7f1d1d;
    margin: 0 0 1rem !important;
    font-size: 0.7rem !important;
}
.snd-footer-links a {
    display: block;
    color: var(--snd-on-surface-variant);
    margin-bottom: 1rem;
    transition: color 0.15s;
}
.snd-footer-links a:hover { color: var(--snd-teal); text-decoration: underline; }
.snd-footer-bottom {
    border-top: 1px solid var(--snd-surface-variant);
    padding: 2rem var(--snd-content-pad);
    max-width: var(--snd-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
@media (min-width: 768px) {
    .snd-footer-bottom { flex-direction: row; }
}
.snd-footer-copy {
    font-family: var(--snd-font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--snd-on-surface-variant);
    margin: 0 !important;
}
.snd-footer-meta { display: flex; gap: 2rem; }
.snd-footer-meta span {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--snd-on-surface-variant);
    font-family: var(--snd-font-sans);
}

/* =============================================================
   APP MODAL
   ============================================================= */
.snd-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.snd-modal.open { display: flex; }
.snd-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: -1;
}
.snd-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.snd-modal.open .snd-modal-panel {
    animation: snd-modal-in 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
.snd-modal-header {
    background: linear-gradient(to bottom right, #0d6e6e, #138889, #1aafaf);
    padding: 2.5rem 2rem 3rem;
    text-align: center;
    color: #fff;
    position: relative;
}
.snd-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-family: 'Material Symbols Outlined';
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.snd-modal-close:hover { color: #fff; }
.snd-modal-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.snd-modal-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.snd-modal-icon .material-symbols-outlined { font-size: 1.875rem; }
.snd-modal-title {
    font-family: var(--snd-font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.375;
    text-align: left;
    margin: 0;
}
.snd-modal-subtitle { font-size: 0.875rem; color: rgba(255,255,255,0.8); margin: 0; font-family: var(--snd-font-sans); }
.snd-modal-wave { background: #fff; margin-top: -1px; }
.snd-modal-body {
    background: #fff;
    padding: 0.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.snd-modal-badges { display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.snd-modal-badges a { display: inline-block; }
.snd-modal-badges img { height: 3.5rem; width: auto; object-fit: contain; }
.snd-modal-note { font-size: 0.75rem; color: #94a3b8; text-align: center; font-family: var(--snd-font-sans); margin: 0; }

/* Badge fallback when external badge images fail to load */
.snd-badge-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    font-family: var(--snd-font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    min-width: 8rem;
    height: 3.5rem;
    letter-spacing: 0.02em;
}

/* Cover story image – ensure it renders at correct aspect ratio */
.snd-cover-wrap img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

/* Ensure the cover link is block-level so image fills full width */
a.snd-app-trigger .snd-cover-wrap {
    display: block;
}
