// SkyTabPage.jsx — Dedicated SkyTab POS page

window.useInView = window.useInView || ((threshold = 0.15) => {
  const ref = React.useRef(null);
  const [inView, setInView] = React.useState(false);
  React.useEffect(() => {
    const el = ref.current;
    if (!el) return;
    const obs = new IntersectionObserver(([e]) => {
      if (e.isIntersecting) { setInView(true); obs.disconnect(); }
    }, { threshold });
    obs.observe(el);
    return () => obs.disconnect();
  }, []);
  return [ref, inView];
});

const SkyTabPage = () => {
  const [scrolled, setScrolled] = React.useState(false);
  const [activeFeature, setActiveFeature] = React.useState(0);
  const [formData, setFormData] = React.useState({ name: '', business: '', email: '', phone: '', notes: '' });
  const [submitted, setSubmitted] = React.useState(false);

  React.useEffect(() => {
    const h = () => setScrolled(window.scrollY > 40);
    window.addEventListener('scroll', h);
    return () => window.removeEventListener('scroll', h);
  }, []);

  const [introRef,    introIn]    = window.useInView(0.1);
  const [whyRef,      whyIn]      = window.useInView(0.1);
  const [featRef,     featIn]     = window.useInView(0.08);
  const [hwRef,       hwIn]       = window.useInView(0.1);
  const [diffRef,     diffIn]     = window.useInView(0.1);
  const [processRef,  processIn]  = window.useInView(0.1);
  const [faqRef,      faqIn]      = window.useInView(0.1);
  const [ctaRef,      ctaIn]      = window.useInView(0.2);

    const navLinks = [
    { label: 'Line Cleaning',  href: 'index.html#line-cleaning' },
    { label: 'Why It Matters', href: 'index.html#why-it-matters' },
    { label: 'Service Area',   href: 'index.html#service-area' },
    
    { label: 'SkyTab POS',     href: 'skytab.html' },
    { label: 'All Services',   href: 'services.html' },
  ];

  // Big benefits
  const bigBenefits = [
    { num: '#1', label: "Canada's fastest-growing\nrestaurant POS" },
    { num: '24/7', label: 'Live, in-house\ncustomer support' },
    { num: '0%', label: 'Setup costs\non qualifying plans' },
    { num: '20+', label: 'Integrations including\nDoorDash & Uber Eats' },
  ];

  // Feature tabs
  const features = [
    {
      tag: 'Front of House',
      title: 'Lightning-fast service that keeps lines moving',
      body: 'Take orders, split checks, fire to the kitchen and process payments without ever leaving the table. SkyTab handhelds and terminals are built for the pace of real restaurants.',
      points: ['Tableside ordering & payments', 'Tipping built into checkout', 'Offline mode — never miss a sale', 'EMV, contactless & mobile wallets'],
    },
    {
      tag: 'Kitchen',
      title: 'Tickets land where they need to, when they need to',
      body: 'Smart routing sends orders to the right station automatically. KDS displays cut paper waste, prep timers keep tickets honest, and modifiers print exactly the way the line expects them.',
      points: ['Multi-station ticket routing', 'Real-time prep timers', 'Color-coded modifier alerts', 'Course firing & coursing controls'],
    },
    {
      tag: 'Online Ordering',
      title: 'Direct online orders — without commission fees',
      body: 'Your own branded ordering page that flows straight into your POS. No third-party tablet juggle. Plus deep integrations with DoorDash, Uber Eats and SkipTheDishes when you do want them.',
      points: ['Branded online ordering site', 'Direct-to-POS order flow', 'Delivery service integrations', 'QR code menu & order-at-table'],
    },
    {
      tag: 'Reporting & Insights',
      title: 'Know your numbers in real time, from anywhere',
      body: 'Live sales dashboards, labour costs vs. sales, top-performing menu items, server performance — pull it up on your phone before you walk in.',
      points: ['Live mobile dashboards', 'Labour-to-sales ratios', 'Menu engineering reports', 'Daily / weekly email summaries'],
    },
    {
      tag: 'Loyalty & Marketing',
      title: 'Turn one-time guests into regulars',
      body: 'Built-in loyalty, gift cards, and email marketing. Capture customer data automatically at checkout and send the right offer to the right person at the right time.',
      points: ['Built-in loyalty rewards', 'Digital gift cards', 'Email & SMS marketing', 'Automated guest segmentation'],
    },
  ];

  // Hardware
  const hardware = [
    { name: 'SkyTab Terminal', body: '14" countertop POS with built-in payment processing.', icon: (<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.4"><rect x="3" y="3" width="18" height="14" rx="2"/><line x1="2" y1="20" x2="22" y2="20"/><line x1="8" y1="20" x2="8" y2="17"/><line x1="16" y1="20" x2="16" y2="17"/></svg>) },
    { name: 'SkyTab Handheld', body: 'Tableside ordering and payments in your server\'s pocket.', icon: (<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.4"><rect x="6" y="2" width="12" height="20" rx="2"/><line x1="11" y1="18" x2="13" y2="18"/></svg>) },
    { name: 'Kitchen Display', body: 'Bump tickets, fire courses, and ditch the printer paper.', icon: (<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.4"><rect x="2" y="3" width="20" height="14" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/><line x1="6" y1="8" x2="14" y2="8"/><line x1="6" y1="12" x2="11" y2="12"/></svg>) },
    { name: 'Self-Order Kiosk', body: 'Quick-service self-checkout — perfect for QSR & cafés.', icon: (<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.4"><rect x="6" y="2" width="12" height="18" rx="1"/><line x1="6" y1="20" x2="18" y2="20"/><line x1="9" y1="22" x2="15" y2="22"/><circle cx="12" cy="11" r="3"/></svg>) },
    { name: 'Receipt Printer', body: 'Thermal printer for receipts and chits, kitchen-grade.', icon: (<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.4"><polyline points="6 9 6 2 18 2 18 9"/><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"/><rect x="6" y="14" width="12" height="8"/></svg>) },
    { name: 'Cash Drawer', body: 'Heavy-duty drawer that opens directly from the terminal.', icon: (<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.4"><rect x="3" y="6" width="18" height="14" rx="1"/><line x1="3" y1="11" x2="21" y2="11"/><circle cx="12" cy="15" r="1.5"/></svg>) },
  ];

  // Differentiators — why us, not anyone else
  const differentiators = [
    {
      title: 'Restaurant-First Setup',
      body: 'Tap Estate brings 20+ years behind the bar. Your menu gets built the way servers actually use it — not the way a generic installer assumes.',
      icon: (<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.7"><path d="M3 11h18M5 11V7a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v4"/><path d="M5 11v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-8"/></svg>),
    },
    {
      title: 'On-Site Training',
      body: 'Tap Estate walks your team through the system in person. Owners, managers, servers — everyone leaves shift one knowing exactly what to do.',
      icon: (<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.7"><path d="M22 10v6M2 10l10-5 10 5-10 5z"/><path d="M6 12v5c3 3 9 3 12 0v-5"/></svg>),
    },
    {
      title: 'Local Point of Contact',
      body: 'When something needs attention, the call goes to Tap Estate — not an offshore call centre. Local technician, local relationship, local accountability.',
      icon: (<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.7"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z"/><circle cx="12" cy="9" r="2.5"/></svg>),
    },
    {
      title: 'Bundled with Tap Estate',
      body: 'Combine SkyTab with line cleaning, AI inventory, and staff training — one relationship, one invoice, real cost savings.',
      icon: (<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.7"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/><polyline points="3.27 6.96 12 12.01 20.73 6.96"/><line x1="12" y1="22.08" x2="12" y2="12"/></svg>),
    },
  ];

  const process = [
    { num: '01', title: 'Free Consult', body: 'Walk Tap Estate through your venue, your current setup, and your pain points. 30 minutes, zero obligation.' },
    { num: '02', title: 'Custom Build', body: 'Tap Estate configures your menu, modifiers, table layout, payment processor, and integrations to match how you actually operate.' },
    { num: '03', title: 'On-Site Install', body: 'Hardware delivered and installed. Tap Estate is there in person to make sure it all comes online clean.' },
    { num: '04', title: 'Hands-On Training', body: 'Full walkthrough for your team. Every role. Every workflow. Tap Estate doesn\'t leave until everyone\'s confident.' },
    { num: '05', title: 'Ongoing Support', body: 'Local point of contact for questions, tweaks, new staff training, and 24/7 SkyTab back-end support.' },
  ];

  const faqs = [
    { q: 'How does pricing work?', a: 'SkyTab offers competitive monthly software fees with industry-low payment processing rates. Many plans include free hardware. Tap Estate builds a custom quote during your free consult — no obligation.' },
    { q: 'How long does setup take?', a: 'Most installs are fully operational within 2–3 weeks of your custom-build session. Larger venues with multiple terminals or complex menus may take a bit longer.' },
    { q: 'Will it work with my existing payment processor?', a: 'SkyTab is designed to work seamlessly with its built-in processing for the best rates and reliability — but Tap Estate can discuss your specific situation during the consult.' },
    { q: 'What about my current POS data?', a: 'Tap Estate helps you migrate menu items, customer data, and reporting history wherever possible. Part of the install conversation.' },
    { q: "Why go through Tap Estate instead of SkyTab directly?", a: "You get the same SkyTab system — but with a local Cicerone-certified hospitality pro handling setup, training, and support. No call centres. No generic installs. And bundling discounts when paired with our other services." },
  ];

  const handleSubmit = (e) => { e.preventDefault(); setSubmitted(true); };

  return (
    <div style={{ background: '#fff', minHeight: '100vh', fontFamily: "'Raleway', sans-serif" }}>

      {/* ── NAV ── */}
      <nav style={{
        position: 'sticky', top: 0, zIndex: 100,
        background: scrolled ? 'rgba(14,12,11,0.94)' : 'rgba(14,12,11,0.80)',
        backdropFilter: 'blur(14px)',
        borderBottom: '1px solid rgba(255,255,255,0.06)',
        transition: 'background 0.3s ease',
      }}>
        <div style={{ maxWidth: 1200, margin: '0 auto', padding: '0 32px', display: 'flex', alignItems: 'center', justifyContent: 'space-between', height: 68 }}>
          <a href="index.html" style={{ display: 'flex', alignItems: 'center', textDecoration: 'none' }}>
            <img src="assets/tap-estate-logo.png" alt="Tap Estate" style={{ height: 32, filter: 'brightness(0) invert(1)' }} />
          </a>
          <div style={{ display: 'flex', alignItems: 'center', gap: 32 }}>
            {navLinks.map(l => (
              <a key={l.label} href={l.href}
                style={{ color: 'rgba(255,255,255,0.70)', fontSize: 12, fontWeight: 700, textDecoration: 'none', letterSpacing: '0.08em', textTransform: 'uppercase', transition: 'color 0.2s' }}
                onMouseEnter={e => e.target.style.color = '#fff'}
                onMouseLeave={e => e.target.style.color = 'rgba(255,255,255,0.70)'}
              >{l.label}</a>
            ))}
            <span style={{ color: 'rgba(255,255,255,0.25)', fontSize: 14 }}>|</span>
            <span style={{ color: '#E8B422', fontSize: 12, fontWeight: 700, letterSpacing: '0.08em', textTransform: 'uppercase' }}>SkyTab POS</span>
          </div>
          <a href="tel:5192812337" style={{ display: 'flex', alignItems: 'center', gap: 8, background: '#8B1020', color: '#fff', padding: '9px 18px', fontSize: 13, fontWeight: 700, textDecoration: 'none', borderRadius: 3, letterSpacing: '0.05em', transition: 'background 0.2s' }}
            onMouseEnter={e => e.currentTarget.style.background = '#6B0C18'}
            onMouseLeave={e => e.currentTarget.style.background = '#8B1020'}
          >519-281-2337</a>
        </div>
      </nav>

      {/* ── HERO ── */}
      <section style={{ position: 'relative', overflow: 'hidden', background: '#0E0C0B' }}>
        <div style={{ position: 'absolute', inset: 0, backgroundImage: 'url(https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=1800&q=80&auto=format&fit=crop)', backgroundSize: 'cover', backgroundPosition: 'center', zIndex: 0 }} />
        <div style={{ position: 'absolute', inset: 0, background: 'linear-gradient(105deg, rgba(10,6,4,0.95) 0%, rgba(10,6,4,0.78) 50%, rgba(10,6,4,0.65) 100%)', zIndex: 1 }} />
        <div style={{ position: 'absolute', top: '5%', right: '5%', width: 480, height: 480, background: 'radial-gradient(circle, rgba(232,180,34,0.10) 0%, transparent 65%)', zIndex: 2 }} />

        <div style={{ position: 'relative', zIndex: 10, maxWidth: 1200, margin: '0 auto', padding: '72px 32px 88px', display: 'grid', gridTemplateColumns: '1fr 400px', gap: 56, alignItems: 'center' }}>
          <div>
            {/* Breadcrumb */}
            <div style={{ display: 'flex', alignItems: 'center', gap: 8, marginBottom: 24, animation: 'fadeInUp 0.5s ease both' }}>
              <a href="index.html" style={{ fontSize: 12, color: 'rgba(255,255,255,0.45)', textDecoration: 'none', letterSpacing: '0.06em', textTransform: 'uppercase', fontWeight: 600, transition: 'color 0.2s' }}
                onMouseEnter={e => e.target.style.color = 'rgba(255,255,255,0.75)'}
                onMouseLeave={e => e.target.style.color = 'rgba(255,255,255,0.45)'}
              >Home</a>
              <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="rgba(255,255,255,0.3)" strokeWidth="2.5"><polyline points="9 18 15 12 9 6"/></svg>
              <span style={{ fontSize: 12, color: '#E8B422', letterSpacing: '0.06em', textTransform: 'uppercase', fontWeight: 600 }}>SkyTab POS</span>
            </div>

            {/* Partner badge */}
            <div style={{ display: 'inline-flex', alignItems: 'center', gap: 8, padding: '7px 14px', background: 'rgba(232,180,34,0.12)', border: '1px solid rgba(232,180,34,0.32)', borderRadius: 2, marginBottom: 22, animation: 'fadeInUp 0.55s ease both', animationDelay: '0.1s' }}>
              <svg width="11" height="11" viewBox="0 0 24 24" fill="#E8B422"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg>
              <span style={{ fontSize: 10.5, fontWeight: 700, letterSpacing: '0.18em', textTransform: 'uppercase', color: '#E8B422' }}>Official SkyTab Partner</span>
            </div>

            <h1 style={{ fontSize: 'clamp(48px, 6.5vw, 80px)', fontWeight: 800, textTransform: 'uppercase', color: '#fff', lineHeight: 0.92, margin: '0 0 26px', letterSpacing: '-0.01em', animation: 'fadeInUp 0.7s ease both', animationDelay: '0.2s' }}>
              The POS Built<br/>For The Way<br/><span style={{ color: '#E8B422' }}>You Actually</span><br/>Run Service.
            </h1>

            <p style={{ fontSize: 17, color: 'rgba(255,255,255,0.85)', lineHeight: 1.65, maxWidth: 520, margin: '0 0 36px', animation: 'fadeInUp 0.6s ease both', animationDelay: '0.32s' }}>
              SkyTab is Canada's fastest-growing restaurant POS — and Tap Estate is your local Official Partner for setup, training, and support.
            </p>

            <div style={{ display: 'flex', gap: 12, flexWrap: 'wrap', animation: 'fadeInUp 0.6s ease both', animationDelay: '0.44s' }}>
              <button onClick={() => document.getElementById('demo-form').scrollIntoView({ behavior: 'smooth' })}
                style={{ background: '#E8B422', color: '#1A1210', border: 'none', padding: '14px 26px', fontSize: 12, fontWeight: 800, letterSpacing: '0.10em', textTransform: 'uppercase', cursor: 'pointer', borderRadius: 3, display: 'inline-flex', alignItems: 'center', gap: 9, transition: 'background 0.2s, transform 0.15s' }}
                onMouseEnter={e => { e.currentTarget.style.background = '#F5CC6A'; e.currentTarget.style.transform = 'translateY(-1px)'; }}
                onMouseLeave={e => { e.currentTarget.style.background = '#E8B422'; e.currentTarget.style.transform = 'translateY(0)'; }}
              >Request a Free Demo →</button>
              <a href="tel:5192812337" style={{ background: 'transparent', color: '#fff', border: '1.5px solid rgba(255,255,255,0.30)', padding: '14px 26px', fontSize: 12, fontWeight: 700, letterSpacing: '0.10em', textTransform: 'uppercase', borderRadius: 3, textDecoration: 'none', display: 'inline-flex', alignItems: 'center', gap: 9, transition: 'border-color 0.2s' }}
                onMouseEnter={e => e.currentTarget.style.borderColor = 'rgba(255,255,255,0.65)'}
                onMouseLeave={e => e.currentTarget.style.borderColor = 'rgba(255,255,255,0.30)'}
              >Call 519-281-2337</a>
            </div>
          </div>

          {/* Right — demo form */}
          <div id="demo-form" style={{ background: 'rgba(139,16,32,0.97)', padding: '32px 28px', borderRadius: 4, boxShadow: '0 24px 64px rgba(0,0,0,0.45)', border: '1px solid rgba(255,255,255,0.06)', animation: 'fadeInRight 0.8s ease both', animationDelay: '0.3s' }}>
            {submitted ? (
              <div style={{ textAlign: 'center', padding: '28px 0' }}>
                <div style={{ width: 56, height: 56, borderRadius: '50%', background: 'rgba(232,180,34,0.15)', border: '2px solid #E8B422', display: 'flex', alignItems: 'center', justifyContent: 'center', margin: '0 auto 20px', fontSize: 24, color: '#E8B422' }}>✓</div>
                <div style={{ fontSize: 26, fontWeight: 800, color: '#fff', textTransform: 'uppercase', lineHeight: 1.1, marginBottom: 12 }}>Demo Requested!</div>
                <div style={{ fontSize: 14, color: 'rgba(255,255,255,0.65)', lineHeight: 1.6 }}>Tap Estate will reach out within one business day to set up your walkthrough.</div>
              </div>
            ) : (
              <form onSubmit={handleSubmit}>
                <div style={{ marginBottom: 20 }}>
                  <div style={{ fontSize: 11, fontWeight: 700, letterSpacing: '0.15em', textTransform: 'uppercase', color: 'rgba(255,255,255,0.55)', marginBottom: 8 }}>Get a Live Demo</div>
                  <div style={{ fontSize: 24, fontWeight: 800, textTransform: 'uppercase', color: '#fff', lineHeight: 1.05, marginBottom: 8 }}>See SkyTab in Action</div>
                  <div style={{ width: 36, height: 2, background: '#E8B422', marginBottom: 12 }}></div>
                  <div style={{ fontSize: 13, color: 'rgba(255,255,255,0.78)', lineHeight: 1.5 }}>30-minute walkthrough. Tailored to your venue. Zero pressure.</div>
                </div>
                <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 8, marginBottom: 8 }}>
                  <input placeholder="Your Name" value={formData.name} onChange={e => setFormData({...formData, name: e.target.value})} style={demoInputStyle} />
                  <input placeholder="Business Name" value={formData.business} onChange={e => setFormData({...formData, business: e.target.value})} style={demoInputStyle} />
                </div>
                <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 8, marginBottom: 8 }}>
                  <input placeholder="Email" type="email" value={formData.email} onChange={e => setFormData({...formData, email: e.target.value})} style={demoInputStyle} />
                  <input placeholder="Phone" type="tel" value={formData.phone} onChange={e => setFormData({...formData, phone: e.target.value})} style={demoInputStyle} />
                </div>
                <textarea placeholder="What's your current setup? (optional)" value={formData.notes} onChange={e => setFormData({...formData, notes: e.target.value})} style={{ ...demoInputStyle, resize: 'none', height: 72, marginBottom: 12 }} />
                <button type="submit" style={{ width: '100%', background: '#E8B422', color: '#1A1210', border: 'none', padding: '14px', fontSize: 13, fontWeight: 800, letterSpacing: '0.08em', textTransform: 'uppercase', cursor: 'pointer', borderRadius: 3, transition: 'background 0.2s' }}
                  onMouseEnter={e => e.currentTarget.style.background = '#F5CC6A'}
                  onMouseLeave={e => e.currentTarget.style.background = '#E8B422'}
                >Request a Free Demo →</button>
                <div style={{ fontSize: 11, color: 'rgba(255,255,255,0.30)', textAlign: 'center', marginTop: 10 }}>No spam. No pressure. Local response.</div>
              </form>
            )}
          </div>
        </div>
      </section>

      {/* ── BIG STATS STRIP ── */}
      <section ref={introRef} style={{ background: '#1A1210', padding: '48px 32px', borderBottom: '1px solid rgba(255,255,255,0.06)' }}>
        <div style={{ maxWidth: 1200, margin: '0 auto', display: 'grid', gridTemplateColumns: 'repeat(4, 1fr)', gap: 24 }}>
          {bigBenefits.map((s, i) => (
            <div key={s.label} style={{ textAlign: 'center', opacity: introIn ? 1 : 0, transform: introIn ? 'translateY(0)' : 'translateY(20px)', transition: `opacity 0.6s ease ${i * 0.1}s, transform 0.6s ease ${i * 0.1}s` }}>
              <div style={{ fontSize: 44, fontWeight: 800, color: '#E8B422', lineHeight: 1, marginBottom: 6, letterSpacing: '-0.02em' }}>{s.num}</div>
              <div style={{ fontSize: 12, color: 'rgba(255,255,255,0.6)', letterSpacing: '0.06em', textTransform: 'uppercase', fontWeight: 600, lineHeight: 1.4, whiteSpace: 'pre-line' }}>{s.label}</div>
            </div>
          ))}
        </div>
      </section>

      {/* ── WHY SKYTAB / WHY NOW ── */}
      <section style={{ background: '#fff', padding: '96px 32px' }}>
        <div ref={whyRef} style={{ maxWidth: 1200, margin: '0 auto', display: 'grid', gridTemplateColumns: '1fr 1.2fr', gap: 64, alignItems: 'center' }}>
          <div style={{ opacity: whyIn ? 1 : 0, transform: whyIn ? 'translateX(0)' : 'translateX(-28px)', transition: 'opacity 0.7s ease, transform 0.7s ease' }}>
            <div style={{ display: 'inline-flex', alignItems: 'center', gap: 10, marginBottom: 16 }}>
              <div style={{ width: 24, height: 1.5, background: '#8B1020' }}></div>
              <span style={{ fontSize: 11, fontWeight: 700, letterSpacing: '0.18em', textTransform: 'uppercase', color: '#8B1020' }}>Why SkyTab</span>
            </div>
            <h2 style={{ fontSize: 'clamp(30px, 3.6vw, 46px)', fontWeight: 800, textTransform: 'uppercase', color: '#0E0C0B', lineHeight: 0.96, margin: '0 0 22px' }}>
              An Old POS Is<br/>Costing You<br/><span style={{ color: '#8B1020' }}>Real Money.</span>
            </h2>
            <p style={{ fontSize: 15.5, color: '#3C3432', lineHeight: 1.75, margin: 0 }}>
              Slow checkouts. Unreliable hardware. Reports that take 20 minutes to load. Online orders coming in on three different tablets. Sound familiar? SkyTab solves all of it — in one connected platform, with hardware that's actually built for restaurants.
            </p>
          </div>

          <div style={{ opacity: whyIn ? 1 : 0, transform: whyIn ? 'translateX(0)' : 'translateX(28px)', transition: 'opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s' }}>
            <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 1, background: '#EEECEB', border: '1px solid #EEECEB', borderRadius: 4, overflow: 'hidden' }}>
              {/* Old POS column */}
              <div style={{ background: '#fff', padding: '28px 24px' }}>
                <div style={{ fontSize: 10, fontWeight: 700, letterSpacing: '0.16em', textTransform: 'uppercase', color: '#9A9692', marginBottom: 14 }}>Old POS</div>
                {['Tablet juggling', 'Hidden processing fees', 'Offshore support tickets', 'Reports lag the floor', 'Patchy integrations'].map(t => (
                  <div key={t} style={{ display: 'flex', alignItems: 'center', gap: 10, padding: '10px 0', borderBottom: '1px solid #F5F4F2' }}>
                    <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#9A9692" strokeWidth="2.5"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
                    <span style={{ fontSize: 13, color: '#9A9692' }}>{t}</span>
                  </div>
                ))}
              </div>
              {/* SkyTab column */}
              <div style={{ background: '#FFFCF2', padding: '28px 24px', borderLeft: '3px solid #E8B422' }}>
                <div style={{ fontSize: 10, fontWeight: 700, letterSpacing: '0.16em', textTransform: 'uppercase', color: '#8B1020', marginBottom: 14 }}>SkyTab + Tap Estate</div>
                {['One unified platform', 'Industry-low rates', '24/7 in-house support', 'Live mobile dashboards', 'DoorDash, UberEats & more'].map(t => (
                  <div key={t} style={{ display: 'flex', alignItems: 'center', gap: 10, padding: '10px 0', borderBottom: '1px solid #F5EFD8' }}>
                    <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#8B1020" strokeWidth="2.5"><polyline points="20 6 9 17 4 12"/></svg>
                    <span style={{ fontSize: 13, color: '#0E0C0B', fontWeight: 600 }}>{t}</span>
                  </div>
                ))}
              </div>
            </div>
          </div>
        </div>
      </section>

      {/* ── FEATURE TABS ── */}
      <section style={{ background: '#F5F4F2', padding: '96px 32px' }}>
        <div style={{ maxWidth: 1200, margin: '0 auto' }}>
          <div ref={featRef} style={{ textAlign: 'center', marginBottom: 48, opacity: featIn ? 1 : 0, transform: featIn ? 'translateY(0)' : 'translateY(22px)', transition: 'opacity 0.6s ease, transform 0.6s ease' }}>
            <div style={{ display: 'inline-flex', alignItems: 'center', gap: 10, marginBottom: 14 }}>
              <div style={{ width: 24, height: 1.5, background: '#8B1020' }}></div>
              <span style={{ fontSize: 11, fontWeight: 700, letterSpacing: '0.18em', textTransform: 'uppercase', color: '#8B1020' }}>Built For Hospitality</span>
              <div style={{ width: 24, height: 1.5, background: '#8B1020' }}></div>
            </div>
            <h2 style={{ fontSize: 'clamp(28px, 3.4vw, 44px)', fontWeight: 800, textTransform: 'uppercase', color: '#0E0C0B', margin: 0 }}>One System. Every Workflow.</h2>
          </div>

          {/* Tab bar */}
          <div style={{ display: 'flex', gap: 0, borderBottom: '2px solid #DCDAD7', marginBottom: 40, flexWrap: 'wrap' }}>
            {features.map((f, i) => (
              <button key={f.tag} onClick={() => setActiveFeature(i)}
                style={{
                  flex: '1 0 auto', padding: '14px 20px', border: 'none', cursor: 'pointer', fontFamily: "'Raleway',sans-serif", fontSize: 12, fontWeight: 700, letterSpacing: '0.08em', textTransform: 'uppercase',
                  background: 'transparent',
                  color: activeFeature === i ? '#8B1020' : '#9A9692',
                  borderBottom: `2px solid ${activeFeature === i ? '#8B1020' : 'transparent'}`,
                  marginBottom: -2,
                  transition: 'all 0.2s',
                }}>{f.tag}</button>
            ))}
          </div>

          {/* Active feature */}
          {features.map((f, fi) => fi === activeFeature && (
            <div key={f.tag} style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 64, alignItems: 'center', animation: 'fadeInUp 0.4s ease both' }}>
              <div>
                <div style={{ fontSize: 11, fontWeight: 700, letterSpacing: '0.16em', textTransform: 'uppercase', color: '#8B1020', marginBottom: 12 }}>{f.tag}</div>
                <h3 style={{ fontSize: 'clamp(24px, 2.8vw, 34px)', fontWeight: 800, color: '#0E0C0B', lineHeight: 1.1, margin: '0 0 16px' }}>{f.title}</h3>
                <p style={{ fontSize: 15, color: '#555550', lineHeight: 1.7, margin: '0 0 24px' }}>{f.body}</p>
                <div style={{ display: 'flex', flexDirection: 'column', gap: 10 }}>
                  {f.points.map(p => (
                    <div key={p} style={{ display: 'flex', alignItems: 'center', gap: 10 }}>
                      <div style={{ width: 18, height: 18, borderRadius: '50%', background: '#FDF0F1', border: '1.5px solid #F0A8B0', display: 'flex', alignItems: 'center', justifyContent: 'center', flexShrink: 0 }}>
                        <svg width="9" height="9" viewBox="0 0 24 24" fill="none" stroke="#8B1020" strokeWidth="3"><polyline points="20 6 9 17 4 12"/></svg>
                      </div>
                      <span style={{ fontSize: 14, color: '#0E0C0B', fontWeight: 500 }}>{p}</span>
                    </div>
                  ))}
                </div>
              </div>

              {/* Visual placeholder card */}
              <div style={{ background: '#0E0C0B', borderRadius: 4, padding: 32, position: 'relative', overflow: 'hidden', minHeight: 360, display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
                <div style={{ position: 'absolute', inset: 0, background: 'radial-gradient(circle at 70% 30%, rgba(232,180,34,0.10) 0%, transparent 60%)' }}></div>
                <div style={{ position: 'relative', textAlign: 'center' }}>
                  <div style={{ width: 96, height: 96, borderRadius: 4, background: 'rgba(232,180,34,0.10)', border: '1px solid rgba(232,180,34,0.30)', display: 'flex', alignItems: 'center', justifyContent: 'center', margin: '0 auto 22px', color: '#E8B422' }}>
                    <svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.4">
                      {fi === 0 && (<><rect x="6" y="2" width="12" height="20" rx="2"/><line x1="11" y1="18" x2="13" y2="18"/></>)}
                      {fi === 1 && (<><rect x="2" y="3" width="20" height="14" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></>)}
                      {fi === 2 && (<><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></>)}
                      {fi === 3 && (<><line x1="18" y1="20" x2="18" y2="10"/><line x1="12" y1="20" x2="12" y2="4"/><line x1="6" y1="20" x2="6" y2="14"/></>)}
                      {fi === 4 && (<><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></>)}
                    </svg>
                  </div>
                  <div style={{ fontSize: 13, fontWeight: 700, color: 'rgba(232,180,34,0.7)', letterSpacing: '0.18em', textTransform: 'uppercase' }}>{f.tag}</div>
                  <div style={{ fontSize: 18, fontWeight: 700, color: '#fff', marginTop: 8 }}>SkyTab Module</div>
                </div>
              </div>
            </div>
          ))}
        </div>
      </section>

      {/* ── HARDWARE GRID ── */}
      <section style={{ background: '#fff', padding: '96px 32px' }}>
        <div style={{ maxWidth: 1200, margin: '0 auto' }}>
          <div ref={hwRef} style={{ textAlign: 'center', marginBottom: 56, opacity: hwIn ? 1 : 0, transform: hwIn ? 'translateY(0)' : 'translateY(22px)', transition: 'opacity 0.6s ease, transform 0.6s ease' }}>
            <div style={{ display: 'inline-flex', alignItems: 'center', gap: 10, marginBottom: 14 }}>
              <div style={{ width: 24, height: 1.5, background: '#8B1020' }}></div>
              <span style={{ fontSize: 11, fontWeight: 700, letterSpacing: '0.18em', textTransform: 'uppercase', color: '#8B1020' }}>The Hardware</span>
              <div style={{ width: 24, height: 1.5, background: '#8B1020' }}></div>
            </div>
            <h2 style={{ fontSize: 'clamp(28px, 3.4vw, 44px)', fontWeight: 800, textTransform: 'uppercase', color: '#0E0C0B', margin: '0 0 12px' }}>Built for the Heat of Service</h2>
            <p style={{ fontSize: 15, color: '#706C6A', maxWidth: 560, margin: '0 auto' }}>Restaurant-grade hardware that survives spills, slammed buttons, and Friday nights.</p>
          </div>

          <div style={{ display: 'grid', gridTemplateColumns: 'repeat(3, 1fr)', gap: 20 }}>
            {hardware.map((h, i) => (
              <div key={h.name} style={{
                background: '#FAFAF9', border: '1px solid #EEECEB', borderRadius: 4, padding: '32px 28px',
                opacity: hwIn ? 1 : 0,
                transform: hwIn ? 'translateY(0)' : 'translateY(22px)',
                transition: `opacity 0.5s ease ${i * 0.08}s, transform 0.5s ease ${i * 0.08}s`,
              }}>
                <div style={{ width: 64, height: 64, borderRadius: 4, background: '#fff', border: '1px solid #EEECEB', display: 'flex', alignItems: 'center', justifyContent: 'center', color: '#8B1020', marginBottom: 20 }}>
                  {h.icon}
                </div>
                <div style={{ fontSize: 16, fontWeight: 800, color: '#0E0C0B', marginBottom: 8, textTransform: 'uppercase', letterSpacing: '0.01em' }}>{h.name}</div>
                <div style={{ fontSize: 13.5, color: '#706C6A', lineHeight: 1.65 }}>{h.body}</div>
              </div>
            ))}
          </div>
        </div>
      </section>

      {/* ── WHY THROUGH TAP ESTATE ── */}
      <section style={{ background: '#0E0C0B', padding: '96px 32px', position: 'relative', overflow: 'hidden' }}>
        <div style={{ position: 'absolute', top: '-10%', right: '-5%', width: 480, height: 480, background: 'radial-gradient(circle, rgba(232,180,34,0.06) 0%, transparent 65%)', pointerEvents: 'none' }}></div>

        <div ref={diffRef} style={{ position: 'relative', maxWidth: 1200, margin: '0 auto' }}>
          <div style={{ textAlign: 'center', marginBottom: 56, opacity: diffIn ? 1 : 0, transform: diffIn ? 'translateY(0)' : 'translateY(22px)', transition: 'opacity 0.6s ease, transform 0.6s ease' }}>
            <div style={{ display: 'inline-flex', alignItems: 'center', gap: 10, marginBottom: 14 }}>
              <div style={{ width: 24, height: 1.5, background: '#E8B422' }}></div>
              <span style={{ fontSize: 11, fontWeight: 700, letterSpacing: '0.18em', textTransform: 'uppercase', color: '#E8B422' }}>The Tap Estate Difference</span>
              <div style={{ width: 24, height: 1.5, background: '#E8B422' }}></div>
            </div>
            <h2 style={{ fontSize: 'clamp(30px, 4vw, 50px)', fontWeight: 800, textTransform: 'uppercase', color: '#fff', margin: '0 0 16px', lineHeight: 1.0, letterSpacing: '-0.01em' }}>
              Same SkyTab. <span style={{ color: '#E8B422' }}>Better Partner.</span>
            </h2>
            <p style={{ fontSize: 15, color: 'rgba(255,255,255,0.65)', maxWidth: 600, margin: '0 auto', lineHeight: 1.7 }}>
              You can buy SkyTab directly. Or you can have a Cicerone-certified hospitality pro with 20+ years behind the bar handle every step of it — for the same price.
            </p>
          </div>

          <div style={{ display: 'grid', gridTemplateColumns: 'repeat(4, 1fr)', gap: 16 }}>
            {differentiators.map((d, i) => (
              <div key={d.title} style={{
                background: '#1A1210', border: '1px solid rgba(255,255,255,0.06)', borderRadius: 4, padding: '32px 26px',
                opacity: diffIn ? 1 : 0,
                transform: diffIn ? 'translateY(0)' : 'translateY(22px)',
                transition: `opacity 0.5s ease ${0.2 + i * 0.1}s, transform 0.5s ease ${0.2 + i * 0.1}s`,
              }}>
                <div style={{ width: 44, height: 44, borderRadius: 4, background: 'rgba(232,180,34,0.12)', border: '1px solid rgba(232,180,34,0.22)', color: '#E8B422', display: 'flex', alignItems: 'center', justifyContent: 'center', marginBottom: 20 }}>
                  {d.icon}
                </div>
                <div style={{ fontSize: 14.5, fontWeight: 800, color: '#fff', marginBottom: 10, textTransform: 'uppercase', letterSpacing: '0.01em' }}>{d.title}</div>
                <div style={{ fontSize: 13, color: 'rgba(255,255,255,0.65)', lineHeight: 1.65 }}>{d.body}</div>
              </div>
            ))}
          </div>
        </div>
      </section>

      {/* ── PROCESS ── */}
      <section style={{ background: '#F5F4F2', padding: '96px 32px' }}>
        <div style={{ maxWidth: 1200, margin: '0 auto' }}>
          <div ref={processRef} style={{ textAlign: 'center', marginBottom: 56, opacity: processIn ? 1 : 0, transform: processIn ? 'translateY(0)' : 'translateY(22px)', transition: 'opacity 0.6s ease, transform 0.6s ease' }}>
            <div style={{ display: 'inline-flex', alignItems: 'center', gap: 10, marginBottom: 14 }}>
              <div style={{ width: 24, height: 1.5, background: '#8B1020' }}></div>
              <span style={{ fontSize: 11, fontWeight: 700, letterSpacing: '0.18em', textTransform: 'uppercase', color: '#8B1020' }}>How It Works</span>
              <div style={{ width: 24, height: 1.5, background: '#8B1020' }}></div>
            </div>
            <h2 style={{ fontSize: 'clamp(28px, 3.4vw, 44px)', fontWeight: 800, textTransform: 'uppercase', color: '#0E0C0B', margin: 0 }}>From Consult to First Pour</h2>
          </div>

          <div style={{ display: 'grid', gridTemplateColumns: 'repeat(5, 1fr)', gap: 16, position: 'relative' }}>
            <div style={{ position: 'absolute', top: 30, left: '10%', right: '10%', height: 1, background: 'linear-gradient(to right, transparent, #DCDAD7 15%, #DCDAD7 85%, transparent)', zIndex: 0 }}></div>
            {process.map((p, i) => (
              <div key={p.num} style={{
                background: '#fff', border: '1px solid #EEECEB', borderTop: '3px solid #8B1020', borderRadius: 4, padding: '28px 22px',
                position: 'relative', zIndex: 1,
                opacity: processIn ? 1 : 0,
                transform: processIn ? 'translateY(0)' : 'translateY(20px)',
                transition: `opacity 0.5s ease ${i * 0.1}s, transform 0.5s ease ${i * 0.1}s`,
              }}>
                <div style={{ width: 38, height: 38, borderRadius: '50%', background: '#8B1020', display: 'flex', alignItems: 'center', justifyContent: 'center', marginBottom: 16, fontSize: 13, fontWeight: 800, color: '#fff', letterSpacing: '0.04em' }}>{p.num}</div>
                <div style={{ fontSize: 14.5, fontWeight: 800, color: '#0E0C0B', marginBottom: 8, lineHeight: 1.25, textTransform: 'uppercase', letterSpacing: '0.01em' }}>{p.title}</div>
                <div style={{ fontSize: 12.5, color: '#706C6A', lineHeight: 1.6 }}>{p.body}</div>
              </div>
            ))}
          </div>
        </div>
      </section>

      {/* ── FAQ ── */}
      <section style={{ background: '#fff', padding: '96px 32px' }}>
        <div ref={faqRef} style={{ maxWidth: 880, margin: '0 auto' }}>
          <div style={{ textAlign: 'center', marginBottom: 48, opacity: faqIn ? 1 : 0, transform: faqIn ? 'translateY(0)' : 'translateY(20px)', transition: 'opacity 0.6s ease, transform 0.6s ease' }}>
            <div style={{ display: 'inline-flex', alignItems: 'center', gap: 10, marginBottom: 14 }}>
              <div style={{ width: 24, height: 1.5, background: '#8B1020' }}></div>
              <span style={{ fontSize: 11, fontWeight: 700, letterSpacing: '0.18em', textTransform: 'uppercase', color: '#8B1020' }}>Common Questions</span>
              <div style={{ width: 24, height: 1.5, background: '#8B1020' }}></div>
            </div>
            <h2 style={{ fontSize: 'clamp(28px, 3.4vw, 42px)', fontWeight: 800, textTransform: 'uppercase', color: '#0E0C0B', margin: 0 }}>Got Questions?</h2>
          </div>

          <div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>
            {faqs.map((f, i) => (
              <FaqItem key={i} q={f.q} a={f.a} idx={i} inView={faqIn} />
            ))}
          </div>
        </div>
      </section>

      {/* ── CTA Band ── */}
      <section style={{ background: '#8B1020', padding: '72px 32px', position: 'relative', overflow: 'hidden' }}>
        <div style={{ position: 'absolute', inset: 0, background: 'radial-gradient(ellipse at 80% 50%, rgba(232,180,34,0.08) 0%, transparent 60%)', pointerEvents: 'none' }}></div>
        <div ref={ctaRef} style={{ maxWidth: 1200, margin: '0 auto', display: 'grid', gridTemplateColumns: '1fr auto', gap: 48, alignItems: 'center', opacity: ctaIn ? 1 : 0, transform: ctaIn ? 'translateY(0)' : 'translateY(20px)', transition: 'opacity 0.7s ease, transform 0.7s ease' }}>
          <div>
            <div style={{ fontSize: 11, fontWeight: 700, letterSpacing: '0.18em', textTransform: 'uppercase', color: 'rgba(232,180,34,0.8)', marginBottom: 12 }}>Ready to upgrade?</div>
            <h2 style={{ fontSize: 'clamp(26px, 4vw, 44px)', fontWeight: 800, textTransform: 'uppercase', color: '#fff', margin: '0 0 8px', lineHeight: 1.0 }}>See SkyTab in Your Restaurant</h2>
            <p style={{ fontSize: 15, color: 'rgba(255,255,255,0.65)', margin: 0 }}>Free 30-minute walkthrough. Custom-quoted for your venue.</p>
          </div>
          <div style={{ display: 'flex', flexDirection: 'column', gap: 10, alignItems: 'flex-end' }}>
            <button onClick={() => document.getElementById('demo-form').scrollIntoView({ behavior: 'smooth' })}
              style={{ background: '#E8B422', color: '#1A1210', border: 'none', padding: '16px 32px', fontSize: 13, fontWeight: 800, letterSpacing: '0.09em', textTransform: 'uppercase', cursor: 'pointer', borderRadius: 3, whiteSpace: 'nowrap', transition: 'background 0.2s' }}
              onMouseEnter={e => e.currentTarget.style.background = '#F5CC6A'}
              onMouseLeave={e => e.currentTarget.style.background = '#E8B422'}
            >Request a Free Demo →</button>
            <a href="tel:5192812337" style={{ fontSize: 13, color: 'rgba(255,255,255,0.75)', textDecoration: 'none', letterSpacing: '0.04em' }}>or call 519-281-2337</a>
          </div>
        </div>
      </section>

      {/* ── FOOTER ── */}
      <footer style={{ background: '#1A1210', padding: '64px 32px 28px' }}>
        <div style={{ maxWidth: 1200, margin: '0 auto' }}>
          <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', flexWrap: 'wrap', gap: 18 }}>
            <div style={{ display: 'flex', alignItems: 'center', gap: 24 }}>
              <img src="assets/tap-estate-logo.png" alt="Tap Estate" style={{ height: 28, filter: 'brightness(0) invert(1)' }} />
              <div style={{ fontSize: 13, color: 'rgba(255,255,255,0.55)' }}>© 2025 Tap Estate · Southwestern Ontario</div>
            </div>
            <div style={{ display: 'flex', gap: 22 }}>
              <a href="index.html" style={{ fontSize: 12, color: 'rgba(255,255,255,0.65)', textDecoration: 'none', letterSpacing: '0.04em', textTransform: 'uppercase', fontWeight: 700 }}>Home</a>
              <a href="services.html" style={{ fontSize: 12, color: 'rgba(255,255,255,0.65)', textDecoration: 'none', letterSpacing: '0.04em', textTransform: 'uppercase', fontWeight: 700 }}>All Services</a>
              <a href="tel:5192812337" style={{ fontSize: 12, color: '#E8B422', textDecoration: 'none', letterSpacing: '0.04em', textTransform: 'uppercase', fontWeight: 700 }}>519-281-2337</a>
            </div>
          </div>
        </div>
      </footer>
    </div>
  );
};

const demoInputStyle = {
  padding: '11px 14px', fontFamily: "'Raleway', sans-serif", fontSize: 14,
  background: 'rgba(255,255,255,0.08)', border: '1px solid rgba(255,255,255,0.18)',
  borderRadius: 3, color: '#fff', outline: 'none', boxSizing: 'border-box', width: '100%',
};

// FAQ accordion item
const FaqItem = ({ q, a, idx, inView }) => {
  const [open, setOpen] = React.useState(false);
  return (
    <div style={{
      border: '1px solid #EEECEB', borderRadius: 4, overflow: 'hidden', background: open ? '#FAFAF9' : '#fff',
      opacity: inView ? 1 : 0, transform: inView ? 'translateY(0)' : 'translateY(14px)',
      transition: `opacity 0.5s ease ${idx * 0.06}s, transform 0.5s ease ${idx * 0.06}s, background 0.2s`,
    }}>
      <button onClick={() => setOpen(o => !o)} style={{
        width: '100%', padding: '20px 24px', background: 'transparent', border: 'none', cursor: 'pointer',
        display: 'flex', alignItems: 'center', justifyContent: 'space-between', textAlign: 'left',
        fontFamily: "'Raleway',sans-serif",
      }}>
        <span style={{ fontSize: 15, fontWeight: 700, color: '#0E0C0B' }}>{q}</span>
        <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#8B1020" strokeWidth="2.5" style={{ transform: open ? 'rotate(45deg)' : 'rotate(0deg)', transition: 'transform 0.2s', flexShrink: 0, marginLeft: 16 }}>
          <line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/>
        </svg>
      </button>
      {open && (
        <div style={{ padding: '0 24px 22px', fontSize: 14, color: '#555550', lineHeight: 1.7, animation: 'fadeInUp 0.25s ease both' }}>{a}</div>
      )}
    </div>
  );
};

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<SkyTabPage />);
