/* Food franchise: a stall sign. The opening screen adds up what a branch costs under a row of sign bulbs that run
   the way they do over a street-food stall. Alfa Slab One for headings, Rubik for reading.
   Colours are mixed from --k-primary. */
:root{
  --k-primary:#7a4a1c;
  --k-accent:#f5ae1b;
  --fh-paper:#fff;
  --fh-tint:color-mix(in oklab,var(--k-primary) 7%,#f6f5f3);
  --fh-deep:color-mix(in oklab,var(--k-primary) 70%,#120a04);
  --fh-rule:3px solid var(--k-primary);
  --fh-hw:400; --fh-qw:400;
  --k-ink:color-mix(in oklab,var(--k-primary) 36%,#17120d);
  --k-muted:color-mix(in oklab,var(--k-primary) 16%,#51493f);
  --k-line:color-mix(in oklab,var(--k-primary) 16%,#e6dfd2);
  --k-bg:var(--fh-tint);
  --k-font-head:"Alfa Slab One",Georgia,serif;
  --k-font-body:"Rubik","Segoe UI",system-ui,sans-serif;
  --k-r-sm:6px; --k-r-md:10px; --k-r-lg:14px; --k-r-xl:18px; --k-r-pill:999px;
  --k-sh-1:none; --k-sh-2:none;
  --fh-pad:clamp(20px,5vw,64px);
  --fh-gap:clamp(56px,7vw,104px);
}
body{font-size:1.03rem}
h1,h2,h3,h4{font-weight:400;letter-spacing:0;line-height:1.12}
.k-bar{--k-font-head:"Segoe UI",system-ui,sans-serif;--k-font-body:"Segoe UI",system-ui,sans-serif;--k-r-pill:999px}
b,strong{font-weight:700}
button.k-card,button.k-row,.k-phone-screen button,.k-main button,.k-landing button,input,select,textarea{font-family:inherit}
.k-btn{font-weight:600;padding:12px 22px}
.k-btn--lg{padding:16px 30px;font-size:1.08rem}
.k-btn--sm{padding:8px 14px;white-space:nowrap}
.k-btn--ghost{background:transparent;border:1.5px solid var(--k-primary);color:var(--k-ink)}
.k-btn--ghost:hover{background:var(--k-primary);color:var(--k-primary-ink)}
.k-landing.k-landing-login{background:var(--fh-tint);display:flow-root}

/* ---------- public page ---------- */
.k-landing .fh-in{max-width:1180px;margin-inline:auto;padding-inline:var(--fh-pad)}
.k-landing p,.k-landing dd{text-wrap:pretty}
.k-landing h2{font-size:clamp(1.9rem,3.4vw,2.9rem);text-wrap:balance}
:where(.k-landing) :where(ul,ol,dl){list-style:none;margin:0;padding:0}
:where(.k-landing) dd{margin:0}

/* opening screen: a video of the place under a veil mixed from the brand colour, white text */
.fh-open{background:var(--fh-deep);color:#fff;--k-bgv-veil:color-mix(in oklab,var(--fh-deep) 62%,#05080c)}
.fh-top{border-bottom:1px solid rgba(255,255,255,.22)}
.fh-top-in{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:18px}
.fh-name{font-family:var(--k-font-head);font-weight:var(--fh-hw);font-size:1.4rem;color:#fff}
.fh-top nav{display:flex;gap:clamp(14px,3vw,30px)}
.fh-top nav a{color:#fff;text-decoration:none;font-weight:600}
.fh-top nav a:hover{text-decoration:underline;text-underline-offset:6px}
.k-landing section.fh-hero{padding:clamp(28px,4.5vw,64px) 0 clamp(40px,5.5vw,80px)}
.fh-hero-grid{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:clamp(32px,5vw,72px);align-items:center}
.fh-where{color:color-mix(in oklab,var(--k-accent) 45%,#fff);font-weight:600;margin-bottom:14px}
.fh-hero h1{font-size:clamp(2.4rem,4.6vw,4rem);line-height:1.04;text-wrap:balance;color:#fff}
.fh-lead{font-size:clamp(1.05rem,1.35vw,1.2rem);line-height:1.55;color:color-mix(in srgb,#fff 86%,transparent);margin-top:20px;max-width:44ch}
.fh-acts{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px;margin-top:28px}
.fh-acts .k-btn{background:#fff;border-color:#fff;color:var(--k-bgv-veil)}
.fh-acts .k-btn:hover{background:color-mix(in oklab,var(--k-accent) 30%,#fff);border-color:transparent;color:var(--k-bgv-veil)}
.fh-link{color:#fff;font-weight:600;text-underline-offset:5px}
.fh-top :focus-visible,.fh-acts :focus-visible{outline:2px solid #fff;outline-offset:3px}

/* the working panel in the opening screen */
.fh-work{background:var(--fh-paper);color:var(--k-ink);border-radius:var(--k-r-lg);padding:clamp(18px,2.4vw,28px)}
.k-landing .fh-work h2{font-size:1.5rem}
.fh-label{font-weight:600;font-size:.92rem;color:var(--k-muted);margin:14px 0 6px}
.fh-picks{display:flex;flex-wrap:wrap;gap:8px}
.fh-pick{font-weight:600;font-size:.95rem;padding:8px 13px;border-radius:var(--k-r-md);border:1.5px solid var(--k-line);background:#fff;color:var(--k-ink);cursor:pointer}
.fh-pick:hover{border-color:var(--k-primary)}
.fh-pick.is-on{background:var(--k-primary);border-color:var(--k-primary);color:var(--k-primary-ink)}
.fh-pick:focus-visible{outline:2px solid var(--k-primary);outline-offset:3px}
.fh-work .k-btn--block{margin-top:16px}

.k-landing .fh-sec{padding:var(--fh-gap) 0;background:var(--fh-paper)}
.k-landing .fh-sec--tint{background:var(--fh-tint)}
.fh-note{color:var(--k-muted);margin-top:12px;max-width:52ch}
.fh-small{color:var(--k-muted);font-size:.93rem;margin-top:18px}
.fh-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,6vw,96px);align-items:start}

.fh-steps{counter-reset:fh;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,48px);margin-top:clamp(24px,3vw,40px)}
.fh-steps li{counter-increment:fh;border-top:var(--fh-rule);padding-top:16px}
.fh-steps li::before{content:counter(fh) ".";font:var(--fh-hw) 2.4rem/1 var(--k-font-head);color:color-mix(in oklab,var(--k-primary) 55%,var(--k-ink))}
.fh-steps h3{font-size:1.4rem;margin-top:8px}
.fh-steps p{color:var(--k-muted);margin:8px 0 0}

.fh-rows{margin-top:clamp(20px,3vw,34px);border-top:var(--fh-rule)}
.fh-row{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,4fr) auto;gap:10px 32px;align-items:start;padding:22px 0;border-bottom:1px solid var(--k-line)}
.fh-row h3{font-size:1.4rem}
.fh-row p{color:var(--k-muted);margin:6px 0 0}
.fh-row dl div{display:grid;grid-template-columns:5rem minmax(0,1fr);gap:10px;padding:2px 0}
.fh-row dt{color:var(--k-muted);font-size:.93rem}
.fh-row dd{font-weight:600}
.fh-row-end{display:grid;gap:10px;justify-items:end}
.fh-fee{font:var(--fh-hw) 1.9rem/1 var(--k-font-head);font-variant-numeric:tabular-nums;white-space:nowrap}
.fh-fee small{font:400 .9rem var(--k-font-body);color:var(--k-muted)}

.fh-list{margin-top:20px;border-top:var(--fh-rule)}
.fh-list li{padding:16px 0;border-bottom:1px solid var(--k-line)}
.fh-list h3{font-size:1.3rem}
.fh-list p{color:var(--k-muted);margin:4px 0 0}

.fh-quotes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,44px);margin-top:clamp(20px,3vw,34px)}
.fh-quotes blockquote{margin:0}
.fh-quotes p{font:var(--fh-qw) 1.25rem/1.4 var(--k-font-head)}
.fh-quotes footer{color:var(--k-muted);margin-top:12px;font-size:.93rem}

.fh-know{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 clamp(24px,4vw,56px);margin-top:clamp(20px,3vw,34px)}
.fh-know div{padding:18px 0;border-top:1px solid var(--k-line)}
.fh-know dt{font:var(--fh-hw) 1.3rem/1.15 var(--k-font-head);color:var(--k-ink)}
.fh-know dd{color:var(--k-muted);margin-top:6px}

.k-landing section.fh-end{padding:var(--fh-gap) 0;background:var(--fh-deep);color:#fff}
.fh-end-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,6vw,96px);align-items:start}
.fh-end h2{color:#fff}
.fh-end p{color:rgba(255,255,255,.86);margin-top:12px}
.fh-end .k-btn{margin-top:24px;background:#fff;border-color:#fff;color:var(--fh-deep)}
.fh-end :focus-visible{outline:2px solid #fff;outline-offset:3px}
.fh-hours div{display:grid;grid-template-columns:7rem minmax(0,1fr);gap:16px;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.24)}
.fh-hours dt{color:rgba(255,255,255,.78)}
.fh-foot{background:var(--fh-deep);color:rgba(255,255,255,.8);border-top:1px solid rgba(255,255,255,.2);font-size:.93rem}
.fh-foot-in{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-block:20px}
.fh-foot a{color:#fff}

@media (max-width:900px){
  .fh-hero-grid,.fh-two,.fh-end-in,.fh-quotes,.fh-know,.fh-steps{grid-template-columns:minmax(0,1fr)}
  .fh-row{grid-template-columns:minmax(0,1fr)}
  .fh-row-end{justify-items:start;grid-auto-flow:column;justify-content:space-between;align-items:center}
  .fh-top nav a:not(:first-child){display:none}
}

/* ---------- staff and owner ---------- */
.k-sidebar{background:var(--fh-deep);border-right:0}
.k-sidebar .k-brand{font-family:var(--k-font-head);font-weight:var(--fh-hw);font-size:1.35rem;color:#fff}
.k-sidebar .k-nav-link{border-radius:var(--k-r-md);font-weight:600;color:rgba(255,255,255,.84)}
.k-sidebar .k-nav-link:hover{background:rgba(255,255,255,.1);color:#fff}
.k-sidebar .k-nav-link.is-active,.k-sidebar .k-nav-link[aria-current="page"]{background:#fff;color:var(--fh-deep)}
.k-sidebar :focus-visible{outline:2px solid #fff;outline-offset:2px}
.k-topbar{background:#fff;border-bottom:1px solid var(--k-line)}
.k-topbar h1{font-size:1.45rem}
.k-topbar-role{text-transform:none;letter-spacing:0;font-size:var(--k-fs-sm);font-weight:600}
.k-page-head h2{font-size:clamp(1.7rem,2.5vw,2.2rem)}
.k-card{border:1px solid var(--k-line);border-radius:var(--k-r-lg)}
.k-table th{text-transform:none;letter-spacing:0;font-size:var(--k-fs-sm);font-weight:600;color:var(--k-muted)}
.k-kpi-label{text-transform:none;letter-spacing:0;font-size:var(--k-fs-sm);font-weight:600}
.k-kpi-value{font-family:var(--k-font-head);font-weight:var(--fh-hw);font-size:2.6rem;line-height:1}
.k-phone-head .k-wordmark{font-family:var(--k-font-head);font-weight:var(--fh-hw)}

/* ---------- motion ---------- */
@keyframes fh-up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
  .fh-go .fh-where{animation:fh-up .5s cubic-bezier(.2,.7,.2,1) both}
  .fh-go .fh-hero h1{animation:fh-up .7s cubic-bezier(.2,.7,.2,1) .08s both}
  .fh-go .fh-lead{animation:fh-up .6s cubic-bezier(.2,.7,.2,1) .2s both}
  .fh-go .fh-acts{animation:fh-up .6s cubic-bezier(.2,.7,.2,1) .3s both}
  .fh-go .fh-work{animation:fh-up .75s cubic-bezier(.2,.7,.2,1) .2s both}
  .fh-pick{transition:background-color .15s,border-color .15s,color .15s}
  @supports (animation-timeline:view()){
    .fh-sec h2,.fh-steps li,.fh-row,.fh-list li,.fh-quotes blockquote,.fh-know>div,.fh-end-in>*{
      animation:fh-up linear both;animation-timeline:view();animation-range:entry 0% entry 100%}
  }
}
.fh-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.k-landing h2{font-size:clamp(1.7rem,3vw,2.5rem)}
.fh-hero h1{font-size:clamp(2.2rem,4.2vw,3.6rem);line-height:1.1}
.fh-steps h3,.fh-row h3,.fh-list h3{font-size:1.2rem}
.fh-know dt{font-size:1.1rem}
.fh-quotes p{font-family:var(--k-font-body);font-weight:500;font-size:1.12rem}
.fh-list h3,.fh-know dt{line-height:1.25}
.fh-sup h3{display:flex;justify-content:space-between;gap:16px;align-items:baseline;font:500 1.05rem/1.3 var(--k-font-body)}
.fh-sup h3 span{font-variant-numeric:tabular-nums;font-weight:700;white-space:nowrap}
.fh-sup li{padding:12px 0}
.fh-fee{font-size:1.6rem}
.k-kpi-value{font-size:2.1rem}

/* the sums, under the stall sign */
.fh-work{position:relative;padding-top:44px;border:3px solid var(--k-primary)}
.fh-bulbs{position:absolute;left:0;right:0;top:0;height:30px;display:flex;justify-content:space-around;align-items:center;background:var(--k-primary);border-radius:10px 10px 0 0}
.fh-bulbs i{width:10px;height:10px;border-radius:50%;background:var(--k-accent);box-shadow:0 0 8px 2px color-mix(in oklab,var(--k-accent) 70%,transparent)}
.fh-sums{margin-top:16px}
.fh-sums p,.fh-sums li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0}
.fh-open-fee{padding:14px 16px;background:var(--fh-tint);border-radius:10px}
.fh-open-fee{flex-wrap:wrap}
.fh-open-fee b{font:400 1.9rem/1 var(--k-font-head);font-variant-numeric:tabular-nums;white-space:nowrap}
.fh-sums li{padding:11px 16px;border-bottom:1px solid var(--k-line)}
.fh-sums li span{color:var(--k-muted)}
.fh-sums li b{font-variant-numeric:tabular-nums;white-space:nowrap}
/* ---------- phone and staff helpers kept from the first build ---------- */
.fh-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;max-width:620px;margin:28px auto 0}
.fh-stats div{background:rgba(255,255,255,.55);border-radius:var(--k-r-md);padding:12px;text-align:center}
.fh-stats b{display:block;font:800 var(--k-fs-lg)/1.1 var(--k-font-head);color:#3a2210}
.fh-stats span{font-size:var(--k-fs-xs);color:#4b3320}
.fh-photo{height:64px;border-radius:var(--k-r-md);display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#a8743a,#5b3410);font-size:22px;flex:none;width:64px}
.fh-photo.is-empty{background:var(--k-bg);color:var(--k-muted);border:2px dashed var(--k-line)}
.fh-photo.is-wide{width:100%;height:96px}
.fh-qty{display:flex;align-items:center;gap:8px;flex:none}
.fh-qty button{width:34px;height:34px;border-radius:50%;border:1px solid var(--k-line);background:var(--k-surface);color:var(--k-primary);cursor:pointer;display:grid;place-items:center;font-weight:700}
.fh-qty button:hover{border-color:var(--k-primary)}
.fh-qty b{min-width:22px;text-align:center}
.fh-chk{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--k-line)}
.fh-chk:last-child{border-bottom:0}
.fh-tick{width:30px;height:30px;border-radius:8px;border:2px solid var(--k-line);background:var(--k-surface);color:#fff;cursor:pointer;display:grid;place-items:center;flex:none}
.fh-tick.is-on{background:var(--k-primary);border-color:var(--k-primary)}
.fh-sms{background:#fff;border:1px solid var(--k-line);border-radius:var(--k-r-md);padding:10px 12px;font-size:var(--k-fs-sm)}
.fh-sms b{display:block;font-size:var(--k-fs-xs);color:var(--k-muted);margin-bottom:2px}
.fh-score{font:800 var(--k-fs-xl)/1 var(--k-font-head);color:var(--k-primary)}
.fh-total{display:flex;align-items:center;gap:8px;padding:12px;border-radius:var(--k-r-md);background:var(--k-primary-soft)}

@keyframes fh-run{0%,100%{opacity:.3;box-shadow:none}50%{opacity:1}}
@keyframes fh-pop{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
  .fh-bulbs i{animation:fh-run 1.4s ease-in-out calc(var(--i)*-.2s) infinite}
  .fh-go .fh-open-fee b{animation:fh-pop .5s cubic-bezier(.2,.7,.2,1) .8s backwards}
  .fh-swap .fh-open-fee b{animation:fh-pop .35s cubic-bezier(.2,.7,.2,1) backwards}
  .fh-go .fh-sums li{animation:fh-up .5s cubic-bezier(.2,.7,.2,1) 1s backwards}
}
