/* Franchise landing only. All content is visible before JavaScript runs. */
.franchise { background: var(--surface); }
.page > .site-header .nav-links a, .page > .site-footer a { display: flex; align-items: center; min-height: 44px; }
.franchise section { scroll-margin-top: 96px; }
.franchise h1 { font-size: clamp(3.3rem, 7.4vw, 6.4rem); line-height: 1; }
.franchise h2 { max-width: 850px; line-height: 1.1; }
.franchise h3 { line-height: 1.3; }
.franchise p { line-height: 1.7; }
.franchise a { min-height: 44px; }
.franchise-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.franchise .button { min-height: 48px; }
.franchise-text-link { display: inline-flex; align-items: center; margin-top: 18px; text-decoration: underline; text-underline-offset: 5px; }
.franchise-kicker { color: var(--blue); font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.franchise-note { color: var(--muted); font-size: .94rem; }
.franchise-section { padding: clamp(64px, 9vw, 120px) 0; }
.franchise-hero { position: relative; overflow: hidden; padding: 76px 0 64px; color: #fff; background: radial-gradient(ellipse at 80% 40%, #153d7a, transparent 65%), var(--ink); }
.franchise-hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
.franchise-hero .franchise-kicker, .franchise-final .franchise-kicker { color: #99dfff; }
.franchise-hero .lead { color: #dbe7f7; max-width: 580px; }
.franchise-hero .primary, .franchise-final .primary { color: var(--blue-dark); background: #fff; box-shadow: none; }
.franchise-hero .primary:hover, .franchise-final .primary:hover { background: #e8f4ff; }
.area-network { position: relative; width: 100%; aspect-ratio: 1; max-width: 570px; margin: auto; }
.network-drawing, .network-dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.network-drawing { fill: none; stroke: #7498c5; stroke-width: 1; }
.network-drawing circle { stroke-opacity: .35; }
.network-signal { stroke: var(--sky); stroke-dasharray: 18 12; }
.network-hub, .network-node { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #7194c0; border-radius: var(--radius); background: #102a4e; }
.network-hub { top: 36%; left: 36%; width: 28%; height: 28%; z-index: 2; box-shadow: 0 0 70px #27b8e833; }
.network-hub span { color: #99dfff; font-weight: 800; }
.network-hub strong { font-size: clamp(1rem, 2.5vw, 1.5rem); }
.network-hub small { color: #dbe7f7; font-size: .875rem; }
.network-node { width: 30%; min-height: 18%; border-color: var(--vertical); gap: 4px; padding: 8px 4px; font-size: clamp(.875rem, 1.5vw, 1rem); overflow-wrap: anywhere; }
.vertical-symbol { color: var(--vertical); font-size: 1.7rem; line-height: 1; }
.node-0 { top: 3%; left: 35%; }
.node-1 { top: 41%; right: 0; }
.node-2 { bottom: 3%; left: 35%; }
.node-3 { top: 41%; left: 0; }
.network-caption { position: absolute; bottom: -22px; width: 100%; text-align: center; font-size: .9rem; color: #dbe7f7; }
.products { --vertical: var(--sky); }
.services { --vertical: var(--green); }
.appointments { --vertical: var(--amber); }
.rides { --vertical: var(--red); }
.vertical-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 40px; perspective: 1200px; }
.vertical-card { position: relative; padding: 34px; border: 1px solid var(--line); border-top: 4px solid var(--vertical); border-radius: var(--radius); background: var(--soft); }
.vertical-label { display: block; color: var(--blue-dark); font-weight: 800; margin-bottom: 24px; }
.vertical-card h3 { font-size: 1.65rem; }
.vertical-card p { color: var(--muted); margin-bottom: 0; }
.franchise-day { background: var(--soft); }
.day-timeline, .start-path { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; gap: 24px; margin: 42px 0 0; }
.day-timeline::before, .start-path::before { content: ""; position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: var(--line); }
.day-timeline::after { content: ""; position: absolute; top: 12px; left: 0; height: 2px; width: 100%; background: var(--blue); transform: scaleX(var(--day-progress, 1)); transform-origin: left; }
.day-timeline li, .start-path li { position: relative; z-index: 1; }
.timeline-dot, .start-path li::before { content: ""; display: block; width: 26px; height: 26px; margin-bottom: 28px; border: 7px solid var(--soft); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--line); }
.day-timeline p, .start-path p { color: var(--muted); font-size: .94rem; }
.earn-layout, .control-layout, .demo-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.earn-copy { font-size: 1.1rem; }
.payment-note { padding: 24px; border-left: 4px solid var(--green); border-radius: var(--radius); background: #edf9f0; color: #174c2d; }
.franchise-control { background: #edf3fb; }
.control-phone { width: min(100%, 370px); margin: auto; padding: 24px 18px 16px; border: 7px solid var(--ink); border-radius: 32px; background: #fff; box-shadow: 22px 28px 0 #1d4ed812; transform: rotate(-3deg); }
.phone-top { display: flex; justify-content: space-between; gap: 12px; color: var(--blue); font-size: .9rem; font-weight: 800; }
.phone-heading { margin: 28px 0 20px; font-size: 1.8rem; font-weight: 800; }
.mock-card { display: flex; gap: 12px; align-items: center; padding: 16px 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.mock-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; color: var(--ink); background: var(--vertical); border-radius: var(--radius); font-size: 1.3rem; }
.mock-card strong, .mock-card div span { display: block; }
.mock-card div span { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.phone-bottom { width: 34%; height: 4px; background: var(--ink); border-radius: 4px; margin: 24px auto 0; }
.franchise-demo { background: #fff9ed; }
.demo-roles { position: relative; display: flex; min-height: 260px; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; }
.demo-roles span { position: relative; z-index: 1; padding: 20px; border: 1px solid #d9bb82; border-radius: var(--radius); background: #fff; font-weight: 800; }
.demo-roles svg { position: absolute; inset: 0; margin: auto; width: 100%; fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 8 5; }
.start-path li::before { border-color: #fff; background: var(--green); }
.franchise-faq { background: var(--soft); }
.faq-list { max-width: 850px; margin-top: 36px; }
.faq-item { border-top: 1px solid #bdccdf; }
.faq-item:last-child { border-bottom: 1px solid #bdccdf; }
.faq-item h3 { margin: 0; }
.faq-item button { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 68px; padding: 20px 0; text-align: left; border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.faq-item button span { font-size: 1.5rem; transition: transform 200ms; }
.faq-item button:disabled { cursor: default; }
.faq-item button[aria-expanded="true"] span { transform: rotate(45deg); }
.faq-answer { max-width: 72ch; padding: 0 0 16px; }
.faq-answer[hidden] { display: none; }
.faq-answer a { display: inline-flex; align-items: center; text-decoration: underline; color: var(--blue); }
.franchise-final { color: #fff; background: linear-gradient(120deg, var(--blue-dark), var(--ink)); }
.franchise-final h2 { font-size: clamp(2.5rem, 6vw, 5rem); }
.support-motion .vertical-card { transition: transform 800ms, box-shadow 800ms; transform: rotateX(7deg) translateY(16px); }
.support-motion .vertical-card.is-in { transform: none; box-shadow: 0 20px 45px #1020330c; }
.support-motion .network-signal { animation: network-flow 24s linear infinite; }
.support-motion .network-spokes { stroke-dasharray: 1; animation: network-connect 1.8s ease-out both; }
.support-motion .franchise-demo.is-in .demo-roles svg { animation: network-flow 12s linear infinite; }
.support-motion [data-story].is-in .start-path::before { animation: path-draw 1.5s ease-out both; background: var(--green); transform-origin: left; }
.support-paused *, .support-paused *::before, .support-paused *::after, .hero-paused .network-drawing path { animation-play-state: paused !important; }
@keyframes network-connect { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes network-flow { to { stroke-dashoffset: -300; } }
@keyframes path-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 900px) {
  .franchise-hero-grid, .earn-layout, .control-layout, .demo-layout { grid-template-columns: 1fr; gap: 40px; }
  .area-network { max-width: 480px; }
  .franchise-hero { padding-top: 48px; }
  .day-timeline, .start-path { gap: 14px; }
}
@media (max-width: 600px) {
  .franchise h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .vertical-grid { grid-template-columns: 1fr; }
  .vertical-card { padding: 26px; }
  .day-timeline, .start-path { grid-template-columns: 1fr; padding-left: 28px; gap: 24px; }
  .day-timeline::before, .start-path::before, .day-timeline::after { top: 0; bottom: 0; left: 0; right: auto; height: 100%; width: 2px; }
  .day-timeline::after { transform: scaleY(var(--day-progress, 1)); transform-origin: top; }
  .timeline-dot, .start-path li::before { position: absolute; left: -40px; top: 0; margin: 0; }
  .control-phone { transform: none; box-shadow: 8px 12px 0 #1d4ed812; }
  .support-motion [data-story].is-in .start-path::before { animation: none; }
  .demo-roles { min-height: 180px; }
  .demo-roles span { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .franchise *, .franchise *::before, .franchise *::after { animation: none !important; transition: none !important; }
  .franchise .vertical-card, .franchise .control-phone, .franchise .mock-card { transform: none !important; }
  .day-timeline::after { transform: none !important; }
  .faq-answer[hidden] { display: block; }
  .network-dots { display: none; }
}

/* W5b: stronger motion, with readable static fallbacks. */
.hero-word { display: inline-block; }
.rotation-animated { display: none; }
.rotating-line { font-size: clamp(1rem, 2vw, 1.25rem); color: #dbe7f7; min-height: 3.4em; }
.rotation-slot { display: inline-block; width: 8.5em; vertical-align: bottom; overflow: hidden; color: #99dfff; font-weight: 800; }
.rotation-word { display: inline-block; }
.support-motion .rotation-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.support-motion .rotation-animated { display: inline; }
.support-motion .hero-word { animation: word-rise 800ms cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(var(--word) * 140ms); }
.hero-gradient { position: relative; color: #99dfff; }
.support-motion .hero-gradient::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg,transparent,#ffffff85,transparent); mix-blend-mode: overlay; clip-path: inset(0); opacity: 0; animation: gradient-sweep 3s ease-in-out 2; }
.support-motion .rotation-word { animation: word-swap-a 400ms ease-out both; }
.support-motion .rotation-word.word-alternate { animation-name: word-swap-b; }
.route-pulse { stroke-dasharray: .12 .88; stroke-width: 4; stroke-linecap: round; opacity: .9; }
.route-0 { stroke: var(--sky); }.route-1 { stroke: #40ce78; }.route-2 { stroke: var(--amber); }.route-3 { stroke: #ff7a67; }
.support-motion .route-pulse { animation: route-travel 4.2s linear infinite; }
.support-motion .route-1 { animation-delay: -1.05s; }.support-motion .route-2 { animation-delay: -2.1s; }.support-motion .route-3 { animation-delay: -3.15s; }
.network-hub::before, .network-hub::after { content: ""; position: absolute; inset: -6px; border: 1px solid #99dfff; border-radius: var(--radius); opacity: .35; pointer-events: none; }
.support-motion .network-hub::before, .support-motion .network-hub::after { animation: hub-ripple 2.1s ease-out infinite; }
.support-motion .network-hub::after { animation-delay: -1.05s; }
.support-motion .network-node { animation: node-orbit 14s ease-in-out infinite; }
.support-motion .node-1 { animation-delay: -3.5s; }.support-motion .node-2 { animation-delay: -7s; }.support-motion .node-3 { animation-delay: -10.5s; }
.hero-paused .network-node, .hero-paused .network-hub::before, .hero-paused .network-hub::after, .hero-paused .hero-word, .hero-paused .hero-gradient::after { animation-play-state: paused !important; }
.support-motion .is-in > .section-inner h2 { animation: heading-wipe 900ms ease-out both; }
.support-motion .is-in > .section-inner .franchise-kicker { animation: kicker-type 700ms steps(20,end) both; }
.flip-icon { display: block; font-size: 3rem; line-height: 1; color: var(--blue); margin-bottom: 20px; }
.flip-front, .flip-back { min-width: 0; }
.flip-back { margin-top: 24px; }
.flip-toggle { display: none; }
.support-motion .vertical-card { transform: none; transition: transform 600ms; }
.support-motion .vertical-card.is-in { animation: card-depth 900ms ease-out both; animation-delay: calc(var(--stagger) * 110ms); }
.support-motion .flip-shell { display: grid; transform-style: preserve-3d; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.support-motion .flip-front, .support-motion .flip-back { grid-area: 1 / 1; backface-visibility: hidden; min-height: 260px; margin: 0; }
.support-motion .flip-back { transform: rotateY(180deg); }
.support-motion .vertical-card.is-flipped .flip-shell { transform: rotateY(180deg); }
.support-motion .flip-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; margin-top: 16px; border: 1px solid #6380a7; border-radius: var(--radius); color: var(--blue-dark); background: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.franchise-day { position: relative; isolation: isolate; background: #fff6dc; }
.franchise-day::before { content: ""; position: absolute; z-index: -1; inset: 0; background: #102a4e; opacity: var(--night,0); }
.franchise-day .section-inner { position: relative; padding: 32px; border-radius: var(--radius); background: #fff9ed; color: var(--ink); }
.timeline-traveller { display: none; }
.support-motion .timeline-traveller { display: grid; position: absolute; top: 0; left: 0; z-index: 3; width: 26px; height: 26px; transform: translate(var(--traveller-x,0px),var(--traveller-y,0px)); pointer-events: none; }
.timeline-traveller span { grid-area: 1/1; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: #ffe18a; font-size: 1.4rem; }
.day-sun { opacity: calc(1 - var(--moon,0)); }.day-moon { opacity: var(--moon,0); }
.mock-card { position: relative; }
.mock-check { flex: 0 0 22px; width: 22px; height: 22px; margin-left: auto; fill: none; stroke: #16753d; stroke-width: 2.5; }
.support-motion .franchise-control .mock-card { animation: live-card 12s ease-in-out infinite; animation-play-state: paused; }
.support-motion .franchise-control .mock-check path { stroke-dasharray: 1; animation: live-check 12s ease-out infinite; animation-play-state: paused; }
.support-motion .franchise-control.is-in .mock-card, .support-motion .franchise-control.is-in .mock-check path { animation-play-state: running; }
.support-motion .mock-card:nth-of-type(2), .support-motion .mock-card:nth-of-type(2) .mock-check path { animation-delay: 0s; }
.support-motion .mock-card:nth-of-type(3), .support-motion .mock-card:nth-of-type(3) .mock-check path { animation-delay: -9s; }
.support-motion .mock-card:nth-of-type(4), .support-motion .mock-card:nth-of-type(4) .mock-check path { animation-delay: -6s; }
.support-motion .mock-card:nth-of-type(5), .support-motion .mock-card:nth-of-type(5) .mock-check path { animation-delay: -3s; }
.start-drawing { height: 60px; margin-top: 24px; }
.start-drawing svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke-width: 2; }
.start-track { stroke: var(--line); }.start-ink { stroke: var(--green); }
.support-motion .start-ink { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--start-progress,0)); }
.support-motion [data-story].is-in .start-path::before { animation: none; background: var(--line); }
.start-path li::after { content: ""; position: absolute; top: 5px; left: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); pointer-events: none; }
.support-motion .start-path li::after { opacity: 0; transform: scale(.2); }
.support-motion .start-path li.step-lit::after { animation: step-pop 450ms ease-out both; }
.franchise-final { position: relative; isolation: isolate; overflow: hidden; }
.franchise-final::before { content: ""; position: absolute; z-index: -1; inset: -50%; background: linear-gradient(115deg,#102a6b,#19385a,#1d4ed8,#102033); transform: rotate(-12deg); }
.support-motion .franchise-final::before { animation: final-gradient 14s ease-in-out infinite alternate; animation-play-state: paused; }
.support-motion .franchise-final.is-in::before { animation-play-state: running; }
.franchise-final .button { position: relative; isolation: isolate; }
.franchise-final .button::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; box-shadow: 0 0 28px #99dfff; z-index: -1; opacity: 0; pointer-events: none; }
.support-motion .franchise-final.cta-started .button::after { animation: cta-glow 1.7s ease-in-out 3 both; }
.support-motion .franchise-final.cta-started .button:hover::after { animation: cta-glow 1.7s ease-in-out infinite; }
.support-motion .franchise-final:not(.is-in) .button::after { animation-play-state: paused; }
.support-motion .franchise-demo:not(.is-in) .demo-roles svg { animation-play-state: paused; }
.support-paused *, .support-paused *::before, .support-paused *::after { animation-play-state: paused !important; }
@keyframes word-rise { from { transform: translateY(30px); opacity: 0; clip-path: inset(100% 0 0); } to { transform: none; opacity: 1; clip-path: inset(0); } }
@keyframes gradient-sweep { from { transform: translateX(-110%); opacity: 0; } 30%,70% { opacity: .6; } to { transform: translateX(110%); opacity: 0; } }
@keyframes word-swap-a { from { transform: translateY(100%); opacity: 0; clip-path: inset(50% 0); } to { transform: none; opacity: 1; clip-path: inset(0); } }
@keyframes word-swap-b { from { transform: translateY(100%); opacity: 0; clip-path: inset(50% 0); } to { transform: none; opacity: 1; clip-path: inset(0); } }
@keyframes route-travel { to { stroke-dashoffset: -1; } }
@keyframes hub-ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(1.55); opacity: 0; } }
@keyframes node-orbit { 0%,100% { transform: translate(0,-8px); } 25% { transform: translate(12px,0); } 50% { transform: translate(0,8px); } 75% { transform: translate(-12px,0); } }
@keyframes heading-wipe { from { clip-path: inset(0 0 100%); transform: translateY(20px); } to { clip-path: inset(0); transform: none; } }
@keyframes kicker-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes card-depth { from { transform: perspective(1000px) translateZ(-100px) translateY(35px) scale(.94); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes live-card { 0% { transform: translateX(24px); opacity: .35; } 7%,85% { transform: none; opacity: 1; } 100% { transform: translateX(-12px); opacity: .35; } }
@keyframes live-check { 0%,6% { stroke-dashoffset: 1; } 12%,100% { stroke-dashoffset: 0; } }
@keyframes step-pop { from { transform: scale(.2); opacity: 0; } 70% { transform: scale(1.2); opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes final-gradient { from { transform: rotate(-12deg) translateX(-8%); } to { transform: rotate(8deg) translateX(8%); } }
@keyframes cta-glow { 0%,100% { opacity: 0; transform: scale(.98); } 50% { opacity: .65; transform: scale(1.06); } }
@media (max-width: 600px) {
  .rotation-slot { width: 8.2em; }
  .support-motion .flip-front, .support-motion .flip-back { min-height: 280px; }
  .start-drawing { height: 170px; width: 50px; margin: 0; position: absolute; right: 18px; }
  .start-drawing svg { transform: rotate(90deg); transform-origin: center; }
  .start-path li::after { left: -35px; }
}
@media (prefers-reduced-motion: reduce) {
  .franchise *, .franchise *::before, .franchise *::after { animation: none !important; transition: none !important; }
  .franchise-day::before { opacity: 0; }
  .rotation-full { display: inline; position: static; width: auto; height: auto; clip-path: none; }
  .rotation-animated { display: none !important; }
  .hero-gradient::after, .timeline-traveller, .flip-toggle { display: none !important; }
  .flip-front, .flip-back { transform: none !important; backface-visibility: visible; }
  .start-ink { stroke-dashoffset: 0 !important; }
  .franchise h2, .franchise-kicker { clip-path: none !important; }
}
