/*
Theme Name: FinSmart Lab
Theme URI: https://finsmartlab.com
Author: Alex Khoury
Description: Personal site theme for FinSmart Lab, built by Alex Khoury. All page content is included in the theme. No page builder or plugins required.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: finsmart-lab
*/

:root {
  --ink: #050a1f;
  --navy: #030617;
  --navy-2: #0b1533;
  --text: #46506a;
  --muted: #6b7591;
  --line: #e4e9f2;
  --soft: #f4f7fc;
  --white: #ffffff;
  --blue: #2c4fc0;
  --blue-dark: #223f9c;
  --steel: #2f5b80;
  --cyan: #6fd3e3;
  --cyan-deep: #1fa5c4;
  --grad: linear-gradient(90deg, #1fa5c4 0%, #2c4fc0 100%);
  --grad-soft: linear-gradient(90deg, #7fd8e4 0%, #3f74cc 60%, #2c4fc0 100%);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(5, 10, 31, 0.05), 0 8px 24px rgba(5, 10, 31, 0.07);
  --shadow-lg: 0 2px 4px rgba(5, 10, 31, 0.06), 0 18px 44px rgba(5, 10, 31, 0.14);
  --font: "Red Hat Display", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--cyan-deep); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-tight { padding: 64px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: 20px; line-height: 1.6; color: var(--text); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .lead { margin-top: 16px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.small { font-size: 14px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1; padding: 16px 26px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(44, 79, 192, 0.25); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-steel { background: var(--steel); color: #fff; }
.btn-steel:hover { background: #264a69; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9d3e6; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.text-link { font-weight: 600; }
.text-link::after { content: " \2192"; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 20px; line-height: 1.05; }
.brand:hover { text-decoration: none; }
.brand img, .brand .custom-logo { height: 52px; width: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name span { display: block; color: var(--steel); font-weight: 500; }
.main-nav ul { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--text); font-weight: 500; font-size: 16px; }
.main-nav a:hover, .main-nav .current a { color: var(--blue); text-decoration: none; }
.header-cta { padding: 13px 20px; font-size: 15px; }
.nav-contact { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; background: radial-gradient(60% 70% at 85% 10%, rgba(111, 211, 227, 0.18) 0%, rgba(255, 255, 255, 0) 70%), radial-gradient(45% 60% at 0% 100%, rgba(44, 79, 192, 0.08) 0%, rgba(255, 255, 255, 0) 70%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
.hello { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px 8px 10px; font-weight: 600; color: var(--ink); font-size: 15px; box-shadow: var(--shadow); margin-bottom: 26px; }
.hello i { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); display: block; }
.hero h1 span { display: block; }
.hero .lead { margin-top: 24px; max-width: 540px; }
.hero-form { margin-top: 32px; display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px; max-width: 500px; box-shadow: var(--shadow); }
.hero-form input[type="email"] { flex: 1; min-width: 0; border: 0; background: transparent; font-family: inherit; font-size: 16px; padding: 0 16px; color: var(--ink); }
.hero-form input[type="email"]:focus { outline: none; }
.hero-form:focus-within { border-color: var(--blue); }
.hero-form .btn { padding: 15px 22px; white-space: nowrap; }
.hero-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.hero-visual { position: relative; padding: 0 22px; }
.hero-panel { border-radius: 32px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow-lg); aspect-ratio: 1424 / 1388; }
.hero-panel img { width: 100%; height: 100%; object-fit: cover; }
.float { position: absolute; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); border: 1px solid rgba(5, 10, 31, 0.06); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.35; color: var(--muted); max-width: 240px; }
.float strong { display: block; color: var(--ink); font-size: 15px; font-weight: 700; }
.float .dot { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--grad-soft); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; }
.float-1 { top: 6%; left: -30px; }
.float-3 { bottom: 7%; left: -18px; }
.float-4 { bottom: -20px; right: 0; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); margin-top: -44px; position: relative; z-index: 2; }
.fact { padding: 26px 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact strong { display: block; color: var(--ink); font-size: 18px; font-weight: 700; }

/* Cards and grids */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--blue); font-weight: 800; font-size: 15px; margin-bottom: 18px; }
.section-soft .card .num { background: #eaf0fb; }
.check-list li, .cross-list li { position: relative; padding: 13px 0 13px 34px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.check-list li::before, .cross-list li::before { content: ""; position: absolute; left: 0; top: 17px; width: 20px; height: 20px; border-radius: 50%; }
.check-list li::before { background: var(--grad); }
.check-list li::after { content: ""; position: absolute; left: 6px; top: 22px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.cross-list li::before { background: #e8ecf5; }
.cross-list li::after { content: ""; position: absolute; left: 5px; top: 26px; width: 10px; height: 2px; background: var(--muted); }

/* Split blocks */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.split-center { align-items: center; }
.portrait { border-radius: 28px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow-lg); max-width: 380px; }
.quote { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; font-weight: 700; color: var(--ink); }
.sign { margin-top: 18px; font-weight: 700; color: var(--blue); }
.story-row { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding: 36px 0; border-top: 1px solid var(--line); }
.story-row p { font-size: 19px; }

/* Navy band */
.band { background: var(--navy); color: #c5cedf; border-radius: 32px; padding: 64px; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: var(--grad-soft); opacity: 0.35; filter: blur(10px); }
.band > * { position: relative; z-index: 1; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: var(--cyan); }
.band .lead { color: #c5cedf; }
.band .check-list li { color: #fff; border-color: rgba(255, 255, 255, 0.12); }

/* Page hero */
.page-hero { padding: 80px 0 56px; background: radial-gradient(55% 90% at 90% 0%, rgba(111, 211, 227, 0.18) 0%, rgba(255, 255, 255, 0) 70%); }
.page-hero h1 { font-size: clamp(38px, 5.2vw, 62px); max-width: 820px; }
.page-hero .lead { margin-top: 20px; max-width: 720px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: 15px; margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field textarea { width: 100%; font-family: inherit; font-size: 16px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 20px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.notice { border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-weight: 600; }
.notice-ok { background: #e7f8f1; color: #0b6b4a; border: 1px solid #b9ead6; }
.notice-err { background: #fdecec; color: #9b1c1c; border: 1px solid #f6c6c6; }
.subscribe { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.subscribe .hero-form { margin-top: 0; max-width: none; }

/* Blog */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-thumb { aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-body h3 { margin: 0; }
.post-body .small { margin-top: auto; padding-top: 8px; }
.pagination { margin-top: 44px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600; }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.article { padding: 72px 0 96px; }
.article h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 14px 0 16px; }
.article-thumb { border-radius: 24px; overflow: hidden; margin: 32px 0; }
.entry { font-size: 19px; line-height: 1.75; color: #2e3650; }
.entry > * + * { margin-top: 1.2em; }
.entry h2 { font-size: 30px; margin-top: 1.8em; }
.entry h3 { font-size: 24px; margin-top: 1.6em; }
.entry ul, .entry ol { padding-left: 1.3em; list-style: revert; }
.entry img { border-radius: 16px; }
.entry blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--cyan); color: var(--ink); font-weight: 600; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-weight: 600; }

/* Policy */
.policy h2 { font-size: 26px; margin: 44px 0 12px; }
.policy p + p { margin-top: 12px; }
.policy ul { list-style: disc; padding-left: 1.3em; margin-top: 10px; }
.policy li { margin-top: 6px; }
.callout { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.callout h2 { margin-top: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #aab5cc; padding: 72px 0 36px; margin-top: 0; }
.site-footer a { color: #c5cedf; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 56px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name span { color: var(--cyan); }
.footer-title { color: var(--cyan); font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links li + li { margin-top: 10px; }
.footer-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid, .split, .subscribe { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 28px 22px; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .main-nav li { width: 100%; border-top: 1px solid var(--line); }
  .main-nav li:first-child { border-top: 0; }
  .main-nav a { display: block; padding: 14px 0; font-size: 17px; }
  .header-cta { display: none; }
  .nav-contact { display: block; }
  .band { padding: 44px 32px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 44px 0 72px; }
  .lead { font-size: 18px; }
  .grid-2, .grid-3, .grid-4, .facts, .footer-grid { grid-template-columns: 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
  .story-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .hero-form { flex-direction: column; padding: 8px; }
  .hero-form input[type="email"] { padding: 14px 12px; }
  .hero-visual { padding: 0 6px; }
  .float { max-width: 190px; padding: 10px 12px; font-size: 12px; }
  .float strong { font-size: 13px; }
  .float .dot { width: 30px; height: 30px; font-size: 13px; }
  .float-1 { left: -6px; top: -14px; }
  .float-3 { display: none; }
  .float-4 { right: -4px; bottom: -16px; }
  .facts { margin-top: -28px; }
  .hero { padding-bottom: 76px; }
  .form-card { padding: 22px; }
  .band { padding: 36px 22px; border-radius: 24px; }
  .post-nav { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .post-card { transition: none; } }


/* ==========================================================================
   v1.1: full width, less boxy, motion
   ========================================================================== */
:root { --gutter: clamp(22px, 5.5vw, 88px); --wide: 1360px; --pad: clamp(76px, 10vw, 148px); }
html, body { overflow-x: clip; }
.container { max-width: calc(var(--wide) + var(--gutter) * 2); padding: 0 var(--gutter); }
.narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding: var(--pad) 0; }
.section-tight { padding: calc(var(--pad) * 0.7) 0; }
.section-head { margin-bottom: clamp(40px, 5vw, 72px); max-width: 860px; }
h2 { font-size: clamp(30px, 4.2vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
h1 { letter-spacing: -0.025em; }
.lead { font-size: clamp(18px, 1.5vw, 22px); }
.section-soft { background: linear-gradient(180deg, #f4f8fd 0%, #eef4fc 100%); }

/* Header: lighter, no hard line until scrolled */
.site-header { border-bottom-color: transparent; transition: border-color 0.3s, box-shadow 0.3s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(5, 10, 31, 0.06); }
.main-nav a { position: relative; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.main-nav a:hover::after, .main-nav .current a::after { transform: scaleX(1); }
.btn { border-radius: 100px; padding: 17px 30px; }
.btn-primary { background: var(--grad); background-size: 160% 100%; background-position: 0 0; box-shadow: 0 10px 26px rgba(44, 79, 192, 0.28); }
.btn-primary:hover { background: var(--grad); background-size: 160% 100%; background-position: 100% 0; transform: translateY(-2px) scale(1.02); }
.btn-primary::after { content: "\2192"; transition: transform 0.25s; }
.btn-primary:hover::after { transform: translateX(5px); }
button.btn-primary::after { content: none; }
.header-cta::after { content: none; }
.text-link::after { display: inline-block; transition: transform 0.25s; }
.text-link:hover::after { transform: translateX(5px); }

/* Hero: image bleeds to the right edge of the screen */
.hero { padding: clamp(48px, 6vw, 96px) 0 clamp(72px, 8vw, 128px); background: none; overflow: visible; }
.hero-grid { grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); }
.hero h1 { font-size: clamp(42px, 5.4vw, 84px); line-height: 1.04; }
@media (min-width: 1021px) { .hero h1 span { white-space: nowrap; } }
.hello { box-shadow: none; background: var(--soft); border: 0; }
.hello i { animation: fsl-pulse 2s ease-in-out infinite; }
.hero-visual { padding: 0; margin-right: calc(var(--gutter) * -1 - max(0px, (100vw - var(--wide) - var(--gutter) * 2) / 2)); }
.hero-panel { border-radius: 48px 0 0 48px; box-shadow: none; aspect-ratio: auto; height: clamp(420px, 46vw, 720px); }
.hero-panel img { animation: fsl-drift 14s ease-in-out infinite alternate; transform-origin: 60% 50%; }
.float { border: 0; border-radius: 20px; animation: fsl-bob 6s ease-in-out infinite; }
.float-1 { top: 9%; left: -44px; }
.float-3 { bottom: 12%; left: -64px; animation-delay: -2s; }
.float-4 { bottom: -26px; right: auto; left: 34%; animation-delay: -4s; }
.blob { position: absolute; border-radius: 50%; filter: blur(46px); z-index: -1; opacity: 0.55; animation: fsl-blob 12s ease-in-out infinite alternate; }
.blob-1 { width: 300px; height: 300px; background: #7fd8e4; left: -140px; top: -70px; }
.blob-2 { width: 260px; height: 260px; background: #6f8fe6; left: 8%; bottom: -110px; animation-delay: -5s; }

/* Marquee strip */
.marquee { background: var(--navy); color: #fff; overflow: hidden; padding: 22px 0; transform: rotate(-1.2deg) scale(1.02); margin: 0 0 clamp(8px, 2vw, 24px); }
.marquee-track { display: flex; width: max-content; animation: fsl-marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px; }
.marquee span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad-soft); }

/* Cards become open columns, no boxes */
.grid { gap: clamp(28px, 4vw, 64px); }
.card { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 28px 0 0; position: relative; border-top: 1px solid var(--line); }
.card::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 56px; background: var(--grad); border-radius: 3px; transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover::before { width: 100%; }
.card h3 { font-size: clamp(20px, 1.8vw, 26px); }
.card .num, .section-soft .card .num { background: none; display: block; width: auto; height: auto; font-size: clamp(44px, 5vw, 72px); line-height: 1; font-weight: 800; margin-bottom: 18px; background-image: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.check-list li, .cross-list li { padding-top: 16px; padding-bottom: 16px; font-size: 18px; }
.check-list li::before, .cross-list li::before { top: 20px; }
.check-list li::after { top: 25px; }
.cross-list li::after { top: 29px; }
.story-row { padding: clamp(32px, 4vw, 56px) 0; }
.story-row p { font-size: clamp(18px, 1.5vw, 22px); }
.story-row h3 { font-size: clamp(22px, 2vw, 30px); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 14px; }
.chips li { font-weight: 700; color: var(--ink); font-size: clamp(18px, 2.2vw, 30px); padding: 16px 30px; border-radius: 100px; background: #fff; box-shadow: var(--shadow); transition: transform 0.3s, background 0.3s, color 0.3s; }
.chips li:nth-child(odd) { transform: rotate(-1.5deg); }
.chips li:nth-child(even) { transform: rotate(1.2deg); }
.chips li:hover { transform: rotate(0) scale(1.05); background: var(--grad); color: #fff; }

/* Navy band goes edge to edge */
.section:has(> .container > .band) { padding: 0; }
.band { border-radius: 0; margin-inline: calc(50% - 50vw); padding: var(--pad) max(var(--gutter), calc(50vw - var(--wide) / 2)); }
.band::after { width: 560px; height: 560px; right: -160px; top: -200px; opacity: 0.4; filter: blur(30px); animation: fsl-blob 14s ease-in-out infinite alternate; }
.band::before { content: ""; position: absolute; left: -120px; bottom: -220px; width: 420px; height: 420px; border-radius: 50%; background: #2c4fc0; opacity: 0.35; filter: blur(50px); animation: fsl-blob 16s ease-in-out infinite alternate-reverse; }
.band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }

.quote { font-size: clamp(26px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.015em; }
.page-hero { padding: clamp(64px, 8vw, 128px) 0 clamp(40px, 5vw, 72px); background: none; position: relative; overflow-x: clip; }
.page-hero::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: var(--grad-soft); opacity: 0.22; filter: blur(60px); z-index: -1; animation: fsl-blob 14s ease-in-out infinite alternate; }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 92px); line-height: 1.03; max-width: 1000px; }
.portrait { border-radius: 40px; max-width: 420px; transform: rotate(2deg); transition: transform 0.5s; }
.portrait:hover { transform: rotate(0) scale(1.02); }
.callout { border: 0; border-radius: 24px; }
.form-card { border: 0; border-radius: 32px; padding: clamp(24px, 3.4vw, 48px); }
.field input[type="text"], .field input[type="email"], .field textarea { border-radius: 14px; border-color: transparent; }
.hero-form { border-radius: 100px; padding: 7px; border: 0; box-shadow: var(--shadow-lg); }
.hero-form input[type="email"] { padding-left: 22px; }
.faq summary { font-size: clamp(18px, 1.6vw, 24px); padding: 6px 0; transition: color 0.2s; }
.faq summary:hover { color: var(--blue); }
.faq summary::after { transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.post-card { border-top: 0; padding: 0; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.post-card::before { content: none; }
.post-thumb img { transition: transform 0.6s; }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.site-footer { padding: clamp(64px, 8vw, 112px) 0 40px; }

/* Scroll reveal (class is added by JavaScript, so content shows without it) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.chips li.reveal { transform: translateY(28px) rotate(0); }
.chips li.reveal.in:nth-child(odd) { transform: rotate(-1.5deg); }
.chips li.reveal.in:nth-child(even) { transform: rotate(1.2deg); }
.chips li.reveal.in:hover { transform: rotate(0) scale(1.05); }
.portrait.reveal.in { transform: rotate(2deg); }

@keyframes fsl-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes fsl-drift { from { transform: scale(1.02); } to { transform: scale(1.09) translate(-1.5%, 1%); } }
@keyframes fsl-blob { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.15); } }
@keyframes fsl-marquee { to { transform: translateX(-50%); } }
@keyframes fsl-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(44, 79, 192, 0.45); } 50% { box-shadow: 0 0 0 8px rgba(44, 79, 192, 0); } }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: none; margin-left: 0; }
  .hero-panel { height: clamp(340px, 70vw, 560px); }
  .float-1 { left: -10px; } .float-3 { left: -10px; } .float-4 { left: 30%; }
  .main-nav a::after { content: none; }
}
@media (max-width: 680px) {
  .hero-panel { border-radius: 32px 0 0 32px; }
  .float-1 { left: -8px; top: -16px; }
  .float-4 { left: auto; right: 16px; bottom: -18px; }
  .hero-form { border-radius: 24px; }
  .chips li { padding: 12px 20px; }
  .marquee { padding: 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .hero-panel img, .blob, .band::after, .band::before, .page-hero::before, .hello i { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { transform: none; }
}


/* ==========================================================================
   v1.2: dark home hero, as on the original site, with motion
   ========================================================================== */
.hero-dark { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(90deg, #000206 0%, #020716 45%, #030a20 100%); min-height: clamp(600px, 49vw, 900px); display: flex; align-items: center; margin-top: -77px; padding: calc(77px + clamp(40px, 5vw, 80px)) 0 clamp(56px, 6vw, 96px); }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: min(62%, 1060px); z-index: 1; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%); mask-image: linear-gradient(90deg, transparent 0%, #000 26%); animation: fsl-art-in 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; animation: fsl-art-float 9s ease-in-out infinite; transform-origin: 70% 50%; }
.hero-glow { position: absolute; left: 44%; top: 66%; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(63, 131, 235, 0.95) 0%, rgba(63, 131, 235, 0) 70%); filter: blur(6px); z-index: 2; animation: fsl-glow 4.5s ease-in-out infinite; }
.hero-dark-inner { position: relative; z-index: 3; width: 100%; }
.hero-copy { max-width: min(46%, 640px); }
.hero-hello { font-size: clamp(18px, 1.5vw, 24px); font-weight: 400; color: #fff; margin-bottom: clamp(14px, 1.6vw, 24px); animation: fsl-rise 0.8s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-dark h1 { color: #fff; font-size: clamp(42px, 5.6vw, 88px); line-height: 1.08; font-weight: 800; letter-spacing: -0.01em; }
.hero-dark h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-dark h1 .line > span { display: block; white-space: nowrap; animation: fsl-line 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-dark h1 .line:nth-child(1) > span { animation-delay: 0.2s; }
.hero-dark h1 .line:nth-child(2) > span { animation-delay: 0.35s; }
.hero-text { font-size: clamp(18px, 1.55vw, 24px); line-height: 1.6; color: #eef2fb; margin-top: clamp(20px, 2.4vw, 36px); max-width: 560px; animation: fsl-rise 0.8s 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-cta { margin-top: clamp(28px, 3.4vw, 52px); animation: fsl-rise 0.8s 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.btn-hero { position: relative; overflow: hidden; background: var(--steel); color: #fff; border-radius: 10px; padding: clamp(18px, 1.7vw, 26px) clamp(26px, 2.6vw, 44px); font-size: clamp(16px, 1.3vw, 20px); font-weight: 600; box-shadow: 0 14px 36px rgba(47, 91, 128, 0.35); }
.btn-hero:hover { background: #38709c; transform: translateY(-3px); box-shadow: 0 18px 44px rgba(63, 131, 235, 0.4); }
.btn-hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0) 100%); transform: skewX(-18deg); animation: fsl-shine 4.5s ease-in-out infinite; }

/* Header sits over the dark hero on the home page until you scroll */
.home .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; }
.home .site-header:not(.scrolled) .brand, .home .site-header:not(.scrolled) .main-nav a { color: #fff; }
.home .site-header:not(.scrolled) .brand-name span { color: var(--cyan); }
.home .site-header:not(.scrolled) .nav-toggle { border-color: rgba(255, 255, 255, 0.35); }
.home .site-header:not(.scrolled) .nav-toggle span { background: #fff; }
.home .site-header:not(.scrolled) .header-cta { background: rgba(255, 255, 255, 0.1); box-shadow: none; border-color: rgba(255, 255, 255, 0.3); }
.home .site-header { transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }

/* Strip under the hero now uses the brand gradient so it stands off the navy */
.marquee { background: var(--grad-soft); transform: none; margin: 0; }
.marquee span::after { background: #fff; opacity: 0.9; }
.portrait img { width: 100%; height: auto; }

@keyframes fsl-line { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fsl-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fsl-art-in { from { opacity: 0; transform: translateX(60px) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes fsl-art-float { 0%, 100% { transform: translateY(0) scale(1.01); } 50% { transform: translateY(-14px) scale(1.035); } }
@keyframes fsl-glow { 0%, 100% { transform: scale(0.85); opacity: 0.75; } 50% { transform: scale(1.25); opacity: 1; } }
@keyframes fsl-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

@media (max-width: 1020px) {
  .home .site-header:not(.scrolled) .main-nav a { color: var(--text); }
  .hero-dark { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 0; }
  .hero-copy { max-width: 640px; }
  .hero-art { position: relative; width: 100%; height: clamp(340px, 82vw, 640px); margin-top: 40px; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%); mask-image: linear-gradient(180deg, transparent 0%, #000 18%); order: 2; }
  .hero-art img { object-position: 70% center; }
  .hero-glow { left: 70%; top: 44%; }
}
@media (max-width: 680px) {
  .hero-dark h1 .line > span { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art, .hero-art img, .hero-glow, .hero-hello, .hero-text, .hero-cta, .hero-dark h1 .line > span, .btn-hero::before { animation: none; }
  .hero-net { display: none; }
}


/* ==========================================================================
   v1.3: hero illustration on every page, Title Case, extra play, mobile polish
   ========================================================================== */
h1, h2, h3, .btn, .main-nav a, .faq summary, .field label, .chips li, .marquee span, .footer-links a, .eyebrow, .stat span, .text-link, .myth b { text-transform: capitalize; }
.eyebrow { text-transform: uppercase; }
.myth b, .stat span { text-transform: none; }

/* Page hero: copy + illustration */
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 80px); }
.page-hero-art { display: flex; justify-content: center; }
.art { position: relative; width: min(100%, 540px); aspect-ratio: 1 / 0.92; }
.art-circle { position: absolute; inset: 6% 8% 2% 8%; border-radius: 50%; background: var(--grad-soft); animation: fsl-breathe 8s ease-in-out infinite; }
.art-ring { position: absolute; inset: 0 2% -4% 2%; border-radius: 50%; border: 2px dashed rgba(44, 79, 192, 0.25); animation: fsl-spin 40s linear infinite; }
.art-chip { position: absolute; background: #fff; color: var(--ink); font-weight: 700; font-size: clamp(13px, 1.1vw, 16px); padding: 10px 16px; border-radius: 100px; box-shadow: var(--shadow-lg); white-space: nowrap; animation: fsl-bob 6s ease-in-out infinite; z-index: 3; }
.art-chip b { color: var(--blue); margin-right: 4px; }
.chip-a { top: 8%; left: -2%; }
.chip-b { top: 44%; right: -4%; animation-delay: -2s; }
.chip-c { bottom: 6%; left: 6%; animation-delay: -4s; }

/* About */
.art-photo { position: absolute; inset: 4% 16% 0 16%; border-radius: 36px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow-lg); transform: rotate(3deg); transition: transform 0.5s; z-index: 2; }
.art-photo:hover { transform: rotate(0) scale(1.02); }
.art-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Simulation */
.art-phone { position: absolute; left: 50%; top: 2%; width: 46%; height: 96%; margin-left: -23%; background: var(--navy); border: 6px solid #05070f; border-radius: 34px; padding: 30px 14px 14px; display: flex; flex-direction: column; gap: 10px; color: #fff; box-shadow: var(--shadow-lg); z-index: 2; animation: fsl-bob 7s ease-in-out infinite; }
.ap-notch { position: absolute; top: 8px; left: 50%; width: 34%; height: 12px; margin-left: -17%; background: #05070f; border-radius: 10px; }
.ap-title { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; }
.ap-title i { font-style: normal; color: var(--cyan); font-size: 10px; }
.ap-balance { background: #12203f; border-radius: 12px; padding: 10px 12px; font-weight: 800; font-size: clamp(15px, 1.5vw, 20px); }
.ap-balance small { display: block; font-weight: 400; font-size: 10px; color: #a9b6d0; }
.ap-chart { background: #12203f; border-radius: 12px; width: 100%; height: 24%; padding: 8px; }
.ap-chart polyline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: fsl-draw 4s ease-in-out infinite; }
.ap-bars { display: flex; align-items: flex-end; gap: 4px; height: 18%; background: #12203f; border-radius: 12px; padding: 8px; }
.ap-bars i { flex: 1; background: var(--cyan); border-radius: 2px; transform-origin: bottom; animation: fsl-bar 2.4s ease-in-out infinite; }
.ap-bars i:nth-child(1) { height: 40%; } .ap-bars i:nth-child(2) { height: 65%; animation-delay: -0.3s; } .ap-bars i:nth-child(3) { height: 50%; animation-delay: -0.6s; } .ap-bars i:nth-child(4) { height: 80%; animation-delay: -0.9s; } .ap-bars i:nth-child(5) { height: 60%; animation-delay: -1.2s; } .ap-bars i:nth-child(6) { height: 92%; animation-delay: -1.5s; } .ap-bars i:nth-child(7) { height: 74%; animation-delay: -1.8s; }
.ap-actions { display: flex; gap: 8px; margin-top: auto; }
.ap-actions b { flex: 1; text-align: center; padding: 9px 0; border-radius: 10px; font-size: 12px; background: var(--blue); }
.ap-actions b + b { background: #1b2a4d; }
.art-sim .chip-a { left: -4%; top: 14%; } .art-sim .chip-b { right: -6%; top: 36%; } .art-sim .chip-c { left: -2%; bottom: 14%; }

/* Why */
.art-stack { position: absolute; left: 12%; right: 12%; top: 22%; display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.as-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 16px 18px; font-weight: 700; color: var(--ink); font-size: clamp(15px, 1.4vw, 19px); box-shadow: var(--shadow-lg); animation: fsl-bob 6s ease-in-out infinite; }
.as-row:nth-child(2) { margin-left: 8%; margin-right: -4%; animation-delay: -1.5s; }
.as-row:nth-child(3) { margin-left: -4%; margin-right: 6%; animation-delay: -3s; }
.as-row small { margin-left: auto; font-weight: 600; font-size: 12px; color: var(--muted); }
.as-row i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 15px; position: relative; }
.as-row i.ok::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.as-q { background: var(--navy); color: #fff; }
.as-q small { color: var(--cyan); }
.as-q i { background: #fff; color: var(--blue); font-weight: 800; animation: fsl-wiggle 2.4s ease-in-out infinite; }
.art-bubble { position: absolute; right: 4%; top: 2%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: clamp(34px, 4vw, 60px); box-shadow: var(--shadow-lg); z-index: 3; animation: fsl-wiggle 3s ease-in-out infinite; }
.art-why .chip-a { left: 2%; top: 4%; } .art-why .chip-c { left: auto; right: 2%; bottom: 4%; }
.art-default .art-bubble { right: 39%; top: 36%; }

/* Blogs */
.art-posts { position: absolute; inset: 14% 16% 12% 16%; z-index: 2; }
.apost { position: absolute; inset: 0; background: #fff; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-lg); }
.apost.p3 { transform: rotate(-9deg) translate(-6%, 2%); opacity: 0.75; animation: fsl-fan3 7s ease-in-out infinite; }
.apost.p2 { transform: rotate(6deg) translate(5%, 1%); opacity: 0.9; animation: fsl-fan2 7s ease-in-out infinite; }
.apost.p1 { animation: fsl-bob 6s ease-in-out infinite; }
.apost em { align-self: flex-start; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); padding: 5px 12px; border-radius: 100px; min-width: 64px; min-height: 22px; }
.apost b { color: var(--ink); font-size: clamp(18px, 2vw, 26px); line-height: 1.15; }
.apost i { height: 10px; border-radius: 10px; background: #e6ecf7; }
.apost i.short { width: 55%; }
.art-blogs .chip-a { left: -4%; top: 6%; } .art-blogs .chip-b { right: -6%; top: 52%; } .art-blogs .chip-c { left: 2%; bottom: 2%; }

/* Privacy */
.art-shield { position: absolute; left: 50%; top: 12%; width: 46%; margin-left: -23%; filter: drop-shadow(0 18px 30px rgba(5, 10, 31, 0.25)); z-index: 2; animation: fsl-bob 6s ease-in-out infinite; }
.shield-tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: fsl-draw 3.5s ease-in-out infinite; }
.art-privacy .chip-a { left: 0; top: 16%; } .art-privacy .chip-b { right: -2%; top: 40%; } .art-privacy .chip-c { left: 8%; bottom: 8%; }

/* Contact */
.art-chat { position: absolute; left: 10%; right: 10%; top: 24%; display: flex; flex-direction: column; gap: 14px; z-index: 2; }
.bub { max-width: 82%; padding: 14px 18px; border-radius: 20px; font-weight: 600; font-size: clamp(14px, 1.3vw, 18px); box-shadow: var(--shadow-lg); }
.bub-me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; animation: fsl-pop 6s ease-in-out infinite; }
.bub-alex { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 6px; animation: fsl-pop 6s 0.8s ease-in-out infinite; }
.bub-typing { align-self: flex-start; background: #fff; display: flex; gap: 6px; padding: 16px 18px; border-bottom-left-radius: 6px; }
.bub-typing i { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); animation: fsl-dot 1.2s ease-in-out infinite; }
.bub-typing i:nth-child(2) { animation-delay: 0.15s; } .bub-typing i:nth-child(3) { animation-delay: 0.3s; }
.art-plane { position: absolute; right: 6%; top: 4%; width: 18%; z-index: 3; filter: drop-shadow(0 12px 20px rgba(5, 10, 31, 0.25)); animation: fsl-fly 5s ease-in-out infinite; }
.art-contact .chip-c { left: auto; right: 4%; bottom: 8%; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); text-align: center; }
.stat strong { display: block; font-size: clamp(44px, 7vw, 104px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 12px; font-weight: 600; color: var(--ink); font-size: clamp(15px, 1.4vw, 20px); }

/* Myth cards */
.myth { font-family: inherit; text-align: left; cursor: pointer; background: none; border: 0; padding: 0; display: grid; perspective: 1200px; min-height: 230px; -webkit-tap-highlight-color: transparent; }
.myth-face { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 28px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); box-shadow: var(--shadow); }
.myth-front { background: #fff; color: var(--ink); }
.myth-back { background: var(--navy); color: #fff; transform: rotateY(180deg); }
.myth[aria-pressed="true"] .myth-front { transform: rotateY(-180deg); }
.myth[aria-pressed="true"] .myth-back { transform: rotateY(0); }
.myth:hover .myth-front { box-shadow: var(--shadow-lg); }
.myth em { align-self: flex-start; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; background: #ffe9e9; color: #b42318; }
.myth-back em { background: rgba(111, 211, 227, 0.18); color: var(--cyan); }
.myth b { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.3; font-weight: 700; }
.myth small { margin-top: auto; color: var(--blue); font-weight: 700; font-size: 14px; }
.myths .myth.reveal { transform: translateY(28px); }

.level { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

/* Back to top */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 50px; height: 50px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s; z-index: 40; }
.to-top:hover { text-decoration: none; transform: translateY(-3px); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* Mobile and touch polish */
.btn, .main-nav a, .faq summary, .footer-links a { -webkit-tap-highlight-color: transparent; }
.footer-links a { display: inline-block; padding: 4px 0; }
@media (max-width: 1020px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-art { order: 2; }
  .art { width: min(100%, 440px); }
  .main-nav { max-height: calc(100vh - 77px); overflow-y: auto; }
  .main-nav a { min-height: 52px; display: flex; align-items: center; }
}
@media (max-width: 680px) {
  .stats { grid-template-columns: 1fr; gap: 36px; }
  .btn-row .btn { width: 100%; }
  .btn { min-height: 52px; }
  .hero-cta .btn-hero { width: 100%; }
  .art { width: 100%; max-width: 360px; }
  .art-chip { font-size: 12px; padding: 8px 12px; }
  .chip-a, .art-sim .chip-a, .art-blogs .chip-a { left: 0; } .chip-b, .art-sim .chip-b, .art-blogs .chip-b, .art-privacy .chip-b { right: 0; }
  .myth { min-height: 200px; }
  .field input[type="text"], .field input[type="email"], .field textarea, .hero-form input[type="email"] { font-size: 16px; }
  .check input { width: 22px; height: 22px; }
  .faq summary { padding: 10px 0; }
  .to-top { right: 14px; bottom: 14px; }
}

@keyframes fsl-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes fsl-spin { to { transform: rotate(360deg); } }
@keyframes fsl-draw { 0% { stroke-dashoffset: 1; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes fsl-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.6); } }
@keyframes fsl-wiggle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg) scale(1.06); } }
@keyframes fsl-fan3 { 0%, 100% { transform: rotate(-9deg) translate(-6%, 2%); } 50% { transform: rotate(-12deg) translate(-9%, 1%); } }
@keyframes fsl-fan2 { 0%, 100% { transform: rotate(6deg) translate(5%, 1%); } 50% { transform: rotate(9deg) translate(8%, 0); } }
@keyframes fsl-pop { 0%, 100% { transform: scale(1); } 6% { transform: scale(1.05); } 12% { transform: scale(1); } }
@keyframes fsl-dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-5px); opacity: 1; } }
@keyframes fsl-fly { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-14px, 12px) rotate(-8deg); } }

@media (prefers-reduced-motion: reduce) {
  .art *, .art { animation: none !important; }
  .ap-chart polyline, .shield-tick { stroke-dashoffset: 0; }
  .myth-face { transition: none; }
}


/* ==========================================================================
   v1.4: smaller hero images, dark page heroes, blog post layout with sidebar
   ========================================================================== */

/* Header sits over the dark hero on every page until you scroll */
.site-header:not(.scrolled) { background: transparent; backdrop-filter: none; }
.site-header:not(.scrolled) .brand, .site-header:not(.scrolled) .main-nav a { color: #fff; }
.site-header:not(.scrolled) .brand-name span { color: var(--cyan); }
.site-header:not(.scrolled) .nav-toggle { border-color: rgba(255, 255, 255, 0.35); }
.site-header:not(.scrolled) .nav-toggle span { background: #fff; }
.site-header:not(.scrolled) .header-cta { background: rgba(255, 255, 255, 0.1); box-shadow: none; border-color: rgba(255, 255, 255, 0.3); }
.site-header { transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
@media (max-width: 1020px) { .site-header:not(.scrolled) .main-nav a { color: var(--text); } }

/* Home hero: the whole image is always visible and never runs under the menu */
.hero-dark { min-height: clamp(560px, 44vw, 780px); padding: calc(77px + clamp(28px, 3.5vw, 56px)) 0 clamp(48px, 5vw, 80px); }
.hero-art { top: 92px; bottom: 24px; right: 0; width: min(50%, 820px); -webkit-mask-image: none; mask-image: none; }
.hero-art img { object-fit: contain; object-position: right center; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero-dark h1 { font-size: clamp(38px, 4.7vw, 76px); }
.hero-text { font-size: clamp(17px, 1.35vw, 21px); max-width: 520px; }
.hero-hello { font-size: clamp(17px, 1.3vw, 21px); }
.btn-hero { padding: clamp(16px, 1.4vw, 22px) clamp(24px, 2.2vw, 36px); font-size: clamp(16px, 1.15vw, 18px); }
.hero-glow { left: 47%; top: 70%; width: 90px; height: 90px; }

/* Every other page: same dark stage as the home hero */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: linear-gradient(90deg, #000206 0%, #020716 45%, #030a20 100%); margin-top: -77px; padding: calc(77px + clamp(40px, 5vw, 80px)) 0 clamp(48px, 6vw, 88px); }
.page-hero::before { right: -140px; top: -200px; opacity: 0.28; z-index: 0; }
.page-hero .hero-net { z-index: 0; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 68px); max-width: 900px; }
.page-hero .eyebrow { color: var(--cyan); }
.page-hero .lead { color: #dfe6f5; font-size: clamp(17px, 1.35vw, 21px); max-width: 620px; }
.page-hero .grad-text { background-image: linear-gradient(90deg, #7fd8e4 0%, #6f9bf0 100%); }
.page-hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.page-hero .btn-ghost:hover { border-color: #fff; }
.page-hero-grid { grid-template-columns: 1.25fr 0.75fr; }

/* Illustrations: smaller, lit, and they tilt towards the pointer */
.art { width: min(100%, 380px); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.25s ease-out; }
.art-circle { box-shadow: 0 0 90px rgba(111, 211, 227, 0.35), 0 0 160px rgba(44, 79, 192, 0.45); }
.art-ring { border-color: rgba(127, 216, 228, 0.4); }
.art::after { content: ""; position: absolute; right: -4%; bottom: 16%; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 24px 6px rgba(111, 211, 227, 0.6); animation: fsl-orbit 9s linear infinite; z-index: 4; }
.art::before { content: ""; position: absolute; left: 2%; top: 30%; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 4px rgba(255, 255, 255, 0.6); animation: fsl-orbit 12s linear infinite reverse; z-index: 4; }
.art-chip { font-size: 13px; padding: 9px 14px; }
.art-photo { inset: 8% 13% 4% 13%; aspect-ratio: 1; height: auto; margin: auto; border-radius: 50%; transform: none; border: 6px solid rgba(255, 255, 255, 0.92); background: #fff; }
.art-photo:hover { transform: scale(1.03); }
.art-photo img { transform: scale(1.14); object-position: center; }
.art-about .chip-a { top: 4%; left: -6%; } .art-about .chip-b { top: 46%; right: -10%; } .art-about .chip-c { bottom: 4%; left: 0; }

/* Blog post */
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--grad-soft); }
.post-hero { padding-bottom: clamp(48px, 6vw, 96px); }
.post-hero h1 { font-size: clamp(30px, 4vw, 60px); max-width: 1040px; line-height: 1.1; }
.post-back { display: inline-block; color: var(--cyan); font-weight: 700; margin-bottom: 22px; text-transform: capitalize; }
.post-back:hover { color: #fff; text-decoration: none; }
.post-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.post-meta span { font-size: 14px; font-weight: 600; color: #dfe6f5; padding: 8px 14px; border-radius: 100px; background: rgba(255, 255, 255, 0.09); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 400px); gap: clamp(40px, 6vw, 104px); align-items: start; padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(72px, 9vw, 136px); }
.post-main { min-width: 0; }
.post-main .article-thumb { margin: 0 0 clamp(28px, 3.4vw, 48px); border-radius: 28px; box-shadow: var(--shadow-lg); }
.post-main .article-thumb img { width: 100%; }
.entry { font-size: clamp(18px, 1.3vw, 20px); line-height: 1.8; color: #2a3350; max-width: 820px; }
.entry > * + * { margin-top: 1.35em; }
.entry h2, .entry h3, .entry h4 { margin-top: 2em; }
.entry a { text-decoration: underline; text-underline-offset: 3px; }
.entry img { border-radius: 20px; height: auto; }
.entry > p:first-of-type { font-size: 1.14em; color: var(--ink); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(48px, 6vw, 88px); padding-top: 0; border-top: 0; max-width: 820px; }
.post-nav a { display: block; height: 100%; padding: 22px 24px; border-radius: 20px; background: var(--soft); color: var(--ink); font-weight: 700; line-height: 1.35; transition: transform 0.25s, background 0.25s; text-transform: capitalize; }
.post-nav a:hover { text-decoration: none; transform: translateY(-3px); background: #e7effb; }
.post-nav small { display: block; font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.post-nav-next { text-align: right; }
.post-nav span:empty { display: none; }

.post-side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 24px; }
.side-card { background: var(--soft); border-radius: 28px; padding: clamp(24px, 2.2vw, 34px); }
.side-card h2 { font-size: clamp(21px, 1.7vw, 26px); font-weight: 800; margin-bottom: 12px; }
.side-card p { font-size: 16px; line-height: 1.6; }
.side-card .text-link { display: inline-block; margin-top: 16px; }
.side-kicker { font-size: 12px !important; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.side-author { text-align: left; }
.side-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 18px; border: 4px solid #fff; box-shadow: var(--shadow-lg); background: #fff; }
.side-posts { margin-top: 6px; }
.side-posts li + li { margin-top: 4px; }
.side-posts a { display: flex; gap: 14px; align-items: center; padding: 10px; margin: 0 -10px; border-radius: 16px; color: var(--ink); transition: background 0.2s; }
.side-posts a:hover { background: #fff; text-decoration: none; }
.side-thumb { flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--grad-soft); }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-post-text b { display: block; font-size: 15px; line-height: 1.35; font-weight: 700; text-transform: capitalize; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.side-post-text small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.side-cta { background: var(--navy); color: #c9d3e6; position: relative; overflow: hidden; }
.side-cta::after { content: ""; position: absolute; right: -90px; top: -90px; width: 220px; height: 220px; border-radius: 50%; background: var(--grad-soft); opacity: 0.4; filter: blur(26px); }
.side-cta > * { position: relative; z-index: 1; }
.side-cta h2 { color: #fff; }
.side-cta .side-kicker { color: var(--cyan); }
.side-cta .hero-form { margin-top: 18px; flex-direction: column; border-radius: 20px; padding: 8px; gap: 8px; box-shadow: none; }
.side-cta .hero-form input[type="email"] { padding: 14px 14px; }
.side-cta .hero-form .btn { width: 100%; }
.side-cta .btn-ghost { width: 100%; margin-top: 12px; background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); text-align: center; }
.side-cta .notice { font-size: 14px; }
.side-small { font-size: 13px !important; margin-top: 14px; color: #9fb0cf; }

@keyframes fsl-orbit { from { transform: rotate(0) translateX(14px) rotate(0); } to { transform: rotate(360deg) translateX(14px) rotate(-360deg); } }

@media (max-width: 1020px) {
  .hero-dark { padding-bottom: 0; }
  .hero-art { position: relative; top: auto; bottom: auto; right: auto; width: 100%; height: auto; margin-top: 28px; }
  .hero-art img { height: auto; max-height: 460px; object-position: center; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%); mask-image: linear-gradient(180deg, transparent 0%, #000 14%); }
  .hero-glow { display: none; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .art { width: min(100%, 320px); }
  .post-layout { grid-template-columns: 1fr; }
  .post-side { position: static; }
  .side-card { max-width: 720px; }
}
@media (max-width: 680px) {
  .art { max-width: 280px; }
  .hero-art img { max-height: 340px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .entry { line-height: 1.75; }
}
@media (prefers-reduced-motion: reduce) { .art { transform: none; transition: none; } }

@media (max-width: 680px) {
  .entry { font-size: 17px; }
  .entry > p:first-of-type { font-size: 1.06em; }
  .as-row small { display: none; }
  .side-cta .btn-ghost { font-size: 15px; }
}
