{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "golden-hour-hero",
  "type": "registry:block",
  "title": "Golden Hour Hero",
  "description": "Hero Section built with Footnote (AI answer with citations) and Golden Hour (sunset scene background): an AI trip planner lit by the hour of day. A take on the citations (footnotes) and animated background (backdrop). A hero for an AI trip planner, after the minimal split heroes of AI products: a three-line headline beside a quiet column with the button and a press strip, over a product window lit by a Golden Hour scene. In the window a frosted Footnote answers a traveler's question, numbering each claim from its source, and each example question relights the valley for its hour, running forward through the clock: golden hour, after dark, then sunrise. The sun goes down as the hero scrolls away.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "blocks",
    "hero-sections",
    "hero",
    "citations",
    "animated-background"
  ],
  "docs": "Live preview and the components it's built with: https://keyframeui.com/blocks/hero-sections/golden-hour-hero",
  "dependencies": [
    "motion"
  ],
  "registryDependencies": [
    "https://keyframeui.com/r/footnote.json",
    "https://keyframeui.com/r/golden-hour.json",
    "utils"
  ],
  "files": [
    {
      "path": "components/golden-hour-hero.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { useReducedMotion } from \"motion/react\";\n\nimport { Footnote, type FootnoteClaim, type FootnoteSource } from \"@/components/ui/footnote\";\nimport { GoldenHour } from \"@/components/ui/golden-hour\";\nimport { cn } from \"@/lib/utils\";\n\n/* ── Content ─────────────────────────────────────────────────\n * Everything you'd change to make the hero yours: the nav, the\n * copy, the names in the press strip, and the questions the\n * product answers in its window, each with the hour of day the\n * scene behind it is lit for. Keep the hours in the order of a\n * day, so each change runs forward through the clock.\n * ─────────────────────────────────────────────────────────── */\n\n/** The one accent: the citation numbers, links and highlights in the answer. */\nconst ACCENT = { light: \"#5b54d6\", dark: \"#a49dff\" };\n\nconst BRAND = { name: \"Meander\", href: \"#\" };\nconst NAV_LINKS = [\n  { label: \"How it works\", href: \"#how-it-works\" },\n  { label: \"Destinations\", href: \"#destinations\" },\n  { label: \"Pricing\", href: \"#pricing\" },\n];\nconst SIGN_IN = { label: \"Sign in\", href: \"#sign-in\" };\n\nconst HEADLINE = \"Trip plans that cite their sources.\";\nconst SUBLINE =\n  \"Meander reads the timetables, opening hours and local guides before it suggests a single stop, and links each one to where it found it. Ask in a sentence, check anything with a tap.\";\nconst PRIMARY_CTA = { label: \"Plan a trip\", href: \"#plan\" };\nconst SECONDARY_CTA = { label: \"See a sample plan\", href: \"#sample\" };\nconst NOTE = \"Free for your first three trips.\";\n\n/** Under the buttons: where it's been written about. Wordmarks set in type; swap in real logos. */\nconst PRESS_LABEL = \"As seen in\";\nconst PRESS: { name: string; className: string }[] = [\n  { name: \"Wayfarer Weekly\", className: \"font-serif italic\" },\n  { name: \"NORTHBOUND\", className: \"font-mono text-[12px] tracking-[0.18em]\" },\n  { name: \"Slow Road\", className: \"font-semibold tracking-tight\" },\n  { name: \"field & fold\", className: \"font-medium lowercase\" },\n];\n\n/** The address in the product window's bar. */\nconst APP_URL = \"meander.app/plan/brava-valley\";\n\ntype Question = {\n  /** The short label on the picker above the answer. */\n  label: string;\n  question: string;\n  /** Hour of the day (0–24) the scene is lit for while this answer shows. */\n  hour: number;\n  read: number;\n  sources: FootnoteSource[];\n  answer: FootnoteClaim[];\n};\n\nconst QUESTIONS: Question[] = [\n  {\n    label: \"Train or car?\",\n    question: \"Two days in the Brava Valley with a toddler: train or car?\",\n    hour: 17.6,\n    read: 14,\n    sources: [\n      {\n        id: \"rail\",\n        site: \"valleyline.travel\",\n        title: \"Valley Line timetable, winter 2026\",\n        href: \"#valley-line\",\n        snippet:\n          \"Trains leave Porto Lume for Vila Brava every two hours from 07:10. The last train back leaves Vila Brava at 19:40.\",\n        quote: \"The last train back leaves Vila Brava at 19:40\",\n      },\n      {\n        id: \"family\",\n        site: \"smalltravelers.blog\",\n        title: \"The Brava Valley with a two-year-old\",\n        href: \"#small-travelers\",\n        snippet:\n          \"The valley road has eleven hairpins between Vila Brava and the river. Our daughter slept through the train and was carsick on the road.\",\n        quote: \"eleven hairpins\",\n      },\n      {\n        id: \"estates\",\n        site: \"bravaestates.org\",\n        title: \"Wine estates: visits and bookings\",\n        href: \"#estates\",\n        snippet: \"Most estates open for visits at 10:00. At weekends, tastings must be booked at least a day ahead.\",\n        quote: \"must be booked at least a day ahead\",\n      },\n      {\n        id: \"weather\",\n        site: \"weatherdesk.io\",\n        title: \"Vila Brava: October averages\",\n        href: \"#october\",\n        snippet: \"Afternoon highs average 19°C. Rain falls on about one day in four, mostly in the mornings.\",\n        quote: \"about one day in four\",\n      },\n    ],\n    answer: [\n      { text: \"Take the train in and rent a car for one day.\", cite: [\"rail\", \"family\"] },\n      { text: \"Trains run every two hours; the last one back leaves at 19:40.\", cite: \"rail\" },\n      { text: \"The road has eleven hairpins, so plan the drive around a nap.\", cite: \"family\" },\n      { text: \"Book tastings a day ahead; estates open at 10:00.\", cite: \"estates\" },\n      { text: \"Expect around 19°C, with rain one day in four.\", cite: \"weather\" },\n    ],\n  },\n  {\n    label: \"Late dinner\",\n    question: \"Somewhere good to eat after 9pm that isn't touristy?\",\n    hour: 20.4,\n    read: 11,\n    sources: [\n      {\n        id: \"kitchens\",\n        site: \"localtable.guide\",\n        title: \"Late kitchens in Vila Brava\",\n        href: \"#late-kitchens\",\n        snippet: \"Casa Rio takes its last orders at 22:30 and fills with boat crews after their shift.\",\n        quote: \"takes its last orders at 22:30\",\n      },\n      {\n        id: \"reviews\",\n        site: \"tablenotes.app\",\n        title: \"Casa Rio: what 640 reviews mention\",\n        href: \"#casa-rio\",\n        snippet: \"Grilled fish and the river terrace come up most. Few of the reviews are in English.\",\n        quote: \"Few of the reviews are in English\",\n      },\n      {\n        id: \"bus\",\n        site: \"valleyline.travel\",\n        title: \"Night buses\",\n        href: \"#night-buses\",\n        snippet: \"Bus 4 runs back to the upper town every 40 minutes until 00:20.\",\n        quote: \"every 40 minutes until 00:20\",\n      },\n    ],\n    answer: [\n      { text: \"Try Casa Rio by the bridge: the kitchen takes orders until 22:30, and the boat crews eat there after work.\", cite: \"kitchens\" },\n      { text: \"Reviews mostly mention the grilled fish and the river terrace, and few are in English.\", cite: \"reviews\" },\n      { text: \"Bus 4 brings you back up the hill every 40 minutes until 00:20.\", cite: \"bus\" },\n    ],\n  },\n  {\n    label: \"Easy sunrise\",\n    question: \"Where can we watch the sunrise without a hard climb?\",\n    hour: 7.3,\n    read: 9,\n    sources: [\n      {\n        id: \"trail\",\n        site: \"serraalta.trails\",\n        title: \"North Ridge viewpoint\",\n        href: \"#north-ridge\",\n        snippet:\n          \"A 900 m path from the upper car park reaches the North Ridge viewpoint, with 60 m of gentle climb and a bench facing east.\",\n        quote: \"60 m of gentle climb\",\n      },\n      {\n        id: \"sun\",\n        site: \"sunclock.app\",\n        title: \"Sunrise and sunset in Vila Brava\",\n        href: \"#sun-times\",\n        snippet: \"On 24 October the sun rises at 07:41 and sets at 18:32.\",\n        quote: \"the sun rises at 07:41\",\n      },\n      {\n        id: \"parking\",\n        site: \"bravaparks.org\",\n        title: \"Upper car park: opening hours\",\n        href: \"#car-park\",\n        snippet: \"The upper car park opens at 06:30 from April to October, and at 07:00 through the winter.\",\n        quote: \"opens at 06:30 from April to October\",\n      },\n    ],\n    answer: [\n      { text: \"Go to the North Ridge viewpoint: fifteen minutes from the upper car park, with only 60 m of climb.\", cite: \"trail\" },\n      { text: \"Sunrise is at 07:41, so leave the inn by 07:00.\", cite: \"sun\" },\n      { text: \"The car park opens at 06:30 until the end of October.\", cite: \"parking\" },\n      { text: \"Bring a layer: the bench faces east and catches the wind.\", cite: \"trail\" },\n    ],\n  },\n];\n\n/** How long a finished answer stays before the next question plays, in ms. Resting on the window holds it; picking a question, or reduced motion, stops it. */\nconst NEXT_AFTER = 7000;\n\n/* ── Hero ────────────────────────────────────────────────── */\n\nconst focusRing =\n  \"focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-zinc-950 dark:focus-visible:outline-white\";\n\nexport function GoldenHourHero() {\n  const [index, setIndex] = React.useState(0);\n  const [finished, setFinished] = React.useState(-1);\n  const [resting, setResting] = React.useState(false);\n  const [picked, setPicked] = React.useState(false);\n  const reduced = useReducedMotion();\n  const current = QUESTIONS[index];\n\n  // Once an answer has finished, the next question plays after a pause, unless the visitor is\n  // reading it or has picked one themselves.\n  React.useEffect(() => {\n    if (finished !== index || resting || picked || reduced) return;\n    const timer = window.setTimeout(() => setIndex((i) => (i + 1) % QUESTIONS.length), NEXT_AFTER);\n    return () => window.clearTimeout(timer);\n  }, [finished, index, resting, picked, reduced]);\n\n  return (\n    <section\n      style={{ \"--accent-light\": ACCENT.light, \"--accent-dark\": ACCENT.dark } as React.CSSProperties}\n      className=\"relative isolate overflow-x-clip bg-[#f3f1ec] text-zinc-950 [--footnote-accent:var(--accent-light)] dark:bg-zinc-950 dark:text-white dark:[--footnote-accent:var(--accent-dark)]\"\n    >\n      <header className=\"mx-auto flex h-16 max-w-6xl items-center justify-between gap-6 px-6\">\n        <a href={BRAND.href} className={cn(\"flex items-center gap-2 rounded-md text-[15px] font-semibold tracking-tight\", focusRing)}>\n          <MeanderMark className=\"size-5\" />\n          {BRAND.name}\n        </a>\n        <nav aria-label=\"Main\" className=\"hidden flex-1 items-center gap-7 pl-6 text-sm text-zinc-600 md:flex dark:text-zinc-400\">\n          {NAV_LINKS.map((link) => (\n            <a\n              key={link.href}\n              href={link.href}\n              className={cn(\"rounded-md transition-colors duration-150 hover:text-zinc-950 dark:hover:text-white\", focusRing)}\n            >\n              {link.label}\n            </a>\n          ))}\n        </nav>\n        <a\n          href={SIGN_IN.href}\n          className={cn(\n            \"rounded-full bg-white px-4 py-1.5 text-sm font-medium shadow-sm ring-1 ring-zinc-950/10 transition-colors duration-150 hover:bg-zinc-50 dark:bg-white/10 dark:ring-white/10 dark:hover:bg-white/15\",\n            focusRing,\n          )}\n        >\n          {SIGN_IN.label}\n        </a>\n      </header>\n\n      <div className=\"mx-auto max-w-6xl px-6 pt-10 pb-20 sm:pt-14 lg:pb-28\">\n        <div className=\"grid items-start gap-8 lg:grid-cols-[1.35fr_1fr] lg:gap-16\">\n          <h1 className=\"max-w-[13ch] text-[2.75rem]/[1.02] font-medium tracking-[-0.045em] text-balance sm:text-6xl/[1] lg:text-[4.75rem]/[0.98]\">\n            {HEADLINE}\n          </h1>\n          <div className=\"lg:pt-2.5\">\n            <p className=\"max-w-md text-base/7 text-pretty text-zinc-600 dark:text-zinc-400\">{SUBLINE}</p>\n            <div className=\"mt-7 flex flex-wrap items-center gap-x-6 gap-y-3\">\n              <a\n                href={PRIMARY_CTA.href}\n                className={cn(\n                  \"inline-flex h-11 items-center rounded-full bg-zinc-950 px-5 text-sm font-medium text-white transition-[background-color,scale] duration-150 ease-out hover:bg-zinc-800 active:scale-[0.97] dark:bg-white dark:text-zinc-950 dark:hover:bg-zinc-200\",\n                  focusRing,\n                )}\n              >\n                {PRIMARY_CTA.label}\n              </a>\n              <a\n                href={SECONDARY_CTA.href}\n                className={cn(\n                  \"group inline-flex items-center gap-1 rounded-md text-sm font-medium text-zinc-700 transition-colors duration-150 hover:text-zinc-950 dark:text-zinc-300 dark:hover:text-white\",\n                  focusRing,\n                )}\n              >\n                {SECONDARY_CTA.label}\n                <ArrowIcon className=\"size-3.5 transition-transform duration-200 group-hover:translate-x-0.5\" />\n              </a>\n            </div>\n            <p className=\"mt-4 text-sm text-zinc-500\">{NOTE}</p>\n            <div className=\"mt-7 border-t border-zinc-950/10 pt-5 dark:border-white/10\">\n              <p className=\"text-xs text-zinc-500\">{PRESS_LABEL}</p>\n              <ul className=\"mt-3 flex flex-wrap items-center gap-x-6 gap-y-2 text-sm text-zinc-400 dark:text-zinc-500\">\n                {PRESS.map((name) => (\n                  <li key={name.name} className={name.className}>\n                    {name.name}\n                  </li>\n                ))}\n              </ul>\n            </div>\n          </div>\n        </div>\n\n        {/* The product window: the valley lit for the question's hour, and the answer over it. */}\n        <div\n          className=\"mt-10 sm:mt-12\"\n          onPointerEnter={(event) => event.pointerType === \"mouse\" && setResting(true)}\n          onPointerLeave={() => setResting(false)}\n          onFocus={() => setResting(true)}\n          onBlur={(event) => {\n            if (!event.currentTarget.contains(event.relatedTarget)) setResting(false);\n          }}\n        >\n          <GoldenHour\n            time={current.hour}\n            sunset\n            horizon={0.5}\n            className=\"h-[44rem] rounded-[1.75rem] shadow-2xl shadow-zinc-950/15 ring-1 ring-zinc-950/10 sm:h-[40rem] dark:ring-white/10\"\n          >\n            <div className=\"absolute inset-x-0 top-0 flex h-11 items-center gap-3 border-b border-white/15 bg-white/10 px-4 backdrop-blur-md\">\n              <div className=\"flex gap-1.5\" aria-hidden>\n                <span className=\"size-2.5 rounded-full bg-white/50\" />\n                <span className=\"size-2.5 rounded-full bg-white/30\" />\n                <span className=\"size-2.5 rounded-full bg-white/30\" />\n              </div>\n              <p className=\"mx-auto flex h-6 w-full max-w-72 items-center justify-center rounded-full bg-white/15 px-3 text-[11px] text-white/85\">\n                <span className=\"truncate\">{APP_URL}</span>\n              </p>\n              <div className=\"w-10\" aria-hidden />\n            </div>\n\n            <div className=\"absolute inset-x-3 bottom-3 flex flex-col gap-3 sm:inset-x-auto sm:top-[4.75rem] sm:bottom-auto sm:left-8 sm:w-[27rem] lg:left-12 lg:w-[28rem]\">\n              <div role=\"group\" aria-label=\"Example questions\" className=\"flex flex-wrap gap-1.5\">\n                {QUESTIONS.map((q, i) => (\n                  <button\n                    key={q.label}\n                    type=\"button\"\n                    aria-pressed={i === index}\n                    onClick={() => {\n                      setPicked(true);\n                      setIndex(i);\n                    }}\n                    className={cn(\n                      \"rounded-full px-3 py-1 text-xs font-medium ring-1 backdrop-blur-xl transition-[background-color,color,box-shadow] duration-200 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white\",\n                      i === index\n                        ? \"bg-white text-zinc-950 ring-white\"\n                        : \"bg-zinc-950/25 text-white ring-white/20 hover:bg-zinc-950/35\",\n                    )}\n                  >\n                    {q.label}\n                  </button>\n                ))}\n              </div>\n              <Footnote\n                question={current.question}\n                answer={current.answer}\n                sources={current.sources}\n                read={current.read}\n                avatar={<MeanderMark className=\"size-3.5\" />}\n                onComplete={() => setFinished(index)}\n                className=\"bg-white/75 shadow-2xl shadow-zinc-950/25 ring-white/60 backdrop-blur-xl dark:bg-zinc-950/60 dark:ring-white/15\"\n              />\n            </div>\n          </GoldenHour>\n        </div>\n      </div>\n    </section>\n  );\n}\n\n/* ── Icons ───────────────────────────────────────────────── */\n\nfunction MeanderMark({ className }: { className?: string }) {\n  return (\n    <svg viewBox=\"0 0 20 20\" className={className} fill=\"none\" aria-hidden>\n      <path\n        d=\"M3.5 17.5c0-3.6 5.5-3.4 5.5-7S4.6 6.2 7.2 2.5M11 17.5c0-3 5.5-3 5.5-6.4\"\n        stroke=\"currentColor\"\n        strokeWidth={2}\n        strokeLinecap=\"round\"\n      />\n    </svg>\n  );\n}\n\nfunction ArrowIcon({ className }: { className?: string }) {\n  return (\n    <svg viewBox=\"0 0 16 16\" className={className} fill=\"none\" stroke=\"currentColor\" strokeWidth={1.6} aria-hidden>\n      <path d=\"M3.5 8h9m-3.5-3.5L12.5 8 9 11.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n    </svg>\n  );\n}\n"
    }
  ]
}