/* ═══════════════════════════════════════════════════════════════
   LANDING.CSS — Shared structural styles for all suite landing pages
   Color-specific overrides live in each page's <style> block.
   Pages using this: work.html, games.html, kids.html, assets.html
   ═══════════════════════════════════════════════════════════════ */

/* ── Token fallbacks — overridden by each page's inline init script ──
   These ensure the file parses safely before the inline script runs
   and provide defaults for any variable the inline script doesn't set.
   --surface / --border are always set by the inline script.
   --text-muted is NOT set by any inline script — this is its only source. */
:root {
  --surface:    #ffffff;
  --border:     #e0e2e8;
  --text-muted: #5a5e72;
}
/* Dark mode: inline init script adds html.dark-theme when tf_theme === 'dark'.
   --text-muted must be lighter so it's readable on dark surfaces. */
html.dark-theme {
  --text-muted: #8b90a8;
}

/* ── Base ── */
body.landing-page {
 font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif);
 margin: 0; line-height: 1.6;
}

/* ── Suite accent variable (each page sets --ln-accent, --ln-accent-rgb) ── */

/* ═══ HEADER ═══ */
.ln-header {
 position: sticky; top: 0; left: 0; right: 0;
 height: 64px; z-index: 12000;
 background: color-mix(in srgb, var(--bg) 85%, transparent);
 backdrop-filter: blur(16px) saturate(1.4);
 -webkit-backdrop-filter: blur(16px) saturate(1.4);
 border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
 transition: box-shadow 0.3s;
}
.ln-header.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.ln-inner {
 display: flex; align-items: center;
 max-width: 1200px; margin: 0 auto;
 height: 100%; padding: 0 20px; gap: 4px;
}
.ln-brand {
 display: flex; align-items: center; gap: 10px;
 text-decoration: none; color: var(--text);
 font-weight: 800; font-size: 1rem;
 letter-spacing: -0.01em; white-space: nowrap; flex-shrink: 0;
}
.ln-brand img { border-radius: 6px; }
.ln-nav {
 display: flex; align-items: center; gap: 2px; margin-left: 28px;
}
.ln-link {
 display: inline-flex; align-items: center; gap: 5px;
 padding: 8px 14px; font-size: 0.88rem; font-weight: 500;
 color: var(--text); text-decoration: none; border-radius: 8px;
 border: none; background: none; cursor: pointer; white-space: nowrap;
 font-family: inherit; transition: background 0.15s;
}
.ln-link:hover { background: rgba(128,128,128,0.1); }
.ln-chev { font-size: 0.55rem; opacity: 0.5; transition: transform 0.25s ease; }

/* ── Dropdown ── */
.ln-dropdown { position: relative; }
.ln-dropdown::after {
 content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px;
}
.ln-dropdown:hover > .ln-link .ln-chev,
.ln-dropdown:focus-within > .ln-link .ln-chev { transform: rotate(180deg); opacity: 1; }
.ln-drop-menu {
 position: absolute; top: calc(100% + 10px); left: 0;
 opacity: 0; pointer-events: none;
 background: var(--surface); border: 1px solid var(--border);
 border-radius: 14px; padding: 8px;
 box-shadow: 0 16px 48px rgba(0,0,0,0.14);
 z-index: 12100; min-width: 220px;
 transition: opacity 0.2s cubic-bezier(0.22,1,0.36,1), transform 0.2s cubic-bezier(0.22,1,0.36,1);
 transform: translateY(8px);
}
.ln-dropdown:hover > .ln-drop-menu,
.ln-dropdown:focus-within > .ln-drop-menu {
 opacity: 1; pointer-events: auto; transform: translateY(0);
}
.ln-drop-menu a {
 display: flex; align-items: center; gap: 10px;
 padding: 10px 14px; font-size: 0.86rem; color: var(--text);
 text-decoration: none; border-radius: 8px; transition: background 0.12s;
}
.ln-drop-menu a:hover { background: rgba(128,128,128,0.08); }
.ln-drop-menu a i {
 width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
 border-radius: 5px; font-size: 0.7rem; flex-shrink: 0;
}

/* ── Header right ── */
.ln-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ln-theme-btn {
 width: 36px; height: 36px; border-radius: 50%;
 border: 1px solid var(--border); background: transparent;
 color: var(--text); cursor: pointer;
 display: flex; align-items: center; justify-content: center;
 font-size: 0.82rem; transition: background 0.15s;
}
.ln-theme-btn:hover { background: rgba(128,128,128,0.1); }
.ln-sep { width: 1px; height: 20px; background: var(--border); opacity: 0.5; margin: 0 4px; }
.ln-signin {
 font-size: 0.86rem; font-weight: 500; color: var(--text);
 text-decoration: none; padding: 8px 10px; white-space: nowrap; transition: color 0.15s;
}
.ln-signin:hover { color: var(--ln-accent); }
.ln-cta {
 display: inline-flex; align-items: center; gap: 6px;
 padding: 10px 24px; border-radius: 99px;
 font-size: 0.84rem; font-weight: 700;
 text-decoration: none; white-space: nowrap;
 transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.ln-cta:hover {
 transform: translateY(-1px);
 filter: brightness(1.08);
}

/* ═══ MOBILE MENU ═══ */
.ln-mobile-btn {
 display: none; width: 40px; height: 40px;
 border: none; background: none; color: var(--text);
 font-size: 1.15rem; cursor: pointer; border-radius: 8px;
 align-items: center; justify-content: center; margin-left: auto;
 transition: background 0.15s;
}
.ln-mobile-btn:hover { background: rgba(128,128,128,0.1); }
.ln-mobile-overlay {
 display: none; position: fixed; inset: 0;
 background: rgba(0,0,0,0.4); z-index: 11998;
 backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.3s;
}
.ln-mobile-overlay.open { display: block; opacity: 1; }
.ln-mobile-menu {
 position: fixed; top: 0; right: 0; bottom: 0;
 width: 320px; max-width: 85vw;
 background: var(--bg); z-index: 11999;
 overflow-y: auto; overscroll-behavior: contain;
 transform: translateX(100%);
 transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
 box-shadow: -8px 0 40px rgba(0,0,0,0.15);
 display: flex; flex-direction: column;
}
.ln-mobile-menu.open { transform: translateX(0); }
.ln-mob-header {
 display: flex; align-items: center; justify-content: space-between;
 padding: 14px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.ln-mob-header .ln-brand { font-size: 0.95rem; }
.ln-mob-close {
 width: 36px; height: 36px; border-radius: 8px;
 border: 1px solid var(--border); background: transparent;
 color: var(--text); cursor: pointer;
 display: flex; align-items: center; justify-content: center;
 font-size: 1rem; transition: background 0.15s;
}
.ln-mob-close:hover { background: rgba(128,128,128,0.1); }
.ln-mob-body { flex: 1; padding: 8px 14px 32px; overflow-y: auto; }
.ln-mob-body h4 {
 font-size: 0.65rem; text-transform: uppercase;
 letter-spacing: 1.2px; color: var(--text); opacity: 0.4;
 margin: 20px 0 8px 14px; font-weight: 700;
}
.ln-mob-body h4:first-child { margin-top: 10px; }
.ln-mob-body a {
 display: flex; align-items: center; gap: 12px;
 padding: 12px 16px; font-size: 0.92rem; color: var(--text);
 text-decoration: none; border-radius: 10px; transition: background 0.12s;
}
.ln-mob-body a:hover { background: rgba(128,128,128,0.08); }
.ln-mob-body a i { width: 18px; text-align: center; font-size: 0.85rem; }
.ln-mob-actions {
 display: flex; flex-direction: column; gap: 8px;
 padding: 20px 0 0; margin-top: 12px; border-top: 1px solid var(--border);
}
.ln-mob-signin {
 display: flex; align-items: center; justify-content: center;
 padding: 12px 16px; font-size: 0.92rem; font-weight: 600;
 color: var(--text); text-decoration: none;
 border: 1px solid var(--border); border-radius: 10px;
 transition: background 0.15s;
}
.ln-mob-signin:hover { background: rgba(128,128,128,0.08); }
.ln-mob-primary {
 display: flex; align-items: center; justify-content: center;
 padding: 12px 16px; font-size: 0.92rem; font-weight: 700;
 color: #fff; text-decoration: none;
 border-radius: 10px; transition: filter 0.15s;
}
.ln-mob-primary:hover { filter: brightness(1.1); }

@media (max-width: 960px) {
 .ln-nav, .ln-signin, .ln-sep, .ln-cta { display: none; }
 .ln-mobile-btn { display: flex; }
}
@media (max-width: 480px) {
 .ln-brand span { display: none; }
 .ln-cta span { display: none; }
 .ln-cta { padding: 9px 14px; }
}

/* ═══ CONTENT SECTIONS ═══ */
.reveal { opacity: 1; transform: none; }
.reveal.will-animate { opacity: 0; transform: translateY(30px);
 transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.home-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; overflow-x: clip; }

/* ═══ HERO ═══ */
.hero-section {
 text-align: center; padding: 60px 20px 50px;
 margin: 0 calc(50% - 50vw); width: 100vw; max-width: 100vw;
 color: white; position: relative; overflow: hidden;
}
.hero-section::before {
 content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
 z-index: 0;
}
.hero-section::after {
 content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
 z-index: 0; animation: heroShimmer 20s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes heroShimmer {
 0% { transform: translate(0,0) rotate(0deg); }
 100% { transform: translate(2%,1%) rotate(1deg); }
}
.hero-section h1 {
 font-size: 3.8rem; font-weight: 900; margin: 0 0 18px; line-height: 1.05;
 letter-spacing: -0.03em; position: relative; z-index: 1;
 text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.hero-eyebrow {
 display: inline-flex; align-items: center; gap: 8px;
 padding: 8px 18px; border-radius: 99px; font-size: 0.82rem; font-weight: 600;
 margin-bottom: 20px; position: relative; z-index: 1;
 backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-subline {
 font-size: 1.1rem; margin: 0 auto 30px; opacity: 0.92;
 max-width: 620px; line-height: 1.55; position: relative; z-index: 1;
}

/* ── Hero buttons ── */
.hero-btn {
 display: inline-flex; align-items: center; gap: 8px;
 padding: 11px 24px; border-radius: 10px; font-weight: 700; font-size: 0.88rem;
 text-decoration: none; transition:background 0.25s cubic-bezier(0.22,1,0.36,1),color 0.25s cubic-bezier(0.22,1,0.36,1),border-color 0.25s cubic-bezier(0.22,1,0.36,1),transform 0.25s cubic-bezier(0.22,1,0.36,1);
}
.hero-btn-primary {
 font-weight: 800;
}
.hero-btn-primary:hover {
 transform: translateY(-2px);
}
.hero-btn-outline {
 background: rgba(255,255,255,0.08); color: white;
 border: 2px solid rgba(255,255,255,0.25); backdrop-filter: blur(4px);
}
.hero-btn-outline:hover {
 background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.5);
 transform: translateY(-2px);
}
.hero-cta-row, .hero-ctas {
 display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
 position: relative; z-index: 1;
}

/* ── Hero Trust ── */
.hero-trust {
 display: flex; justify-content: center; gap: 24px;
 margin-top: 24px; padding-top: 16px; position: relative; z-index: 1; flex-wrap: wrap;
}
.hero-trust span { font-size: 0.78rem; opacity: 0.72; display: inline-flex; align-items: center; gap: 5px; }
.hero-trust i { font-size: 0.68rem; opacity: 0.9; }

/* ═══ SECTION COMMON ═══ */
.section-title {
 font-size: 1.8rem; font-weight: 900; color: var(--text);
 margin: 0 0 12px; display: flex; align-items: center; gap: 12px;
 letter-spacing: -0.025em; line-height: 1.2;
}
.section-title i { font-size: 0.85em; }
.section-subtitle {
 font-size: 1rem; color: var(--text-muted);
 margin: 0 0 32px; line-height: 1.6;
}

/* ═══ HOW IT WORKS (work + kids) ═══ */
.how-section { padding: 80px 0; text-align: center; }
.how-steps {
 display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
 margin-top: 8px; position: relative;
}
.how-steps::before {
 content: ''; position: absolute; top: 36px; left: 15%; right: 15%;
 height: 2px; z-index: 0;
}
.how-step {
 position: relative; z-index: 1;
 display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.how-num {
 width: 60px; height: 60px; border-radius: 16px;
 color: white; font-size: 1.3rem; font-weight: 800;
 display: flex; align-items: center; justify-content: center;
}
.how-step h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.how-step p { margin: 0; font-size: 0.9rem; color: var(--text-muted); max-width: 280px; line-height: 1.6; }

/* ═══ FEATURE CARDS ═══ */
.features-section { padding: 80px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
 background: var(--surface); border: 1px solid var(--border);
 border-radius: 12px; padding: 32px 28px;
 display: flex; flex-direction: column; gap: 14px;
 transition:background 0.3s cubic-bezier(0.22,1,0.36,1),color 0.3s cubic-bezier(0.22,1,0.36,1),border-color 0.3s cubic-bezier(0.22,1,0.36,1),transform 0.3s cubic-bezier(0.22,1,0.36,1); position: relative; overflow: hidden;
}
.feature-card::before {
 content: ''; position: absolute; top: 0; left: 0; right: 0;
 height: 3px; opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover {
 transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.10);
}
.feature-card:hover::before { opacity: 1; }
.feature-card .fc-icon {
 width: 48px; height: 48px; border-radius: 12px;
 display: flex; align-items: center; justify-content: center;
 color: white; font-size: 1.1rem;
}
.feature-card h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.feature-card p { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.feature-card .fc-link {
 font-size: 0.85rem; font-weight: 600;
 text-decoration: none; margin-top: auto;
 display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s;
}
.feature-card .fc-link:hover { gap: 10px; }

/* ═══ FAQ ═══ */
.faq-section { padding: 80px 0; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color 0.2s; }
.faq-q {
 display: flex; align-items: center; justify-content: space-between;
 padding: 16px 20px; background: var(--surface); cursor: pointer;
 border: none; width: 100%; text-align: left;
 font-size: 0.95rem; font-weight: 700; color: var(--text); gap: 12px;
 transition: background 0.2s; font-family: inherit;
}
.faq-q i { font-size: 0.7rem; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
 max-height: 0; overflow: hidden;
 transition: max-height 0.35s cubic-bezier(0.22,1,0.36,1), padding 0.3s;
 padding: 0 20px; background: var(--bg);
}
.faq-item.open .faq-a { max-height: 300px; padding: 16px 20px; }
.faq-a p { margin: 0; font-size: 0.88rem; line-height: 1.65; color: var(--text); opacity: 0.85; }

/* ═══ CTA BANNER ═══ */
.cta-banner {
 padding: 80px 30px; text-align: center; margin: 0 -20px;
 color: white; position: relative; overflow: hidden;
}
.cta-banner::before {
 content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
 background: linear-gradient(160deg, rgba(15,23,42,0.80) 0%, rgba(15,23,42,0.65) 50%, rgba(15,23,42,0.75) 100%);
 z-index: 0;
}
.cta-banner h2 {
 margin: 0 0 10px; color: white; position: relative;
 font-weight: 900; font-size: 2rem; letter-spacing: -0.02em;
}
.cta-banner p {
 margin: 0 0 28px; color: rgba(255,255,255,0.85); position: relative;
 font-size: 1.05rem; line-height: 1.6;
}
.cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-btn {
 display: inline-flex; align-items: center; gap: 8px;
 padding: 14px 32px; border-radius: 10px; text-decoration: none;
 font-weight: 800; font-size: 0.95rem;
 transition:background 0.3s cubic-bezier(0.22,1,0.36,1),color 0.3s cubic-bezier(0.22,1,0.36,1),border-color 0.3s cubic-bezier(0.22,1,0.36,1),transform 0.3s cubic-bezier(0.22,1,0.36,1); position: relative;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.cta-banner .cta-btn {
 background: white; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cta-banner .cta-btn:hover { background: rgba(255,255,255,0.92); }
.cta-btn-outline {
 background: transparent !important; color: white !important;
 border: 2px solid rgba(255,255,255,0.4); box-shadow: none !important;
}
.cta-btn-outline:hover {
 background: rgba(255,255,255,0.1) !important;
 border-color: rgba(255,255,255,0.7);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
 .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
 .hero-section h1 { font-size: 2.2rem; }
 .hero-section { padding: 48px 16px 40px; }
 .hero-subline { font-size: 0.92rem; }
 .hero-trust { gap: 12px; }
 .hero-trust span { font-size: 0.7rem; }
 .hero-btn { padding: 10px 18px; font-size: 0.85rem; }
 .hero-eyebrow { font-size: 0.75rem; padding: 5px 12px; }
 .how-steps { grid-template-columns: 1fr; gap: 28px; }
 .how-steps::before { display: none; }
 .feature-grid { grid-template-columns: 1fr; }
 .feature-card { padding: 24px 20px; }
 .home-container { padding: 0 12px; }
}
@media (max-width: 480px) {
 .hero-section { padding: 40px 12px 30px; }
 .hero-section h1 { font-size: 1.8rem; }
 .hero-btn { padding: 9px 14px; font-size: 0.8rem; gap: 6px; width: 100%; justify-content: center; }
 .hero-cta-row, .hero-ctas { flex-direction: column; align-items: stretch; }
 .home-container { padding: 0 8px; }
 .section-title { font-size: 1.2rem; gap: 8px; }
 .section-subtitle { font-size: 0.85rem; margin-bottom: 20px; }
 .how-section { padding: 48px 0; }
 .how-num { width: 46px; height: 46px; font-size: 1.05rem; border-radius: 12px; }
 .how-step h3 { font-size: 0.95rem; }
 .how-step p { font-size: 0.82rem; }
 .features-section { padding: 48px 0; }
 .feature-card { padding: 18px 16px; gap: 10px; }
 .feature-card h3 { font-size: 0.95rem; }
 .feature-card p { font-size: 0.82rem; }
 .faq-section { padding: 48px 0; }
 .faq-q { font-size: 0.9rem; padding: 14px 16px; }
 .faq-a p { font-size: 0.85rem; }
 .cta-banner { padding: 48px 16px; }
 .cta-banner h2 { font-size: 1.4rem; }
 .cta-btn { padding: 12px 24px; font-size: 0.9rem; width: 100%; justify-content: center; }
 .cta-row { flex-direction: column; gap: 8px; align-items: stretch; }
}
@media (max-width: 360px) {
 .hero-section h1 { font-size: 1.5rem; }
 .hero-section { padding: 32px 8px 24px; }
 .hero-subline { font-size: 0.82rem; }
 .hero-eyebrow { font-size: 0.7rem; padding: 4px 10px; }
 .home-container { padding: 0 6px; }
 .section-title { font-size: 1.05rem; }
 .feature-card { padding: 14px 12px; }
 .feature-card h3 { font-size: 0.88rem; }
 .feature-card p { font-size: 0.78rem; }
 .how-num { width: 40px; height: 40px; font-size: 0.95rem; }
 .faq-q { font-size: 0.82rem; padding: 12px 14px; }
 .cta-banner h2 { font-size: 1.2rem; }
 .cta-banner { padding: 40px 10px; }
 .ln-header { padding: 0 8px; }
}
