/* 4FreedomHub — site styles. Brand: yellow on navy. */
:root {
  --yellow: #ffdb43;
  --yellow-deep: #f0c91f;
  --navy: #181d30;
  --navy-2: #222841;
  --navy-3: #2d3452;
  --ink: #171a2b;
  --ink-2: #4a5068;
  --ink-3: #7a809a;
  --line: #e4e6ee;
  --bg: #ffffff;
  --bg-2: #f6f7fa;
  --bg-3: #eef0f5;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(23, 26, 43, .06), 0 12px 32px -12px rgba(23, 26, 43, .18);
  --shadow-lg: 0 2px 4px rgba(23, 26, 43, .06), 0 28px 60px -20px rgba(23, 26, 43, .32);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a:not([class]), .prose a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
p a:not([class]):hover, .prose a:hover { color: #000; background: var(--yellow); text-decoration: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
.h-sm { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--yellow); color: var(--navy); padding: 10px 14px; border-radius: 10px; font-weight: 700; z-index: 100; }
.skip:focus { top: 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 3px; border-radius: 6px; }

/* ----- header ----- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--yellow); color: var(--navy); display: grid; place-items: center; }
.brand-mark svg { width: 26px; height: 26px; }
.brand-name span { color: var(--yellow); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { padding: 8px 14px; border-radius: 10px; font-weight: 600; color: rgba(255, 255, 255, .82); transition: background .15s, color .15s; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav a[aria-current] { color: var(--yellow); }
.site-nav .lang-switch { margin-left: 8px; border: 1.5px solid rgba(255, 255, 255, .25); font-size: .92rem; padding: 6px 12px; }
.site-nav .lang-switch:hover { border-color: var(--yellow); color: var(--yellow); background: transparent; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; border-radius: 10px; cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle-close { display: none; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; inset: 68px 0 auto 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5); }
  .site-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .site-nav .lang-switch { margin: 8px 0 0; align-self: flex-start; }
  .nav-open .site-nav { display: flex; }
  .nav-open .nav-toggle-open { display: none; }
  .nav-open .nav-toggle-close { display: block; }
}

/* ----- buttons ----- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s, border-color .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--yellow); color: var(--navy); box-shadow: 0 8px 24px -10px rgba(255, 219, 67, .8); }
.btn-primary:hover { background: #ffe27a; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--yellow); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-ext { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink-2); position: relative; z-index: 2; }
.link-ext:hover { color: var(--navy); text-decoration: underline; }
.store-btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: .95rem; border: 1.5px solid rgba(255, 255, 255, .15); transition: transform .15s, background .15s; }
.store-btn .icon { width: 1.3em; height: 1.3em; }
.store-btn:hover { transform: translateY(-1px); background: #000; }

/* ----- hero ----- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 120px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; max-width: 900px; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255, 219, 67, .22), transparent 70%); z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.4rem); margin-bottom: .4em; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .78); max-width: 34em; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow { font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.2em; }
.eyebrow-light { color: var(--yellow); }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }
.hero-mark { position: absolute; inset: 12%; border-radius: 28%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; box-shadow: 0 40px 80px -30px rgba(255, 219, 67, .55), inset 0 -6px 0 rgba(0, 0, 0, .08); transform: rotate(-6deg); }
.hero-mark svg { width: 78%; height: 78%; }
.hero-chip { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: #fff; color: var(--ink); border-radius: 16px; font-weight: 700; font-size: .95rem; box-shadow: var(--shadow-lg); animation: float 7s ease-in-out infinite; transition: transform .2s; }
.hero-chip:hover { transform: scale(1.05); animation-play-state: paused; }
.hero-chip .app-icon { width: 36px; height: 36px; border-radius: 10px; }
.hero-chip-1 { left: -6%; top: 4%; animation-delay: -1s; }
.hero-chip-2 { right: -3%; top: 16%; animation-delay: -3s; }
.hero-chip-3 { left: -4%; top: 46%; animation-delay: -5s; }
.hero-chip-4 { right: -2%; top: 58%; animation-delay: -2s; }
.hero-chip-5 { left: 22%; bottom: -2%; animation-delay: -4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; margin-top: 24px; }
  /* Keep the chips inside the viewport: the art box is nearly as wide as a phone screen. */
  .hero-chip { font-size: .88rem; padding: 7px 12px 7px 7px; }
  .hero-chip .app-icon { width: 32px; height: 32px; }
  .hero-chip-1, .hero-chip-3 { left: -2%; }
  .hero-chip-2, .hero-chip-4 { right: -2%; }
}

/* ----- stats ----- */
.stats { background: var(--yellow); color: var(--navy); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 0; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px; border-left: 2px solid rgba(27, 31, 51, .2); }
.stat-value { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.stat-label { font-weight: 600; font-size: .95rem; opacity: .85; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; } .stat { padding: 4px 16px; } }

/* ----- sections ----- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-muted { background: var(--bg-2); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head .lead { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.section-dark .lead { color: rgba(255, 255, 255, .75); }
.section-more { margin: 40px 0 0; text-align: center; }

/* ----- app cards ----- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.app-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.app-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.app-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--app), var(--app-accent)); }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.app-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.app-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.app-icon { border-radius: 22%; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.app-card-category { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--app); margin: 0; }
.app-card-title { margin: 0; font-size: 1.35rem; }
.app-card-tagline { color: var(--ink-2); margin: 0 0 12px; flex: 1; }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .95rem; }
.app-card-featured { padding: 28px; }
.app-grid-wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.badge-live { background: #e4f6ec; color: #116b3c; }
.badge-soon { background: #fff3cc; color: #7a5a00; }
.badge-legacy { background: var(--bg-3); color: var(--ink-2); }

/* ----- values ----- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.value { padding: 28px; border-radius: var(--radius); background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .06); }
.value p { color: rgba(255, 255, 255, .72); margin: 0; }
.value h3 { margin: 16px 0 8px; }
.value-link { display: flex; flex-direction: column; transition: transform .2s, border-color .2s, background .2s; }
.value-link:hover { transform: translateY(-4px); border-color: var(--yellow); background: var(--navy-3); }
.value-link p { flex: 1; }
.value-app { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; color: var(--yellow); }
.value-app .app-icon { width: 28px; height: 28px; }
.support-label { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 8px; }
.value-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--yellow); color: var(--navy); }
.value-icon .icon { width: 24px; height: 24px; }

/* ----- cta ----- */
.cta { background: var(--bg-2); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-inner h2 { margin-bottom: .3em; }
.cta-inner .lead { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----- page head ----- */
.page-head { background: var(--navy); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.page-head h1 { color: #fff; }
.page-head .lead { color: rgba(255, 255, 255, .75); max-width: 40em; margin: 0; }
.page-head-sm { padding: 40px 0; }
.page-404 { min-height: 60vh; display: grid; align-items: center; }
.page-404 .btn { margin-top: 12px; }

/* ----- app detail ----- */
.app-hero { background: linear-gradient(135deg, var(--app-dark), var(--app)); color: #fff; padding: 28px 0 clamp(40px, 6vw, 72px); }
.crumbs { margin-bottom: 28px; }
.crumbs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .4); color: #fff; font-weight: 700; font-size: .9rem; transition: background .15s, color .15s; }
.crumbs a::before { content: "←"; }
.crumbs a:hover { background: #fff; color: var(--app-dark); }
.app-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 40px; align-items: end; }
.app-hero-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.app-hero-head .app-icon { width: 88px; height: 88px; }
.app-hero h1 { color: #fff; margin: 0; }
.app-category { font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); margin: 0 0 4px; }
.app-tagline { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; color: rgba(255, 255, 255, .9); max-width: 30em; margin-bottom: 1.4em; }
.app-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.app-note { margin: 12px 0 0; font-size: .95rem; color: rgba(255, 255, 255, .75); }
.app-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0; padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .18); }
.app-facts dt { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: 4px; }
.app-facts dd { margin: 0; font-weight: 700; }
.app-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 56px; }
.app-side h2 { font-size: 1.1rem; margin: 0 0 14px; }
.app-side h2 + .link-list, .app-side .feature-list { margin-bottom: 36px; }
.feature-list li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list .icon { color: #116b3c; margin-top: .25em; }
.link-list li { padding: 8px 0; }
.link-list a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); }
.link-list a:hover { text-decoration: underline; }
.prose { font-size: 1.08rem; max-width: 42em; }
.prose p { margin-bottom: 1.2em; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose-legal { max-width: 46em; }
@media (max-width: 860px) {
  .app-hero-grid, .app-body, .about-grid { grid-template-columns: 1fr; }
  .app-hero-head .app-icon { width: 64px; height: 64px; }
}

/* ----- about / contact ----- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 56px; }
.about-side .feature-list { margin-bottom: 36px; }
.facts div { padding: 10px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.facts { margin: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.contact-card .link-arrow { max-width: 100%; flex-wrap: wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.15rem; margin: 16px 0 6px; }
.contact-card p { color: var(--ink-2); }
.support-links { display: flex; flex-wrap: wrap; gap: 8px; }
.support-links a { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--bg-3); font-weight: 700; font-size: .9rem; }
.support-links a:hover { background: var(--yellow); }
.address-box { display: flex; gap: 20px; align-items: flex-start; padding: 28px; border-radius: var(--radius); background: var(--bg-2); }
.address-box p { margin: 0; color: var(--ink-2); }

/* ----- footer ----- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .8); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-tagline { font-weight: 700; color: #fff; margin-bottom: .3em; }
.footer-heading { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.footer-list li { margin-bottom: 8px; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 24px; font-size: .9rem; color: rgba(255, 255, 255, .55); }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ----- reveal ----- */
.will-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease var(--delay, 0ms), transform .5s ease var(--delay, 0ms); }
.will-reveal.is-visible { opacity: 1; transform: none; }
