diff --git a/src/Router.tsx b/src/Router.tsx index 58a8e33..5fcbc25 100644 --- a/src/Router.tsx +++ b/src/Router.tsx @@ -72,10 +72,10 @@ export default function Router() { function LoadingScreen() { return ( -
+
-
-

Loading...

+
+

Loading…

); diff --git a/src/components/landing/Features.tsx b/src/components/landing/Features.tsx index 2040167..07d2754 100644 --- a/src/components/landing/Features.tsx +++ b/src/components/landing/Features.tsx @@ -66,7 +66,7 @@ export default function Features() {

{f.title}

-

{f.desc}

+

{f.desc}

))}
@@ -100,7 +100,7 @@ export default function Features() { {v.points.map((pt, j) => (
  • - {pt} + {pt}
  • ))} diff --git a/src/components/landing/FinalCTA.tsx b/src/components/landing/FinalCTA.tsx index f42e724..7cb03be 100644 --- a/src/components/landing/FinalCTA.tsx +++ b/src/components/landing/FinalCTA.tsx @@ -8,7 +8,7 @@ export default function FinalCTA() { return (
    -
    +
    @@ -25,14 +25,14 @@ export default function FinalCTA() { Did you catch it? -

    +

    Start your free trial — upload your first invoice in 60 seconds. No credit card. No setup fee. No commitment.

    Start Free Trial @@ -41,7 +41,7 @@ export default function FinalCTA() { href={DEMO_BOOKING_URL} target="_blank" rel="noopener noreferrer" - className="inline-flex items-center justify-center gap-2 px-8 py-4 rounded-xl bg-white/[0.08] border border-cream/20 text-cream font-medium text-base hover:bg-white/[0.14] transition-all" + className="press inline-flex items-center justify-center gap-2 px-8 py-4 rounded-xl bg-white/[0.08] border border-cream/20 text-cream font-medium text-base hover:bg-white/[0.14]" > Book a 30-Min Demo diff --git a/src/components/landing/Footer.tsx b/src/components/landing/Footer.tsx index 7b2843d..a9337eb 100644 --- a/src/components/landing/Footer.tsx +++ b/src/components/landing/Footer.tsx @@ -57,7 +57,7 @@ export default function Footer() { ChefCode.ai -

    +

    AI-powered invoice intelligence for food service teams. Save time, catch overcharges, export clean data.

    @@ -65,7 +65,7 @@ export default function Footer() { {/* Link columns */} {columns.map((col, i) => (
    -

    {col.title}

    +

    {col.title}

      {col.links.map((link, j) => (
    • @@ -84,7 +84,7 @@ export default function Footer() {
    -

    © {new Date().getFullYear()} ChefCode.ai. All rights reserved.

    +

    © {new Date().getFullYear()} ChefCode.ai. All rights reserved.

    {[ { label: 'Privacy', href: '/privacy' }, @@ -94,7 +94,7 @@ export default function Footer() { {l.label} diff --git a/src/components/landing/Hero.tsx b/src/components/landing/Hero.tsx index 93aab59..8177746 100644 --- a/src/components/landing/Hero.tsx +++ b/src/components/landing/Hero.tsx @@ -27,7 +27,7 @@ export default function Hero() { in seconds. -

    +

    ChefCode reads your supplier invoices, assigns the right GL codes, and flags vendor overcharges — automatically. In under 60 seconds, not 24 hours. @@ -37,21 +37,21 @@ export default function Hero() {

    -

    15-day free trial · no credit card

    +

    15-day free trial · no credit card

    {/* Origin story, not invented logos. This replaced a stack of four fake monograms (UC/HG/DM/RK) over @@ -67,8 +67,11 @@ export default function Hero() {
    - {/* ── Right: Invoice demo ── */} -
    + {/* ── Right: Invoice demo ── + Was `hidden lg:block`, so phone visitors never saw the product at + all — the single most persuasive element on the page was desktop + only. It stacks under the copy on small screens. */} +
    diff --git a/src/components/landing/HowItWorks.tsx b/src/components/landing/HowItWorks.tsx index 17759dd..dabe750 100644 --- a/src/components/landing/HowItWorks.tsx +++ b/src/components/landing/HowItWorks.tsx @@ -18,7 +18,7 @@ export default function HowItWorks() {

    Three steps. Under a minute.

    -

    +

    No training required. If your team can take a photo, they can use ChefCode.

    @@ -38,7 +38,7 @@ export default function HowItWorks() {

    {s.title}

    -

    {s.desc}

    +

    {s.desc}

    {i < steps.length - 1 && ( diff --git a/src/components/landing/InvoiceDemo.tsx b/src/components/landing/InvoiceDemo.tsx index 7155bea..e262a9e 100644 --- a/src/components/landing/InvoiceDemo.tsx +++ b/src/components/landing/InvoiceDemo.tsx @@ -22,12 +22,12 @@ export default function InvoiceDemo() { Invoice #INV-2847
    - Sysco Foods + Sysco Foods
    {/* ── Body ── */}
    -
    +
    Item Qty Price @@ -50,10 +50,10 @@ export default function InvoiceDemo() { )} {item.name}
    - {item.qty} + {item.qty}
    {item.price} - {item.spike && {item.spike}} + {item.spike && {item.spike}}
    {item.gl}
    @@ -76,7 +76,7 @@ export default function InvoiceDemo() { {/* ── Footer ── */}
    - Processed in 47 seconds + Processed in 47 seconds 98% confidence
    diff --git a/src/components/landing/Navbar.tsx b/src/components/landing/Navbar.tsx index 75dcad7..85633d6 100644 --- a/src/components/landing/Navbar.tsx +++ b/src/components/landing/Navbar.tsx @@ -18,6 +18,21 @@ export default function Navbar() { return () => window.removeEventListener('scroll', onScroll); }, []); + // While the sheet is open the page behind it must not scroll — otherwise + // the content slides around under a menu that looks fixed. Escape closes it, + // because a panel you can open from the keyboard you must be able to leave. + useEffect(() => { + if (!mobileOpen) return; + const prev = document.body.style.overflow; + document.body.style.overflow = 'hidden'; + const onKey = (e: KeyboardEvent) => { if (e.key === 'Escape') setMobileOpen(false); }; + window.addEventListener('keydown', onKey); + return () => { + document.body.style.overflow = prev; + window.removeEventListener('keydown', onKey); + }; + }, [mobileOpen]); + return (
    - {/* ── Mobile menu ── */} - {mobileOpen && ( -
    + {/* ── Mobile menu ── + Kept mounted and toggled with classes rather than conditionally + rendered, so it animates on the way out as well as in — a panel that + slides open and then vanishes reads as broken. The scrim dims the page + behind it and closes on tap. */} +
    setMobileOpen(false)} + aria-hidden="true" + className={`md:hidden fixed inset-0 top-[72px] bg-brand-900/20 transition-opacity duration-200 ${ + mobileOpen ? 'opacity-100' : 'opacity-0 pointer-events-none' + }`} + /> +
    {links.map((l) => (
    -
    - )} +
    ); } diff --git a/src/components/landing/PainPoints.tsx b/src/components/landing/PainPoints.tsx index 324bcb5..6592c66 100644 --- a/src/components/landing/PainPoints.tsx +++ b/src/components/landing/PainPoints.tsx @@ -30,7 +30,7 @@ export default function PainPoints() {

    Your invoices are costing you more than you think

    -

    +

    Food service teams lose thousands every month to invisible inefficiencies.

    @@ -45,7 +45,7 @@ export default function PainPoints() {

    {p.title}

    -

    {p.desc}

    +

    {p.desc}

    ))} diff --git a/src/components/landing/Pricing.tsx b/src/components/landing/Pricing.tsx index 7c78df4..5712757 100644 --- a/src/components/landing/Pricing.tsx +++ b/src/components/landing/Pricing.tsx @@ -43,19 +43,19 @@ export default function Pricing() {

    Pricing

    Simple pricing. No surprises.

    -

    Start free for 15 days. No credit card required.

    +

    Start free for 15 days. No credit card required.

    - Monthly + Monthly - + YearlySave 20%
    @@ -78,13 +78,13 @@ export default function Pricing() {

    {p.name}

    -

    {p.desc}

    +

    {p.desc}

    {p.price.monthly !== null ? (
    ${yearly ? p.price.yearly : p.price.monthly} - /month + /month
    ) : (
    Custom
    @@ -96,7 +96,7 @@ export default function Pricing() { {...(p.href.startsWith('http') ? { target: '_blank', rel: 'noopener noreferrer' } : {})} - className={`block w-full text-center py-3 rounded-xl text-sm font-semibold transition-all ${ + className={`press block w-full text-center py-3 rounded-xl text-sm font-semibold ${ p.featured ? 'bg-brand-600 text-cream hover:bg-brand-700 shadow-lg shadow-brand-600/25' : 'bg-brand-900 text-cream hover:bg-brand-800' }`} > @@ -107,7 +107,7 @@ export default function Pricing() { {p.items.map((item, j) => (
  • - {item} + {item}
  • ))} diff --git a/src/components/landing/Security.tsx b/src/components/landing/Security.tsx index 931e4d5..954cc60 100644 --- a/src/components/landing/Security.tsx +++ b/src/components/landing/Security.tsx @@ -19,7 +19,7 @@ export default function Security() { const ref = useReveal(); return ( -
    +
    @@ -34,7 +34,7 @@ export default function Security() {

    Your data is safer here than in a filing cabinet

    -

    +

    Built from day one for multi-tenant food service organizations that answer to auditors, controllers, and compliance teams.

    @@ -50,7 +50,7 @@ export default function Security() {

    {b.label}

    -

    {b.desc}

    +

    {b.desc}

    ))} diff --git a/src/components/landing/Stats.tsx b/src/components/landing/Stats.tsx index daa4a21..0456d78 100644 --- a/src/components/landing/Stats.tsx +++ b/src/components/landing/Stats.tsx @@ -17,7 +17,7 @@ export default function Stats() { {stats.map((s, i) => (

    {s.value}

    -

    {s.label}

    +

    {s.label}

    ))}
    diff --git a/src/index.css b/src/index.css index 3b4dc5d..40f04a6 100644 --- a/src/index.css +++ b/src/index.css @@ -75,6 +75,60 @@ body { ::-webkit-scrollbar-thumb { background: #c7bb91; border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #157559; } +/* ── Focus visibility ────────────────────────────── */ +/* Nothing in the site defined a focus style, so Tailwind's preflight reset + left keyboard users with no visible focus at all (outline-style computed to + `none` on every button and link). The ring colour is a variable so dark + sections can flip it to a light tone — a green ring on brand-900 is + invisible, which would have been the same bug in a different costume. */ +:root { --focus-ring: #0e4a39; } + +:focus-visible { + outline: 2px solid var(--focus-ring); + outline-offset: 2px; + border-radius: 2px; +} + +/* Dark regions: the security band and the final CTA card. */ +.on-dark { --focus-ring: #d6ebe0; } + +/* ── Press feedback ──────────────────────────────── */ +/* Feedback belongs on pointer-down, not on release. Without this a tap on a + phone gives no acknowledgement at all until the next page paints. */ +.press { + transition: transform 100ms ease-out, background-color 150ms ease-out, + border-color 150ms ease-out, color 150ms ease-out; +} +.press:active { transform: scale(0.97); } + +/* ── Reduced motion ──────────────────────────────── */ +/* Reduced motion means a gentler equivalent, not nothing: the reveal still + cross-fades so content arrival stays legible, it just stops travelling. */ +@media (prefers-reduced-motion: reduce) { + html { scroll-behavior: auto; } + + .reveal { transition: opacity 200ms ease !important; } + .reveal.reveal-ready { transform: none !important; } + + .press:active { transform: none; opacity: 0.85; } + + /* Kill decorative looping animations and any transform-based movement, + while leaving colour and opacity transitions that aid comprehension. */ + .scan-line, .animate-float, .animate-pulse-slow, .animate-scan { animation: none !important; } + .animate-fade-in-down, .animate-fade-in-up, .animate-fade-in, + .animate-slide-in-left, .animate-slide-in-right, .animate-scale-in { + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + } + *, *::before, *::after { scroll-behavior: auto !important; } +} + +/* ── Reduced transparency ────────────────────────── */ +@media (prefers-reduced-transparency: reduce) { + .backdrop-blur-lg, .backdrop-blur { backdrop-filter: none !important; } + nav.bg-cream\/85 { background-color: #faf6e8 !important; } +} + /* ── Policy pages: printing / "Save as PDF" ──────── */ /* Reviewers attach these to a vendor file, so the printed copy drops the site chrome, prints black-on-white, and shows link targets inline. */ diff --git a/src/pages/SetupGuide.tsx b/src/pages/SetupGuide.tsx index b7c182f..03fd6b7 100644 --- a/src/pages/SetupGuide.tsx +++ b/src/pages/SetupGuide.tsx @@ -35,14 +35,14 @@ export default function SetupGuide() { {/* Header */}

    Getting started

    Setup guide

    -

    +

    From sign-up to your first coded invoice in about 20 minutes. Do the steps in order — each one builds on the last.

    {/* Gather first */}
    -

    Gather these first

    +

    Gather these first

    {gather.map((g) => (
    @@ -51,7 +51,7 @@ export default function SetupGuide() {

    {g.label}

    -

    {g.note}

    +

    {g.note}

    {g.href && (
    ))}
    -

    +

    The product list matters most — it teaches the AI. The fuller it is, the better it codes on day one.

    @@ -79,7 +79,7 @@ export default function SetupGuide() {

    {s.title}

    -

    {s.body}

    +

    {s.body}

    ))} @@ -104,7 +104,7 @@ export default function SetupGuide() { {faqs.map((f) => (

    {f.q}

    -

    {f.a}

    +

    {f.a}

    ))}