/* ═══════════════════════════════════════════════
   LOOPSUITE — Marketing Website
   Light neobrutalism · Warm off-white · #FFD60A
   Premium Outcomes & Feelings Driven Design
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Variables ───────────── */
:root {
  --brand: #FFD60A;
  --brand-light: #fff7cc;
  --brand-subtle: rgba(255, 214, 10, 0.15);
  --brand-border: rgba(255, 214, 10, 0.4);
  --black: #000;
  --white: #fff;
  --bg: #fffdf8;
  --g50: #fafaf7;
  --g100: #f5f5f0;
  --g200: #e5e5e0;
  --g300: #d4d4d0;
  --g400: #a3a3a3;
  --g500: #737373;
  --g600: #525252;
  --g700: #404040;
  --g800: #262626;
  --g900: #171717;
  --red: #ef4444;
  --green: #34D399;
  --blue: #60a5fa;

  --shadow-b: 4px 4px 0 var(--black);
  --shadow-b-sm: 3px 3px 0 var(--black);
  --shadow-b-lg: 8px 8px 0 var(--black);
  --shadow-b-hover: 6px 6px 0 var(--black);
  --shadow-y: 4px 4px 0 var(--brand);
  --shadow-y-hover: 6px 6px 0 var(--brand);

  --font-h: 'Space Mono', monospace;
  --font-b: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1100px;
  --r: 16px;
  --r-sm: 10px;
  --r-xs: 8px;
  --r-full: 9999px;
  --bw: 2px;
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--g900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--g900); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--g600); }

/* ── Typography ───────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-h);
  color: var(--g900);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.t-hero { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 700; line-height: 1.05; }
.t-section { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
.t-card { font-size: clamp(1rem, 1.8vw, 1.2rem); font-weight: 700; }

.t-label {
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--g500);
}

.t-muted { color: var(--g500); }
.highlight-text { position: relative; display: inline-block; z-index: 1; }
.highlight-text::after {
  content: ''; position: absolute; bottom: 4px; left: -2%; right: -2%; height: 35%;
  background: var(--brand); z-index: -1; transform: rotate(-1deg);
}

/* ── Layout ───────────────────────────────── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section + .section { border-top: var(--bw) solid var(--g200); }
.section-alt { background: var(--g50); }

.section-head {
  text-align: center; max-width: 720px; margin: 0 auto 64px;
}
.section-head .t-label { margin-bottom: 12px; }
.section-head .t-section { margin-bottom: 20px; }
.section-head p { color: var(--g600); font-size: 1.1rem; line-height: 1.7; }

@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .wrap { padding: 0 16px; }
}

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-h); font-weight: 700; font-size: 0.85rem;
  padding: 14px 28px; border-radius: var(--r-sm); border: var(--bw) solid var(--black);
  cursor: pointer; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn-p { background: var(--black); color: var(--brand); box-shadow: var(--shadow-b-sm); }
.btn-p:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-y); color: var(--brand); }
.btn-p:active { transform: translate(0, 0); box-shadow: none; }

.btn-s { background: var(--white); color: var(--black); box-shadow: var(--shadow-b-sm); }
.btn-s:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-b); color: var(--black); }
.btn-s:active { transform: translate(0, 0); box-shadow: none; }

.btn-lg { padding: 16px 36px; font-size: 0.95rem; }

/* ── Neo Card ─────────────────────────────── */
.neo { background: var(--white); border: var(--bw) solid var(--black); border-radius: var(--r); padding: 32px; transition: transform 0.2s, box-shadow 0.2s; }
.neo:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-b-lg); }
.neo-glow { box-shadow: var(--shadow-y); }
.neo-glow:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-y-hover); }

/* ── Badge ────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-h); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--g900); background: var(--brand-subtle); border: var(--bw) solid var(--black); border-radius: var(--r-full); padding: 8px 18px; }

/* ── NAVIGATION ───────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255, 253, 248, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: var(--bw) solid var(--black); padding: 0 24px; }
.nav-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-h); font-weight: 700; font-size: 1.1rem; color: var(--g900); letter-spacing: -0.03em; text-decoration: none; }
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--g500); font-size: 0.85rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--g900); }
.nav-toggle { display: none; background: var(--white); border: var(--bw) solid var(--black); border-radius: var(--r-xs); padding: 8px; cursor: pointer; color: var(--g900); }

@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ── PREMIUM HERO ─────────────────────────── */
.premium-hero { min-height: 90vh; display: flex; align-items: center; justify-content: center; padding: 140px 24px 80px; position: relative; text-align: center; background-image: radial-gradient(circle, var(--g300) 1px, transparent 1px); background-size: 32px 32px; }
.hero-content { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.premium-hero .badge { margin-bottom: 32px; }
.premium-hero .t-hero { margin-bottom: 24px; text-wrap: balance; }
.premium-hero .hero-sub { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--g600); line-height: 1.6; margin-bottom: 48px; max-width: 600px; text-wrap: balance; }

/* Elegant Waitlist Capture */
.waitlist-form { display: flex; width: 100%; max-width: 500px; gap: 12px; background: var(--white); padding: 8px; border-radius: var(--r); border: var(--bw) solid var(--black); box-shadow: var(--shadow-b-lg); }
.waitlist-input { flex: 1; border: none; background: transparent; padding: 14px 20px; font-family: var(--font-b); font-size: 1rem; color: var(--g900); outline: none; }
.waitlist-input::placeholder { color: var(--g400); }
.btn-waitlist { margin: 0; padding: 14px 28px; font-size: 0.9rem; }

@media (max-width: 600px) { .waitlist-form { flex-direction: column; background: transparent; border: none; box-shadow: none; padding: 0; } .waitlist-input { background: var(--white); border: var(--bw) solid var(--black); border-radius: var(--r-sm); box-shadow: var(--shadow-b-sm); } }

/* ── ANIMATION 1: THE ENGINE ──────────────── */
.engine-visual { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 40px 0; }
.user-bubble { background: var(--white); border: var(--bw) solid var(--black); border-radius: var(--r); padding: 20px 28px; font-size: 1.1rem; font-weight: 500; box-shadow: var(--shadow-b); position: relative; z-index: 2; max-width: 500px; text-align: center; }
.user-bubble::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 20px; height: 20px; background: var(--white); border-right: var(--bw) solid var(--black); border-bottom: var(--bw) solid var(--black); }

.engine-nodes { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 20px 0; flex-wrap: wrap; }
.node { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 120px; }
.node-icon-box { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-subtle); border: var(--bw) solid var(--black); display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; box-shadow: var(--shadow-y); transition: all 0.3s ease; animation: nodePulse 3s infinite alternate; }
.node:nth-child(2) .node-icon-box { animation-delay: 1s; }
.node:nth-child(3) .node-icon-box { animation-delay: 2s; }
.node-icon-box svg { width: 28px; height: 28px; stroke: var(--g900); stroke-width: 2; fill: none; }
.node span { font-family: var(--font-h); font-size: 0.75rem; font-weight: 700; color: var(--g700); text-align: center; }

.node-connection { flex: 1; min-width: 40px; height: 2px; background: var(--g300); position: relative; margin-top: -30px; }
.node-connection::after { content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 0; background: var(--black); animation: flowLine 3s infinite; }
@keyframes flowLine { 0% { width: 0; left: 0; } 50% { width: 100%; left: 0; } 100% { width: 100%; left: 100%; } }
@keyframes nodePulse { 0% { box-shadow: 0 0 0 0 rgba(255, 214, 10, 0.4); } 100% { box-shadow: 0 0 0 15px rgba(255, 214, 10, 0); } }

.bot-bubble { background: var(--black); color: var(--brand); border: var(--bw) solid var(--black); border-radius: var(--r); padding: 20px 28px; font-size: 1.1rem; font-weight: 500; box-shadow: var(--shadow-y); position: relative; z-index: 2; max-width: 500px; text-align: center; }
.bot-bubble::before { content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 20px; height: 20px; background: var(--black); border-left: var(--bw) solid var(--black); border-top: var(--bw) solid var(--black); }

/* ── OUTCOMES SECTION ─────────────────────── */
.outcome-block { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 960px; margin: 0 auto 100px; }
.outcome-block.reverse { direction: rtl; }
.outcome-block.reverse > * { direction: ltr; }
.outcome-text h3 { font-size: 2rem; margin-bottom: 20px; }
.outcome-text p { font-size: 1.1rem; color: var(--g600); line-height: 1.7; }

.outcome-visual { position: relative; width: 100%; aspect-ratio: 1; max-height: 400px; display: flex; align-items: center; justify-content: center; background-image: radial-gradient(circle, var(--g300) 1px, transparent 1px); background-size: 24px 24px; border: var(--bw) solid var(--g200); border-radius: var(--r); }

/* Outcome 1: Leads */
.mock-lead { background: var(--white); border: var(--bw) solid var(--black); border-radius: var(--r); padding: 24px; width: 80%; box-shadow: var(--shadow-b-lg); display: flex; gap: 16px; animation: floatY 6s ease-in-out infinite; }
.lead-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--brand); border: var(--bw) solid var(--black); flex-shrink: 0; }
.lead-info { font-size: 0.95rem; line-height: 1.5; }
.text-green { color: #16a34a; font-weight: 600; display: inline-block; margin-top: 8px; }

/* Outcome 2: Schedule */
.mock-schedule { background: var(--white); border: var(--bw) solid var(--black); border-radius: var(--r); width: 80%; box-shadow: var(--shadow-b-lg); overflow: hidden; animation: floatY 7s ease-in-out infinite alternate; }
.schedule-item { padding: 20px; font-weight: 600; border-bottom: 1px dashed var(--g200); display: flex; align-items: center; gap: 12px; }
.schedule-item::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid var(--black); }
.schedule-travel { padding: 12px 20px 12px 44px; background: var(--g50); color: var(--g500); font-size: 0.8rem; font-family: var(--font-h); border-bottom: 1px dashed var(--g200); display: flex; align-items: center; gap: 8px; }
.schedule-travel::before { content: '↧'; }

/* Outcome 3: Cashflow */
.mock-invoice { background: var(--white); border: var(--bw) solid var(--black); border-radius: var(--r); padding: 32px; width: 80%; box-shadow: var(--shadow-y-hover); text-align: center; animation: floatY 5s ease-in-out infinite; }
.inv-amount { font-family: var(--font-h); font-size: 2.5rem; font-weight: 700; color: var(--g900); margin-bottom: 16px; }
.inv-status { display: inline-block; background: var(--black); color: var(--brand); padding: 8px 16px; border-radius: var(--r-full); font-size: 0.85rem; font-weight: 600; font-family: var(--font-h); letter-spacing: 0.05em; }

@keyframes floatY { 0% { transform: translateY(-5px); } 50% { transform: translateY(5px); } 100% { transform: translateY(-5px); } }

@media (max-width: 900px) { .outcome-block, .outcome-block.reverse { grid-template-columns: 1fr; gap: 40px; text-align: center; } .outcome-visual { max-height: 300px; } }

/* ── ANIMATION 3: LOCK SCREEN ──────────────── */
.lockscreen-section { background: var(--g900); color: var(--white); overflow: hidden; }
.lockscreen-section .t-label { color: var(--g400); }
.lockscreen-section .t-section { color: var(--white); }
.lockscreen-section p { color: var(--g400); }

.phone-mockup { width: 320px; height: 640px; background: #000; border: 12px solid #333; border-radius: 40px; margin: 0 auto; box-shadow: 0 40px 80px rgba(0,0,0,0.5); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.phone-screen { width: 100%; height: 100%; background: linear-gradient(135deg, #111, #222); padding: 40px 20px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.phone-time { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 4rem; font-weight: 200; color: rgba(255,255,255,0.9); margin-top: 40px; margin-bottom: 60px; }
.phone-notification { width: 100%; background: rgba(255,255,255,0.1); backdrop-filter: blur(16px); border-radius: 20px; padding: 16px; display: flex; gap: 14px; opacity: 0; transform: translateY(20px); animation: notifPop 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards; border: 1px solid rgba(255,255,255,0.1); }
.notif-icon { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.notif-icon img { width: 100%; height: 100%; object-fit: cover; }
.notif-content { text-align: left; }
.notif-content strong { display: block; font-size: 0.95rem; color: #fff; margin-bottom: 4px; }
.notif-content p { font-size: 0.85rem; color: rgba(255,255,255,0.8); line-height: 1.4; margin: 0; }

@keyframes notifPop { to { opacity: 1; transform: translateY(0); } }

/* ── PRICING SECTION ──────────────────────── */
.pricing-core { max-width: 500px; margin: 0 auto; padding: 48px; text-align: center; }
.pricing-price { font-family: var(--font-h); font-size: 3.5rem; font-weight: 700; color: var(--g900); line-height: 1; margin: 12px 0; }
.pricing-period { color: var(--g500); font-size: 0.9rem; font-family: var(--font-h); margin-bottom: 24px; }
.pricing-core ul { list-style: none; text-align: left; margin: 32px auto; display: inline-block; }
.pricing-core li { padding: 6px 0 6px 24px; font-size: 0.95rem; color: var(--g700); position: relative; font-weight: 500; }
.pricing-core li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; font-family: var(--font-h); }

/* ── FAQ ──────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: var(--bw) solid var(--g200); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 24px 0; background: none; border: none; color: var(--g900); font-family: var(--font-b); font-size: 1.1rem; font-weight: 600; text-align: left; cursor: pointer; transition: color 0.15s; }
.faq-q:hover { color: var(--g600); }
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.3s ease; stroke: var(--g900); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding-bottom: 24px; color: var(--g600); font-size: 1rem; line-height: 1.7; }

/* ── FOOTER ───────────────────────────────── */
.footer { border-top: var(--bw) solid var(--black); padding: 60px 0; background: var(--g50); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 48px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-h); font-weight: 700; font-size: 1.2rem; color: var(--g900); margin-bottom: 12px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-tagline { color: var(--g500); font-size: 0.95rem; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-h); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--g900); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--g600); font-size: 0.95rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--g900); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--g200); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--g500); font-size: 0.85rem; }

/* ── SCROLL REVEALS ───────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-d="1"] { transition-delay: 0.1s; }
.reveal[data-d="2"] { transition-delay: 0.2s; }
.reveal[data-d="3"] { transition-delay: 0.3s; }
.reveal[data-d="4"] { transition-delay: 0.4s; }

.hero-enter { opacity: 0; transform: translateY(20px); animation: heroEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-enter-1 { animation-delay: 0.1s; }
.hero-enter-2 { animation-delay: 0.2s; }
.hero-enter-3 { animation-delay: 0.3s; }
.hero-enter-4 { animation-delay: 0.45s; }
@keyframes heroEnter { to { opacity: 1; transform: translateY(0); } }

/* Hide old marquee for now, but keep utility classes if needed */
.marquee-section { display: none; }
