/* =========================================
   Bregox AS | Shared Styles
   Fonts: Fraunces (display) + Libre Franklin (body)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,700&family=Libre+Franklin:wght@400;500;600;700&display=swap');

:root {
    --bg-cream:       #F4F1EA;   /* App background */
    --bg-card:        #ffffff;
    --bg-dark:        #262626;   /* Near-black for featured cards */
    --text-primary:   #3c3c43;   /* Secondary text in app */
    --text-secondary: #727272;
    --text-muted:     #999999;
    --text-on-dark:   #ffffff;
    --border:         #E6E6E6;
    --separator:      #E2E2E2;

    /* Category accent colors */
    --color-converse: #8d7b87;
    --color-quiz:     #7a9e7e;
    --color-party:    #a65e5e;

    /* UI colors */
    --color-slate:    #6B7B8E;   /* Start/CTA button */
    --color-button:   #787880;
    --color-tag-bg:   #eeeeee;

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'Libre Franklin', -apple-system, Helvetica, sans-serif;

    /* Border radius (from app theme) */
    --radius-sm:   15px;
    --radius-md:   32px;
    --radius-lg:   40px;
    --radius-xl:   42px;
}

/* ---- Reset & Base ---- */

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ---- Navigation ---- */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-cream);
    border-bottom: 1px solid var(--separator);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 56px;
    flex-shrink: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
}

.nav-brand img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links a.active {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
}

/* ---- Hero Section ---- */

.hero {
    padding: 80px 24px 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-cream);
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    margin-bottom: 32px;
    overflow: hidden;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 14px;
    letter-spacing: -1px;
    line-height: 1.05;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0 0 44px;
    max-width: 500px;
    line-height: 1.55;
}

.badge-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.badge-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-dark);
    color: var(--text-on-dark);
    border-radius: var(--radius-md);
    padding: 13px 22px;
    text-decoration: none;
    cursor: default;
    opacity: 0.88;
    min-width: 176px;
}

.badge-btn:hover {
    text-decoration: none;
    opacity: 0.88;
}

.badge-btn .badge-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    opacity: 0.65;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.badge-btn .badge-store {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
}

.hero-notify {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-notify a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-notify a:hover {
    color: var(--text-primary);
}

/* ---- Generic Section ---- */

.section {
    padding: 72px 24px;
    background-color: var(--bg-cream);
}

.section--card {
    background-color: var(--bg-card);
}

.section--dark {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
}

.section-inner {
    max-width: 920px;
    margin: 0 auto;
}

.section-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.section h2 {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.section--dark h2 {
    color: var(--text-on-dark);
}

.section-sub {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--text-secondary);
    margin: 0 auto 48px;
    max-width: 520px;
    line-height: 1.55;
}

.section--dark .section-sub {
    color: rgba(255,255,255,0.6);
}

/* ---- Mode Cards Grid ---- */

.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: left;
}

.mode-card {
    background: var(--bg-cream);
    border-radius: var(--radius-xl);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--card-accent, #8d7b87);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.mode-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.mode-card .mode-tag {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: block;
}

.mode-card p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

/* ---- Occasion List ---- */

.occasion-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 580px;
    margin: 0 auto;
    text-align: left;
}

.occasion-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.occasion-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.occasion-item h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.occasion-item p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.55;
}

/* ---- Pricing ---- */

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 30px;
}

.pricing-card.featured {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.pricing-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.pricing-card.featured h3 {
    color: var(--text-on-dark);
}

.pricing-card .price {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 22px;
    display: block;
}

.pricing-card.featured .price {
    color: rgba(255,255,255,0.45);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-card li {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.pricing-card.featured li {
    color: rgba(255,255,255,0.8);
}

.pricing-card li::before {
    content: "✓";
    font-weight: 700;
    color: var(--color-quiz);
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-card.featured li::before {
    color: #7a9e7e;
}

.pricing-note {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 24px;
}

/* ---- About ---- */

.about-text {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

/* ---- Footer ---- */

footer {
    background-color: var(--bg-dark);
    border-top: none;
    padding: 52px 24px 32px;
    margin-top: auto;
    color: rgba(255,255,255,0.55);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 920px;
    margin: 0 auto 40px;
    text-align: left;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
}

.footer-brand span {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-on-dark);
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    margin: 0;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    margin: 0 0 14px;
}

.footer-col a,
.footer-col p {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    display: block;
    margin: 0 0 8px;
    text-decoration: none;
}

.footer-col a:hover {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.footer-bottom {
    max-width: 920px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    text-align: left;
}

/* ---- Legal Pages ---- */

.legal-hero {
    padding: 60px 24px 40px;
    background-color: var(--bg-cream);
}

.legal-hero h1 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.legal-hero .last-updated {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.legal-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 16px 24px 80px;
    text-align: left;
}

.policy-summary {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin-bottom: 40px;
}

.policy-summary h3 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.policy-summary p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.policy-summary a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 40px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--separator);
}

.legal-content h3 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 8px;
}

.legal-content p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.legal-content a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content ul {
    padding-left: 20px;
    margin: 0 0 16px;
}

.legal-content li {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ---- Support / FAQ ---- */

.support-hero {
    padding: 60px 24px 32px;
    background-color: var(--bg-cream);
}

.support-hero h1 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.support-hero p {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0;
}

.faq-section {
    max-width: 660px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: left;
}

.faq-section h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 24px;
}

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

.faq-item summary {
    padding: 18px 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    -webkit-user-select: none;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 22px;
    font-weight: 300;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 16px;
}

details[open] .faq-item summary::after {
    content: "−";
}

.faq-item p {
    padding: 0 0 20px;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.faq-item a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-section {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 64px 24px;
    margin-top: 48px;
}

.contact-section h2 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--text-on-dark);
    margin: 0 0 8px;
}

.contact-section .contact-sub {
    font-family: var(--font-body);
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    margin: 0 0 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 540px;
    margin: 0 auto 40px;
    text-align: left;
}

.contact-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 24px;
}

.contact-card h3 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin: 0 0 8px;
}

.contact-card a {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-on-dark);
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card p {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin: 0;
    line-height: 1.5;
}

.company-address {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    line-height: 1.7;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero-sub {
        font-size: 17px;
    }

    .section h2 {
        font-size: 30px;
    }

    .mode-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .legal-hero h1,
    .support-hero h1 {
        font-size: 32px;
    }

    .nav {
        padding: 0 18px;
    }

    .nav-links a {
        padding: 5px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .badge-row {
        flex-direction: column;
        align-items: center;
    }
}

/* =========================================
   Studio additions
   ========================================= */

html {
    scroll-behavior: smooth;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 20px;
}

.hero-cta {
    display: inline-block;
    background: var(--bg-dark);
    color: var(--text-on-dark);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    margin-top: 16px;
    transition: opacity 0.15s;
}

.hero-cta:hover {
    opacity: 0.85;
    text-decoration: none;
}

.project-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--color-tag-bg);
    color: var(--text-muted);
    border-radius: 20px;
    padding: 3px 9px;
    vertical-align: middle;
    margin-left: 8px;
}

.project-badge--wip {
    background: #f0ede6;
    color: #a08070;
}

.project-icon {
    font-size: 20px;
    color: var(--text-muted);
}

.about-legal {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--separator);
}

.about-legal p {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 4px;
}
