/* ============================================================
   Are You Bored? — Public Site Styles
   ============================================================ */

/* ── Noteworthy — same typeface used in iOS + Android apps ── */
@font-face {
    font-family: 'Noteworthy';
    src: url('../fonts/noteworthy_light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noteworthy';
    src: url('../fonts/noteworthy_bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Apply Noteworthy to all display headings and brand name — mirrors iOS/Android */
.nav-logo .brand-name,
.hero h1,
.hero h1 .accent,
.unbored-hero h1,
.cards-strip h2,
.features h2,
.activity-card .card-title {
    font-family: 'Noteworthy', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: normal; /* Noteworthy has natural spacing built in */
}

:root {
    --primary:   #899ea7;
    --primary-d: #5c7580;
    --primary-x: #3d5159;
    --green:     #3eb489;
    --red:       #e25656;
    --card-blue:       #68c4db;
    --card-gold:       #e9bd70;
    --card-pink:       #ffa3a3;
    --card-purple:     #cbabd5;
    --card-teal:       #6fc4af;
    --card-slate:      #919abb;
    --card-periwinkle: #93adef;
    --card-sage:       #50ae50;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    color: #2c3e50;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

/* ================================================================ NAV */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    transition: background .3s, box-shadow .3s;
}

.site-nav.scrolled {
    background: rgba(61,81,89,.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(0,0,0,.2);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

.nav-logo .brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.nav-social {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background .2s, transform .2s;
    text-decoration: none;
}

.nav-social a:hover {
    background: rgba(255,255,255,.25);
    transform: scale(1.1);
}

/* Reels button overrides — pill shape instead of circle */
.nav-social a.nav-reels-btn {
    width: auto;
    height: auto;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 13px;
    gap: 6px;
}
.nav-social a.nav-reels-btn:hover {
    background: var(--card-gold);
    color: #fff;
    transform: none;
}

/* Back button — circular, shown on pages that set $showBackBtn = true */
.site-nav-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.8);
    font-size: 13px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 10px;
    transition: background .15s, color .15s;
}
.site-nav-back:hover {
    background: rgba(255,255,255,.24);
    color: #fff;
}

.nav-cta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-nav {
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    transition: transform .15s, opacity .15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-nav:hover { transform: translateY(-1px); opacity: .9; }

.btn-nav.outline {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,.4);
}

.btn-nav.fill {
    background: var(--green);
    color: #fff;
}

/* ================================================================ HERO */
.hero {
    min-height: 100vh;
    background: linear-gradient(145deg, var(--primary-x) 0%, var(--primary-d) 50%, var(--primary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
}

/* Floating confetti shapes */
.confetti-shape {
    position: absolute;
    opacity: .15;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

/* Static confetti pieces — mimic post-celebration confetti frozen mid-air.
   Positioned directly inside .hero (position:relative) like .confetti-shape. */
.cp {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-18px) rotate(8deg); }
}

/* Keep hero text/buttons/phones above the confetti layer */
.hero-eyebrow,
.hero h1,
.hero p.sub,
.hero-actions,
.phone-group,
.scroll-indicator {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -1.5px;
    max-width: 800px;
    margin-bottom: 24px;
}

.hero h1 .accent { color: var(--card-gold); }

.hero p.sub {
    font-size: clamp(16px, 2.5vw, 20px);
    color: rgba(255,255,255,.75);
    max-width: 540px;
    line-height: 1.6;
    margin-bottom: 44px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 70px;
}

.btn-hero {
    padding: 16px 34px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .2px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.btn-hero.primary { background: var(--green); color: #fff; }
.btn-hero.secondary {
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.4);
    color: #fff;
}

/* Phone mockup group */
.phone-group {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: -20px;
    position: relative;
    padding-bottom: 0;
}

.phone-frame {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    border: 3px solid rgba(255,255,255,.15);
    position: relative;
    transition: transform .3s;
}

.phone-frame:hover { transform: translateY(-8px); }

.phone-frame img {
    width: 100%;
    display: block;
}

.phone-frame.main   { width: 200px; z-index: 3; }
.phone-frame.left   { width: 170px; transform: rotate(-8deg) translateX(30px); z-index: 2; margin-bottom: 20px; }
.phone-frame.right  { width: 170px; transform: rotate(8deg) translateX(-30px); z-index: 2; margin-bottom: 20px; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.4);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ================================================================ CARDS STRIP */
.cards-strip {
    padding: 80px 0 60px;
    background: #f7f9fa;
}

.cards-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cards-strip h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-x);
    margin-bottom: 10px;
    letter-spacing: -.5px;
}

.cards-strip .section-sub {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

/* Track — holds arrows + scroll wrap */
.cards-scroll-track {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Scroll wrap — clips cards at edges, owns the gradient fades.
   The negative margin + matching padding expands the overflow:hidden clip
   area outward so card box-shadows are not cut off at top and bottom. */
.cs-scroll-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    margin: -24px 0;
    padding: 24px 0;
}

/* Edge fades sit on top of the scroll strip, aligned to its exact edges */
.cs-scroll-wrap::before,
.cs-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity .2s;
}
.cs-scroll-wrap::before {
    left: 0;
    background: linear-gradient(to right, rgba(247,249,250,1), rgba(247,249,250,0));
}
.cs-scroll-wrap::after {
    right: 0;
    background: linear-gradient(to left, rgba(247,249,250,1), rgba(247,249,250,0));
}
.cs-scroll-wrap.fade-left::before  { opacity: 1; }
.cs-scroll-wrap.fade-right::after  { opacity: 1; }

/* Arrow buttons */
.cs-arrow {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    transition: transform .15s, filter .15s;
}
.cs-arrow:hover { filter: brightness(1.12); transform: scale(1.08); }

.cards-scroll {
    display: flex;
    gap: 16px;
    padding: 16px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 8px; /* aligns snap points with the 8px side padding */
    scroll-behavior: smooth;
}

.cards-scroll::-webkit-scrollbar { display: none; }

.activity-card {
    flex: 0 0 210px;
    border-radius: 20px;
    padding: 24px 20px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    transition: transform .2s;
    cursor: default;
}

.activity-card:hover { transform: translateY(-6px) scale(1.02); }

.activity-card::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 200px; height: 120px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
}

.activity-card .card-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .75;
    margin-bottom: 10px;
}

.activity-card .card-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.activity-card .card-body {
    font-size: 13px;
    opacity: .85;
    line-height: 1.5;
}

/* ================================================================ FEATURES */
.features {
    padding: 90px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-x);
    margin-bottom: 10px;
    letter-spacing: -.5px;
}

.features .section-sub {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.feature-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border-top: 4px solid var(--primary);
    transition: transform .2s, box-shadow .2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    color: #fff;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-x);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
}

/* ================================================================ CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary-x), var(--primary-d));
    padding: 90px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section .confetti-shape { opacity: .08; }

.cta-section h2 {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.8px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255,255,255,.7);
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================================ REVIEWS */
.reviews-section {
    padding: 90px 24px;
    background: #f7f9fa;
    text-align: center;
}

.reviews-section h2 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    color: var(--primary-x);
    letter-spacing: -.5px;
    margin-bottom: 10px;
}

.reviews-section .section-sub {
    color: #666;
    font-size: 16px;
    margin-bottom: 48px;
}

/* ── Average rating — no card, pure type ── */
.rating-showcase {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 56px;
}

.rating-big-star {
    font-size: 64px;
    line-height: 1;
    color: var(--card-gold);
    filter: drop-shadow(0 3px 8px rgba(233,189,112,.45));
    margin-bottom: 2px;
}

.rating-number {
    font-size: 72px;
    font-weight: 900;
    color: var(--primary-x);
    line-height: 1;
    letter-spacing: -3px;
}

.rating-stars-row {
    display: flex;
    gap: 5px;
    font-size: 20px;
    color: var(--card-gold);
    margin: 4px 0 2px;
}

.rating-stars-row .far.fa-star { color: #ccc; }

.rating-count {
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
    letter-spacing: .3px;
}

/* ── Carousel ── */
.review-carousel {
    max-width: 680px;
    margin: 0 auto;
    overflow: hidden;
    cursor: grab;
}

.review-carousel:active { cursor: grabbing; }

.review-track {
    display: flex;
    transition: transform .55s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* ── Single slide — transparent, no card ── */
.review-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    user-select: none;
}

.review-slide-stars {
    display: flex;
    gap: 4px;
    font-size: 18px;
    color: var(--card-gold);
}

.review-slide-stars .far.fa-star { color: #ccc; }

.review-slide-text {
    font-size: clamp(16px, 2.4vw, 20px);
    font-style: italic;
    color: #4a5568;
    line-height: 1.75;
    max-width: 560px;
}

.review-slide-text::before { content: '\201C'; margin-right: 1px; }
.review-slide-text::after  { content: '\201D'; margin-left:  1px; }

.review-slide-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #aaa;
    margin-top: 4px;
}

.review-dot { color: #d0d0d0; }

/* ── Dot indicators ── */
.review-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.rdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background .25s, transform .25s;
}

.rdot.active {
    background: var(--primary-d);
    transform: scale(1.35);
}

/* ── No reviews fallback ── */
.reviews-empty {
    color: #aaa;
    font-size: 15px;
    margin-top: 12px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .rating-number       { font-size: 56px; }
    .rating-big-star     { font-size: 50px; }
    .review-slide-text   { font-size: 15px; }
}

/* ================================================================ FOOTER */
.site-footer {
    background: var(--primary-x);
    color: rgba(255,255,255,.5);
    text-align: center;
    padding: 32px 24px;
    font-size: 13px;
}

.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

/* ================================================================ SPARK PAGE */
.unbored-page {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--primary-x) 0%, var(--primary-d) 100%);
    padding-top: 80px;
}

.unbored-hero {
    text-align: center;
    padding: 50px 24px 30px;
    color: #fff;
}

.unbored-hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: 10px;
}

.unbored-hero p {
    font-size: 16px;
    opacity: .75;
}

.unbored-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 20px 24px;
    scrollbar-width: none;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.8);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.filter-pill:hover,
.filter-pill.active {
    background: #fff;
    color: var(--primary-x);
    border-color: #fff;
}

.unbored-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    padding: 10px 28px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.unbored-card {
    border-radius: 20px;
    padding: 26px 22px;
    color: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.unbored-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.unbored-card::after {
    content: '';
    position: absolute;
    bottom: -40px; right: -40px;
    width: 130px; height: 130px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    pointer-events: none;
}

.unbored-card .sc-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .7;
    margin-bottom: 8px;
}

.unbored-card .sc-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.unbored-card .sc-body {
    font-size: 13px;
    opacity: .82;
    line-height: 1.55;
}

.unbored-card .sc-footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 50px;
    background: rgba(255,255,255,.2);
    font-size: 11px;
    font-weight: 700;
}

.unbored-card .sc-done {
    margin-left: auto;
    opacity: 0;
    transition: opacity .2s;
    font-size: 20px;
}

.unbored-card:hover .sc-done { opacity: .5; }

.unbored-shuffle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(62,180,137,.4);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    border: none;
    z-index: 50;
}

.unbored-shuffle:hover {
    transform: scale(1.08) rotate(-10deg);
    box-shadow: 0 10px 28px rgba(62,180,137,.5);
}

.unbored-empty {
    text-align: center;
    padding: 60px 24px;
    color: rgba(255,255,255,.5);
    grid-column: 1 / -1;
    font-size: 16px;
}

/* ================================================================ Responsive */
@media (max-width: 768px) {
    .site-nav { padding: 14px 20px; }
    .nav-social { position: static; transform: none; gap: 8px; }
    .nav-cta { gap: 8px; }
    .nav-logo .brand-name { display: none; }
    .btn-nav span { display: none; }
    .btn-nav { padding: 9px 12px; min-width: 0; }
    .nav-help-label { display: none; }
    .nav-social a.nav-reels-btn span { display: none; }
    .nav-social a.nav-reels-btn { padding: 6px 10px; }
    .features  { padding: 60px 20px; }
    .phone-frame.left, .phone-frame.right { display: none; }
    .phone-frame.main { width: 220px; }
    .unbored-grid { padding: 10px 16px 80px; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .unbored-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
}
