/* =============================================================================
   Swiss Inter — landing page styles
   Loaded only by the SaaS marketing layout (Views/layouts/landing.php).
   Phase 0 of the SaaS roadmap. See CLAUDE.md "SaaS roadmap".
   ============================================================================= */

/* -------- Brand wordmark font -------- */
/*
 * NP Naipol All in One — used for the swiss-inter wordmark in the
 * top-left logo, and (sparingly) for section-header accents.
 * font-display:swap renders the fallback stack first and swaps in once
 * the woff2 file lands so visitors don't see a flash of nothing.
 *
 * To activate: drop the converted woff2 + woff at the paths below.
 *   new/public/assets/fonts/np-naipol.woff2
 *   new/public/assets/fonts/np-naipol.woff
 * Until they exist, the fallback (Inter / system sans) renders and
 * the page still looks reasonable.
 */
@font-face {
    font-family: 'NP Naipol';
    src: url('/assets/fonts/np-naipol.woff2') format('woff2'),
         url('/assets/fonts/np-naipol.woff')  format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* -------- Body & typography -------- */
body.rb-landing-body {
    margin: 0;
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, Helvetica, Arial, sans-serif;
}

/* -------- Top navigation header -------- */
.rb-landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* -------- Brand wordmark -------- */
/*
 * Renders "swiss + inter" with a CSS-painted Swiss cross between the
 * two words, matching the brand wordmark exactly. No image asset
 * required — works as soon as the woff2 font is uploaded. Keeping the
 * wordmark live (HTML + font) instead of a static SVG image means it
 * scales crisp at any DPR and respects the user's text rendering.
 */
.rb-landing-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #1a1a1a;
    font-family: 'NP Naipol', 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: 0.01em;
}
.rb-landing-logo:hover {
    color: #1a1a1a;
}
.rb-landing-logo-cross {
    display: inline-block;
    width: 1.4em;
    height: 1.4em;
    flex: 0 0 auto;
}
.rb-landing-logo-cross svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* -------- Language switcher (navbar) -------- */
.rb-landing-lang-btn {
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
    font-weight: 500;
    background: transparent;
}
.rb-landing-lang-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.18);
}
.rb-landing-lang .dropdown-menu {
    min-width: 11rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.12);
}
.rb-landing-lang .dropdown-item.active {
    background: var(--bs-primary);
    color: #ffffff;
}
.rb-landing-lang .dropdown-item.active .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* -------- Hero section -------- */
.rb-landing-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.rb-landing-hero h1 {
    letter-spacing: -0.02em;
}

/* -------- Coming-soon disabled CTA (placeholder until waitlist ships) -------- */
.rb-landing-hero .btn.disabled[aria-disabled='true'],
.rb-landing-header .btn.disabled[aria-disabled='true'] {
    cursor: default;
    pointer-events: none;
    opacity: 0.7;
}

/* -------- Features section -------- */
.rb-landing-features {
    background: #ffffff;
}
.rb-landing-feature {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rb-landing-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.08);
}
.rb-landing-feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: #dc1f26;        /* Swiss red — anchors features to the brand */
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rb-landing-feature-icon .material-symbols-outlined {
    font-size: 1.6rem;
    /* Optical-size axis hint — keeps the glyph crisp at this size */
    font-variation-settings: 'opsz' 24, 'wght' 400, 'FILL' 0, 'GRAD' 0;
}
.rb-landing-feature h3 {
    color: #1a1a1a;
}

/* -------- Live demo section (booking widget iframe) -------- */
.rb-landing-demo {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.rb-landing-demo-frame {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.08);
}
#rb-demo-widget {
    display: block;
    width: 100%;
    border: 0;
    /* Initial guess; the postMessage listener overrides as soon as the
       iframe's widget.js measures and reports back. */
    min-height: 600px;
}

/* -------- Guest app preview section -------- */
.rb-landing-guest {
    background: #ffffff;
}
.rb-landing-guest .btn .material-symbols-outlined {
    font-variation-settings: 'opsz' 24, 'wght' 500, 'FILL' 1, 'GRAD' 0;
}
.rb-landing-guest-feature {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rb-landing-guest-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.08);
}

/* -------- Pricing teaser section -------- */
.rb-landing-pricing {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* -------- Footer -------- */
.rb-landing-footer {
    background: #1a1a1a;
    color: #e5e5e5;
}
.rb-landing-footer h6 {
    color: #ffffff;
    letter-spacing: 0.04em;
}
.rb-landing-footer a {
    transition: color 0.15s ease;
}
.rb-landing-footer a:hover {
    color: #ffffff !important;
}
.rb-landing-footer .text-muted {
    color: #aaaaaa !important;
}
.rb-landing-footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}
.rb-landing-logo--footer {
    color: #ffffff;
}
.rb-landing-logo--footer:hover {
    color: #ffffff;
}

/* -------- Policy pages (Terms / Privacy / Cancellation) -------- */
.rb-landing-policy {
    background: #ffffff;
}
.rb-landing-policy-body p { line-height: 1.7; }
.rb-landing-policy-body h2,
.rb-landing-policy-body h3 {
    margin-top: 2rem;
    font-weight: 700;
}
.rb-landing-policy-body ul,
.rb-landing-policy-body ol {
    line-height: 1.7;
}
.rb-landing-policy-body .alert {
    margin: 1.5rem 0;
}
